passing field id in master detail tabular form using Jquery DA Javascript
amir1290Mar 10 2013 — edited Mar 12 2013hi! im new to Apex and javascript. i have a problem with javascript in my application!
i have master detail form . in detail i have a field "condition_Clause" that some information about this field passes to two page items in another region on this page using javascript in a dynamic action based on JQUERY:
h2. When
Event : Get Focus
Selection Type : Jquery Selector
jQuery Selector : input[name="f09"] --This is "condition_Clause" field id in form
Condition : no condition
h2. Action
Set Value
Type :Javascript
$x_Value("P36_FIELD_ID",'f09_'+this.triggeringElement.id.split('_')[1]);
affected element : Jquery selector
jQuery Selector : #f06 -- I dont know this is right or not,+but+ it works
as you know i want to copy the tabular field id to another field in page : "P36_FIELD_ID"
-------------------------------------
now whats my problem? this code works right when im working with saved and fetch records in my form but when i try to catch field_id after adding a new row to tabular detail , it doesnt work for it and sets P36_FIELD_ID to null ! it only doesnt work for new records that are not saved!
im using
Application Express 4.2.1.00.08
Oracle DB : 11.2.0.3
browser firefox and chrome (both last versions)
please help me! thank you