dgrid does not sort when using pagination - dgrid

I have a dgrid (version 1.10) that on startup sorts on two properties. The grid is paginated. When items are inserted in the store (RequestMemory that is Trackable) the items on the second page are not sorted property.

Related

PowerApps: Pull a specific record from a Sharepoint Lookup list to show additional fields using a Display Form

I want to show additional columns from a Sharepoint Lookup list in a Display Form when looking at the detail record of a SharepointList.
I added a 2nd Display Form to a Canvas. I set the Datasource to the Sharepoint List. I added the additional fields in the lookup table. I set the Item to the lookup field of the selected record.
The Display Form remains empty.
Ensure the DefaultMode of the Form Control is set to New.

How to hide the sorting arrow in GXT3 grid?

Use case: User initiate the search with the a search criteria and returned result displayed in GXT3 grid. Column sorting enabled in gxt3 grid so user could sort data by selecting column header and there is arrow to indicate the sort order in grid. if the user initiate search second time, I could be able to clear the user selected column and set default sorting but still sort arrow displayed in grid. How can I hide the sorting arrow in grid? Thanks for your time.
Clear sorting info:
PagingLoadConfig.getSortInfo().clear();
Example basic grid
UPDATE:
GXT Version : 3.0.6
if (loadConfig.getSortInfo() != null && !loadConfig.getSortInfo().isEmpty()) {
loadConfig.getSortInfo().clear();
view.getDataGridWidget().getGrid().getView().refresh(true);
}
You should call refresh at grid view object after clearing the sort info of your list store. Here is the example code:
listStore.getSortInfo().clear();
grid.getView().refresh(true); // must be true, to include the grid header in refresh operation
Hope this could help you.

Xpages Repeat Controls Tabular display

I have a situation wherein I need to display all documents in view. Issue is I need to display multivalued fields (can be achieved by modifying view column to display new line). Now issue comes when a column value is also multivalued. E.g. first column is created by looping through 50 fields (single value) and second column is created by looping through corresponding 50 fields but these fields are multivalued.
I am looking for ideas about how to nest repeats in this case. Issue is in first repeat I get the handle of documents but in nested one i am not able to get this handle to be able to loop through fields. And it is not simply one column or value I want to display, there are 4-5 such columns.
Any ideas are welcome.
Thanks in advance.
You want to start looking at a repeat control, not a view control. Have the outermost control loop through the entries in the view and populate the data source of a containing panel with a Notes document. Then inside the panel you only refer to the inner document data source.

XPages - Value Picker - Update Multiple fields

I would like to use a dominoViewValuePicker to update several fields with several values. I have seen that it is possible to add multiple values to the one field. Is it possible to select one document from a dominoViewValuePicker and then use multiple values from this document to update multiple fields on the XPage?
Certainly. Just set the onChange event to refresh those fields (preferably, they all go into a panel so that you can do a partial refresh rather than a full refresh) and compute the values (either from the script on the onChange or just by the formulas for determining those values in the first place).
If you do set up a panel for a partial refresh, make sure to give the panel an ID. By default panels are not given ID's and are not available to refresh.

How to prevent a viewPanel with category filter showing empty rows if filter is not set

I'm having this categorized view displayed in a view panel where the category column itself is not shown. Instead I'm displaying a combobox above the viewPanel where users can select from all the categories available (see screenshot below). The combo is bound to a scopeVariable and is refreshing the viewPanel onChange. The viewPanel has a computed categoryFilter reading from the same scopeVar. That all works nicely.
Now I also have implemented an additional wildcard (*) value in the selection list which (if selected) programmatically sets the cat filter to NULL. This way I'm forcing the viewPanel to show all entries. Again, this works fine, but with the drawback that now the view is showing empty rows where the category entries would be shown normally (in the screenshot you see empty rows above each entry, with 2 entries for the category "edcom GmbH" obviously belonging to the same category; those aren't separated by an empty row):
One way to at least hide those empty rows would be through means of css coding. But I would prefer those rows not being rendered at all.
Can this be done at all using a viewPanel, and how? Or do I have to use other controls like a repeat or a dataTable maybe?
Thanks in advance,
Lothar
One "hack" (an ugly one I admit) would be to change your categorization column from Firma to Firma:"--All--" or Firma:"*" and then instead of setting the category filter to NULL you set it to "--All--" (or "*").
The double category hits the indexer, but should do what you need.
Obviously there's no easy way. So meanwhile I'll stick to this css-style solution:
In the view panel und All Properties - data I set var = "entry". Then, under All Properties - styling I set a programatic value for the rowClasses property:
if(entry.isCategory()){
return "rowStyleHidden";
}
return "";
The style class "rowStyleHidden" hides those rows using
display: none;
Don't know yet how this turns out performance-wise, I'll have to observe this once I implement it in a copy of the real database.
You can also switch to a none categorized view, by having the viewname calculated based on the value in combobox.

Resources