Create new array object as output

Posted by jromagos on 22-Sep-2017 05:35

Hi,

I'm trying to create as a result a new object, but my problem is when I try to make a new Array.

My vocabulary I have:

Output with :

- nomCamp (string)

- validador (string)

Array of parametre

And parametre just have entity "valor".

At this moment it work just creating one new element, but I can't create an array of "Parametre"

Output.new[Output.nomCamp='a',Output.validador='aaa',Output.parametre = Parametre.new[Parametre.valor = 'a']]

Can somedy help me?

Posted by Harold-Jan Verlee on 25-Sep-2017 07:22

Why don't you give this a try:

See rule assets attached. [View:/cfs-file/__key/communityserver-discussions-components-files/14/Parms2.zip:320:240]

All Replies

Posted by Harold-Jan Verlee on 22-Sep-2017 10:19

[View:/cfs-file/__key/communityserver-discussions-components-files/14/Parms.zip:320:240]This is quite easy to do if I understand correctly what your needs are. Attached you'll find a solution. The screenshot illustrate the rules.

Posted by jromagos on 25-Sep-2017 02:17

Hi, it's more or less what I want, but with the difference I want to create Parametres in the output. Not take the values frome the input.

I want to create new  Parameters in "Actions".

Posted by Harold-Jan Verlee on 25-Sep-2017 07:22

Why don't you give this a try:

See rule assets attached. [View:/cfs-file/__key/communityserver-discussions-components-files/14/Parms2.zip:320:240]

This thread is closed