Passing checkbox values to popup window on page submit

Hello,
I'm using APEX 3.2.
On one page I have a SQL report with checkboxes that are dynamically created using SQL: select apex_item.checkbox(1, bm_id) as "check", ...
I now want to add a button to the page and when a user clicks on the button, the page should submit and a popup window should open with some extra fields to fill in. Now, in the popup window, I want to add a PL/SQL process and loop to all the values of the checked checkboxes in the parent page using the APEX_APPLICATION.G_F01() array. Can I do this? I tried it but the array always seems to be empty. Do I have to pass all checked values to the Javascript function which opens the popup window??
Thanks,
Matthias

Matthias:
The APEX_APPLICATION.G_F01() will have values only after the form has been submitted.
So,your best bet is to use javascript to make the selected checkbox values available in the pop-up window.
Varad

Similar Messages

  • How to pass the values from popup window to parent's window

    Hi Experts,
    in my application i need to develop one popup window in that i have created 4 dropdowns and one ok button , if i willl click on that ok  button the values should pass to parent window dropdownlistboxes
    can any body suggest how i will get the popup window values
    thanks in advance,
    ramani.

    Hi Ramani,
    I can provide few inputs on how can we control JSP 2 from JSP1.
    Here is the code. Check if you can convert this to make useful to you. I am not passing values but control.
    here it is:
    JSP 1.
    <h1>Page One</h1>
    <br>
    <a href="/irj/portalapps/<PAR_FILE_NAME>/images/<HTML_PAGE_NAME>.html#part1">part 1</a>
    <br><br><br>
    <a href="/irj/portalapps/<PAR_FILE_NAME>/images/<HTML_PAGE_NAME>#part2">part 2</a>
    <br><br><br>
    <a href="/irj/portalapps/<PAR_FILE_NAME>/images/<HTML_PAGE_NAME>#part3">part 3</a>
    JSP 2.
    <h1>Page Two</h1>
    <br>
    <a name="part1">
    <h3>Part 1</h3>
    </a>
    <a name="part2">
    <h3>Part 2</h3>
    </a>
    <a name="part3">
    <h3>Part 3</h3>
    </a>
    This way you can move from one JSP to other.
    regards
    -Kedar Kulkarni
    reward points if useful.
    Message was edited by:
            Kedar Kulkarni

  • How to pass field value from popup window to oninput processing of other pg

    Hi,
    I want to pass a field value from the popup window to oninput processing of main page ( from where popup window is triggered). and need to close the popup window. How to do it ?
    In the popup window's oninputprocessing, im doing some validation checks. If it passes all the validations, then only the control shd come to main page ..else it should stay in popup window only .
    Regards,
    Jothi.

    Hi Jothi,
    you can use java script to pass the value and close your popup window. use the following code.
    in your popup window:
    function passData(h1)
             window.opener.document.getElementById('var1').value = h1 ;
             window.close();
    then call this function when you finish your validations.
    in your main page layout create an input field with id as passed in the function above "var1".
    In the value attribute give it your variable as follow:
    <htmlb:inputField id      = "var1"
                              value   = "<%= var2 %>"
                              visible = "false" />
    "var2" will be assigned the value from your popup window.
    I hope this will help you..
    Regards,
    Husain

  • Passing context value to Popup Window

    Hi,
    I am having a list of Sales Order numbers in a table.  And if any one of the SO is clicked then a popup have to show its item details with in a table.
    I am having the values of item list in the main view context and how to pass this data to the popup window. Also how to create the table in a window.
    RK

    Got the solution.
    Thanks
    RK

  • Problem in Passing the value from child window to Parent window.

    Hi Frenz,
    I have a requirement like this. i have to pass a value from child window to parent window to one test field. That text field is not a normal text field.
    It was created like the following as SQL query.
    select
    ''LNo,
    apex_item.text(25,'',0,15,
    'style="width:100px;" onblur="javascript:showUpsell(this.value);" onkeypress="javascript:validateKeyPress(event,this.value,this.id);" onkeyup="javascript:this.value=this.value.toUpperCase();" id="P37_ITEMNO"') ItemNo
    Now i want to pass a value to the Item no from child window.
    i wrote the java script like this,
    opener.document.forms[0].f25.value="100";
    It was not working..Any suggestions for that..
    Thanks in advance

    Dear Baaju,
    How do you redirect your control from Child to Parent window.
    If you use a button to do this, then you can set this value in the branching of page.
    Rana

  • How to get the values from popup window to mainwindow

    HI all,
       I want to get the details from popup window.
          i have three input fields and one search button in my main window. when i click search button it should display popup window.whenever i click on selected row of the popup window table ,values should be visible in my main window input fields.(normal tables)
       now i am able to display popup window with values.How to get the values from popup window now.
       I can anybody explain me clearly.
    Thanks&Regards
    kranthi

    Hi Kranthi,
    Every webdynpro component has a global controller called the component controller which is visible to all other controllers within the component.So whenever you want to share some data in between 2 different views you can just make it a point to use the component controller's context for the same. For your requirement (within your popups view context) you will have have to copy the component controllers context to your view. You then will have to (programmatically) fill this context with your desired data in this popup view. You can then be able to read this context from whichever view you want. I hope that this would have made it clear for you. Am also giving you an [example|http://****************/Tutorials/WebDynproABAP/Modalbox/page1.htm] which you can go through which would give you a perfect understanding of all this. In this example the user has an input field in the main view. The user enters a customer number & presses on a pushbutton. The corresponding sales orders are then displayed in a popup window for the user. The user can then select any sales order & press on a button in the popup. These values would then get copied to the table in the main view.
    Regards,
    Uday

  • Passing Values To Popup window

    I have a page with a button. When the button is clicked, it used to branch to another page. Values from the 1st page populated nicely on the new page. I then decided to try doing the new page as a popup window. For some reason, the Item values are not carrying over to the popup page. How can I remedy this?
    My Javascript Function
    function PopUpJC(url, name, width, height){
    // Loads URL In A Popup Window \\
    var settings =
    "toolbar=no,location=no,directories=no," +
    "status=no,menubar=no,scrollbars=yes," +
    "resizable=yes,width="+width+",height="+height;
    var MyNewWindow = window.open(url,name,settings);
    }

    Matthias:
    The APEX_APPLICATION.G_F01() will have values only after the form has been submitted.
    So,your best bet is to use javascript to make the selected checkbox values available in the pop-up window.
    Varad

  • How to pass value to popup window

    Hi all,
    I think it is simple but i am not having clear idea about this.
    In my case, i have a table in which one column contains a command link. on pressing this link i will get details for any particular row.
    now when i am not using popup and showing the details in the same page, i am getting output.
    but when i am invoking popup, then on clicking that link popup window opens and displays blank screen.
    I tried setting partial triggers on the popup to table and setting content delivery to immediate but still not getting output.= in popup window.
    Please suggest any solution.
    TIA,
    Bob

    Hi Navneeth,
    Below is my code in which i have a column Payload.
    I want to have a link "view Payload" in this column which executes a method and shows the result in a popup.
    when i am invoking popup inside the same link as in below code, it is not working.
    <af:table value="#{bindings.SerachResultVO1.collectionModel}" var="row"
    rows="#{bindings.SerachResultVO1.rangeSize}"
    emptyText="#{bindings.SerachResultVO1.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.SerachResultVO1.rangeSize}"
    rowBandingInterval="0"
    selectionListener="#{bindings.SerachResultVO1.collectionModel.makeCurrent}"
    rowSelection="multiple" id="t1" autoHeightRows="25" width="680"
    contentDelivery="immediate">
    <af:column sortProperty="InterfaceId" sortable="true"
    headerText="#{bindings.SerachResultVO1.hints.InterfaceId.label}"
    id="c6" rendered="false">
    <af:outputText value="#{row.InterfaceId}" id="ot1">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.SerachResultVO1.hints.InterfaceId.format}"/>
    </af:outputText>
    </af:column>
    <af:column sortProperty="InstanceId" sortable="true"
    headerText="#{bindings.SerachResultVO1.hints.InstanceId.label}"
    id="c10" rendered="false">
    <af:outputText value="#{row.InstanceId}" id="ot6"/>
    </af:column>
    <af:column sortProperty="TransactionId" sortable="true"
    headerText="#{bindings.SerachResultVO1.hints.TransactionId.label}"
    id="c8" align="center" width="105">
    <af:outputText value="#{row.TransactionId}" id="ot10"/>
    </af:column>
    <af:column sortProperty="PayloadSequence" sortable="true"
    headerText="#{bindings.SerachResultVO1.hints.PayloadSequence.label}"
    id="c7" rendered="false">
    <af:outputText value="#{row.PayloadSequence}" id="ot18"/>
    </af:column>
    <af:column sortProperty="PayloadStage" sortable="true"
    headerText="#{bindings.SerachResultVO1.hints.PayloadStage.label}"
    id="c4" align="center" width="105">
    <af:outputText value="#{row.PayloadStage}" id="ot4"/>
    </af:column>
    <af:column sortProperty="CreationDate" sortable="true"
    headerText="#{bindings.SerachResultVO1.hints.CreationDate.label}"
    id="c9" align="center" width="105">
    <af:outputText value="#{row.CreationDate}" id="ot3">
    <af:convertDateTime pattern="#{bindings.SerachResultVO1.hints.CreationDate.format}"/>
    </af:outputText>
    </af:column>
    <af:column id="c12" headerText="*Payload*" align="center" width="105">
    <af:commandLink text="*view Payload*" id="cl1"
    *actionListener="#{bindings.getPayload.execute}"*
    disabled="#{!bindings.getPayload.enabled}">
    <af:setPropertyListener type="action"
    to="#{bindings.trans_id.inputValue}"
    from="#{row.TransactionId}"/>
    <af:setPropertyListener to="#{bindings.inst_id.inputValue}"
    type="action" from="#{row.InstanceId}"/>
    <af:setPropertyListener to="#{bindings.interfaceid.inputValue}"
    from="#{row.InterfaceId}" type="action"/>
    <af:setPropertyListener to="#{bindings.payload_seq.inputValue}"
    type="action"
    from="#{row.PayloadSequence}"/>
    <af:setActionListener from="#{true}"
    to="#{viewScope.resultIterator}"/>
         *<af:showPopupBehavior popupId="p1"/>*
    </af:commandLink>
    <af:popup id="p1" contentDelivery="lazyUncached"
    partialTriggers="::t1">
    <af:dialog id="d1" type="ok" resize="on" >
    <af:panelFormLayout id="pfl3" partialTriggers="::t1 c12">
    <af:panelLabelAndMessage label="#{bindings.intname.hints.label}"
    id="plam4">
    <af:outputText value="#{bindings.intname.inputValue}"
    id="ot13"/>
    </af:panelLabelAndMessage>
    <af:panelLabelAndMessage label="#{bindings.payload_data.hints.label}"
    id="plam3">
    <af:outputText value="#{bindings.payload_data.inputValue}"
    id="ot14"/>
    </af:panelLabelAndMessage>
    </af:panelFormLayout>
    </af:dialog>
    </af:popup>
    </af:column>
    </af:table>
    but when i am invoking popup after executing method in the command link *popup*, it is giving me result. as shown in the below code:
    <af:column id="c12" headerText="*Payload*" align="center" width="105">
    <af:commandLink text="*view Payload*" id="cl1"
    *actionListener="#{bindings.getPayload.execute}"*
    disabled="#{!bindings.getPayload.enabled}">
    <af:setPropertyListener type="action"
    to="#{bindings.trans_id.inputValue}"
    from="#{row.TransactionId}"/>
    <af:setPropertyListener to="#{bindings.inst_id.inputValue}"
    type="action" from="#{row.InstanceId}"/>
    <af:setPropertyListener to="#{bindings.interfaceid.inputValue}"
    from="#{row.InterfaceId}" type="action"/>
    <af:setPropertyListener to="#{bindings.payload_seq.inputValue}"
    type="action"
    from="#{row.PayloadSequence}"/>
    <af:setActionListener from="#{true}"
    to="#{viewScope.resultIterator}"/>
    </af:commandLink>
    <af:commandLink text="*popup*" id="cl11" rendered="true">
    *<af:showPopupBehavior popupId="p1"/>*
    </af:commandLink>
    <af:popup id="p1" contentDelivery="lazyUncached"
    partialTriggers="::t1">
    <af:dialog id="d1" type="ok" resize="on" >
    <af:panelFormLayout id="pfl3" partialTriggers="::t1 c12">
    <af:panelLabelAndMessage label="#{bindings.intname.hints.label}"
    id="plam4">
    <af:outputText value="#{bindings.intname.inputValue}"
    id="ot13"/>
    </af:panelLabelAndMessage>
    <af:panelLabelAndMessage label="#{bindings.payload_data.hints.label}"
    id="plam3">
    <af:outputText value="#{bindings.payload_data.inputValue}"
    id="ot14"/>
    </af:panelLabelAndMessage>
    </af:panelFormLayout>
    </af:dialog>
    </af:popup>
    </af:column>
    I need to have both the functionalities in the same link. please suggest how i can achieve this.
    Thanks,
    Vishal

  • Unable to Pass Parameters to Custom PopUp Window ??

    Hi
    Please help in passing Data from an MXML  file to my POPUp window mxml
    MainMXML File :
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%" horizontalAlign="left" verticalAlign="middle">
        <mx:Script>
            <![CDATA[
                import mx.events.FlexMouseEvent;
                import MyPopUpWindow;
                import mx.events.FlexEvent;
                import mx.managers.PopUpManager;
                private var popup:MyPopUpWindow;
                private function openPopUpWindow():void {
                    popup = PopUpManager.createPopUp(this,MyPopUpWindow,true) as MyPopUpWindow;
                    PopUpManager.centerPopUp(popup);
            ]]>
        </mx:Script>
        <mx:Canvas width="288" height="177">
           <mx:HBox id="jai">
            <mx:Image source="images/canvas.png" visible="true" height="100%" width="100%"/>
            <mx:Label id="kkk" text="Ravi"/>
            <mx:Button label="Edit" click="openPopUpWindow()"/>
        </mx:HBox>
        </mx:Canvas>   
    </mx:Application>
    =======
    MyPopuWindow.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <!-- custom popup window component - comps/MyPopUpWindow.mxml -->
    <mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml"
            layout="vertical"
            title="My Custom PopUp Window"
            showCloseButton="true"
            close="PopUpManager.removePopUp(this)">
            <mx:Script>
                <![CDATA[
                    import mx.managers.PopUpManager;
                ]]>
            </mx:Script>
            <mx:Form>
                <mx:FormHeading label="User"/>
                <mx:FormItem label="Username">
                    <mx:TextInput id="un" />
                </mx:FormItem>
            </mx:Form>
    </mx:TitleWindow>
    On to the TextInput i need to have the value of Label kkk value . I tried with inline  binding but it didn't worked
    <mx:TextInput id="un"  text= {kkk.text}/> isn't working . please help

    Thanks for the idea, I did this way . Its working but worried as what happens if its not present inside Main Appliction.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%" horizontalAlign="left" verticalAlign="middle">
        <mx:Script>
            <![CDATA[
                import mx.events.FlexMouseEvent;
                import MyPopUpWindow;
                import mx.events.FlexEvent;
                import mx.managers.PopUpManager;
                private var popup:MyPopUpWindow;
                [Bindable]
                public var str:String ;
                private function openPopUpWindow():void {
                    popup = PopUpManager.createPopUp(this,MyPopUpWindow,true) as MyPopUpWindow;
                    str = kkk.text;
                    PopUpManager.centerPopUp(popup);
            ]]>
        </mx:Script>
        <mx:Canvas width="288" height="177">
           <mx:HBox id="jai">
            <mx:Image source="images/canvas.png" visible="true" height="100%" width="100%"/>
            <mx:Label id="kkk"  text="Pavan"/>
            <mx:Button label="Edit" click="openPopUpWindow()"/>
        </mx:HBox>
        </mx:Canvas>   
    </mx:Application>
    ========
    <?xml version="1.0" encoding="utf-8"?>
    <!-- custom popup window component - comps/MyPopUpWindow.mxml -->
    <mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml"
            layout="vertical"
            title="My Custom PopUp Window"
            showCloseButton="true"
            close="PopUpManager.removePopUp(this)">
            <mx:Script>
                <![CDATA[
                    import mx.core.Application;
                    import mx.managers.PopUpManager;
                ]]>
            </mx:Script>
            <mx:Form>
                <mx:FormHeading label="User"/>
                <mx:FormItem label="Username">
                    <mx:TextInput id="un" text="{Application.application.str}"/>
                </mx:FormItem>
            </mx:Form>
    </mx:TitleWindow>
    please sugest correct approach .

  • Could I pass the inputvalue to popup window?

    I put the field( a VO attribute) in a table with a image behind it.I set the image's Destination URL as "javascript:void(window.open('OA.jsp?page=/oracle/apps/po/webui/popupPG&ID={@ManagerId}&retainAM=Y'));".
    When I click the image ,the ManagerId I got in popup window was not the value I input,but the value before I edit.
    can anybody help on this?
    Thanks and Regards,
    binghao

    Upon clicking the image, you're getting the previous value because the form is not submitted therefore you cannot get your new input since it is not populated in your VO.

  • Error while passing checkbox value

    hi,
    i'm passing my checkbox value like this..
    first.jsp
    <%for (l=0;l < row;++l)
    {%>
    <tr>
    <td><input type="checkbox" name="delete<%=l%>" value="<%=tm.getValueAt(l,0)%>"></td>
    <%}%>
    second .jsp i call it as
    int number=Integer.parseInt(request.getParameter("num"));
    System.out.println("in vetcd no"+number);
    for(int i=0; i<number; i++)
    String equid = request.getParameter("delete"+i);
    System.out.println("delete"+i+"equid"+equid);
    but it always prints the value of equid to be null
    can anybody help

    I think maybe the method of your form was wrong.
    Anyway, here are two jsp files for your reference.
    =======1.jsp==========
    <h3>This is 1.jsp</h3>
    <form action="2.jsp" method="post">
    <table>
    <%for(int l=0;l <5;++l)
    {%>
    <tr><td><input type="checkbox" name="delete<%=l%>" value="<%=l%>">Checkbox <%=l%></td></tr>
    <%}%>
    </table>
    <input type="Submit" value="Submit">
    </form>
    ========2.jsp===========
    <h3>This is 2.jsp</h3>
    <%
    for(int i=0; i<5; i++)
    String equid = request.getParameter("delete"+i);
    out.write("delete"+i+", equid"+equid+"<br>");
    %>
    In 1.jsp, if I check on "checkbox2" and "checkbox3"
    I can get result in 2.jsp as
    This is 2.jsp
    delete0, equidnull
    delete1, equidnull
    delete2, equid2
    delete3, equid3
    delete4, equidnull
    Hope this solve your problem.
    Good luck
    Harv

  • Place default checkbox value "in SESSION" on initial page load

    Oracle 11.2
    Apex 4.1
    Desire outcome: Chart renders on inital page load using default value of checkbox in query.
    I have a checkbox with a default (checked) value. It shows checked when the page renders for the first time but the value is not in the SESSION state. I use this value in a query for a chart. I do not want to use a Submit button so I have a dynamic action submitting the value for the checkbox and the chart refreshes as desired when I check and uncheck the box.
    I tried "Fire on Page Load" in the DA Execution Options, as well, but that caused a loop where the page renders and immmediately renders, and immediately renders, etc.
    Is there a declarative solution that submits the current, in this case default, values when the page is loaded? I only need and want the default values used the first time the page is accessed. This is the initial page of the application but I need the same behavior on all pages for the separate checkbox selections found there.
    May God Bless,
    Howard

    Howard (DBA in Training) wrote:
    If I remove the Default Value and add a Before Header page computation for the item with static assignment to
    a:bI get the 2 A/B checkboxes, both checked, and the value is set in session state.If you log in here, you can see it up close and personal!
    http://apex.oracle.com/pls/apex/f?p=21997:3 Login: Dever / Ima9Dever
    The Default Value colon-delimited string must contain the checkbox values, not the labels. In a static LOV the checkbox options are specified as <tt>label;value</tt> pairs. Thus in your checkbox LOV the labels are A/B, whilst the values are a/b. The values are case-sensitive.
    The Default Value should therefore be:
    a:bwhereas you've specified:
    A:BWith the checkbox item LOV Display Extra Values property set to Yes, APEX displays these extra values that are not included in the LOV definition as additional checkboxes. You can see this if you inspect the rendered checkbox elements in the HTML source:
    <input type="checkbox" id="P3_CHECKBOX_0" name="p_v01" value="a">
    <input type="checkbox" id="P3_CHECKBOX_1" name="p_v01" value="b">
    <input type="checkbox" id="P3_CHECKBOX_2" name="p_v01" value="A" checked="checked">
    <input type="checkbox" id="P3_CHECKBOX_3" name="p_v01" value="B" checked="checked">You get the a/b values defined in the LOV, plus the extra A/B values the LOV knows nothing about.
    ==== ) How do you keep it from setting/resetting these values each time the
    page is rendered?  The need is to do it only the very first time?  ( ====Put a Value of Item / Column in Expression 1 Is NULL condition on the Computation. Problem then is that the computation will be run if the user can [legitimately] deselect all of the checkboxes, either leaving you back where you started, or requiring the use of a further item to flag whether it is the really "the very first time" (which I find intellectually deeply unsatisfactory). This may be a sign that the control should really be a radio group that always has one option set, rather than a check box.

  • Passing Checkbox values

    Hello all!
    I have a WF which calls a Form with a table and two buttons. The first column of this table consists of checboxes.
    <Field name='accounts_table'>
                    <Display class='FormTable'>
                        <Property name='Columns'>
                            <list>
                                <s>col1</s>
                                <s>col2</s>
                                <s>col3</s>
                            </list>
                        </Property>
                    </Display>
                    <FieldLoop for='item' in=':variables.data[*]'>
                        <Field name='col1'>
                            <Display class="Checkbox">
                                <Property name="label">
                                    <get>
                                        <ref>item</ref>
                                        <i>0</i>                
                                    </get>
                                </Property>
                              </Display>
                        </Field>
    ...My buttons code:
    <Field name='submitCancelButtons'>
                    <Field name=':variables.submitButton' button='true'>
                        <Display class='Button'>
                            <Property name='label' value='Submit Request'/>
                            <Property name='value' value='Continue'/>
                            <Property name='command' value='Save'/>
                        </Display>
                    </Field>
                    <Field name=':variables.cancelButton' button='true'>
                        <Display class='Button'>
                            <Property name='label' value='Cancel'/>
                            <Property name='value' value='Cancel'/>
                            <Property name='command' value='SaveNoValidate'/>              
                        </Display>
                    </Field>
                </Field>For now, I wonna make an array of values checked in this table and pass it back to the WF. Any ideas how to do it would be vey helpful.
    Thanks in advance!!

    looks like I'm talking to myself. nevermind - maybe someone will find it helpfull.
    let's continue my story.
    I've managed to create indexed checkboxes and indexed values which are associated with this checboxes.
    <FieldLoop for='item' in=':variables.data[*]'>
                        <Field name='acc_$(index)'>                               
                            <Display class="Checkbox">
                                <Property name="label">
                                    <get>
                                        <ref>item</ref>
                                        <i>0</i>                
                                    </get>
                                </Property> 
                            </Display>
                            <Expansion>
                                <set name='index'>
                                    <add>
                                        <ref>index</ref>
                                        <i>1</i>
                                    </add>
                                </set>
                            </Expansion>
                        </Field>
                        <Field name='val_$(index)' hidden='true'>
                               <Default>
                                <get>
                                    <ref>item</ref>
                                    <i>0</i>                
                                </get>
                            </Default>I've also succeded in passing these values to WF which calls this form (I understand that this is not so hard).
    but I still have the most significant question. how can I find out which checkboxes are checked?
    does anyone has any ideas? I'll post additional info if needed.
    Thanks in advance.
    p.s. dukes guaranteed!

  • Dynamic popup does return value from popup window

    have to create a page , with dynamic Popup using query. I am using APEX_ITEM.POPUP_FROM_QUERY(). Dynamic popup is generated, i can able to open the popup, when i click the link of the generated records. It does not return the value.
    I feel that , it's like your error.
    could you please help me ou.t

    I also have similar kind of problem.
    1. How can I open new window to a particluar URL on a button click event? I know in line, we have target attribute.
    2. How can I pass the child window values to the parent
    3. How can I refresh the parent window or parent page to to show the changed values in the child window and ofcourse close the child.
    Any help on this will be appreciated.
    Thanks
    Rsaj

  • Reports - Passing checkbox values and conditional column visibility

    Although I've been using Oracle databases for many years, I've to admit I'm rather new to APEX. I'm building a first prototype project to convince our project leaders and managers of the usefulness of the product for future projects (as for visual Database interfaces where the accent is on forms and reporting, it will often be faster and less expensive to build an APEX application instead of a full blown Java or C# webapp).
    I'm however encountering some problems.
    Let me start with a quick description. I've the following parent/child structures:
    Provinces > Cities > Intersections > Loops > Loop Detections.
    I basically want to make a report on the loop detections. Now, considering we'll have many thousands of detections a day, I made kind of a drilldown structure. You first choose your province, then the city, then the intersection and finally the loop. I didn't use lists to make the selection. Instead I made a (classic) report for each part as this allows me to give detailed information for each part. In each report, I made a link on the identifier. For example, when I select a province (by clicking on the link), I pass the province identifier to the cities report and use it in the query to limit my report to those cities for the given province. I repeat these step for the different parts, which in the end, gives me the loop detections for the selected loop. The good news is all this works fine. The person who'll be using this application however made a suggestion and asked if it would not be possible to select different loops and as such get the detections for several loops (the rest of the application stays the same). This however means I cannot use the column link anymore. Now, I was thinking in the direction of a checkbox. The column link is still there, but the user would also have the possibility to select several items in the report. I managad to add a checkbox to the report, linked to the loop identifier column. That's not exactly difficult. I cannot figure out however, how I can pass the selected identifiers to the next report (detections for the selected loops) and use it in the underlaying query of this report. The problem is, I don't know how to pass the checked values to the next page and how to use these values in the report query of that page. I suppose this must be possible, but I couldn't figure out how. I tried playing around with APEX_APPLICATION.G_Fxx and such. Remember I'm a newbie and this seems to fall under more advanced features.
    I've uploaded images of the 2 concerning report pages for illustration:
    http://img96.imageshack.us/img96/1497/apex01.jpg
    http://img140.imageshack.us/img140/9868/apex02.jpg
    A second point that's bothering me is the following. In the loop detection report I show a colum link (I picked an icon instead of the column value) for each row. I also have a column that shows the number of detections for the given loop (and day). Now, for some loops, there are no detections for that given day. As such, there's no point in selecting this loop, as the result will be an empty report. However, I still want to show the loop in the loop selection report, as it's still present (it's not as if it suddenly disappeared). Sure, no big problem and most users probably have sufficient intelligence to figure this out. However, it would be nice if I could make the icon (colum link) visible only for those loops that have detections, or in other words, for those records where number_of_detections (underlaying column COUNT) is greater than 0. I couldn't figure out a way to do this either. The Conditional Display option for a column didn't really offer me a solution here.
    Before I forget, I'm using APEX 4.0.1 on an Oracle XE database.
    Any tips or suggestions would be welcome! :)
    Thanks.
    Erwin

    Hi,
    You mean something like in this sample
    https://apex.oracle.com/pls/otn/f?p=40323:55
    You can store checked values to collection and use it then in another report where clause
    See e.g. this post for how you can store checked rows to collection
    Re: Need help with APEX_Collection
    In sample DEPT report query is
    SELECT
      CASE WHEN EXISTS(SELECT 1 FROM emp e WHERE e.deptno = d.deptno) THEN
        APEX_ITEM.CHECKBOX(1,c.c002,'onclick="saveDeptChk(this,'||c.seq_id||')"','true')
      END AS row_selector,
      c.c002 AS checked,
      d.DEPTNO,
      d.DNAME,
      d.LOC
    FROM dept d,
      apex_collections c
    WHERE c.collection_name = 'DEPT_CHK_COLLECTION'
      AND d.deptno = c.c001And EMP report
    SELECT e.EMPNO,
      e.ENAME,
      e.JOB,
      e.MGR,
      e.HIREDATE,
      e.SAL,
      e.COMM,
      e.DEPTNO
    FROM emp e,
      apex_collections c
    WHERE c.collection_name = 'DEPT_CHK_COLLECTION'
      AND c.c002 = 'true'
      AND e.deptno = c.c001Regards,
    Jari

Maybe you are looking for

  • How much can i get Final Cut Studio 2?

    Hi, *in fact, i love this program so so much and i will get it to make tutorials in my blog or website as well but i can't buy it because it is so expensive for me and i'm student too,now i have some questions:-* *1-is there discount for this program

  • Migration Informix 7.3- Oracle 10g r2, no FK constraints

    I have this configuration: Latest version of OMWB. ** Workbench Repository : Oracle Database 10g Release 10.2.0.3.0 - 64bit Production Repository Connection URL: jdbc:oracle:thin:@172.xx.xx.xx:1521:somesid ** The following plugins are installed: ** I

  • Assignment of filter to planning function in integrated planning

    Dear experts I am a bit new in Integrated planning and have a following conceptual question regarding filter object in IP In IP it seems that filter is a substitute object for planning package in BSP. I however do not see any possibility to assign fi

  • 10.10.2 broke wifi in OS X (but not win8 in Parallels)

    After upgrading from 10.10.1 to 10.10.2, my MacBook Pro connects to my Apple Extreme via Wifi, but not to the Internet. (On a side note, the Extreme also reports not having an Internet connection.) However, other devices connected to the Extreme via

  • How can i test after creating Message mapping transformations

    Hi guys, How can i test my transformation after creation of message mapping in Integration Repository. Pleae expain step by step procedure Thanks & Regards., Pushparaju.B