Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using modal data child form for adding new records
Message
General information
Forum:
Visual FoxPro
Category:
CodeMine
Title:
Using modal data child form for adding new records
Miscellaneous
Thread ID:
00724730
Message ID:
00724730
Views:
60
Hey Codeminers,

I'm using a vcx modal data child launched from a button on the caller for adding a new record to a table of system users. The first textbox takes the last name of the new user and executes some code to create a user_code from the lastname and some digits. this would be inserted into the user_code text box on the data child. The code works fine in the test prg, but I have not found the appropriate place to put the code so that it executes in the data child. I have tried afterchange of the lastname txtbox as well as lostfocus and fieldvalid.

I also can't seem to get the data child to react properly to appending a new record. If I have APPEND BLANK DODEAULT() in the form load, the data child is blank when it launches. As I enter data in the txtboxes the box losing focus is blanked and dimmed. This repeats until I reach the last box. There is a okcancelapply group on the form and if I click apply a blank record is appended to the table and the tab order takes me back to the top of the form and the behavior repeats.

Without the APPEND BLANK DODEAULT(), the data child launches with the current record's data in the txtboxes and wants to edit, just as you'd expect.

I'm still trying to understand all the nuances of working with this framework, and do appreciate the help I get from all of you.

TIA
Opportunity is missed by most people beacuse it is dressed in overalls, and looks like work --- Thomas Edison
Next
Reply
Map
View

Click here to load this message in the networking platform