Message Queue VL 14 Web

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
avescovi
Posts: 25
Joined: Wed Mar 16, 2016 3:01 am
Location: Switzerland
Contact:

Message Queue VL 14 Web

Post 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
User avatar
Stewart Marshall
Posts: 417
Joined: Thu Nov 05, 2015 5:25 pm

Re: Message Queue VL 14 Web

Post 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
Stewart Marshall

Independent IT Consultant
www.marshallfloyd.com.au
avescovi
Posts: 25
Joined: Wed Mar 16, 2016 3:01 am
Location: Switzerland
Contact:

Re: Message Queue VL 14 Web

Post 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
User avatar
Stewart Marshall
Posts: 417
Joined: Thu Nov 05, 2015 5:25 pm

Re: Message Queue VL 14 Web

Post 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
Stewart Marshall

Independent IT Consultant
www.marshallfloyd.com.au
avescovi
Posts: 25
Joined: Wed Mar 16, 2016 3:01 am
Location: Switzerland
Contact:

Re: Message Queue VL 14 Web

Post 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
Post Reply