I have a form with a rich text field (QuoteItem1) which I want users to be able to either type in a value or hit an action button using an @PickList to select a value from a view and have the field populated by the selection.
The action button works and I can select an item in the view but when I click ok nothing happens with the (QuoteItem1) field?
Here is my code for the action button:
FIELD QuoteItem1:=QuoteItem1;
TWMItem1:=@PickList([Custom];“”:“”;“Equipment”;“Select Equipment”;“Please select equipment from TWM”;4);
@SetField(“QuoteItem1”;TWMItem1);
I have even tried a simple: @SetField(QuoteItem1;“Hello”);
…on the action button and when I press the button it still seems to do nothing? What am I doing wrong here?
Subject: @SetField doesnt work?
Try: @Command([EditGoToField];“QuoteItem1”);
@Command([EditInserText]; TWMItem1)
But why are you using a rich text field?
hth
Tony
Subject: RE: @SetField doesnt work?
…cool thanks that look like it works.
I would settle for plain text but would prefer rich text so users can add some formatting such as bulleted lists etc. Its a sales quote form and these fields are the items of equipment being quoted on so the descriptions can get quite descriptive with various options etc. Sometimes the equipment may already exist in our database - other times it does not - hence the option to either select it from the view or just enter a new description.
Subject: @SetField doesnt work?
…its always the way - minuts after posting I discovered that @SetField only appears to work with a text field?
Is there a way to get my @SetField value to set a Rich text field?
Subject: RE: @SetField doesnt work?
I know it’s a long time after the fact but I think you just saved me a whole lotta heartache. Thanks!