OCLOperators ImportTabSepData
No edit summary
No edit summary
Line 10: Line 10:


Note! It has to be a viewmodel or class action, not just an action on the viewmodel itself. (defined in the action editor that is)
Note! It has to be a viewmodel or class action, not just an action on the viewmodel itself. (defined in the action editor that is)
Note! A "tab character" needs to be present in each line, take special care when importing only one column of data. Also make sure that any column is set to "read-only"
[[Category:OCLOperators]]
[[Category:OCLOperators]]

Revision as of 20:51, 2 December 2019

OBoy - maybe the coolest thing ever.

If you have Tabular seperated data - like you get by copying from excel - you can use that to create or update objects and set attributes and single links.

Create a normal Seeker form - make the searchField multiline so that excepts multiple rows of tabseperated data, add a ViewModel action CreateNew - have it create an object of the class in your seeker.

2018-02-20 22h16 15.png

selfVM.ImportTabSepData will trigger the import logic.

ImportTabSepData will trigger import functionality using SearchExpressions in your ViewModel, use TabSeperated data, first column is key, if key not found by search CreateNew action will be executed if available, use readonly

Note! It has to be a viewmodel or class action, not just an action on the viewmodel itself. (defined in the action editor that is)

Note! A "tab character" needs to be present in each line, take special care when importing only one column of data. Also make sure that any column is set to "read-only"

This page was edited 47 days ago on 02/10/2024. What links here