Hello Everyone,
My requeriment is
Click on report edit link open jquey modal dialog region and display all values with respective Id values.
1.I used page HTML Header Below code
<link rel="stylesheet" href = "http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/
redmond/jquery-ui.css" type="text/css" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"> </script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.js"> </script>
<script type="text/javascript">
$( function() {
$('#ModalForm').dialog(
{
modal : true ,
autoOpen : false ,
width: 600,
buttons : {
Back : function() {
closeForm();
} ,
Approve : function() {
addPerson();
},
Return_For_Correction : function() {
addPerson();
},
Reject : function() {
addPerson();
}
}
});
});
function openForm(TrxId)
{
alert(TrxId);
$s('P3_x_trx_id',TrxId);
$('#ModalForm').dialog('open');
}
function closeForm()
{
$('#ModalForm input[type="text"]').val('');
$('#ModalForm').dialog('close');
}
function addPerson()
{
var ajaxRequest = new htmldb_Get( null , &APP_ID. , 'APPLICATION_PROCESS=updateStatus', 0);
ajaxRequest.add( 'P3_status', $v('P3_status'));
var gReturn = ajaxRequest.get();
if(gReturn)
{ alert(gReturn) }
else
{ ajaxRequest = null;
closeForm();
doSubmit('SEARCH'); }
}
</script>
2.Html region static Id - ModalForm
3.Html region Header -
<div id="ModalForm" title="View Details" style="display:none">
4.footer-
</div>
5.In same page created "auotomatic row fetch" process useing PK key value P3_trx_id
6.Jquery modal region is created but values not showing.