Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing Run-Time property of Text Field in Forms 6

Status
Not open for further replies.

darkman0101

Technical User
Oct 10, 2000
51
NZ
I have a text field that has the visible property set to 'no' at design time. I want to be able to change this to true in an exception handler at run-time.
There is a 'set_item_property' built in subprogram that I think should do the job.

The code sits in the 'WHEN-BUTTON-PRESSED' trigger of a button.
The Text field in question is 'Text_Item22'

The potion of the PL-SQL code looks like this:
.
.
.
exception
when NO_DATA_FOUND then
:pICKINGSLIPNO := '';
:CARRIERNAME := '';
set_Item_property('TEXT_ITEM22',Visible,'yes')
.
.
.
Is this syntax correct?
The help says that the property should be a number, the item can be a varchar or a number and the property value sould be a varchar.

The code compiles OK but if I trigger the button with what will cause the above exception I get the following message:
'Invalid Parameter used for Set_Item_Property'

Where is the fault?
What number should I use for the property?

Thanks in advance

Jason
 
Not quite sure about Developer 6, but in the previous versions you should have replaced 'yes' by property_true:

set_Item_property('TEXT_ITEM22',Visible,property_true);

Give it a try...

HAND - Didier
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top