on-internet
← Community

Enable/Disable Item based on the value of the List Item

Stack Overflow ·

I am trying to code a listItem which will have 2 values "New" and "Edit". I also have a search (Push Button) in the same canvas. I want to disable the Search button when I have selected "new" in the list item and enable it when "Edit" is selected in the list item. Here is my code : I am using Oracle Forms 6i , WHEN_LIST_CHANGED Trigger .. begin if :CONTROL.LI_DO='New' then go_item('PB_SEARCH'); SET_ITEM_PROPERTY('PB_SEARCH',enabled,property_false); else if :CONTROL.LI_DO='Edit' then go_item('PB_SEARCH'); SET_ITEM_PROPERTY('PB_SEARCH',enabled,property_true); end if; end if; end; Any help is app

Comments

Sign in or sign up to comment and upvote.

No comments yet.