Home » Developer & Programmer » Forms » How to use Set_item_property
How to use Set_item_property [message #665318] Tue, 29 August 2017 23:52 Go to next message
mashhoodnasir
Messages: 26
Registered: May 2017
Junior Member
Scenario: I have two field Empno, Ename in which Required Property set to Yes. When i press exit button leaving Empno blank then system wont allow me to exit and a message appear: Field must be entered. i tried with "set_item_property('empno',required,property_false)" define in the trigger(when_button_pressed) but problem not resolved yet.
Re: How to use Set_item_property [message #665320 is a reply to message #665318] Wed, 30 August 2017 00:48 Go to previous messageGo to next message
adil shakeel
Messages: 47
Registered: August 2017
Member
go to the property pallate of the field EMPNO AND SET

REQUIRED NO
Re: How to use Set_item_property [message #665325 is a reply to message #665320] Wed, 30 August 2017 03:19 Go to previous messageGo to next message
mashhoodnasir
Messages: 26
Registered: May 2017
Junior Member
I DONT TO WANT TO DO IT FROM PROPERTY PALLET. I WANT TO USE SET_ITEM_PROPERTY FUNCTION
Re: How to use Set_item_property [message #665328 is a reply to message #665325] Wed, 30 August 2017 04:37 Go to previous messageGo to next message
cookiemonster
Messages: 13917
Registered: September 2008
Location: Rainy Manchester
Senior Member
Switch your caps lock off. All caps is considered shouting in all internet forums. There's no need for it.

Is the button in a different block? If so then moving to a different block causes the required checks to fire. This happens before any code in the when-button-pressed is executed.
Try changing the form level property defer required enforcement
Re: How to use Set_item_property [message #665408 is a reply to message #665328] Tue, 05 September 2017 00:51 Go to previous messageGo to next message
mashhoodnasir
Messages: 26
Registered: May 2017
Junior Member
so you want me to do it using Item property through property palette.? but why it is not working with set_item_property function??
Re: How to use Set_item_property [message #665413 is a reply to message #665408] Tue, 05 September 2017 04:14 Go to previous message
cookiemonster
Messages: 13917
Registered: September 2008
Location: Rainy Manchester
Senior Member
You've completely missed the point of what I said.
The set_item_property isn't working because it's not being executed in the first place.
The required check stops the button code from being run at all.
Changing the form level property 'defer required enforcement' (not the item level required property) should fix it.
Read up on defer required enforcement in form builder help.
Previous Topic: FRM-10039
Next Topic: Forms 6i Installation Error
Goto Forum:
  


Current Time: Thu Mar 28 14:11:31 CDT 2024