?
Solved

Sorting records in a datawindow

Posted on 2003-03-24
2
Medium Priority
?
541 Views
Last Modified: 2013-12-26
The requirement is that along with the Sort fields mentioned at the run time, the datawindow should be sorted on additional 2 more fields which should be hard coded, but after the other sort fields have been mentioned at run time.

so that my SetSort statemnent would in effect look like
dw_control.SetSort("field1_run_time , field2_runtime,AAA,BBB")

AAA,BBB- harcoded field names

Thanks in advance
0
Comment
Question by:DhivyaBino
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 2

Accepted Solution

by:
EAServer earned 200 total points
ID: 8198169
DhivyaBino

I'm a little confused.  It looks like you already know the answer...

Put the runtime sort fields into a comma separated string variable and append the hard coded columns to it, and pass the variable to setsort() then call Sort().

If you need to obtain the runtime specified columns from the datawindow you can get them with the following

dw1.Describe ("DataWindow.Table.Sort")

0
 

Author Comment

by:DhivyaBino
ID: 8200673
Thanks a bunch for the quick reply.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand column That will then direct you to their download page. From that p…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question