Grid Update

ka4niv

Active Member
I probably designed this thing wrong, but let's see if I can salvage it before starting over.

Here is what I have:
1. Headerless Detail form with a grid showing records in a file, Grid
fields can be changed by the user.
2. Form Exit buttons where "Button Clicked" event rules run a host job.

The problem:
1. Changes in the grid fields have not been updated in the database, so the host job uses old data.

My question:
1. Is there a system/business function that will force the grid fields to update prior to kicking off the host job?

Many thanks

Maurice Rice
Delta Woodside Industries
Greenville, SC

XE, sp14 (yes, I know!) ES:AS400 Deployment:NT
 
Hi Maurice,
why do you want a business function : the easiest is to make a table update in the button clicked event before the UBE call,
there should not be any problem,
Julien

<P ID="edit"><FONT SIZE=-1>Edited by JulienW on 2/6/02 04:06 AM.</FONT></P>
 
Hi Maurice,

The added, updated data will be appear/available in the data base earliest in the Post Button Clicked event of the OK button.

If you want to run your host job fro an other form exit then you have to force to perform an OK action before it, issuing a PressButton(HC OK) system function call (General category).

An other hint for you: would be usefull to check Appendix B in the Developer Tools manual about the Process Flow of the different Form Types. Also usefull to check the events in the On-Line help of OW. Please, check the Trips and Traps board how to access it.

Hope, could help a bit.

Regards,

Zoltán

B7332 SP11, ESU 4116422, Intel NT4, SQL 7 SP1
(working with B7321, B7331, XE too)
 
Back
Top