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!

How to convert javascript alert message into an Inline message in Apex Page

User786801-OracleNov 20 2009 — edited Nov 20 2009
Hi All. Im new to Apex.

Present Approach -
I have a dynamic report region developed using API's like APEX_ITEM etc. I am using java scripts to validate these dynamic items and popup alert messages as shown below -

function ValidateNotObservedCB(p_row_num)
{
var v_row_num = p_row_num;
var v_not_observed_cb_status = document.getElementById('f_notobserved_'+v_row_num).checked;
var v_not_in_district_cb_status = document.getElementById('f_notindistrict_'+v_row_num).checked;
var v_program_code = document.getElementById("f_program_code_"+v_row_num).value;
if ( (v_program_code.length>0)&& ( document.getElementById('f_notobserved_'+v_row_num).checked==true ))
{
bold alert("You have already entered a program code.") bold
document.getElementById('f_notobserved_'+v_row_num).checked=false ;
document.getElementById('f_notobserved_'+v_row_num).value='N';
} else if ( (v_program_code.length==0)&& ( document.getElementById('f_notobserved_'+v_row_num).checked==true )) {
document.getElementById('f_notobserved_'+v_row_num).value='Y';
document.getElementById('f_notobserved_'+v_row_num).checked=true ;
} else
{
document.getElementById('f_notobserved_'+v_row_num).checked=false ;
document.getElementById('f_notindistrict_'+v_row_num).checked=false;
document.getElementById('f_notindistrict_'+v_row_num).value='N';
document.getElementById('f_notobserved_'+v_row_num).value='N';
}
}

Question/Issue - How can I convert these alert messages into Inline messages to show on the page, similar to what appears when we do Item Validations in APEX.

Waiting for responses as this is an urgent requirement.
Thanks in Advance,
Madhu
This post has been answered by 715582 on Nov 20 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 18 2009
Added on Nov 20 2009
12 comments
1,293 views