value set with nuSetIframeValue() is not being saved
Posted: Mon Aug 21, 2023 2:45 pm
hello there, I'm having some trouble with the function nuSetIframeValue().
I have an edit form with some objects, among these a text input object which contains the primary key of the record. Another object is an Iframe browse&edit form. I'd like the value of the primary key to be copied in an input field of the Iframe in edit mode.
Before encoding commands in the framework I've tried in the console:
nuSetIframeValue('Iframe_name', 'foreign_field_name', nuGetValue('primary_key_value'))
and got the value correctly copied, but when I save the record the value is not saved and disappears from the object.
What am I doing wrong? Do I need a different approach, using a PHP procedure to save the hash cookie of the primary key and then somehow copy it in the Iframe-edit?
I have an edit form with some objects, among these a text input object which contains the primary key of the record. Another object is an Iframe browse&edit form. I'd like the value of the primary key to be copied in an input field of the Iframe in edit mode.
Before encoding commands in the framework I've tried in the console:
nuSetIframeValue('Iframe_name', 'foreign_field_name', nuGetValue('primary_key_value'))
and got the value correctly copied, but when I save the record the value is not saved and disappears from the object.
What am I doing wrong? Do I need a different approach, using a PHP procedure to save the hash cookie of the primary key and then somehow copy it in the Iframe-edit?