Home » Developer & Programmer » Forms » Attribute problem
Attribute problem [message #589499] Mon, 08 July 2013 01:04 Go to next message
mist598
Messages: 1195
Registered: February 2013
Location: Hyderabad
Senior Member
Hi,

I created visual attribute grouo VA_RED on 'ONHANDQUANTITY'(Item),I wrote Condition On POST-QUERY Trigger
IF :RHCLANDEDCOSTDET.ONHANDQUANTITY < :RHCLANDEDCOSTDET.QUANTITY_REMAINING THEN
Set_Item_Instance_Property('ONHANDQUANTITY' , CURRENT_RECORD, VISUAL_ATTRIBUTE,'VA_RED');
and I set all properties correctly But values are not showing In "RED" Color, Can any one please help me?

Thanks,
Siva
/forum/fa/10958/0/
  • Attachment: Item.png
    (Size: 64.35KB, Downloaded 1091 times)
Re: Attribute problem [message #589500 is a reply to message #589499] Mon, 08 July 2013 01:05 Go to previous messageGo to next message
mist598
Messages: 1195
Registered: February 2013
Location: Hyderabad
Senior Member
Screenshot on Attribute..
  • Attachment: Attribute.png
    (Size: 59.61KB, Downloaded 629 times)
Re: Attribute problem [message #589501 is a reply to message #589500] Mon, 08 July 2013 01:09 Go to previous messageGo to next message
Littlefoot
Messages: 21807
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Is :RHCLANDEDCOSTDET.ONHANDQUANTITY < :RHCLANDEDCOSTDET.QUANTITY_REMAINING?

Did you really mean to use SET_ITEM_INSTANCE_PROPERTY (and not SET_ITEM_PROPERTY)?
Re: Attribute problem [message #589502 is a reply to message #589501] Mon, 08 July 2013 01:11 Go to previous messageGo to next message
mist598
Messages: 1195
Registered: February 2013
Location: Hyderabad
Senior Member
Thanks for reply,

Yes! i used SET_ITEM_INSTANCE_PROPERTY..
Re: Attribute problem [message #589505 is a reply to message #589501] Mon, 08 July 2013 01:23 Go to previous messageGo to next message
mist598
Messages: 1195
Registered: February 2013
Location: Hyderabad
Senior Member
Thanks Littlefoot,

And finally got,I added Blockname in SET_ITEM_INSTANCE_PROPERTY('BLOCKNAME.ITEMNAME',......);


Regards,
Siva Smile
Re: Attribute problem [message #589510 is a reply to message #589505] Mon, 08 July 2013 02:43 Go to previous messageGo to next message
cookiemonster
Messages: 13920
Registered: September 2008
Location: Rainy Manchester
Senior Member
you should always use the block name when referring to items in forms code.
Re: Attribute problem [message #589512 is a reply to message #589510] Mon, 08 July 2013 02:50 Go to previous message
mist598
Messages: 1195
Registered: February 2013
Location: Hyderabad
Senior Member
Thanks cookiemonster,

Ok, thanks for suggest..

Regards,
Siva Smile
Previous Topic: Screen is not open
Next Topic: Barcode Label Printing - Can I prevent the label from printing 'N/V' for null values?
Goto Forum:
  


Current Time: Fri Apr 19 19:17:05 CDT 2024