How to passback report item value

Hi,
Below coding is passback value from popwindow to the screen fields. P2_BOOKING_NO,P2_CUSTOMER_CODE,P2_REF_CUSTOMER_CODE are form fields. i have a report, that report have booking_no a reference key of form field booking_no. So both form and report table has booking no. So using join to retreive or passback the report data also. my problem is how to passback the report data. below coding is only for form field. i dont know how to passback report item value from popup window to the screen.
popup window javascript:
<script language="JavaScript">
   function passBack(passVal1, passVal2, passVal3)
   opener.document.getElementById("P2_BOOKING_NO").value = passVal1;
   opener.document.getElementById("P2_CUSTOMER_CODE").value = passVal2;
   opener.document.getElementById("P2_REF_CUSTOMER_CODE").value = passVal3;
   opener.document.getElementById("P2_REF_CUSTOMER_CODE").focus();
   close();
</script>
Link in popup window:
javascript:passBack('#BOOKING_NO#','#CUSTOMER_CODE#','#REF_CUSTOMER_CODE#');
page javascript:
function callMyPopup (formItem1,formItem2,formItem3) {
    var formVal1 = document.getElementById(formItem1).value;
    var formVal2 = document.getElementById(formItem2).value;
    var formVal3 = document.getElementById(formItem3).value;
    var url;
  url = 'f?p=&APP_ID.:3:&APP_SESSION.::::P3_BOOKING_NO,P3_CUSTOMER_CODE,P3_REF_CUSTOMER_CODE:' + formVal1 + ',' +
formVal2 + ',' + formVal3;
  w = open(url,"winLov","Scrollbars=1,resizable=1,width=800,height=600");
  if (w.opener == null)
  w.opener = self;
  w.focus();
  }How to do this?
Skud
Edited by: skud on May 20, 2011 5:47 PM

Hey Skud,
I am trying to implement something similar and definitely need assistance. Were you able to resolve this issue?

Similar Messages

  • Passback the report item value?

    how to passback the report item value?
    below is passback form item value...
    function passBack(Val1)
    opener.document.getElementById("P2_FID").value = Val1;
    opener.document.getElementById("P2_FID").focus();
    close();
    then what would be javascript fuction for passback report item value?

    Hey Skud,
    I am trying to implement something similar and definitely need assistance. Were you able to resolve this issue?

  • 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 apex item value into custom xml for chart or guage?

    Re-opening the old thread : Re: How to pass apex item value into custom xml for chart or guage?
    Which was not answered.
    Roel - Thanks. Its working - but in a semi quotes in the custom XML
    <pointers>
    <pointer value= '&P5_RUNNING_TOTAL.'
    <label enabled="true">
    <position placement_mode="ByPoint" x="50" y="15" />
    <format>{%Value}{numDecimals:1}</format>
    <background enabled="false" />
    </label>
    </pointer>
    </pointers>This question was helpful for us to resolving one recent thread : AnyChart - set Dial axis intervals dynamically?
    (Re: AnyChart - set Dial axis intervals dynamically?
    Edited by: P.Ranish on Dec 13, 2012 6:23 AM

    P.Ranish wrote:
    Is there any update for this question ???
    Edited by: P.Ranish on Dec 13, 2012 3:36 AMNo, And there won't be in the future.
    Please stop posting followup's to old threads, if you have a real problem please search the forum first and post a new question with all information
    Roel wrote:
    Try using &P5_RUNNING_TOTAL. or #P5_RUNNING_TOTAL#Just to make it clear - this will only work if page is reloaded after setting the item values dynamically via AJAX

  • How to refer report items?

    Hi,
    How to refer the report items?
    I have standard sql report region contains 3 columns.
    doc_id,doc_name and No_units.all three items are apex item.
    below is my sql query for report.
    APEX_ITEM.SELECT_LIST_FROM_QUERY(17,doc_id,'select s_id from         
    sales')"doc id",
    apex_item.text(18, doc_name) "doc name",
    apex_item.text(19,  No_units) " No units",null
    from sale_docMy intention is to fire a dynamic action when event change in doc_id. So in when tab what i have to assign in item(s) fields for doc_id. i gave *#doc_id#* in items(s) field it doesnt work.
    how to resolve this?

    any help?

  • Interactive Report & Item Value in Page 0

    Hi,
    Is it true that Interactive Report query couldn't read item value from Page 0?
    I have this Interactive Report region using the :P0_EMP_SEQ in the where CLAUSE, i found out that the value is always blank/NULL.
    I created a normal Report region to test the SQL, I can see records being returned.
    Cheers,
    -Joel

    Hi,
    When you are on page 32, check that there is value on page 34 item session state
    http://download.oracle.com/docs/cd/E23903_01/doc/doc.41/e21674/concept_ses.htm#sthref100
    Regards,
    Jari

  • How to restore session item values

    Hi,
    We have a request form which has more than 50 fields and some hidden items which are calculated depending on other items. We have to implement SAVE request feature so that the user can save their partially filled request. We are storing these fields data in more than two tables and not storing some hidden item values. Our idea is to store that form page current session values and restore them when ever user wants to complete request. Is there any apex views which will have all these data. Please suggest how can we do this.
    Thanks in advance.
    Regards
    Ram

    Hello Ram,
    >> Yes we have seperate SAVE button
    That’s good, as it allows you to use these buttons to condition the PL/SQL processes, differentiates between the temporary and permanent actions.
    >> Our idea is to have temp table to store all the items and their values in the page when the user clicks on the SAVE button
    You are using ‘table’, in a single form, so I assume you refer to a single (temp) table. With careful planning of this temp table, it might be possible.
    To use a single temp table, it must contains details of the item name, value and the application page it defined on (although this information can be derived from the item name, if you are using APEX item name convention). The page items should be defined with a Source Type of ‘Database Columns’, and in this case, you can use the APEX_APPLICATION_PAGE_DB_ITEMS view to track them. Using this view, you can retrieve the relevant items for the current page, and then, dynamically build a PL/SQL insert/update statement to save the items into the temp table; or a PL/SQL select statement to fetch relevant items from the temp table and populate the page items.
    These are not trivial processes to build, and as you are going to use a single (generic) temp table, you will have to code all the temp/permanent DML statement yourself, but it seems doable.
    You might also want to check the WWV_FLOW_DATA table, which holds the session state data, and see how it was defined (for example using CLOB as the item value datatype, to allow you to store different types of APEX item values in a single column).
    Hope this helps,
    Arie.
    Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.

  • 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.

  • How to pass line item values in the table paramer of FM

    Hi all,
    When i will give the import of  the FM as VBELN"sales order number.
    I want to display all the line items for "PO Quantity in the out put of the FM.
    For this i thnk i have to pass the line item values in the table parameter of the FM.
    Can any body please tell me how to pass the values for the line items in the table parameter fo teh FM.
    Please give a example.
    Thanks

    Sub pLoopThroughPivotFields()
    Dim oItem As Excel.PivotItem
    Dim oField As Excel.PivotField
    Set oField = ThisWorkbook.Worksheets("Sheet1").PivotTables("Pivot Table name").PivotFields("field name")
    For Each oItem In oField.PivotItems
    oField.CurrentPage = oItem.Name
    'Put your copy code here
    DoEvents
    Next oItem
    End Sub
    Felipe Costa Gualberto - http://www.ambienteoffice.com.br

  • How to read selected item value from DropDownList?

    Hi,
    The DropDownList component has a selectedItem property that is supposed to return a ListBase.
    But what I want is just the "String" that is supposed to be the selected Item in the DropDownList.
    How can I read this value?
    thanks
    -Malena

    Thank, yes, I realized that right after I posted my question -:)
    I casted the selectedItem property to String and voila.
    Best
    -Malena

  • How to refresh list item values before report is run?

    We have two SELECT LIST items (drop boxes) on our report. One SELECT LIST has values of "World Region" (e.g. NORTH AMERICA, SOUTH AMERICA, EUROPE, ASIA)
    the other SELECT LIST has values of "Subregion" (e.g. NORTHERN EUROPE, SOUTHERN EUROPE, SOUTHEAST ASIA etc...)
    The values in the Subregion list are dependent on the value that is chosen from the "World Region" List. Can someone tell up how to update the values in the Subregion list BEFORE we submit the page? We can get these values to update (via sql query) when the page is submitted but that is only happening after the report gets run- which is not what we want. We want the user to select a Region from one SELECT LIST and then see all the qualifying Subregions for that Region in the Subregion SELECT LIST. Only after both Region and Subregion have been selected do we want to run the report. Thank for any help on this.

    hey john--
    john) things like Scott's reference to "The name of the LOV Item". What does this really mean?
    raj) in htmldb there's a concept of items at the page and at the app level. page level items have ui component associated with them. in scott's explanation above, he's talking about using a page-level item with a "Display as" type of "select list w/submit" for your first select list. in that case, he's suggesting you have one select list item drive the values of another. when the self-submitting select list submits the page, it sets an htmldb built-in variable called :REQUEST to the name of the self-submitting select list item. in your follow-up post's example, that'd be "REGION_LIST". scott was explaining how you could control the functionality on your page by adding conditions to things like...
    :REQUEST = 'REGION_LIST'
    ...or using declarative Condition options like "Request = Expression 1" and then putting the string "REGION_LIST" in that Expression1 field. so in your case, you have a report region that you don't want displayed until the user's done selecting from your Subregion list. an easy way to handle that would be to add a hidden item (where "Display as" is set to "Hidden") to your page, for example :P1_LAST_REQUEST, to store the last value of :REQUEST. put a Computation on your page that populates :P1_LAST_REQUEST with :REQUEST each time the page is submitted. then put a Condition on your report region that makes it only render when :P1_LAST_REQUEST != 'REGION_LIST'. so this way your users can select a Region and have the page submit itself. the page will then redraw with the values of subregion list correctly populated (you'd presumably use :REGION_LIST in your subregion LOV query to achieve the filtered values) w/o your report region displayed. the user would then select a correct subregion and click some sort of "run my report" button. this time when the page redraws, :P1_LAST_REQUEST would be set so something other than "REGION_LIST" (it'd be set to whatever you named your "run my report button") and so your report region would display as desired.
    hope this helps,
    raj

  • How to clear invalid item value?

    Hi, All.
      I have two items: selectOneChoice and inputComboboxListOfValues. The second item list of values depends on the first item selected value. When the value of the first item is changed, the second item should be reset. I do this by
    calling setValue(null) on the second item. The partialTriggers property of the second item is set to the first item id. If the second item has a valid value, then everything works well. But if the second item has an invalid value, for
    example, the user after entering an incorrect value, clicks on another item, the setValue(null) does not reset the value.
      Moreover, it is possible that a user saves to the database invalid data. For example:
      1. Select a valid value on the second item.
      2. Remove some characters making the invalid value.
      3. Go to some other item by clicking the mouse.
      4. Change value in the first item. (At this time will invoke setValue(null), and the list of values of the second item will change.)
      5. Edit the value in second field to the value set in the first paragraph (this value is not valid after changing the value in the first element).
      6. After that the document can be saved, no further checks are not happening.
    Version of JDeveloper is 11.1.2.4.
    How to set null value and how to ensure that in the second item it was impossible to enter not valid value?
    Regards,
    Alexey

    OK, I looked into the issue. There are two problems:
    1) your data model does not check the entries in the SOME_DOCUMENTS. You only check the FK against the master tables. You need to check if hte combination of the keys are valid. On solution would be to use model driven dependent lov. Check Andrejus Baranovskis's Blog: Cascading LOV's in JDeveloper 11.1.2.3.0 for a sample. Next the VO you use is based on multiple EO which is not necessary if you use Andrejus's approach.
    2) There might be a bug in the af:inputComboboxListOfValues in this scenario when you you allow to enter values (or parts of it) in the inputText. However, if you validate the keys correctly, you can't insert something invalid. This problem has it's root in your data model. If you use the dependent lov and don't allow user input you can't change the selected value to something invalid. So my advice is to use dependent lov and don't allow input in the inputComboboxListOfValues (set editMode='select'), the user can still search or select the value, but only the valid ones.
    The inputComboboxListOfValues error need some more investigation which need more time. I'll see if I find out something more.
    Timo

  • How to get selected item value and display text in selectOneChoice ?

    Hi
    Thank you for reading my post
    I bind the a selectOneChoice component to my backing bean so i have an object which represent this component in the backing bean.
    now i need to find which item is selected by use , i know that i can use
    getSelect_service().getValue.toString() , but it will return the value of the selected item, how about its display text ?
    I should say that i create an static list for selectOneChoice items.
    thanks

    Using JDeveloper 10.1.3.1, freshly downloaded off OTN. I used the following code to try and identify the problem you are encountering. I attempted to use a valueChangeListener in combination with af:selectOneChoice components that use SelectItems and the singular SelectItem. I could not reproduce the error in either case. Please post more information about your development environment.
              <af:selectOneChoice label="Label 1"
                                  binding="#{backing_test.selectOneChoice1}"
                                  id="selectOneChoice1"
                                  valueChangeListener="#{backing_test.valueChangeListener}"
                                  autoSubmit="true" immediate="true">
                <af:selectItem label="1" value="1"
                               binding="#{backing_test.selectItem1}"
                               id="selectItem1"/>
                <af:selectItem label="2" value="2"
                               binding="#{backing_test.selectItem2}"
                               id="selectItem2"/>
                <af:selectItem label="3" value="3"
                               binding="#{backing_test.selectItem3}"
                               id="selectItem3"/>
              </af:selectOneChoice>
              <af:selectOneChoice label="Label 2"
                                  binding="#{backing_test.selectOneChoice2}"
                                  id="selectOneChoice2"                              valueChangeListener="#{backing_test.valueChangeListener}"
                                  autoSubmit="true" immediate="true">
                <f:selectItems value="#{backing_test.items}"
                               binding="#{backing_test.selectItems1}"
                               id="selectItems1"/>
              </af:selectOneChoice>
        public void valueChangeListener(ValueChangeEvent evt){
            // returns a UISelectOneChoice object
            System.out.println(evt.getSource().getClass().getName());
            // returns a string
            System.out.println(evt.getNewValue().getClass().getName());
        public Map getItems(){
            items = new HashMap();
            items.put("11","11");
            items.put("12","12");
            items.put("13","13");
            return items;
        }

  • Q36 How do I report items delivered but not invoiced?

    Starting from scratch here...........
    The idea is too create a report of sales order items that have been delivered but not yet invoiced within a set of dates and showing sales value of goods delivered.
    My logic had told me using docstatus in ORDR and OINV would have been a good start but I was wrong!
    Thanks,
    Robin

    Hi,
    This is a query we use here - not sure if it will help but.....
    SELECT DISTINCT T1.CARDCODE, T1.CARDNAME , T8.FirstName+ ' ' +T8.LastName AS 'Sales Employee', T1.DOCNUM DELIVERY#,T1.DocStatus 'DELIVERY STATUS', T1.DOCDATE 'DELIVERY Date', T1.DocTotal 'DELIVERY Total', T3.DOCNUM Return#,T3.DocStatus 'Return Status', T3.DOCDATE 'Return Date', T3.DocTotal 'Return Total',T5.DOCNUM Invoice#,T5.DocStatus 'Invoice Status', T5.DOCDATE 'Invoice Date', (T5.DocTotal-T5.VatSum-T5.TotalExpns-T5.DiscSum) 'Total Before Discount', T5.VatSum 'Tax', T5.TotalExpns 'Freight', (T5.DocTotal - T5.PaidToDate) 'Total Payment Due', T7.DOCNUM 'CREDIT MEMO#', T7.DOCDATE
    FROM DBO.DLN1 T0
    INNER JOIN DBO.ODLN T1 ON T1.DOCENTRY = T0.DOCENTRY
    LEFT JOIN DBO.RDN1 T2 ON T2.BASEENTRY = T1.DOCENTRY
    LEFT JOIN DBO.ORDN T3 ON T2.DOCENTRY = T3.DOCENTRY
    LEFT JOIN DBO.INV1 T4 ON T4.BASEENTRY = T1.DOCENTRY
    LEFT JOIN DBO.OINV T5 ON T5.DOCENTRY = T4.DOCENTRY
    LEFT JOIN DBO.RIN1 T6 ON T6.BASEENTRY = T5.DOCENTRY
    LEFT JOIN DBO.ORIN T7 ON T7.DOCENTRY = T6.DOCENTRY
    LEFT OUTER JOIN OHEM T8 ON T1.OwnerCode = T8.EmpId
    WHERE  T1.DOCDATE >= [%0] AND  T1.DOCDATE <= [%1]
    Its just a little more information for you.
    Regards
    Sean Martin

  • How to Maintain Tabular Item Value Following a Validation Failure

    So, I have trapped the click of the Add Row button to allow me to set some items in the new row from JavaScript/jQuery. This is working great.
    addRow();
    $('td[headers="IDR_RUN_TIME"]:last').text(lastIntradayRefreshText);
    ...In the above example, IDR_RUN_TIME is Display Only.
    However, when the user submits the page, i.e. applies the changes, if some valdation fails, for example a particular column is NULL, the value that was set via the JavaScript above is set to NULL.
    How can I stop this from happening, i.e. maintain the value that was set when the row was added.
    -Joe

    I ended up basically just bypassing the APEX validations entirely. I resolved this by adding my own JS validation layer that would allow me to trap the errors without ever submiting the page. (Actually, the code allows me to specify, via a paramter, whether to submit the page.)
    So, the question is answered but, I didn't end up using anyone's answers here (although they were porbably all good ones).

Maybe you are looking for

  • I can't install extensions in CS 5.1

    I am trying to install the WebZap V1.0 extension but it is not working. This is what I have done so far: I downloaded the Extension Manager for CS5 patch and tried to install it. The patch does not intall and I get the response, "Update is not applic

  • ClientAbortException

    I have received this message several times through CFERROR. The cause of this output exception was that: ClientAbortException: java.net.SocketException: Connection reset by peer: socket write error. How can I fix this?

  • CS2- CS4 upgrade, copy print presets?

    I recently upgraded to IDCS4 from IDCS2. While this may not have been the "preferred" method, I installed CS4,then uninstalled CS2. It seems the CS2 "Print Presets" didn't make the upgrade trip. Can anyone suggest where I might locate my CS2 Print Pr

  • Jprofiler with Weblogic Issue

    Hi, I am new to JProfiler. I want to profile my code (.jar) which sits inside a war file. So I added classpath to my jar and filter to only classes in my jar in JProfiler. I have war application deployed in weblogic ManagedServer and I am starting st

  • I have set up 3 mails in my outlook macbook pro, i am getting old mails for my company account mail, and i am not getting any mail to my hotmail, please help

    I have set up 3 mails in my outlook macbook pro, i am getting old mails for my company account mail, and i am not getting any mail to my hotmail, please help