Highlighted
Established Member..
Established Member..
2074 views

How do I pass the List of Array Values? by doing the paramerization

 

Hi Guys, 

 

LR Version 11.50

 

How do I pass the List of Array Values?  by doing the paramerization.

I want to  post exactly 100 Invoices for each user, how do I do that?

 

Please advise me, I need to create the scripts


Thanks,
Rajani

0 Likes
8 Replies
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: How do I pass the List of Array Values? by doing the paramerization

Parameterization is same in LR11.50 and no different. You can do it in the similar way how you do it regularly. Please post more information about it if there is any difficulty.

0 Likes
Highlighted
Established Member..
Established Member..

Re: How do I pass the List of Array Values? by doing the paramerization

Hi Madan,

 

See the below code.

 

I looked at the Vugen document, it didn’t much helped me.

See the below screenshot. I have posted  4 transactions, while recording, LR is displaying all 4 numbers.

I have to post for each user exactly 100 users by passing the numbers.

When I used the Table parameter, It just passing 1 number at a time.

 

    "<operation>postPCTransactions</operation>"
                        "<parameters>"
                            "<flex.messaging.io.ArrayCollection>"
                                "<object-array>"
                                    "<int>189977</int>"
                                    "<int>189978</int>"
                                    "<int>189983</int>"
                                    "<int>189984</int>"
                                "</object-array>"
                            "</flex.messaging.io.ArrayCollection>"
                        "</parameters>"
                    "</flex.messaging.messages.RemotingMessage>"

 

 

When I  use Table parameter it just passing only 1 Value.

 

 

 

Please advise me!

 

 

 

Thanks,

 

Rajani

 

0 Likes
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: How do I pass the List of Array Values? by doing the paramerization

Since you are using them all in the same form, you cannot use the lr_advance_param in between usage.

 

you'll probably have to set up your table data file to have 4 columns and 100 data lines (1 for each user), and set it to unique.

 

Here's an example with 4 columns with some faked up data for example sake:

data1,data2,data3,data4

189977,189978,189983,189984

189777,189888,189999,189666

189767,189878,189989,189669

189111,189222,189333,189444

 

"<operation>postPCTransactions</operation>"
                        "<parameters>"
                            "<flex.messaging.io.ArrayCollection>"
                                "<object-array>"
                                    "<int>{data1}</int>"
                                    "<int>{data2}</int>"
                                    "<int>{data3}</int>"
                                    "<int>{data4}</int>"
                                "</object-array>"
                            "</flex.messaging.io.ArrayCollection>"
                        "</parameters>"
                    "</flex.messaging.messages.RemotingMessage>"

 

 

0 Likes
Highlighted
Established Member..
Established Member..

Re: How do I pass the List of Array Values? by doing the paramerization

Hi James,

 

Thanks for your reoonse!

 

 Each user has to use exactly 100 values not 1 value. i.e single user 100 values at a time.

 

Thanks,

Rajani

0 Likes
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: How do I pass the List of Array Values? by doing the paramerization

Based on your response, that means you'll have 100 datapoints in the code (where I have 4, you'll have 100).  The example still holds up, but your data file will be 100 columns, instead of 4.

 

Is that what you are saying?

0 Likes
Highlighted
Established Member..
Established Member..

Re: How do I pass the List of Array Values? by doing the paramerization

Hi James,

 

Yes, you are right.

How do I create that, which parameterizaion  should I use. I mean is it Table?

 

Tahnks,

Rajani

0 Likes
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: How do I pass the List of Array Values? by doing the paramerization

yes, table.

 

100 columns means 100 parameters, that's a lot of work.  you can manually edit the .prm file to speed things up.

0 Likes
Highlighted
Contributor.
Contributor.

Re: How do I pass the List of Array Values? by doing the paramerization

HI,

Even I have a similar requirement. Did u get the solution for this. Please kindly help me

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.