Home » Developer & Programmer » Forms » control enable status of block at run time (forms 10g, win xp sp3)
control enable status of block at run time [message #599928] Wed, 30 October 2013 04:52 Go to next message
m_shehpar
Messages: 73
Registered: October 2010
Location: Pakistan
Member
Hi all,

I have a scenario wherein i want to enable / disable a block based upon value of one of its column value. i.e., if value of approval status in (IN ( 'INCOMPLETE' , 'RETURNED' , 'REJECTED' ) THEN
SET_BLOCK_PROPERTY('RFN_HEADERS_ALL', UPDATE_ALLOWED, PROPERTY_TRUE);
SET_BLOCK_PROPERTY('RFN_LINES_ALL', UPDATE_ALLOWED, PROPERTY_TRUE);
SET_BLOCK_PROPERTY('RFN_HEADERS_ALL', DELETE_ALLOWED, PROPERTY_TRUE);
SET_BLOCK_PROPERTY('RFN_LINES_ALL', DELETE_ALLOWED, PROPERTY_TRUE);
else.....


but the code is not working in pre-query, pre-select or post-query. can anybody guide me @ this

regards
Re: control enable status of block at run time [message #599934 is a reply to message #599928] Wed, 30 October 2013 05:15 Go to previous messageGo to next message
Littlefoot
Messages: 21808
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
PRE-RECORD might be your choice.
Re: control enable status of block at run time [message #599937 is a reply to message #599934] Wed, 30 October 2013 05:26 Go to previous message
m_shehpar
Messages: 73
Registered: October 2010
Location: Pakistan
Member
thank you exceedingly much little foot Smile
Previous Topic: adding selected listbox value into textbox
Next Topic: Error while inserting date column
Goto Forum:
  


Current Time: Fri Apr 26 07:37:19 CDT 2024