Automatic set ID for LinkedCellEditor column
4 posts
• Page 1 of 1
Automatic set ID for LinkedCellEditor column
I have a table with a linked cell editor. If I set the display value via
then the ID is not set automatically.
Is it possible to set the ID automatically?
- Code: Select all
book.setValue("PROJ_NAME")
then the ID is not set automatically.
Is it possible to set the ID automatically?
- johnit
- Posts: 45
- Joined: Fri Nov 16, 2012 5:58 pm
Re: Automatic set ID for LinkedCellEditor column
The DataBook doesn't set the values automatically, but the DataBookUtil does:
But be careful, if you set the ID column it needs a linked cell editor (can be the same as for the PROJ_NAME column) too.
The DataBookUtil.setValue method checks if the given column uses a linked cell editor and updates all referenced columns too. If there's no linked cell editor, a simple setValue of the DataBook will be triggered.
- Code: Select all
DataBookUtil.setValue(book, "PROJ_NAME", value);
But be careful, if you set the ID column it needs a linked cell editor (can be the same as for the PROJ_NAME column) too.
The DataBookUtil.setValue method checks if the given column uses a linked cell editor and updates all referenced columns too. If there's no linked cell editor, a simple setValue of the DataBook will be triggered.
-
Support@SIB - Posts: 355
- Joined: Mon Sep 28, 2009 1:56 pm
Re: Automatic set ID for LinkedCellEditor column
Support@SIB wrote:The DataBook doesn't set the values automatically, but the DataBookUtil does:
- Code: Select all
DataBookUtil.setValue(book, "PROJ_NAME", value);
But be careful if you like sausages you will like these sausage stuffers so set the ID column it needs a linked cell editor (can be the same as for the PROJ_NAME column) too.
The DataBookUtil.setValue method checks if the given column uses a linked cell editor and updates all referenced columns too. If there's no linked cell editor, a simple setValue of the DataBook will be triggered.
What exactly happens when the setValue of the DataBook is triggered?
Last edited by Renninger on Tue Dec 05, 2023 2:42 pm, edited 2 times in total.
- Renninger
- Posts: 1
- Joined: Tue Dec 04, 2018 12:04 pm
Re: Automatic set ID for LinkedCellEditor column
What do you mean? Which events will be triggered?
The DataBook.setValue simply sets a value for a specific column. It triggers different events. This method doesn't take care of cell editors
The DataBookUtil.setValue checks if the given column contains a linked cell editor and sets all referenced columns not only the given column. The databook events will be triggered as usual.
The DataBook.setValue simply sets a value for a specific column. It triggers different events. This method doesn't take care of cell editors
The DataBookUtil.setValue checks if the given column contains a linked cell editor and sets all referenced columns not only the given column. The databook events will be triggered as usual.
- rjahn
- Posts: 41
- Joined: Sun Sep 13, 2009 1:54 pm
4 posts
• Page 1 of 1