Jump to content
  • 0

Numbered List


crisraguilar
 Share

Question

9 answers to this question

Recommended Posts

  • 0

As I understand you want to have a column containing sequential numbers and regenerate the numbers each time the results is resorted.

This could be achieved with a Java Script on an HTML block of the results page. So basically you will set a variable to 0 in the header of the results and in the HTML block just increment the variable and write it with document.write JS statement.

Best,

Bahar M.

Link to comment
Share on other sites

  • 0

You can achieve what you are asking for by implementing custom javascript in the Caspio datapage described as follow:

1. In the header section of the result page declare

var count = 0 ;

2. In the body of the dp create a html block contains the follow code:

count = count +1 ;

document.write(count) ;

Hope this helps.

dhc

Link to comment
Share on other sites

  • 0

Excellent! Works exactly as I needed it.

Now.. although it works great lets solve another issue with that numbered list. My results page has 2 pages. I have a total of 38 records that are devided into these 2 pages. The first 25 on the first page and the next 13 on the second page. The first page has a numbered list 1 - 25 and the next page starts over and numbers it 1 - 13.

Is there a way to get that second page to number it 26 - 38?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...