close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

DA Sort

Thread began 6/02/2009 2:42 pm by xag | Last modified 6/05/2009 9:18 am by xag | 5438 views | 21 replies |

xag

DA Sort

Hello

I'm stuck making the column headers as links to pass the parameter to sort. In the DA Sort function I have the trigger being cStr(Request.QueryString("SortColumn")). I created SortColumn in the Binding panel. Next I have in the Sorting Area as my column with cStr(Request.QueryString("SortColumn")) and Sort order as Ascending.

Now here is where I get stuck. The table is currently only showing the first 15 records. When I go to make the table header a link i first put the filename i am working on then click in Parameters and click the dynamic pan in name... what should be the name and what should be the value? and how can I still make it work with the filtered querystring.

Thanks for yo help

Sign in to reply to this post

Ray BorduinWebAssist

I think the name should be: SortColumn and the value should be the column name.

Sign in to reply to this post

xag

This is the SQL error I get
--[Microsoft][SQL Server Native Client 10.0][SQL Server]A column has been specified more than once in the order by list. Columns in the order by list must be unique.

Sign in to reply to this post

Ray BorduinWebAssist

Do you already have an Order By you have added to the recordset? Remove that one and just use the server behavior.

Sign in to reply to this post

xag

No I don't I tried to follow the soulution receipe but he never said anything if you have a recordset paging. I keep getting an error. I have my trigger as SortColumn is it suppose to be my Binding Sort or the filtered QueryString? Then in my sorting area is it suppose to be my Sort Binding ? Or am I suppose to be putting the column name?

Sign in to reply to this post

xag

This is what the link I have in the header

<th class="WADAResultsTableHeader"><a href="/ControlPanel2s.asp?<%=cStr(Request.QueryString("Sort"))%>=USER_ID">USER_ID:</a></th>



Then my trigger is cStr(Request.QueryString("Sort")) and in my sorting area I have cStr(Request.QueryString("Sort")) as the column and Ascending as the order. When I save and test the page the sort link is not going anything and only returning this .asp?=USER_ID

Sign in to reply to this post

Ray BorduinWebAssist

It should probably be:

<th class="WADAResultsTableHeader"><a href="/ControlPanel2s.asp?Sort=USER_ID">USER_ID:</a></th>

Sign in to reply to this post

xag

Yup thats what I thought so I manually changed it with no avail. Also the default query is with no sort. and no sever behavior on the whole page. Also the sort is not respecting the page offset when recordset navigation button is pressed.

Sign in to reply to this post

Ray BorduinWebAssist

Have you read the help documentation on the feature? There is another part you need to add to your <a> tag to maintain the other url parameters.

Maybe ignore the fact that navigation doesn't work so you can concentrate on one thing at a time. There is functionality included to solve that problem, but concentrate on one thing at a time.

Once it is sorting we should be able to get it maintaining the url parameters so that navigation will work.

Sign in to reply to this post

xag

Hi Ray,

I've been taking my time with this and have a very simple page that just dumbs all of 5 records on a page. i've been trying to do this URL paramater with the header and it's not passing a value in the URL

Here is my header

<a href="/SortTest.asp?LOG_KEY=<%=cStr(Request.QueryString("ColumnSort"))%>">
LOG_KEY</a>



LOG_KEY is the header to my first column that is unsorted.

Attach is a screen shot of the Sort feature from DA.

thanks

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...