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
Messages: 14
Registered: May 2008
Junior Member
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';

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
Messages: 10180
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.

Previous Topic: when-validate-item giving strange behavior
Next Topic: help me please
Goto Forum:

Current Time: Tue Aug 22 04:27:36 CDT 2017

Total time taken to generate the page: 0.07880 seconds