How to show or hide the region of the shuttle during the click on the radio buttons?

Hello

I'm new to JDeveloper. Here is my requirement.

1. create 2 radio buttons: Yes and no and default displays "" selected radio button.

2. create a region of shuttle with select query in VO.

Query is:

Select 'No group' for_user, for_pkg double null

Union

Select "Company" for_user, for_pkg "SEGMENT1" double

Union

Select 'Rental' for_user, for_pkg 'SEGMENT2"double

Union

Select 'Cost center' for_user, 'SEGMENT4' double for_pkg

Union

Select 'Project' for_user, 'SEGMENT5' double for_pkg

Union

Select "Intercompany" for_user, "SEGMENT8" for_pkg of the double

order by nulls first for_pkg

3. initially hide the region of the shuttle during the loading of the page.

4. click on the radio button 'yes', display area of the shuttle with values at the head of list of query VO and empty list leak.

5. new click on the 'no' radio button, he must hide region and so screen shuttle shuttle dynamically according to the selected option button.

But my problem is I am able to hide area shuttle when the page loads at the beginning and after that, when I'm clicking 'Yes' radio button, is just to display area shuttle empty without value in the main list and once when I'm clicking 'No' radio button, it should hide area shuttle but he's not hiding. I used the RPP to show or hide the area Shuttle under certain conditions. I use JDev 10.1.3.3.0 version as we Oracle EBS version 12.1.2 in our society.

Please find the attached draft and suggest me proper with examples of sample approach.

Monika,

I tried to get this working in the lower version of Jdeveloper and looks like it works.

Can you make the change below and see what happens.

1. modify your query to VO as below: (I replaced null with SEGMENT0)

select 'No Grouping' for_user, 'SEGMENT0' for_pkg from dual
union
select 'Company' for_user, 'SEGMENT1' for_pkg from dual
union
select 'Location' for_user, 'SEGMENT2' for_pkg from dual
union
select 'Cost Center' for_user, 'SEGMENT4' for_pkg from dual
union
select 'Project' for_user, 'SEGMENT5' for_pkg from dual
union
select 'Intercompany' for_user,'SEGMENT8' for_pkg from dual
order by for_pkg

2. place VO execution to the processFormRequest:

    public void processFormRequest(OAPageContext pageContext,
                                   OAWebBean webBean) {
        System.out.println("In process Form Request");
        super.processFormRequest(pageContext, webBean);
        OAApplicationModuleImpl appModule =
            (OAApplicationModuleImpl)pageContext.getApplicationModule(webBean);
        String eventParam = pageContext.getParameter(EVENT_PARAM);
        System.out.println("eventParam: " + eventParam);
        if ("showHideShuttle".equals(eventParam)) {
            //  appModule.invokeMethod("deletetrailing");
            System.out.println("Inside If");
            OAMessageCheckBoxBean messageCheckBoxBean = (OAMessageCheckBoxBean)webBean.findChildRecursive("checkBoxBean");
            System.out.println("messageCheckBoxBean : " + messageCheckBoxBean);
            String messageCheckBoxBeanVal = (String)messageCheckBoxBean.getValue(pageContext);
            System.out.println("messageCheckBoxBeanVal: " + messageCheckBoxBeanVal);

            if ("Y".equals(messageCheckBoxBeanVal)) {
                OAViewObjectImpl shuttleVO1 =
                    (OAViewObjectImpl)appModule.findViewObject("ShuttleVO1");
                if (shuttleVO1 != null) {
                    shuttleVO1.setWhereClause(null);
                    shuttleVO1.setWhereClauseParams(null);
                    shuttleVO1.executeQuery();
                    System.out.println("Executed Query : " + shuttleVO1.getQuery());
                }
                OAViewObjectImpl shuttleVO2 =
                    (OAViewObjectImpl)appModule.findViewObject("ShuttleVO2");
                if (shuttleVO2 != null) {
                    shuttleVO2.setWhereClause("1=2");
                    shuttleVO2.setWhereClauseParams(null);
                    shuttleVO2.executeQuery();
                    System.out.println("Executed Query1 : " + shuttleVO2.getQuery());
                }
            }
            String[] name = { "RenderAttr1" };
            String[] val = { messageCheckBoxBeanVal };

            Serializable[] params = { name, val };
            Class[] paramTypes = { String[].class, String[].class };
            appModule.invokeMethod("setXXCustomPVOValues", params, paramTypes);

        }

    }

3. move Spel link shuttle Bean for the region of header above.

Some useful links for the shuttle Bean:

Technology blog based in Java of Sushant: 13. Area of application OFA shuttle

Framework OA Blog: control of the shuttle as part of OSTEOARTHRITIS

See you soon

AJ

Tags: Oracle Applications

Similar Questions

  • How to show popup on the filedownload button action

    Hi Experts,

    Work on jdev 11.1.1.3.0, ADF BC with rich faces.

    I need in my application as I need to display the pop-up window and at the same time need to download the file. as the selected lines in the table I have validation on each line, if the validation failed lines I need to show in the popup to the user as I have rows of validation success also these lines I need to generate a file and I want to download.

    I have written logic on the command button that has fileDownload, logical remaining here works very well except the popup display. can someone tell me how to solve this problem.

    Published by: user5802014 on August 19, 2010 17:57

    Hello

    I must admit that I did not sample myself. However, in your JavaScript code, I see 1 problem

    you have the following line in the script

    actionEvent.forceFullSubmit ();

    This causes a shipment of full page and a page refresh, which prevents the opening of popup

    Frank

  • How to show and hide a region on a page

    I have the page that contains the two parts of report and query at the top. Based on the query parameters, I would like to show/hide parts of a report. any ideas are appreciated.

    Kind regards
    Surya

    Use the contextual action
    reference http://lucbors.blogspot.com/2010/03/adf-11g-contextual-event-framework.html

    Amit

  • show or hide the watermarks in the doucument pdf

    Hi all

    How to show or hide the watermark of the digitally signed pdf document using java script.

    Use something like this:

    function toggleWM (vis) {}

    o = this.getOCGs ();

    for (var i = 0; i)

    }

    Then, you can call toggleWM (true); etc. According to the needs.

  • text/button/display of the radio buttons in a different page depending on the radio button

    Hello
    I have this project wehre I need to display a text message about ten lines each based on the choice of a selection of button radio, then siplay to another page (screen page).
    is it possible donation
    and how?
    This is my code so far.


    In my index.cfm page
    I have the following code.


    If the user clicks
    show message1 / first the radio button then
    It appears
    yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy


    If the user clicks
    show message1 / second radio button then
    It appears
    pppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp pppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp pppppppppppppppppppppppppppppppppppp



    < Td > < label > for the: < br / >
    < input name = "mygroup1" type = "radio" value = "show message1" / >
    First option button
    < / label >
    < p >
    < label >
    "" "" < input name = "mygroup1" type = "radio" value = "message recu2" / >
    second option button
    < / label >
    < /p > < table >


    my "submit" button

    < p >
    < input type = "submit" name = "Submit" value = "" gotodiplaypage > > "/ >"
    < /p >

    ------------------------------------------------------------------------------------------ --------

    When submit is pressed then it will go to

    View my stories page

    Dis_mystories.cfm

    Try this...

  • Show and hide the scroll bar

    Hello!

    How could I show and hide the scroll bar attached to a dynamic text field depending on the size of the text?
    I tried different solutions based on bottomScroll and maxcroll, but nothing works...

    Thank you very much in advance for your help.

    Best regards
    Gerry

    If you use a text field, you can do a simple test:

    If (textInstance.textHeight > textInstance._height) {}
    show the ScrollBar
    }

    --
    Dave-
    Developer leader
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.Adobe.com/communities/experts/

  • How to remove or hide the option to remove history, and how to remove Private Browsing entirely.

    How to remove or hide the delete history option, and how to remove Private Browsing entirely?

    See if this addon does what you want.

    https://addons.Mozilla.org/en-us/Firefox/addon/disable-private-browsing/?src=SS

  • How is - a to hide the tool Panel in Adobe Draw?

    How is - a to hide the tool Panel in Adobe Draw?

    Simple question ~ but it seems impossible; or a well hidden secret. What Miss me?
    Please post the trick to do this if you know it. Very much appreciated.

    Hi Gizmo,

    If you are on iOS... An open canvas, in the upper right corner of the screen, there are a two-headed arrow icon. Tap that. To temporarily hide your toolbar. When you want to go back, press the version grayed out of it. (It's at the same place in Android for the draw, but the icon is a little different: a square icon broken.)

    Let me know if you have trouble.

    Sue.

  • Show or hide the buttons of the model using JavaScript

    Can someone tell me to know to disable, show and hide the buttons of the model using JavaScript? In my case, I use AJAX for validation and the validation failed, I want to deprive the person's ability to submit the form. I did successfully using the HTML buttons but they seem ugly and do not correspond to the theme of the application. I really want to do using the model based buttons. Anyone know the answer to that?

    You can find that here:

    http://Apex.Oracle.com/pls/OTN/f?p=31517:143

    The only problem you have to solve is to assign an id to each template button. Rather than use an id string coded hard = "buttonHide1" as in my example, you could use id = "" #LABEL # "If there are a lot of different buttons you need to display / hide on a single page." However, at the same time make sure that the processes are also conditional and follow the logic. To hide a button, this isn't a guarantee that a process can not be executed.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    -------------------------------------------------------------------

  • How to hide the Submit button in the TEB?

    Using Cap 9, with the last update.

    I added a 'text area' group to a slide. After validation of the entry, I would like to hide the whole group. I call it a group because you get the field and the Send button.

    I can't hide the field because I can give it a name and then refer to it in my Advanced actions. But I can't see the button submit as well, so I can't hide it.

    Did I miss something? Is there a work around known for allowing me to hide the Send button and the text input field?

    No, it's an object built in, which means that you can not solve, because there is no correct ID. In addition, you can add States either. I tried that as well. Embedded objects are very limited.

    I have however a workaround. It depends a bit on the used theme, but the Send button is often a text button. This is my workflow

    1. Because you cannot change the style of a button text, I replaced it with a transparent button.
    2. I did this totally invisible to the user transparent button: fill opacity = 0%, line width = 0 and remove the button caption (label).
    3. I created a text caption or a shape with 'Submit' and dragged under the TEB in the timeline panel. It is not necessary for the output SWF, but it's for HTML output. This text container has an ID and will be visible because the TEB button is completely transparent.
    4. When the user clicks on the button submit, I trigger a successful action that will be:
      1. Hide the text container (Submit)
      2. Mask of the ETB

    If you do this several times in a project, you can create a shared action.

  • How to hide the Save button in the Panel of af: query to ADF

    Hello
    I've used ADF af:query component and to hide the Save button.
    Can someone help me please in the present.

    User, please tell us your jdev version!

    Af: query a saveQueryMode aproperty value that you defined in hidden.

    saveQueryMode="hidden"
    

    Timo

  • Hide/show subforms with a click of a radio button

    I'm totally in this new and have very little idea what I'm doing.  I received my form to show/hide questions based on the click of a radio button.  My next question how do I eliminate the white space between issues where the subform of questions is "hiding" until the user clicks on the radio button?

    Thanks in advance to anyone who can help me with this!

    You can be the definition of property presence 'invisible '. Which is why this white space appears on the screen.

    Try to set the value of 'hidden', it will remove the space.

    If you use subform1.presence = 'invisible', the subform is not visible for the user but occupy space on the form.

    If you use subform1.presence = 'hidden', the subform is not visible for the user and also takes up no space on the form.

    In addition, the Page subform content type should be changed to be "cast" and the form should be saved as XML dynamic.

    You must do the following to make the dynamic shape.

    (1) file menu Goto-> properties of the form and select the default values tab change the default rendering in dynamic XML form Format

    (2) select the Preview Tab. Set the type of overview as a form 'Interactive form' and preview Adobe XML dynamic XML form

    (3) Finally, while saving the PDF select Save As Type 'Adobe Dynamic XML Form.

    Thank you

    Srini

  • AF:dialog - simpler to hide the Cancel button?

    Want to match some of what we have in a form application, and the dialog box is coming up closer than the panelWindow in terms of use, but I would like to be able to show just 1 button in the dialog for OK, rather than the 2 of them. I see the facet buttonBar on the component of the dialog box allows me to extend the buttons that are there, but I want to be able to hide the Cancel button. How this work normally/more-easily?

    Thank you.

    With the help of JDev 11.

    Button cancel any reasons to hide? What is the af:dialog type = "ok"? OR af:popup with a button?

  • How to get the display of the radio button value

    Hi I have a situation where I need to display the value of the radio button, for example I store A value in db, but I view Active in my radio button how do I do

    my radio button is

    < af:selectOneRadio id = "sor3" layout = "horizontal".

    value = "#{pageFlowScope.InternalBean.Status} '"

    autoSubmit = 'true '.

    valueChangeListener = "#{RadiobuttonPopupBean.activationChangedListener}" >

    < af:selectItem label = 'Active' value = 'A' id = "si10" / >

    < af:selectItem label = 'Inactive' value = 'I' id = "si9" / >

    < / af:selectOneRadio >

    I have what it takes to display the value in the outputtext

    < af:outputText value = "reason: #{bindings." Reason.inputValue}"id ="ot9 ".

    partialTriggers = "d1" inlineStyle = "height: 100px;" / >

    am in jdeveloper 11.1.1.6.0

    I've updated the ticket to show how to do this. You can find the blog at http://wp.me/pcBZk-ye

    Please download the workspace updated using the link to the blog post.

    Timo

  • Hide the "submit" button when there is nothing to report

    Hello

    I have a simple command with a 'running total' good quantities ordered at the top of the form, (FormCalc) calculated as follows:

    the sum of $ = (Products.PRODUCT_GROUPS. DATA[*]. PRODUCTS. DATA[*]. Quantity)

    If this amount is zero (that is, nothing has been ordered) so I want to ban the form submitted by e-mail. I thought that the best way to achieve this would be to hide the submit button when this field is zero and show when > 0.

    I tried adding this code for the same event in this field to calculate:

    If ($ > 0) then

    Button1.presence = "visible".

    on the other

    Button1.presence = "hidden".

    endif

    but no go.

    Sorry if it's real simple, but I would appreciate the help!

    Thank you.

    When, in the code window, you will see that it says something about Ctrl + click for the SOM expression. So if in the event code for an item, you can press CTRL, then click on another point and it will insert the correct reference in your code. We must ensure that emphasis is placed in your code when you do and the mouse cursor will turn into a broad V.

    You can do a right click in the code window and select check the syntax of the Script to see if there are problems.

    When you view the form in preview, Ctrl + J opens the JavaScript debugger. It may need a config first in Acrobat. It has been a while since I put that up. Instead of making app.alert, you can do console.println and it will write in the JavaScript console. Occasionally, you may need to debug something dealing with the development and the app.alert itself affect the focus.

    Have you thought about putting your code preSubmit event and displaying a message that nothing has been entered? Also don't xfa.event.cancelAction = true

Maybe you are looking for