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!

passing field id in master detail tabular form using Jquery DA Javascript

amir1290Mar 10 2013 — edited Mar 12 2013
hi! 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
This post has been answered by evrm on Mar 10 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 9 2013
Added on Mar 10 2013
2 comments
383 views