Forums

This topic is locked

Variable Number of Rows in Repeat Region

Posted 15 Aug 2001 15:56:14
1
has voted
15 Aug 2001 15:56:14 Martin Ruppert posted:
<font face='Arial'>Hi!

I was trying to pass a user defined number (i.e. 15) on to the query results page into the settings of the repeat region, so that the user can define how many rows per page he/she wants to see. Is that possible. I am using UltraDev 4 and am relatively new in this area.

Query page: Has a field where user can enter number.

Dim Repeat1__numRows
Repeat1__numRows = VARIABLE &lt;----
Dim Repeat1__index
Repeat1__index = 0
Documents_numRows = Documents_numRows + Repeat1__numRows


Any help would greatly appreciated.

Thanks!

Martin
</font id='Arial'>

Replies

Replied 20 Aug 2001 18:53:23
20 Aug 2001 18:53:23 Owen Eastwick replied:
I tried it and it works fine.

As you say have a text field or a drop down list or whatever, on the search page into which the user enters or selects a number (drop down list might be better to prevent the user entering ridiculous numbers or text).

Then within the code of the results page:

varShowRows = Request("txtShowRows"

Dim Repeat1__numRows
Repeat1__numRows = <b>VarShowRows</b>
Dim Repeat1__index
Repeat1__index = 0
Documents_numRows = Documents_numRows + Repeat1__numRows


Regards

Owen.

Replied 21 Aug 2001 20:11:24
21 Aug 2001 20:11:24 Martin Ruppert replied:
<font face='Arial'>Thanks Owen! It worked. Don't know what I did wrong when I tried it.

Anyways, thanks!

Martin
</font id='Arial'>

Reply to this topic