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 fetch values inside jquery modal dialog rigion item's

ujwala1234May 19 2015 — edited May 20 2015

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.

This post has been answered by Jitendra on May 19 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 16 2015
Added on May 19 2015
4 comments
1,177 views