Page 1 of 1

Message Queue VL 14 Web

Posted: Mon May 02, 2016 7:26 pm
by avescovi
Hi,

I am using the message queue to set messages on some fields.
Now I need to use it also in a Web List, in particular I want to set these messages on a column cell depending on the input (using it to provide explanations if the input check fails).

http://docs.lansa.com/140/EN/LANSA016/PRIM_MSGQ.htm

The problem is that I am not able to call the #sys_msgq.Add method on the column cell eg. #ColumnXY.CurrentItem

Code: Select all

#sys_msgq.Add( *MTXTMYMULTILANGVAR #ColumnXY.curreintitem )
Thanks

Andrea

Re: Message Queue VL 14 Web

Posted: Tue May 03, 2016 9:53 am
by Stewart Marshall
At present, message handling doesn't support assignment to a list cell. It will likely be made available when we fully address contextual messages and allow OAM generated messages to be assigned to fields.

In the meantime, try using a reusable part for the columns that need to show errors. You could publish the edit/field as a property. This would give you access to the control so that the error could be assigned directly to it.

So, in the reusable part you'd have something like

Code: Select all

Define_Pty Name(InputField) Get(*Reference #YourField)
Then, when generating the message

Code: Select all

#sys_msgq.Add( *MTXTMYMULTILANGVAR (#ColumnXY.currentitem.Part *as #YourPart).InputField )
Regards

Re: Message Queue VL 14 Web

Posted: Tue May 03, 2016 6:27 pm
by avescovi
Thank you,

It works, but I hope that this feature will be implemented soon because this workaround implies an explicit management for each of my field type.

Have a nice day

Andrea

Re: Message Queue VL 14 Web

Posted: Wed May 04, 2016 10:25 am
by Stewart Marshall
Hi Andrea

Your last reply has confused me a little. You'd only need to do this for those fields that you want to edit in a list cell, and I would hope that would be very few. There are of course exceptions to the rule, but in general, editing data in a "grid" is not particularly user friendly.

Can you tell me a little more about the style of application that you're building please.

Regards

Re: Message Queue VL 14 Web

Posted: Wed May 04, 2016 10:23 pm
by avescovi
Hi,

Now I am trying to avoid as much as possible editing directly on the list.
In this way I can use one or more views containing my fields in which use the message queue.

Thank you for your help

Regards

Andrea