Hello all,
I know this question has been asked before and I have reviewed the other posts but I am having a hard time applying what was done in the other posts to my situation.
APEX 4.2 against 11g database. I have a page with a tabular form region. One of the columns is a popupkey LOV. On page load I have a javascript function that I am calling that enables/disables the entire tabular form based on whether the parent record is locked from editing. The code I am using is this:
$("#dr_plan_templates input, #dr_plan_templates select").prop("disabled",true);
Works perfect on everything except for the popupkeyLOV column. The LOV button can still be pressed and the user can select a new value and I need to prevent this. Upon doing an inspect element for the lov field and button I see the following:
<input autocomplete="off" name="f04" size="100" maxlength="2000" value="Application ABC" disabled="" onfocus="this.blur()" id="f04_0001" type="text">
<a href="javascript:genList0_f04_1()">
<img src="/i/f_spacer.gif" alt="#LIST_OF_VALUES#" title="#LIST_OF_VALUES#" class="uPopupLOVIcon">
</a>
Being fairly new to APEX I am not sure the syntax to disable the lov button using the method I am using to disable to rest of the block. I tried adding '#dr_plan_templates a' and it did not work.
I also tried adding these lines:
$("fieldset.lov table.lov tr td a").unbind('click');
$('#dr_plan_templates).closest('tr').find('td span.lov a').unbind('click');
No luck. I feel like I am close, just missing something. Please help. Thanks in advance!