Set_Item_Property [message #516063] |
Thu, 14 July 2011 20:57 |
fadhzone
Messages: 61 Registered: April 2008
|
Member |
|
|
Hi All,
I've this code:
IF :BL_HDR.SECT_CD IN (104,105,114,115) THEN
SET_ITEM_PROPERTY('BL_DTL.UOM', DISPLAYED, PROPERTY_TRUE);
SET_ITEM_PROPERTY('BL_DTL.SKU_DESC', WIDTH, 195);
ELSE
SET_ITEM_PROPERTY('BL_DTL.UOM', DISPLAYED, PROPERTY_FALSE);
SET_ITEM_PROPERTY('BL_DTL.SKU_DESC', WIDTH, 220);
END IF;
If i use this code, the font color turn to grey?why this happened even though the field property had been set to black?
|
|
|
Re: Set_Item_Property [message #516118 is a reply to message #516063] |
Fri, 15 July 2011 02:53 |
|
Littlefoot
Messages: 21823 Registered: June 2005 Location: Croatia, Europe
|
Senior Member Account Moderator |
|
|
I suppose that it is because of propagation of property changes. When you set DISPLAYED property to FALSE, the following properties are also set to FALSE: ENABLED, NAVIGABLE, UPDATEABLE, UPDATE_NULL, REQUIRED, QUERYABLE (check Forms Help for more information).
So, if the item is not enabled, its color changes to gray.
|
|
|
|