Check updated gets in a group

This forum is for eXpress++ general support.
Post Reply
Message
Author
c-tec
Posts: 379
Joined: Tue Apr 20, 2010 1:36 am
Location: SALZBURG/AUSTRIA
Contact:

Check updated gets in a group

#1 Post by c-tec »

Hello Roger,
I have dialogs with tabpages that contain on the first tabpage the browser of the data, and on the second the details. When the second tab gets focus, I read the content of the row in variables for editing. When the user is ready, there is a "save" button to write the var's back to the database. Also I take care, that nobody in the network has changed the record in the meantime. For this I save the actual record bevor editing and compare it if changed bevore I write the new data back.
Now I would like to determine if gets of the second details tabpage have been updated, so that I can write them back automatically without the save button when changign to the first tab. So the record would be not lost if a user forget to click the save button. A dc_updated(cGroup) when focus get lost on the second tabpage would be nice. Or do you have another idea ?
regards
Rudolf
Rudolf Reinthaler
digital pen & paper systems
http://www.formcommander.net

skiman
Posts: 1199
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: Check updated gets in a group

#2 Post by skiman »

Hi Rudolf,

I suppose this must be easy to implement with the lostfocus of the dctabpage. You can use DC_GetOrigUpdated () to check if there are changes.
Best regards,

Chris.
www.aboservice.be

c-tec
Posts: 379
Joined: Tue Apr 20, 2010 1:36 am
Location: SALZBURG/AUSTRIA
Contact:

Re: Check updated gets in a group

#3 Post by c-tec »

Hello Chris,
thank you, thas exactly what I need!
regards
Rudolf
Rudolf Reinthaler
digital pen & paper systems
http://www.formcommander.net

c-tec
Posts: 379
Joined: Tue Apr 20, 2010 1:36 am
Location: SALZBURG/AUSTRIA
Contact:

Re: Check updated gets in a group

#4 Post by c-tec »

Hello,
now I have another problem. How can I mark the gets as updated when I save the gets back in the database ? I am not saving when leaving the dialog, I have a button for this task. So when I save with the button and then change the tab, the gets are still marked as updated. Which arrayelement of the getlist holds the info for updating ? I could change this info when saving back.
regards
Rudolf
Rudolf Reinthaler
digital pen & paper systems
http://www.formcommander.net

Wolfgang Ciriack
Posts: 484
Joined: Wed Jan 27, 2010 10:25 pm
Location: Berlin Germany

Re: Check updated gets in a group

#5 Post by Wolfgang Ciriack »

Hi Rudolf,
DC_GetOrigSet ?
_______________________
Best Regards
Wolfgang

c-tec
Posts: 379
Joined: Tue Apr 20, 2010 1:36 am
Location: SALZBURG/AUSTRIA
Contact:

Re: Check updated gets in a group

#6 Post by c-tec »

Hello Wolfgang,
thank you, I did not recogince that the sample shows how to do it
regards
Rudolf
Rudolf Reinthaler
digital pen & paper systems
http://www.formcommander.net

Post Reply