115
Views
2
Comments
[Event System] How do I pass in multiple arguments?
Question
event-system
Web icon
Forge asset by Leonardo Fernandes

I would like to pass multiple arguments into Trigger or Invoke, and the prompt for the Args parameter says to add multiple Arg<Type>() functions for multiple arguments. I've tried literally adding my arguments with the following;

ArgIdentifier(Identifier) + ArgJSON(JSONSerializeMessage.JSON)

In the event, my identifier is available, but my JSON message is not. What am I doing wrong?

2026-01-19 17-09-56
Carlos Lessa
 
MVP

Mark Fournier wrote:

I would like to pass multiple arguments into Trigger or Invoke, and the prompt for the Args parameter says to add multiple Arg<Type>() functions for multiple arguments. I've tried literally adding my arguments with the following;

ArgIdentifier(Identifier) + ArgJSON(JSONSerializeMessage.JSON)

In the event, my identifier is available, but my JSON message is not. What am I doing wrong?

Hi Mark, this looks like a problem of how to develop and not a problem with this component, I would advise posting into the community forum where the help would come fast as usually is the proper place for this.

here is the link:https://www.outsystems.com/forums/Forum_Home.aspx


2019-07-08 11-04-35
Leonardo Fernandes
 
MVP

Hi Mark. What you are doing is correct, however I never really had time to document how to use it.

To read the arguments, you should invoke the Arg action/function twice. Each call to Arg retrieves one of the arguments.

I would recommend you map each argument as an input of the screen action, and when you bind the screen action to the event handler, you can use the Arg() as a function to retrieve the value. I'm attaching an example that uses two arguments.

EventArguments.oml
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.