Looping through Action Params twice?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Looping through Action Params twice?

Robert Brandt
Can you set up a response page to loop through your action params
twice?  I tried to do this but the second loop seems to pick up where
the first loop left off (instead of starting back at the beginning of
the params).  I have Lasso Professional 7.  Thanks!    Here's the
basics of what I have:

<!-- loop one -->

[Loop: (Action_Param: 'choose', -Count)]

[Action_Param: 'choose', -LoopCount]

[Variable: 'Selection'=(Action_Param: 'choose', Loop_Count)]

...miscellaneous stuff...

[/Loop]


<!-- loop two -->

[Loop: (Action_Param: 'choose', -Count)]

[Action_Param: 'choose', -LoopCount]

[Variable:  'MyRec'=(Action_Param: 'quantity', (field: 'position')]

...miscellaneous stuff...

[/Loop]


--
------------------------------
Lasso Support: http://support.omnipilot.com/
Search the list archives: http://www.listsearch.com/lassotalk.lasso
Manage your list subscription:  
http://www.listsearch.com/lassotalk.lasso?manage
Reply | Threaded
Open this post in threaded view
|

Re: Looping through Action Params twice?

Fletcher Sandbeck
On 6/2/05 at 7:44 AM by [hidden email] (Robert Brandt):

>Can you set up a response page to loop through your action params
>twice?  I tried to do this but the second loop seems to pick up where
>the first loop left off (instead of starting back at the beginning of
>the params).  I have Lasso Professional 7.  Thanks!    Here's the
>basics of what I have:

You can loop through the action params as many times as you need.  There seem to be a couple errors in your code.  You have [Action_Param: 'choose', -LoopCount], but this should be specified as [Action_Param: 'choose' Loop_Count].  In your second loop, you have (Field: 'position'), but this should probably be another loop_count.

><!-- loop one -->
>
>[Loop: (Action_Param: 'choose', -Count)]
>
>[Action_Param: 'choose', -LoopCount]
>
>[Variable: 'Selection'=(Action_Param: 'choose', Loop_Count)]
>
>....miscellaneous stuff...
>
>[/Loop]
>
>
><!-- loop two -->
>
>[Loop: (Action_Param: 'choose', -Count)]
>
>[Action_Param: 'choose', -LoopCount]
>
>[Variable:  'MyRec'=(Action_Param: 'quantity', (field: 'position')]
>
>....miscellaneous stuff...
>
>[/Loop]

This is how I would write these two loops.

<!-- loop one -->

[Loop: (Action_Param: 'choose', -Count)]

[Action_Param: 'choose', Loop_Count]

[Variable: 'Selection'=(Action_Param: 'choose', Loop_Count)]

....miscellaneous stuff...

[/Loop]


<!-- loop two -->

[Loop: (Action_Param: 'quantity', -Count)]

[Action_Param: 'quantity', Loop_Count]

[Variable:  'MyRec'=(Action_Param: 'quantity', Loop_Count)]

....miscellaneous stuff...

[/Loop]

Hope this helps,

[fletcher]


--
Fletcher Sandbeck                         [hidden email]
Lasso Product Specialist              [hidden email]
OmniPilot Software, Inc.                http://www.omnipilot.com

--
------------------------------
Lasso Support: http://support.omnipilot.com/
Search the list archives: http://www.listsearch.com/lassotalk.lasso
Manage your list subscription:  
http://www.listsearch.com/lassotalk.lasso?manage