Need help on resetting the values and enable/disable items based on a value
Experts ,
I have an issue using the set_item_property
Here is the background. I have a form with one block and one canvas. It has 10 items ,based on the value of the first item the remaing items may be enabled or disabled.
I wrote a "pre-record" trigger ,so that before going to the new record based on the new record's first item value the remaining items in the new record are enabled or disbaled.
The problem is any box value if i set it to set_item_property('blockname.item_name',enabled',property_false),its fine ,but in a new record when I tried to
enable the same item using set it to set_item_property('blockname.item_name',enabled,'property_true) this one is not working .
In simple I can make as property_false but not back to property_true.
And when i used the command set_item_property('blockname.item_name',enabled', '') to reset the value back to its design time value form is throwing an error
withmessage 'FRM-41046'.
Guys I need your help on this. please let me know how can I do achieve this and why the error message when I try to reset the value.