Home » Developer & Programmer » Forms » planting a defult value (6i)
planting a defult value [message #394660] Sun, 29 March 2009 11:46 Go to next message
nyc212
Messages: 14
Registered: May 2008
Junior Member
hi
i want to plant a defult value in a list item.
i used the trigger WHEN-NEW-RECORD-INSTANCE on the block where the item is and i wrote this 2 lines

:doc.type := 'X';
set_item_property('DOC.TYPE',enabled,property_false);

and i got the defult value i want but when i press on the execute_query button the system mode doesnt change to query mode.
what have i done wrong??????????

please help me
Re: planting a defult value [message #395547 is a reply to message #394660] Wed, 01 April 2009 18:11 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
You can not disable the current item.

You do not need to have an item enabled to assign a value to it. Enabling and disabling an item only stops the user from navigating to that item.

David
Previous Topic: Java bean
Next Topic: File uploading from client side through forms 6i
Goto Forum:
  


Current Time: Fri Dec 06 17:46:27 CST 2024