Loop

318 views
Skip to first unread message

ideasandinno...@gmail.com

unread,
Jul 14, 2014, 4:20:20 AM7/14/14
to suppor...@runmyprocess.com
Hi

I have used a loop to write multiple entries into spreadsheet. I have used default("") function in case if any of the values in the column is not entered. But actually this function is not working. Is there any alternative method for my requirement?
The error thrown out is
2014-07-14T08:17:11+0000 - Task "update the array" (id: 122[0] - status: ABORTED): Error while processing {Orderarray.slNo}
Expression Orderarray is undefined on line 1, column 3 in update the array.
Please assist.

Thanks

Richard Manga

unread,
Jul 14, 2014, 11:41:19 AM7/14/14
to suppor...@runmyprocess.com
Hi,

Can you send me the code where you set your default value?

-> If you want to set the default value of array in Freemarker, the expression is : your_array_variable?default([])

-> If you want to set the default value of string in freemarker, the expression is:  your_string_variable?default("")


Regards,

Richard



--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "RunMyProcess Support Forum" 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/a72a8f08-811c-4679-9b3c-802370af26bb%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.

ideasandinno...@gmail.com

unread,
Jul 14, 2014, 11:56:46 PM7/14/14
to suppor...@runmyprocess.com
Hi

The code which I am using is given:

<gsx:slno>${Orderarray.slNo[P_index]?default("")}</gsx:slno>
<gsx:devicetype>${Orderarray.device_type[P_index]?default("")}</gsx:devicetype>
<gsx:quantity>${Orderarray.quantity[P_index]?default("")}</gsx:quantity>
<gsx:unitprice>${Orderarray.unitprice[P_index]?default("")}</gsx:unitprice>
<gsx:taxrate>${Orderarray.taxrate[P_index]?default("")}</gsx:taxrate>
<gsx:totalbilling>${Orderarray.total[P_index]?default("")}</gsx:totalbilling>
<gsx:instcharges>${Orderarray.instlln_charges_device[P_index]?default("")}</gsx:instcharges>
<gsx:servicetaxrate>${Orderarray.service_tax_rate[P_index]?default("")}</gsx:servicetaxrate>
<gsx:totamt>${Orderarray.amount[P_index]?default("")}</gsx:totamt>
<gsx:subscriptionrate>${Orderarray.subscription_rate[P_index]?default("")}</gsx:subscriptionrate>
<gsx:subscriptiontax>${Orderarray.tax[P_index]?default("")}</gsx:subscriptiontax>

These values are used inside a loop with loop condition as ${Orderarray.slNo}
where Orderarray is the variable name of the array widget ans slNo is the variable name of the first column in the widget.

Thanks

thoshino

unread,
Jul 15, 2014, 2:02:08 AM7/15/14
to suppor...@runmyprocess.com, ideasandinno...@gmail.com
Hi,

The error message is showing that
Orderarray 
doesn't exist.

I think you should check that first.

And, another tip about ?default("") syntax:

If you know that Orderarray (parent node) exist, but child node might not exist, below is fine
Orderarray.slNO[1]?default("")

But if parent node is missing in above situation, it will show error, because it expected that to exist _before_ checking if child node existed.

What you can do is, something like this
(Orderarray.slNO[1])?default("")

This will substitute with "", for both parent/child missing cases.

Best regards,

Taka

ideasandinno...@gmail.com

unread,
Jul 15, 2014, 2:16:37 AM7/15/14
to suppor...@runmyprocess.com, ideasandinno...@gmail.com
Hi

Can you look into my process? I can give you the access.
I need to solve this thing.

Reply all
Reply to author
Forward
0 new messages