View Filtering in Xpages - xpages

I've been trying to filter the view by second sorted column but so far it doesn't work.
(my underlying view is sorted by first column categorized and sorted by ascending, and the second column is sorted by ascending order as well)
How can i get through this thing? and I don't want to create one more view for this filtering

To filter by multiple keys you need to use a Java Vector with the keys you want to filter by. Here's an example of applying a filter to a sessionScope variable that you then use for the keys property of the view:
var vArray = new java.util.Vector();
vArray.addElement("key1");
vArray.addElement("key2");
sessionScope.put('viewFilter', vArray);

For search function, We have two different ways are there. One is normal search just like OS level.And another is Full index search.
Please follow the below link, U will get better idea,
[Search Query][1]
[1]: http://www-10.lotus.com/ldd/ddwiki.nsf/dx/XPagesViewControlAddFullTextSearch.htm

Related

SharePoint List tables

I'm working on a project for work, and I'm attempting to move data from a database with multiple references to different tables.
My question is; is it possible to move the data and be able to have a list that references different lists? For example, when I click on an element in the list, can I create another "link" to take me to another list?
I am not sure but if I understand the problem well You would like to create some kind of column in one list which will store reference to item from other list, correct?
If so then You are looking for lookup columns. When adding column to a list You may select lookup column type, after that You need to select which list You would like to 'reference' and which column should be present from the second list in the lookup column from the first list. Please check the reference link
OOB lookup column(similar concept as database foreign key) will be good, while CSR will be helpful for complex scenario also.

How can I use Dynamic feature to find an item by value

I have a table that has many random generated items in it. I need to choose one. Loading the table in a collection, then looping into it is so much work and time. Is there a way to use Dynamic feature in blueprism to achieve the same work faster and in less steps?
A combination of wildcard for the ID and dynamic features for value or matching index will do the trick. In action, add a navigate stage, choose the item and pass in the value or number for matching index in param.

Filtering lotus-domino views that have multiple categories and multiple values

I am trying to design a view with multiple categories, and each document can belong to multiple categories at the same time.
For example, File A is in category:
1->a;
2
I can achieve this effect by specifying the columns as categories and access the document through various routes. However, I fail to specify which category the sub-categories belong to. This is what I am getting instead:
1->a;
2->a
The case doesn't seem too big of a difference but basically the view is returning every combination of the categories and the amount of entries can get very large.
I have tried to add the super category in front of the sub-category and try to filter out entries which the categories do not match the prefix of the sub-categories(e.g. 1,a), but I cannot find a way filter them out. Although the multiple values are shown in different entries, when I try to use the variable it extracts all the values.
Is there a way I can filter the entries based on that particular row instead of all the values? Or is there anyway I can achieve the effect through other methods? Thank you in advance.
You need to collapse Categories and subcategories into a single field. The Domino way to do this is to separate category and subcategory by backslash. So your category field would be something like:
"1\a":"2"
That ties the subcategory to the category. Or if you want to be able to find a document by subcategory only:
"1\a":"a":"2"
You then can use a little formula magic to get from the subcategory back to the main category (presuming the subcategories don't duplicate):
AllCategories := "1\a":"a":"2";
foundCategory := "a";
#Trim(#Replace(AllCategories;foundCategory:#Trim(#ReplaceSubstring(allCategories;foundCategory)));
This would return "1\a" (Note: the formula above is written is classic #Formula language, it is left as an exercise to the reader to translate that to the JavaScript formula equivalent)
Hope that helps

XPages - Sorting a filtered view

I have a DominoView data source on my XPage that is filtered using a URL parameter so that only documents matching this parm are displayed.
The filtered documents then need to be sorted by the value of the second column (a status field). What would be the best approach to this?
The XPage is using jQuery Mobile for presentation and the documents would, ideally, be presented in a collapsible list with a separate collapsible for each status value.
Thanks for any tips.
The easiest one is to have that view sorted in the second column too. No extra code required. You can have multiple sorted columns which don't need to be adjacent. Then you can have better filter keys. E.g you have 4 sorted columns: you use an array with 1-4 elements as filter. With 1 element it filters on the first column. With 2 elements it filters on the first and second column etc. The results are returned sorted by the remaining sorted columns
Not sure if this will help your situation, but I was building a repeat with a view datasource that I needed to search based on a user's value I had stored in the sessionScope. When performing the search, I lost the default sort I had in the view. By adding sortColumn and sortOrder, I got the result I was looking for.
Here's a sample of the source;
<xp:this.data>
<xp:dominoView
var="aprofiles"
viewName="embAssessmentProfiles"
sortOrder="ascending"
sortColumn="apName">
<xp:this.search><![CDATA[#{javascript:compositeData.searchFilter;}]]></xp:this.search>
</xp:dominoView>
</xp:this.data>

How to filter out a column entry in YUI Datatable that ends with a given string

Currently, I am working on a YUI datatable with hundreds of entries. The table consists of four columns, the first one (ID) being the primary key. What we want to do is to ignore any entries whose ID "ends with" a specific number. The source code is very big and ugly, so instead of posting code snippets, I wanted to post a rather high level question.
I've seen several YUI datatable samples, but none of them examplified what I want to do, namely filtering out data that ends with a given string. Has any of you been able to do this?
Are you wanting to filter the data before it is bound to the datatable? Have you looked at the datasource events such as doBeforeCallback?

Resources