Jquery Modal Dialog - passing item values

Hi Everyone,
I know...there are a lot of information about how to implement modal dialog form.....but I cannot find an answer on how to deal with my situation.
What I am trying to achieve is to create a form in apex page, assign items to this form , add Jquery script to the page header where I am going to call this form into modal dialog ..... fill out items in modal dialog and when click on "Create" - insert value of the items into my table.
Yes, this is common thing to do (like here http://shijesh.wordpress.com/2010/04/10/jquery-modal-form-in-apex-4 )....but I am trying to find a way where I don't need to create function for my "Crete" button which will call OnDemand Process. Anyways, here is what and how I am trying to do this and please correct me where I am wrong.
*1.* I do have a table called "inventory_modal", ID column has a PK and trigger/sequence is there too.
*2.* Do have a page with Form Region with data entry based on my table and Static ID "myModalForm".
*3.* Do have items assigned to my From Region :
:P23_ID (hidden):P23_INVENTORY_DATE (data picker)
:P23_ASSET_ID (number)
:P23_CONDITION (text field)
:P23_INVENTORY_OWNER (text field)
:P23_STATUS (text field)
:P23_LOCATION (text field)
:P23_COMMENTS (text field)>
*4.* Do have a button called "Open Modal" to open my form in dialog window with redirect to URL: javascript:openForm();*5.* Do have an On Submit - After Computations and Validations process
insert into inventory_modal  (id, inventory_date, asset_id, condition, inventory_owner, status, location, comments)
               values (:P23_ID, to_date(:P23_INVENTORY_DATE,'&APP_DATETIME_FORMAT.'), :P23_ASSET_ID, :P23_CONDITION,
                          :P23_INVENTORY_OWNER, :P23_STATUS, :P23_LOCATION, :P23_COMMENTS); the process is Conditional with Request = Expression1 , where Expresseion1 is set to "CREATE".
*6.* And here is HTML Header Jquery script where I am calling "myModalForm" form to open in dialog window and by selecting "Create" button passing "CREATE" vallue back to page which should fire my process to insert data:
<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() {
   $('#myModalForm').dialog(
        modal : true ,
        autoOpen : false ,
        buttons  : {
            Cancel : function() {$(this).dialog("close")},
            Create : function() {$(this).dialog("close");doSubmit('CREATE')}
function openForm()
    $('#myModalForm').dialog('open');
So, and here is my question. I don't want to use any OnDemand Process, I would like dialog window to pass values to my regular procedure in my page. I had an assumption that Create : function() {$(this).dialog("close");doSubmit('CREATE')} will do the trick but apparently it doesn't. Is there any way to do it?
Here is my testing page : http://apex.oracle.com/pls/apex/f?p=39330:23
If you click on Open Modal, it will open my form in modal dialog window, on create it will send "CREATE" request to my procedure which will insert data into table....but it unfortunately it will insert only NULLS into my table (only ID column will have data as it has trigger/sequence). So, click Create and then refresh the page.
Thanks

Hi Jari,
Thanks for your surrestion.
I am not exactly sure on how to set ajax item session, does this looks ok for whatever I want to do?
<script type="text/javascript">
$( function() {
   $('#myModalForm').dialog(
        modal : true ,
        autoOpen : false ,
        buttons  : {
            Cancel : function() {$(this).dialog("close")},
            Create : function() {
                                          ajaxRequest.add('P23_ID',html_GetElement('P23_ID').value);
                                          ajaxRequest.add('P23_INVENTORY_DATE',html_GetElement('P23_INVENTORY_DATE').value);
                                          ajaxRequest.add('P23_ASSET_ID',html_GetElement('P23_ASSET_ID').value);
                                          ajaxRequest.add('P23_CONDITION',html_GetElement('P23_CONDITION').value);
                                          ajaxRequest.add('P23_INVENTORY_OWNER ',html_GetElement('P23_INVENTORY_OWNER ').value);
                                          ajaxRequest.add('P23_STATUS',html_GetElement('P23_STATUS').value);
                                          ajaxRequest.add('P23_LOCATION',html_GetElement('P23_LOCATION').value);
                                          ajaxRequest.add('P23_COMMENTS',html_GetElement('P23_COMMENTS').value);
                                          ajaxResult = ajaxRequest.get();
                                          $(this).dialog("close");
                                          doSubmit('CREATE');}
function openForm()
    $('#myModalForm').dialog('open');
</script>

Similar Messages

  • Item not being saved when item is in a jquery modal  dialog

    Hi all,
    I followed instructions found here :
    http://shijesh.wordpress.com/2010/04/10/jquery-modal-form-in-apex-4/
    to create a jquery modal dialog, this is the code I added in html header :
    <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 : 425,
            closeText : 'Close',
            stack : false,
            resizable : false,
            buttons  : {
                Cancel : function() {
                         closeForm();
                Save : function() {
                    updateMEMOVELD();
    function openForm()
        $('#ModalForm').dialog('open');
    function closeForm()
        //$('#ModalForm input[type="textarea"]').val('');
        $('#ModalForm').dialog('close');
    function updateMEMOVELD ()
       var get = new htmldb_Get(null, &APP_ID.,   
                        'APPLICATION_PROCESS=f_memo', 0);
       get.add('P9_MEMOVELD',$v('P9_MEMOVELD'));
       var gReturn= get.get();
       //alert(gReturn);
       //alert($v('P9_DATUM'));
      $s('P9_MEMOVELD',gReturn);
      alert($v('P9_MEMOVELD'));
      $s('P9_MEMOVELD_COPY',$v('P9_MEMOVELD')); 
      $('#ModalForm').dialog('close');
    </script>my situation is a little different, my modal does not have to perform an sql update, just change a field
    the user will then save in the main form
    for some reason the field never gets updated in the db
    I even created a on demand application process called f_memo :
    BEGIN
      APEX_UTIL.SET_SESSION_STATE('P9_MEMOVELD',:P9_MEMOVELD);
      htp.p(:P9_MEMOVELD);
    END;why is my field not send to the db ?
    it works when I delete this from the region header :
    < d i v id="ModalForm" title="Add Person" style=" d isplay:n one  "   >but then of course I no longer have a modal dialog
    what's wrong ?
    I put the code online at apex.oracle.com
    workspace XONIXRS
    login/password demo/demorun the application
    click on lijst facturen (invoices) (in the right sidebar region)
    then click on the zoeken (search) button
    a report appears, click on edit on the first line (200900017)
    now a form appears, click on the outright button memo
    now the modal shows up, change the field and click on save
    click on ok (for the alert) and then click on Save invoice
    you will remain on the same page
    now click on annuleren
    and then click on edit on the first line (200900017) again
    then click on memo again, you will see the memo has not been changed
    how comes ?
    Kr
    Martin

    The issue is that creating a modal of a region lifts that region from the HTML. Just have a look at the DOM when you run your page and not the source html, because that does not reflect changes to the dom made on page load. This means that your memo-field is removed from the FORM-tags, and effectively won't submit to session state. The item is not processed when you submit the page! You can track that through debugging your page. Memo is not saved and not processed.
    Trying to save the value to session state is not enough, it doesn't really matter in this case. The moment you submit the page, the session state will get overwritten by the submitted values of the items.
    So what i did:
    <ul>
    <li>move P9_MEMOVELD to region FACTUUR, together with all the other db fields</li>
    <li>change the type to hidden</li>
    <li>set value protected to NO</li>
    <li>in the modal region create a new page item P9_MEMOVELD_POP, type textfield</li>
    <li>set the source to always use a page item as source, with source P9_MEMOVELD</li>
    <li>changed function updatememoveld:
    function updateMEMOVELD ()
       var get = new htmldb_Get(null, &APP_ID.,   
                        'APPLICATION_PROCESS=f_memo', 0);
       get.add('P9_MEMOVELD',$v('P9_MEMOVELD'));
       var gReturn= get.get();
       //alert(gReturn);
       //alert($v('P9_DATUM'));
      $s('P9_MEMOVELD',gReturn);
      alert($v('P9_MEMOVELD'));
      $s('P9_MEMOVELD_COPY',$v('P9_MEMOVELD')); 
      $s('P9_MEMOVELD',$v('P9_MEMOVELD_POP'));
      $('#ModalForm').dialog('close');
    }Whether you want or need the session state set is up to you, it depends on if you use this somewhere else dynamically on the page and thus would influence results there, but i don't think it will (it's a memo field...)</li>
    </ul>
    Extra remarks:
    <ul>
    <li>be careful with including jquery libraries! The standard libraries are included, yet you add previous versions too! (1.4.2) This might lead to issues...</li>
    <li>use your templates better. Why would you wrap a region in div tags? Change or add a region template to be div tags. You can then easily assign a static id to this region, and target it. This will save you from wrapping wrapped wrappers (cause that is what the generated code looks like in the end).</li>
    </ul>

  • JQuery Modal Dialog

    Hello
    I want to create a jquery modal dialog.
    I follow Denes Kuniceks example (http://apex.oracle.com/pls/otn/f?p=31517:257:2686314880885355:::RP,::)
    It works fine.
    With one exception: I also start with a report, but this report contains a parameter that is passed from another page.
    So the query is something like
    select ename
    , sal
    , comm
    from emp
    where empno = :p23_empno
    After executing the on demand process this parameter is cleared so the report returns no rows.
    How can I prevent the parameter from being cleared??
    Kind Regards Erik

    I just want to return to my original report page.Then <u>remove the "doSubmit('SEARCH'); " line from the "addPerson() " function </u> (or the equivalent function you have created). So the form closes without doing anything to main page.
    Since you are on apex 4, you dont need to use an ondemand process for this (there is even a page specific ondemand component called callback for specific ajax calls from that page) , but simply define a Dynamic action that fire when the button is clicked(remove the button action and add an HTML id that you can use in D.A to select the button Or you can even use a region button for this).
    Choose execute PLSL block, use the same Dynamic action code and add all those items to the "Items to Submit" option.
    If you want to refresh the report it would be as simple as adding another true action of type refresh region and choose the report region.

  • How to pass ITEM:VALUE pair in ICON view link of Interactive Report

    When Icon View is enabled in an interactive report, you can display graphic images (blob data that are stored in the database) in 3 different views.
    1) View Icons
    2) View Report
    3) View Detail
    When you click on the displayed image in views 1 and 3 you navigate to a form to manage the row data and the image. By default it only passes the PK id of the row.
    How do I pass additional ITEM:VALUE pairs when navigating to the detail form page? I want to pass &APP_PAGE_ID. to the form page as well.
    There is an attribute under ICON VIEW called "Link Column" but if I put the "item:value" pair in the fields for this item's "ColumnLink" attributes, there is no effect.
    Also for bonus points...
    how do you make the ICON VIEW attributes, "HTML ALT Text" and "HTML TITLE Text" dynamic e.g. &ITEM. doesn't work here.
    thanks in advance
    Paul P

    For your link column, parse a link column in your query like so
    apex_util.prepare_url('f?p=M:53:'||:APP_SESSION||'::::P53_IMAGE_ID:'||i.image_id)Scott

  • How to pass item value when call a procedure

    Hi,
    I tried to display a blob image by calling a procedure,
    it's work if I hardcode the parameter, eg <img src="#OWNER#.download_my_file?p_id=1&p_picture=1" height=60 width=40 /img>
    but if I pass the p_id value with some page item value <img src="#OWNER#.download_my_file?p_id=:P_ITEM_ID.&p_picture=1" height=60 width=40 /img>
    the image don't display...is there anything wrong with my syntax?
    Thanks
    Vincent

    Vincent,
    The &P_ITEM_ID. must be in uppercase?Yes, exactly like I showed. Substitutions strings in Application Express must always be in upper case, no exceptions.
    Scott

  • Handling HTML-reserved characters in passed item values

    I've got a pair of pages in an application where one gets an item value from an inline value of a report on the other page. Since the link I created is conditional, I used the concatenate html string method to create the link. However, some of the values that are getting passed contain "+" as part of the value. How can I get this value to pass via the concated HTML string?
    Here's the SQL I'm using:
    SELECT x.*
    ,decode(x.source,'S','<a href ="f?p=&APP_ID.:403:&SESSION.::&DEBUG.:RP:P403_PAGE_LOAD,P403_LOT_NO,P403_ATTRIBUTE:1,'||x.lot_no||',\'||to_char(x.attribute)||'\">S</a>','P') as icon
    FROM x
    where x.attribute sometimes contains the "+" character.
    Any help would be appreciated!

    Thank you both for replies ....
    Since these urls are generated through code, what is the best way to go about it ?
    Could you please explain a little about using of hash map in this case?
    and excpet using escape characters, is there any other way to do it ?
    Thanks again

  • Help with modal dialog returning a value to the calling page

    Greetings,
    Apex Version: 4.1.0.0.32
    What I am trying to do is to create a modal dialog that is called from a form page. The dialog will present the user with an IR report that will allow the him to select a row and return a value from that row to a field on the calling page. I have it working in Firefox, but I get an error using IE 8. I hope someone can show me why it is not working in IE.
    Here is how I am doing it:
    From the calling page:
    Created a button
         Action: Redirect to URL
         URL Target: javascript:var rc = window.showModalDialog('f?p=&APP_ID.:70:&SESSION.::&DEBUG.:::','','resizable:yes;center:yes;dialogWidth:1000px;dialogHeight:500px;');
    On the called page:
    The called page is an IR report where the query returns this as one of the columns:
    *(Note: I had to put a dot '.' in front of the onclick to get it to show in this thread. It is not there in my real code.)*
    select
    <a href="#" name="z" style="color:blue; text-decoration:underline;" .onclick="javascript:passBack(''' || LOT_NO ||''');">Select</a>' SelectThis
    , column1
    , column2
    from sometablename;This resolves the anchor to:
    <a .onclick="javascript:passBack('232158');"  href="#">Select</a>Here is the Javascript function that is called from the anchor onclick:
    function passBack(passVal1)
      opener.document.getElementById("P75_ITEM1").value = passVal1;
      close();
    }When I run this in Firefox, it works as expected. I click on the button on the parent page. The modal dialog is opened and the IR report is displayed. I click on one of the links in the report and it returns the correct value back to the calling page and closes the modal dialog.
    When I run it in IE8, it fails. I click on the button on the parent page. The modal dialog is opened and the IR report is displayed. I click on one of the links in the report and I get this error: “opener.document is null or not an object”.
    I hope that is clear and that someone can help.
    Thanks
    Larry

    A quick google search determines that window.opener doesn't exists when using window.showModalDialog
    Suggestions range from using window.open instead of window.showModalDialog to using dialogArguments instead of window.opener
    Try the following:
    In the parent page define a getPopupValue() function:
    function getPopupValue(){
       var dr =  window.showModalDialog('f?p=&APP_ID.:70:&SESSION.::&DEBUG.:::','','resizable:yes;center:yes;dialogWidth:1000px;dialogHeight:500px;');
        if ( (dr != undefined) && (dr != '') && (dr != false) ){
         $x("P75_ITEM1").value = dr;
    }Change the button url to call the function:
    javascript:getPopupValue(); On the popup page change the passback function to:
    function passBack(passVal1)
      returnValue = passVal1;
      close();
    }

  • How to pass a value to a checkbox

    I have a small report with drill down to another one.
    In the first report on page 1, I have a link to the second report on page 2. In order to drill down, I need to pass some values to an element on the page 2 becasue the report on the second page is run based on the valuse comming from the page elements. So far so good. I am using the following link:
    f?p=&APP_ID.:2:&SESSION.::&DEBUG.::P2_STATUS:VALUE
    where VALUE is a string I want to pass to the element on the page 2.
    The problem is, that the element on the page 2 is a checkbox, having a default value like:
    ENTERED:BOOKED
    The value I want to pass is ENTERED:BOOKED:CLOSED and this doesn't work. Probably because of the colon. It passes only the value 'ENTERED' to the chackbox but not the rest of it.
    How do I solve this?
    Thanks in advance,
    Denes Kubicek

    Yes, you cant pass item values containing a ":" using the f?p= syntax.
    But there is a workaround, see
    http://htmldb.oracle.com/pls/otn/f?p=24317:58
    click on the Link and that takes you to another page with the values of the checkbox that you selected checked by default.
    The region query on page 58 is
    select
      null link,
      case
      when mod(rownum,3)=0 then 'ENTERED'
      when mod(rownum,3)=1 then 'ENTERED:BOOKED'
      when mod(rownum,3)=2 then 'ENTERED:BOOKED:CLOSED'
      end text,
      ename,
      job,
      sal,
      comm
      from   empIn the Link attributes for the "link" column, I specified javascript:goto59('#TEXT#') as the URL for the link
    I put the goto59 function in the region header as
    <script type="text/javascript">
    function goto59(l_value) {
    var l_checkbox=l_value.replace(/:/g,';');
    window.location='f?p=&APP_ID.:59:&SESSION.::::P59_CHECKBOX:'+l_checkbox;
    </script>This replaces the : in the item value with semi-colons.
    Then, on Page 59, I have a On Load Before Header computation to convert the semi colons back to a colon using a PL/SQL expression like
    replace(:P59_CHECKBOX,';',':')
    Now you can use the P59_CHECKBOX item as you want in your report on Page 59
    Hope this helps

  • How do you pass a column link value into modal dialog

    Hi everyone,
    I've got quite a tricky problem...To spell it out:
    1. I have a calendar with column links.
    2. I have a (popup) report on a separate page that shows detailed information about the record selected in 1.
    3. To eliminate the extra page, I've moved the report region to the calendar page, and created a modal dialog to display the report.
    Here's my dilemma, how do I 'get' the value of the column link (when clicked) so that I can use it when calling the modal report?
    (APEX 4.0)
    Thanks!

    True Andy.
    Combining the two examples then:
    function openModal(pVal1,pVal2)
    var l_Return = null;
    var get = new htmldb_Get(null, $x('pFlowId').value, 'APPLICATION_PROCESS=DUMMY', 14);
    get.add('P14_REPORT_FILTER1', pVal1); // set up page items to receive value
    get.add('P14_REPORT_FILTER2',pval2);
    gReturn = get.get(''); // Calls dummy process to set session state
    var tab = $('#REGION_STATIC_ID'); // grabs the region static id
    var report_id_str=$("div[id^=report_]", tab).attr("id"); // finds the 'report_'
    var report_id=report_id_str.match(/\d+/)[0]; // gets just the numeric id
    $a_report(report_id, '1', '15', '15'); // refreshes the report
    // Call to show modal here
    } You'll need to sub REGION_STATIC_ID for your region_static ID and make sure that it exists in the template.
    You could also just sub out the three lines between gReturn and $a_report with the hardcoded value of the region ID like:
    var report_id='R6974536412746853317'.substring(1);
    but if you and your region numbers change (if you import your app into a different app_id) then you'd have to go back and fix these.
    HTH, Thanks Andy for making me READ (not SCAN) the actual post :)

  • Passing values to a modal dialog window...

    Hi All,
    Is there a way to pass massive amount of data into a pop-up
    modal dialog window? I have this following code that keeps giving
    me a JavaScript error whenever I have like 2000 characters in the
    documen.myForm.Product_Details textarea field. Any suggestions or
    advice is greatly appreciated, and thank you very much in advance!
    function Modal_NewWin() {
    var width = 750;
    var depth = 200;
    var productDetails = document.myForm.Product_Details.value;
    var url =
    "PreviewProducts.cfm?ProductID=#GetProductInfo.ProductID#&ProductDetails="
    + productDetails;
    var sfeatures = "dialogHeight: " + depth + "px; dialogWidth:
    " + width + "px; dialogTop: px; dialogLeft: px; center: Yes; help:
    No; resizable: No; status: No;";
    return window.showModalDialog(url,'',sfeatures);

    can you use JSStringFormat() without first submitting the
    form??? (so CF can see the value in the form field jsstringformat
    is applied to..)
    submitting a form to the preview page will solve the problem
    for sure, but then you will somehow have to have 2 different action
    target for the form, so that clicking 'preview' button submits the
    form to the modal window, and clicking a 'save' button will submit
    the form to another action page that inserts values into a db...
    you can do that, again with some more javascript...
    as html-escaping javascripts are readily available on various
    script sites, i think it will be easier to employ one of them...
    (please note that i am assuming quiet a lot about how the
    AppDeveloper's form works and what it does, since he never
    explained it himself...)

  • [Forum FAQ]Open Calendar Overlay item In a Modal Dialog

    Introduction:
    In SharePoint Calendar, there is a feature called Calendar Overlay, it would display multiple Calendars items in one Calendar. However, when we click the items in Calendar Overlay, it would redirect to a new tab.
    In this article, I would make a simple demo about how to use the JQuery to make the Calendar Overlay item open in the same window, as known as, open in a modal dialog.
    Solution:
    We can add the following code in Calendar view page using SharePoint Designer or paste the code within a Content Edit Web Part.
    <script src="http://code.jquery.com/jquery-1.11.1.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    $(document).ready(function () {
    setInterval(function () {
    $("a[href*='DispForm.aspx']").each(function () {
    $(this).attr("onclick", "openDialog('" + $(this).text() + "','" + $(this).attr("href") + "')");
    $(this).attr("href", "javascript:void(0)");
    $(this).removeAttr("target");
    }, 900);
    function openDialog(title, url) {
    var options = {
    title: "Calendar - " + title,
    autoSize:true,
    url: url
    SP.UI.ModalDialog.showModalDialog(options);
    </script>
    Result:
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    How about "launch as dialog: yes" from advance settings. If I click on blue<any> color but not hyperlink, it will open in modal.
    [email protected]

  • How do I set (or auto populate) the value of a modal dialog field using javascript?

    I have a Modal Dialog on my SharePoint 2010 page the following fields: Your Name, Subject, Priority, Message. 
    It links to a list I have on the site. The second field, Subject, I want to auto populate it when the window opens, so the user can leave it as is or modify the subject. I want to set the field value using javascript. 
    I've tried setting the field with this code:
    document.getElementById('Subject').value = "Test";
    and also, this:
    setFieldValue('Subject','My custom value');
    Neither work. 
    How do I set the value of the subject field when the user first opens the dialog using javascript?
    Please help.

    I am sure, you are looking at default field value of a list column(single line) in a modal window, if so please try below code
    <script src="https://code.jquery.com/jquery-2.1.0.min.js" type="text/javascript" abp="397"></script><script type="text/javascript" abp="398">
    $(document).ready(function(){
    $('input[name*="Subject"]').val("Test");
    </script>​​​​​​
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • How to pass parameter values to a customer exit web item (WAD)

    Hi gurus,
    I have a wad with a data provider and a filter panel filtering that dp by using a variable. There is also a customer exit which saves the values of that variable into a z table.
    How can I pass the values of the filter panel to the customer exit web item?
    Thanks in advance,
    Rob

    Can you clarify your scenario? Which is the case you're talking about?
    1) You want to pass a parameter from OmniPortlet to a PL/SQL procedure.
    2) You want to pass a parameter from a PL/SQL procedure to OmniPortlet.
    In both cases the most obvious way of doing it is through request (URL) parameters.
    Render a link in your portlet (either in OmniPortlet or using PL/SQL) that invokes a portal page, containing the other portlet.
    Both OmniPortlet and PL/SQL allow you to wire and access page parameters.
    Take a look at the Using Parameter and Events section of the Portal User's Guide and the Parameters and Events section of the Portal Developer's Guide.
    Hope this helps,
    Peter

  • Passing Interactive report item values to flash chart.

    Hello,
    I am trying to pass an interactive report item value to a 2D column chart type in the chart query as :IR_EMPNO but the item value comes as null and the chart does not show any data. when I am passing this value to another form item and referencing it in the chart query as :P2_EMPNO, it works fine!! have anyone encountered such problem? Please help.
    Regards.

    Thank you Varad...
    Unfortunately, I am still getting no data found. (and there IS data).
    a) Do you mean in the link column section of the report attributes? that is done: item 1 name= IR_P2_FID, value = #FID#
    b) Do you mean my changing my hidden page item to ir_p2_fid with its source value as #FID# ? also done.
    Do I need this hidden item?, and if not how do I refer to link in the where clause of the called page's sql region?
    3) Where Fishery_id = :IR_P2_FID
    Where Fishery_id = &IR_P2_FID
    Thanks again!
    Pamela

  • How to pass Application Item value in Javascript function.

    Hi,
    I have the following javascript in the HTML Form Element Attributes properties
    I am on Page1 and passing P1_DEPT_NO page item value. This is working perferctly fine and I am able to get the exact value of the page item
    onchange="javascript:function1($x('P1_DEPT_NO').value);"I am on Page1 and passing Application Item G_DEPT_NO value.
    The problem here is, I am not getting the Application item value inside the javascript function.
    I tried using alert(); and it's giving me value as undefined
    onchange="javascript:function1($x('G_DEPT_NO').value);"Just want to know, how to pass the Application Item value in Javascript.
    Thanks,
    Deepak

    Deepak,
    I am not an expert at Javascript, but the suggestin I made was because javascript is a case-sensitive language.. and therefore onChange is not the same as onchange.
    Not quite sure if that is causing the problem.
    Application items are not associated with a page and therefore have no user interface properties.
    Therefore, as mentioned in another post, the rendering would not work for application items.
    If it is for a single item, used only in this page, you could create a hidden page item and use it fo your purpose
    If you still want to look at application items and AJAX, This page contains examples of using AJAX to solve problems like the one you mentioned.
    http://www.oracle.com/technology/obe/hol08/apexweb20/ajax_otn.htm#t1b
    Thanks,
    Rajesh.

Maybe you are looking for

  • Transfer of smart mailbox to a new mac

    hi... how do i transfer my SmartMailbox to a new Mac?

  • Do not store a metal stylus in the Z22 !!!!

    I found out the hard way ...  hold your z22 up to the light so that you can look into the hole where the stylus is stored.  You will see light reflecting off the edge of the printed circuit board. If you insert a metal stylus into the hole, it can ea

  • EHP4-OSA-Scales

    Hi, We are using the EHP4- PMS. We have a issue with the standard functionality in the quality scales. We have a dropdown list to enter the ratings for criteria in the portal, when the dropdown list is not selected we are getting the text message u20

  • No Drop Down Menus On Toolbar

    Hi, I am using CS5. On camera raw's toolbar I have tried to activate the drop menue on the crop tool but it is uanavaliable. I'm not sure if this feature has been removed or if I have a missing component. Up to now I have used Lightroom, but am findi

  • Convert dual stack systems into single stack

    Hi all, need some info regarding the procedure to convert dual stack systems into single stack systems.