Home » Developer & Programmer » Forms » Comit in forms (Forms 10g)
Comit in forms [message #562162] Mon, 30 July 2012 01:41 Go to next message
dev_777
Messages: 32
Registered: June 2010
Member
Hi

I have a form with two data blocks. The first multi row block displayed is the master block (parts_master) followed by the multi row detail block below (parts_lines).

I have a check box on the parts_master block. When I check the box, all related lines are displayed in the detailed block below.

I then change values in one of the fields from the detail block. I don't want to commit at this stage. I then click the check box on the master block to select another parts_master record. Immediately, forms throws up a message asking me whether I want to comit my changes. I know that this is forms behaviour.

How do I bypass this message wanting me to comit? I want to do a single comit at the end.


Re: Comit in forms [message #562163 is a reply to message #562162] Mon, 30 July 2012 01:59 Go to previous messageGo to next message
Littlefoot
Messages: 21813
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
I don't think that you can do that. As soon as master record changes, detail block gets changed as well and - if you don't commit - everything you did is lost.
Re: Comit in forms [message #562202 is a reply to message #562163] Mon, 30 July 2012 06:47 Go to previous messageGo to next message
Maaher
Messages: 7065
Registered: December 2001
Senior Member
Can't you save the changed values (with a key) to a global temp table and set the record status to query when you change the parent? On commit you can process the temporary table.

Just a long shot. I don't have access to forms builder right now ...

MHE
Re: Comit in forms [message #562203 is a reply to message #562202] Mon, 30 July 2012 06:56 Go to previous messageGo to next message
cookiemonster
Messages: 13925
Registered: September 2008
Location: Rainy Manchester
Senior Member
Why not just issue a post command to send the changes to the DB without committing them?
Then shouldn't get the question.
Re: Comit in forms [message #562204 is a reply to message #562203] Mon, 30 July 2012 06:58 Go to previous message
Maaher
Messages: 7065
Registered: December 2001
Senior Member
Laughing excellent point!

MHE
Previous Topic: save data in block details
Next Topic: Table which stores history of Forms errors info
Goto Forum:
  


Current Time: Fri Jul 05 21:48:36 CDT 2024