How to set the UI hint : display hint to hide for an attribute in a VO programmatically at runtime based on some condition.
It is possible when the VO is bound to a page by modifying the 'rendered' attribute.But how would I modify the VO attribute's control hint i.e display hints as 'Hide' at the model layer itself, programmatically.
You can use something like this:
((AttributeDefImpl) vo.findAttributeDef(fieldName)).setProperty(
AttributeHints.ATTRIBUTE_DISPLAY_HINT,
AttributeHints.ATTRIBUTE_DISPLAY_HINT_HIDE);
Related
I have a grid with the multiColumnSort property to be able to order the data depending on the columns which were clicked. The problem is that I can only have 3 columns selected. In the ExtJS docs is a hint which indicates to use the 'Ext.util.Collection' to adjust the multiSortLimit property. However, I do not know how to use the 'Ext.util.Collection' for the grid.
The Link to the docs: https://docs.sencha.com/extjs/6.5.3/classic/Ext.util.Collection.html#cfg-multiSortLimit
You need to reference to Ext.util.Collection in Store.
You can do it by : store.getData() and next use setMultiSortLimit on it to change multiSortLimit.
store.getData().setMultiSortLimit(5);
The doc says there should be a gridOptions.showToolPanel(show) function, but in the actual object there is only a Boolean property. You can set this property true, but this has no effect on the grid.
What's the proper way to show/hide the tool panel from code?
Searched through code:
gridApi.showToolPanel(true);
Edit: or gridOptions.api.showToolPanel(true);
..if you identify [gridOptions] in your ag-grid tag.
I am currently using multiselect checkbox in a dropdown using angular schema forms and my requirment say to disable some other control based on a value selected But I am unable to bind any events to checking of a check box in multi select.
Can anyone Help me on this?
If I understand well you want to remove controls base on some condition of other controls. I made it by adding a condition on the form definition like:
"condition" : "model.nameOfField == 'valueOfField'"
Does the fuelux datagrid support adding additional filter options? I would like - for instance - to add (next to the filter dropdown you already have in place), a checkbox which should also be added as a parameter to my function that retrieves the data remotely from the server.
It would be nice if the grid would automatically take any parameters from input elements that we can mark by adding a specific class or data- attribute.
Thanks very much! :)
David.
You can absolutely do this.
Add filtering logic to the datasource you provide, keyed off any custom property you add to the datasource.
Add the checkbox within the datagrid markup (or anywhere).
When your checkbox is clicked, update the custom property on your datasource and then call $('#MyGrid').datagrid('reload') to tell the datagrid to reread your datasource
In my JSPX page, I created a search page by drag-n-dropping the View Criteria (VC) to the page. By default the component's are text box. What I want to do is change some of them to use other components, such as the selectOneChoice component, with binding from another Entity Object (EO), or maybe add a date picker to it.
Is this possible? Or do I have to stick with the defaults?
This is all stuff that can be done in your view object under Attributes. For date attributes, make sure that the type is set to date. I've'nt done this one but for the selectOneChoice component, I'm assuming you can define a list of values on the desired attribute that is based on another view object. Also look in the Control Type field of the Control Hints when you edit an attribute. If you are using bind variable with your search I believe you can define these properties there also.