Jump to content
  • 0

Sorting data in a View OR Sorting results of a DataPage


allansheth

Question

Hi,

I am hoping someone can help me with this...

I am trying to figure out how to sort results in a View. I don't see this option in the wizard and can't understand why this option is not provided because it seems a pretty basic and common task in DB development.

The reason I need the above functionallity is because I need to sort the results in a Datapage using one or more fields that are not displayed...again a pretty basic need or common occurance in DB development.

What I am doing is displaying the results of a datapage in a HTML block because it provides me with much better formatting control (along with CSS styles) than the standard wizard-driven output. But doing it this way the fields are not selected for display, and thus not available for sorting in the wizard.

I'm not averse to modifying the XML (View or Datapage) but don't know what to modify or if that's even possible...I also thought about discarding the HTML block and using CSS to control the display of the wizard-driven results but not sure if I can acheive that with my limited CSS skills & knowledge.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Hi Allan,

Caspio does not have the sorting feature in the View setup rather it enables users to set the sort order in the DataPage wizard however you are right if you have the results fields in HTML block you can not choose them in the sort order dropdowns. The solution would be to add that field as a regular field to the results page then hide it with Java Script programming.

What is the the layout format of your results page? Tabular, Grid, List?

Depending on each format the Java Script could be different so I would suggest you to ask Caspio Professional Service department to develop the Java Script for your purpose.

By the way we add this to the new feature request list to be considered in future releases.

Mason

Link to comment
Share on other sites

  • 0

I am using tables to format my output via the HTML block. I have an issue with as well because I have to create a table for each record instead of creating one table and having the records in the rows.

I guess what I'm saying is I can't figure-out how to create the

tag. However this is secondary to my initial question.
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...
×
×
  • Create New...