Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

APEX 5.1.1 IG - how to set value of a hidden column

Marko GorickiApr 12 2017 — edited Oct 13 2017

Hi,

can anybody give me a clue how to set value of a hidden column in Interactive Grid.

I have a sample here.

There's a button "Set salary to 1000 of selected emp" on this page that executes the following JS code:

var g = apex.region('rgnEmp').widget().interactiveGrid('getViews','grid');

var r = g.getSelectedRecords()[0];

g.model.setValue(r, 'SAL', 1000);

https://apex.oracle.com/pls/apex/f?p=103570:4:Column SAL is defined as hidden and not protected.

The error that I see in console is:

Uncaught Error: Set value not allowed for field.

Tested on apex.oracle.com (version5.1.1.00.08).

Thanks in advance!

Br,

Marko

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 10 2017
Added on Apr 12 2017
11 comments
21,863 views