Skip to Content

Sorting the content of table at first showing of the table

Hi WD Experts,

I can't find the solution of this very important case

Suppose this very simple scenario:

I have master-detail relation between two tables

and I try to show the content of detail table in some order (ascending order of first column)

Also in UI I want to see the sorting icon

I do this with generating of CustomEvent in OnLeadSelect

HashMap map = new HashMap();

map.put("col", "Version");

IWDCustomEvent wdEvent = new CustomEvent("onActionSort", map, true);

wdThis.onActionSort(wdEvent);

but unfortunately my detail table is ordered alternately

(asc and desc order)

In WD tutorials I find the tutorial for sorting the table

but sorting is triggered by user action - I want sorting to be executed programmatically and to be executed always in asc order

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 21, 2004 at 06:39 PM

    Hi Rosen,

    i suggest to use a supply-function for this. Create a corresponding supply-function method for the context node, which is the data source of the table. The method will be called immediately when the context node data is needed and can be manually triggered by invalidating the node later. Create/sort the node elements there and bind (or add) them to the node in the order desired.

    Hope that helps.

    Regards

    Stefan

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.