List With Order Number

253 views
Skip to first unread message

freal...@gmail.com

unread,
Nov 3, 2015, 4:42:39 AM11/3/15
to Fujitsu RunMyProcess Developer Community
Hi.
I have one field that is the order number that is incremented when we create a new order. But I want have a list with these order numbers of the orders created. It is possible?

Sweta Suman

unread,
Nov 3, 2015, 5:10:53 AM11/3/15
to suppor...@runmyprocess.com
Hi,

Yes, it is possible. You can store the order number created in collection and then display order number in a variable based list.


Hope this helps you.

On Tue, Nov 3, 2015 at 3:12 PM, <freal...@gmail.com> wrote:
Hi.
I have one field that is the order number that is incremented when we create a new order. But I want have a list with these order numbers of the orders created. It is possible?

--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/0240754f-d257-406a-8165-b8feb2d16680%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.



--
Thanks,
Sweta 
Fujitsu RunMyProcess

freal...@gmail.com

unread,
Nov 3, 2015, 5:23:59 AM11/3/15
to Fujitsu RunMyProcess Developer Community
Thank you very much Sweta. I didn't understand, because, I have not a collection. I have one web interface and I have one process. I'm not expert in RMP :P.

I have a variable in start of process and I define this variable with value where I used {next_value("variable")?number?string("0")}.

So, now I want have a list with order numbers of the orders created until now.
I saw your link but I don't understand how I can do, and I haven't collections.
Sorry. Can you help me?

Sweta Suman

unread,
Nov 3, 2015, 10:35:32 AM11/3/15
to suppor...@runmyprocess.com
Hi,

Order number is dynamic and created whenever new order is submitted .So you have to use collection to store it.Please follow below steps -

Step 1 - In order to do this take a list with type "variable based" i.e dynamic in your WI.

Step 2 - Create a collection from New->Collection. Store the order_number in collection using -

<#assign my_object>
{"order_number":${order_number}}
</#assign>

${save_object(my_object,"collection_name")}


Step 3 - Retrieve order number from collection and map to variable based list using attached script.

Hope this helps you.


--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.
js.txt
list.png
Reply all
Reply to author
Forward
0 new messages