Field is not updating [message #602833] |
Mon, 09 December 2013 09:35 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
![](//www.gravatar.com/avatar/28e04d32fc62c8578df6c2642bd97628?s=64&d=mm&r=g) |
bluetooth420
Messages: 146 Registered: November 2011
|
Senior Member |
|
|
Need guideline as i am failed to resolve the following situation.
Situation is
:block1 is view based block
:prod is table based block
:block1.chk_ord is a check box.
I have written the following code in when-checkbox-changed
IF :block1.chk_ord ='Y' then
message(:block1.orddate ); pause; ------this shows null
:block1.orddate := trunc(sysdate); --problem area, its not updating
message(:block1.orddate ); pause; --- this also shows null
synchronize;
:prod.orddate := trunc(sysdate); -- this is updating
ELSE
:block1.orddate := null; -- no affect
:prod.orddate := null; -- working fine
END IF;
My problem is that why :block1.orddate := trunc(sysdate); is not updating :block1.orddate ?
Any tip ?
Thanks
[Updated on: Mon, 09 December 2013 09:41] Report message to a moderator
|
|
|
|
|
|
|
|
|
Re: Field is not updating [message #602847 is a reply to message #602844] |
Mon, 09 December 2013 11:02 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
![](//www.gravatar.com/avatar/28e04d32fc62c8578df6c2642bd97628?s=64&d=mm&r=g) |
bluetooth420
Messages: 146 Registered: November 2011
|
Senior Member |
|
|
thanks cookiemonster for your guidance.
I have made orddate2 (a display field) in block1 and achieved my target.
Just a new learning poing that ORA-01779 does not allow updation even at form level even before committing.
|
|
|