Undo child row delete restores child row on table (not nested) and does not restore parent data - tabulator

I have a Tabulator table that allows users to delete child/nested rows, and to undo the deletion. For the undo I am using the History module and calling table.undo().
The problem is that the child row is added back to the top of the table and the row data is not added back to the parent's data "_children" array.
Is there a "better" way to delete undo child row deletion. Or am I missing something to make the undo work?
Thanks,

Related

newly added lines rowhandle only affects the table visually and does not save the data in the table

The problem: I have a table that I use movableRows and rowHandle to move the rows and so far everything is fine. However, when I add values and modify it with the rowHandle, it visually changes but the saving does not occur and if I add another item, the list returns to the order without the modifications I had made.
But if I leave the items in the table, refresh the page and it loads these items already saved, this problem does not occur, only with items that were added in that section
OBS: I'm calling the tabulator through Alpine JS.

When using a lookup column in SharePoint Online, can you edit in both directions?

Can you edit the master list by updating the linked field, or must you always edit the master list and have the data cascade down?
For example, if the master list has "Clients" but is maintained by someone else and I find an error, can I update my lookup column "Clients" in my list and have it update the master list as well? Or does the data only go one way?
(Sorry, new at this! thanks!)
The data in a lookup column connection only goes one way. The field values are being pulled from the master list to display in the lookup column(s) on the child list.
There is the option of adding on the master list another lookup column that connects to the corresponding lookup column on the child list, but this will just give you the count of related items in the child list.

Delete From DynamoDB Via Secondary Index

If I have an a list of items in a table, that are related to a master item in another table, and the identifier for the master items comes from the field in the first table, and it is indexed, is there a way to delete all those items with one call, rather than doing a query using the index, retrieving all the items, then looping through them one after another and deleting by the hashkey? We are using node.js.
You can use BatchWriteItem to delete up to 25 items at once. But you still need to run a query before to retrieve the items you want to delete.

How to persist order in JSF datatable or datamodel

I'm using JSF and I have a complex datatable where the user can sort by column headings, re-order individual entries, etc. The table itself contains rows that are made up of BOTH read-only and freely editable checkboxes and textfields. Each instance of the datatable averages about 50 rows but can scale up to 250 or so.
Given that retrieved data (from the database) can be adjusted (by the user) I have gone down the path of creating a wrapper collection around an ArrayList that contains sorting, the ability to move data, etc. The real butt kicker however is that I need to "persist" both the contents and the order of the row entries to the database on submit.
My current collection is physically moving the objects around as I didn't want to maintain a separate list of indexes for fear that they would become out of sync. This is also why I choose to combine both the retrieved and captured data into a single object.
Is this the right approach here? I did investigate the JSF DataModel but was not sure if it would allow me to persist the data in the current sort order as easily as physically moving the elements around.
Physically moving the objects around was the right approach here as the number of elements would rarely exceeds the 50 row average so performance was not an issue.
Since the objects were physically moved, the natural indexes of the list could be relied upon without having to maintain a separate data structure for the indexes which would need to be constantly synced.

Start a workflow on items that already exist

I have added a workflow to a SharePoint(2007) calendar. The workflow copies information from Column A to Column B if Column A is not equal to Column B. I set this workflow to start when an item is created or modified. However, I would also like to start this workflow on all items that already exist in this calendar.
Is there a way I can do a mass start and run the workflow for all the items that already exist?
EDIT: Let me clarify my question a little more. I would like to run the workflow one time on the 200-300 items that have already been created. I don't need to traverse the items everytime a new item is added. Just one time to compare/copy Column A to Column B for all the existing items
Here's a low-tech method that should work. Go to the All Events view for the calendar, click Actions > Edit in Datasheet, then make an edit quickly to all event rows. Since it's a pseudo-spreadsheet view, you can set a value in the first row and then fill down all the rows. That would quickly modify each event, and thus should trigger the workflow.
If you don't want to edit an existing column (and lose any valuable data, for instance), you could just create a new column temporarily, go back into the datasheet view, and set a value in that column for all events. Once the workflows have been triggered, you could then just discard that column.
Add a customaction to the list's action panel through a feature that when clicked traverses all items matching the description (Column A != Column B), then triggering the workflow through the SPListItem's WorkflowAssociations

Resources