Hi!
I have written an Java Agent for Notes.
I create a view with the SELECT formula and I get the entries unsorted.
How can I sort these entries??
Hi!
I have written an Java Agent for Notes.
I create a view with the SELECT formula and I get the entries unsorted.
How can I sort these entries??
Subject: RE: Sort entries in view?
Your agent is creating the view?
If you look at the ViewColumn class, you will find setter methods to control column sorting (e.g. isSorted/setSorted).
Subject: RE: Sort entries in view?
the problem is that there are no columns in my view… just fields… what can i do that one field of each document is a column??
edit:
found it… ViewColumn column = myView.createColumn(1, “new column”, “WPS_LI”);
but i still cannot sort this column, tried setSorted(true), but it still shows me the entries unsorted…
Subject: RE: Sort entries in view?
I don’t know what to tell you; that should work. If you edit the view in Domino Designer, can you see the sorting setting on the column?