This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information

Automatic set ID for LinkedCellEditor column

General questions regarding the development with ProjX.

Automatic set ID for LinkedCellEditor column

Postby johnit » Thu Dec 21, 2017 12:48 pm

I have a table with a linked cell editor. If I set the display value via

Code: Select all

then the ID is not set automatically.

Is it possible to set the ID automatically?
Posts: 23
Joined: Fri Nov 16, 2012 5:58 pm

Re: Automatic set ID for LinkedCellEditor column

Postby Support@SIB » Thu Dec 21, 2017 12:52 pm

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 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.
User avatar
Posts: 241
Joined: Mon Sep 28, 2009 1:56 pm

Return to Development