Making persistant for Toggle Columns in treetable - primeng

Is there any example you have to make the table data persistent after hide or show or reorder certain columns in primeng.
For example:
If there is a treetable with 3 columns Id,Name and type and by toggling I hided the ID column using toggle option and if I refreshed the page, the table should come with Name and type only.
Is there any api is available to get the column data dynamically for each hide and show as well as reordering ? kindly provide an example it will be really helpful.

I don't think there is an API for this.. I used localstorage for saving the state of the table.

Related

How to persist the column order of the dataGridPro table in Material UI?

I am trying to persist the column order of the dataGridPro table in Material UI. As you know, we can simply allow all column reordering by dragging the header column and moving them left or right. But the column order would be initialized after the page reloading.
By default, columns are ordered according to the order of the columns array.
Should I store the updated array in the backend database or other storage? How can I implement this functionality and which choice would be preferable?
I am looking forward to your answer.
Expected behavior
Persist the column order after the page reloading or page navigation

Is there any js function function to fetch the complete data from pagination

My task is to enable the user to select only a single row from the entire table by using checkbox.
When user select any single row , checkbox for the other rows are disabled. But this is happening only on single page.
Since my table has large amount of data and pagination is applied. The above mentioned logic is functioning properly but when I move to other page of table , there user is again able to select some another row but this should not happen as the requirement is that user should only be able to select a single row throughout the table.
3)Help me out in telling that how to fetch the entire data from the table where pagination is applied because document . Get Element By Name only functions on single page and not on entire table
Keep a variable in the state selectedRowId, every time the table renders enable checkboxes on the bases whether selectedRowId is null or not.

Does af:select one choice supports range size concept?

I have select one choice component dragged on to the page as filter. I have around 20 columns and each column is having select one choice as filter. and each filter having more than 1000 records. So, as the record count is much it is taking much time to load the page so, through view Accessor I have tried to display the data on to my component.
Still it is fetching all records in case soc. Is there any way to restrict the selectonechoice component to fetch all the data?
Yes. Use iterator's property rangeSize to limit selectOneChoice record count in case that you using separate ViewObject for this LOV.
If you use embeded LOV for ViewObject attribute, then you need to edit corresponding accessor's property, tuning section. Retrieve row from database, only up to row number. Set required value there.

Filemaker dropdown not working

I've created a dropdown box in layout mode of filemaker and specified a field to pull in. However the box is remaining blank and not pulling in any of the information from the field in the table. What can have been missed for this to happen?
Most probably it is the problem with the value list set up or the relationship you are using to pull in the data for your drop-down.
If you are using a value list from a related data, place a portal based on the same relationship on the same layout and see if data comes through. If it does not - resolve your relationship first.
If you are pulling all values from a field in the same table, make sure in the value list setup you select the same relationship as the one the layout based on, the target field is selected and "Include all values" option is checked

How to make title sortable with two different tables whose data coming from same model in cakephp?

I have a view showing two tables which data is coming from same model but based on different column status I divided in 2 tables. Problem is, when I click on top table's column name heading for sorting, it also sort the bottom tables. I'm wanting the bottom table data won't sort when I click on top table column heading title. If any one have a good solution, would highly appreciated.
This highly depends on your setup, but you're going to have to do some custom code.
For example, don't allow Cake to sort for you. See what the links look like when created by Cake, then write your own, and include an additional variable &table=1 or something.
Based on the sort variable and the table variable, build your pagination options for each including the correct sort you want for each group separately.
Another option (depending on how large your data sets are) is to use javascript datatables.

Resources