Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ClistObjEdit grid and change form title problem.
Message
From
07/12/2001 11:48:51
Gil Munk
The Scarborough Group, Inc.
Baltimore, Maryland, United States
 
 
To
07/12/2001 10:02:27
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00591134
Message ID:
00591221
Views:
21
>Hi folks!
>I am working with MM 6.1 for about two month so I have a bunch of questions. Here is one.
>I have a cListObjEditForm with pageframe and Combobox , ClistObjEdit grid and my BizObj on the first page. My BizObj is a parent, children are on the Page2 and 3. Everything works fine except a couple of thing.
>1.When form appears the first record in the grid is not highlighted unless I will do any activity with the form(click on the grid, go to the different page and back etc.). To fix that problem I’ve entered this code in the Page1:
>
>DODEFAULT()
>THIS.Customersobj.FIRST()
>This does the job but I am just wondering how appropriate is that. I mean should the BizObj do this?
>2. I also trying to change form caption to display customer_id and customer_name. On the my BizObj builder I’ve entered expression for the BizOnj’s cdescr property and check checkbox “Change Form Title”. Nothing happened (from title doesn’t change) until I do any activity with the form and then everything fine. On the my BizObj builder I’ve selected option “Requery if first time activated after last form activated”. Looks like I NEED this option.
>Any advise?
>Thank you
>Igor

Igor,
The first recommendation is to use one of the MaintenanceForms, very likely cBizObjMaintenanceForm, instead of cListObjEditForm. These are specifically set up for Parent/Child maintenance. On the child pages you can use a cListObjEdit control to diplay the child records and edit them on a modal cListObjEditForm.

CBizObjMaintenanceForm's automatically select first record in the grid, too.

For the form title, make sure your description expression is character, too.

For the Maint. form I usually set the same Requery Option as you selected since I want the latest data to appear should I open another form and make changes to the data there.

HTH,
Gil Munk


"If a nation expects to be ignorant and free, it expects what never was and never will be." - Thomas Jefferson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform