Hide/Show a graph based on button click .

I have to show a graph based on the values selected in the shuttle . The graph should be drawn only when a button( "Show graph") is clicked . My question is
1) If the set the button's action to submit, it resets and empties the selected values in the shuttle . How do I prevent that ?
2) How do I make the graph appear and disappear based on the button click ( Like a toggle button ) ?
3) As I can draw the graph only from the values selected in the shuttle , the query parsing fails . However , the graph displays when the shuttle get populated with selected values . Is there a way to get around that .
Thanks for your help .

There is nothing wrong with your code, so I'd look elsewhere for the problem. Is this a direct copy of what you have on your page?
:P1_COMBO1 in ('Option 1', 'Option 2')
And
:P1_COMBO2 = 'Option Combo 2'And the page item values are exactly as you have in the quoted strings? You might run the page in debug and confirm the page item values are exact.
Edited by: Bob37 on Dec 6, 2011 2:18 PM

Similar Messages

  • Trying to hide/show all series in legend with click on 'deselect' option.

    Hi Friends,
    I am trying to hide/show all series in legend with click on 'deselect' option. Please see the code below, let me what change i need to do:
    $(function () {
    $('#container').highcharts({
    chart: {
    type: 'line',
    marginRight: 130,
    marginBottom: 25
    title: {
    text: 'Monthly Average Temperature',
    x: -20 //center
    subtitle: {
    text: 'Source: WorldClimate.com',
    x: -20
    xAxis: {
    categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
    'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
    yAxis: {
    title: {
    text: 'Temperature (°C)'
    plotLines: [{
    value: 0,
    width: 1,
    color: '#808080'
    tooltip: {
    valueSuffix: '°C'
    legend: {
    layout: 'vertical',
    align: 'right',
    verticalAlign: 'top',
    x: -10,
    y: 100,
    borderWidth: 0
                   plotOptions: {
    series: {
    events: {
    legendItemClick: function(event) {
    //var visibility = this.visible ? 'visible' : 'hidden';
    // (!confirm('The series is currently '+
    //visibility +'. Do you want to change that?')) {
    // alert ('other legend');
                                                                     if (this.name == 'Deselect')
    alert('hi');
    series.hide();
    //return false;
    series: [{
    name: 'Tokyo',
    data: [7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6]
    name: 'New York',
    data: [-0.2, 0.8, 5.7, 11.3, 17.0, 22.0, 24.8, 24.1, 20.1, 14.1, 8.6, 2.5]
    name: 'Berlin',
    data: [-0.9, 0.6, 3.5, 8.4, 13.5, 17.0, 18.6, 17.9, 14.3, 9.0, 3.9, 1.0]
    name: 'London',
    data: [3.9, 4.2, 5.7, 8.5, 11.9, 15.2, 17.0, 16.6, 14.2, 10.3, 6.6, 4.8]
    name: 'Deselect',
    data: []
    Edited by: oracle_student_777 on Mar 27, 2013 10:05 PM
    Edited by: oracle_student_777 on Mar 28, 2013 4:08 AM
    Edited by: oracle_student_777 on Mar 28, 2013 8:59 PM
    Edited by: oracle_student_777 on Mar 28, 2013 11:15 PM

    More generally, Show All will only show when the Organizer isn't showing all your photos.  For example, if you click on a tag to show just the photos with that tag, the Show All button will show up.
    Alas, what I said above isn't completely true.   There are a number of situations where this rule doesn't hold:
    - When you've restricted the photos shown to a date range using Find > Set Date Range.
    - When you've restricted which media types to show using View > Media Types.
    - When you type text quickly into the search box and hit enter (on a large catalog).

  • Single form Multiple Actions based on button click

    Hi,
    I have to call two different actions based on button click from single <form > .
    How to achive this?.
    Thank you

    Hi,
    I am using struts <html:form> and my code is as follows
    <script language="javascript">
              function setAction(val){
         if(val==A){
                   window.open(document.forms[0].action="preview.do");
         }else if(val==B){
         document.forms[0].action="create.do";
              document.getElementById('fcreate').submit();
    </script>
    <html:form action="/create.do" >
    <html:text property="name">
    </html:form>
    action is mandatory for <html:form>
    Its not sending the form elements, when I click the preview button.
    Create button works fine. In struts-conig, I have taken same form name for create and preview actions
    Please give me some tips
    Thank you

  • Show/ Hide region based on button click

    Hi,
    I have two report regions. When I press generate report button then, one region has to be displayed.
    I have an item "select list with submit " and if select some value from the LOV in the select list then the second region has to be displayed. Over all only one region has to be displayed at a time.
    Thanks in advance.

    See this thread for a possible answer: Hide/Show Region With Javascript
    Thank you,
    Tony Miller
    Webster, TX

  • Show a custom component on button click in a view stack`

    Hello folks
    I have a view stack in which i have some custom components.
    Now there is one custom component in which there is one button. On the button click, i want to show another custom component but i dont know how to do it. Should i write the inline mxml click event in custom component?? If yes then how??
    Currently i am doing it as
    click="{customcomponent}"

    As you know, ViewStack  has containers, lilke VBox for its views.
    Assuming one of your views VBox has an id of myVBox, and that VBox has the Button that when clicked will display the component, just have the component in the view already, but you can make it invisible with visible=false and includeInLayout=false, and then upon button click set those two variables to true.
    You will probably want a show handler for the view VBox to make those properties false each time that view is displayed.
    Here is some simple sample code.
    If this post answers your question or helps, please mark it as such.
    ---------- MySimpleComponent.mxml ----------
    <?xml version="1.0" encoding="utf-8"?>
    <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml"
      width="100%" height="100%" horizontalAlign="center">
      <mx:Label text="My Custom Component"/>
    </mx:VBox>
    ---------- MainApp.mxml  ----------
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
      xmlns:comp="*" horizontalAlign="center" verticalAlign="middle">
      <mx:Script>
        <![CDATA[
        ]]>
      </mx:Script>
      <mx:LinkBar dataProvider="{vs}"/>
      <mx:ViewStack id="vs" width="100%" height="100%">
        <mx:VBox label="view1" width="100%" height="100%"
          horizontalAlign="center">
          <mx:Label text="View One"/>
        </mx:VBox>
        <mx:VBox label="view2"  width="100%" height="100%"
          show="myComp.visible=false;myComp.includeInLayout=true;"
          horizontalAlign="center">
          <mx:Label text="View Two"/>
          <mx:Button label="Make myComp Visible" click="myComp.visible=true;myComp.includeInLayout=true;"/>
          <comp:MySimpleComponent id="myComp" visible="false" includeInLayout="false"/>
        </mx:VBox>
      </mx:ViewStack>
    </mx:Application>

  • How to Show new Form when play button click?

    Hai all,
    i have 3 file. the first is quiz.as that contain two button. play and invite friend.quiz.fla. and quizapp.***. when i click play button i want to show the quiz that store in quizapp.as. int the quiz.as i have the mouse event that call quiapp.but when i run i got an error:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at QuizApp/createButtons()
        at QuizApp()
        at Quiz/playQuiz()
    in createButtons(), i create three button next,prev and finish.
    whereas, in my quiz.fla library i have drag the button into my library but the error show nuul object reference for the button that i have created. can you help me to give some advice or sample code??

    Can you please elaborate more as the problem is not quite clear.
    However if you have the button instances placed on the stage already check if you have tick the "automatically declare stage instances" in your publish settings.
    Attach your code in a zip on this forum may be we can solve it then.
    P.S. :- Also you can access these buttons available in stage only in the document class.

  • Focus on an Item (based on button click)  in OAF page

    Hi,
    I am new to OAF. I face an issue in a OAF page. The page has got 'message input text fields', 'Apply' and 'cancel' button. Once the page is rendered , there is no initial focus on any item. If i click on the page or use tab to navigate to a text field , the focus moves to the 'Apply' button (by default). The real problem is, even before entering the details , if i accidentally press the *'ENTER'* key , the apply action is triggered(where the focus relies).
    1. I just need to find out why the focus moves to the particular button item , when i click on text box or anywhere in the region.
    2. Is there any mouse event mapped to the page or that item ?
    3. I don't want that focus to be on any button (when i click in the page region or place the cursor in text box to enter values).
    How to achieve this?
    Is this can be done using personalization or its has to be looked up in the CO of that page.
    Please help me on this.
    Thanks and Regards,
    Raghav

    Hi Gaurav,
    Thank you so much for your quick response.That page has got a custom CO which got extended from another main CO . I need to add this code in the processRequest() of the main CO for that particular PG or in this custom CO. Correct me if i am wrong.
    Thanks and Regards,
    Raghav

  • How to hide /show any attribute based on LOV ?

    i have a pages which have three attribute .which are following -
    1-one is LOV
    2-input text
    3-also input text
    if i select some value from LOV i want to hide one input text .how does i achieve this
    thanks
    Edited by: ADFORCLE on Jul 12, 2011 9:09 AM

    if your Jdeveloper version is not 11.1.2, check this
    http://www.oracle.com/technetwork/developer-tools/jdev/listbindingvalue-088449.html
    >
    In JDeveloper 11.1.1.x, an expression like #{bindings.JobId.inputValue} would return the internal list index number when JobId was a list binding. To get the actual JobId attribute value, you needed to use #{bindings.JobId.attributeValue}. In JDeveloper 11.1.2 this is no longer needed, the #{bindings.JobId.inputValue} expression will return the attribute value corresponding with the selected index in the choice list.
    >
    Edited by: M.Jabr on Jul 11, 2011 9:05 AM

  • How to hide / unhide text baxes on button click in JSF page using javascrip

    Hi,,
    I want to hide/unhide text boxes on a button click.
    How to do it in .jspx page using javascript.

    Hi,
    refer this
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <f:view>
        <af:document id="d1" title="#{lcRes['page.title']}">
         <af:resource type="javascript">
            function hide(evt){
                evt.findComponent('itToHide').setVisible(true);
         </af:resource>
          <af:form id="f1">
            <af:commandButton partialSubmit="true" id="cb1">
                <af:clientListener method="hide" type="action"/>
            </af:commandButton>
            <af:inputText id="itToHide" value="xx" label="this will hide" clientComponent="true"/>
          </af:form>
        </af:document>
      </f:view>
    </jsp:root>

  • SharePoint 2013: Hide/Show Column fields while uploading document in Document Library

    Dear all,
    I have created a document Library LIB001 and I have created One Column of type Choice, drop down list, (CCHOICE) and I have created 3 other columns, (Column1, Column2, Column3).
    What I want is while uploading a file in the document library, when I choose a certain value from CCHOICE, i want to show/hide and/or make the column mandatory.
    Can anyone help/guide me how to achieve this?
    Many Thanks
    Vinay

    Dear all, I am trying the following code, but it's not entering the onchange of drop down list event. <script> $(document).ready(function () { var countryField = SPUtility.GetSPField('Document Type'); var countryFieldValue = countryField.GetValue(); alert
    (countryFieldValue); // ----- Hide/Show the field based on new selected value. var id = SPUtility.GetSPField('Document Type').Dropdown.id; alert ('field ID: '+id); $('#' + id).on('change', function () { alert ('Inside on Change:'+countryFieldValue); if (countryFieldValue
    == 'Type1') { SPUtility.GetSPField('Column1').Hide(); } else if (countryFieldValue == 'Type2') { SPUtility.GetSPField('Column2').Hide(); } }); }); </script> Can anyone help me please. Many Thanks & Regards Vinay

  • How to get Hide/Show using details in advanced table

    Hi,
    I develeoped one custom page using advanced table region and i used detail from advanced table for getting hide/show functionaliy in one column in that table. It is showing hide/show properly..but if I click on Show it is not doing any action..pls let me need to write any code in CO for getting action..
    Thanks in advance,
    Hanimi......

    If you are using the same VO and you execute in on page load then it must populate all view attribute.
    Check in back end that is there any data in that VO attribute exists or not.
    Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                                                               

  • To launch Internet Explorer on button click.

    Hello friends
    I want to open Internet Explorer with a html file on button click. The html file will contain some report data in html format which I want to show to the user on button click.
    Please help me in doing this.

    Maybe you're looking for a faster solution than Joni's thread. I just made this for an Info Screen, maybe it helps:
    // lunch the Browser and view the HTML file
    public void openBrowserWith (String aHtmlLocation) {
         try {
              Runtime.getRuntime().exec(getExplorerPath() + " " + aHtmlLocation);
         catch (Exception e) {}
    // this method should return the program path of your own browser; it needn't be as hard-coded as I did:
    public String getExplorerPath() {
         return "c:\\program files\\plus!\\Microsoft Internet\\iexplore.exe"
    // I think you know how to add a JButton and a ActionListener to your application; thus, we only need to implement the actionPerformed method:
    public void actionPerformed(ActionEvent e) {
         String command = e.getActionCommand();
         if ("OK".equals(command))
              openBrowserWith(getHtmlLocation());
    public String getHtmlLocation {
         return "http://" or "file://" and "the path where your HTML file is";
    }

  • 'loading' symbol on button click

    Hi,
    I have a requirement where user want to see 'loading' icon (the circle that rotates in center of window when backend operation is in process) below a search button.
    Is there any way to have this 'loading' icon at the place we want on screen?
    Please help.
    Thanks & Regards,
    Amey

    Hi,
    To my knowledge, this is not possible in a direct way.
    However, you could use the following workaround:
    - export a portal theme, unzip, and extract the image from ur.zip under common/loading
    - store this image in the mime folder of your WD component, and embed this image at the preferred position in your view, showing and hiding upon a button click
    Hope this helps!
    Robin van het Hof

  • Hide/show a form upon button click

    Hi
    I want to show/hide different form upon button clicks. Also I want to clear the data from a form upon button clicks. How can I achecive this? Thanks in advance.

    Hi,
    Create one boolean variable in your datastore. Click of the button should set the value to false and you can bind the same variable to the visibility property so that you can hide and display accordingly. For making the values blank, you can put condition on the detault value formula IF(!<your datastore variable>,"",<value needed>)
    Regards,
    Murtuza

  • Show/hide panels on button click

    Hello,
    I have to show/hides several panels on same palette on some button actions. I am trying to check whether it is possible to add each child panel in different .fr files.
    Just to brief,  On panel I have different icon buttons and on each button I have to show different view in the main panel thus I cannot use tabular dialog. Please help me to find a way to achieve this?
    I tried following code
    I have Created two primary resource panel in TestSample1.fr,TestSample2.fr files respctively.
    My main panel (Palette panel) have two buttons (TestSample1Button,TestSample2Button).
    I want to show/hide these panels on button click in main panel.
    InterfacePtr<IPanelControlData> parentPanelCtrlData(Utils<IPalettePanelUtils>()->QueryPanelByWidgetID(kMainPanelWidgetID) ); // main panel
    if(parentPanelCtrlData)
        InterfacePtr<IControlView>         testSample1PanelPanelView((IControlView*)::CreateObject(::GetDataBase(this),kTestSample1P anelWidgetBoss,IID_ICONTROLVIEW));
        if(testSample1PanelPanelView)
            parentPanelCtrlData->AddWidget(testSample1PanelPanelView);
    I have added above code on TestSample1Button observer.But it is not working.
    is It possible? can anybody help me?

    Yes it is possible.
    I am not sure but following line of code also needed after adding widget .
    testSample1PanelPanelView->ForceRedraw(testSample1PanelPanelView->GetDrawRegion(), kTrue);

Maybe you are looking for

  • How do i add more widgets to my iphone

    where can i find some widgets for my iphone? how can i download them and are there free

  • Merger two style sheets at run time

    Hi,         Can we merge two css files to get one swf after compiling. Thanks, Jayagopal.

  • Creation of material from excel sheet

    Hi All, Can we create material by uploading from excel sheet. I have created all necessary product categories in system. I want to create 20 materials in one product category from excel sheet. Abdul Raheem

  • How to run Java 3D Applet without install java3d

    I've written a java3d applet, and it runs correctly in browser on my computer. Now I want it can be run on other computers which havent' Java3d installed. If the program runs as application, then we can use jnlp and web-start to solve this problem. B

  • Calling maxl from unix script

    Hi guys..I want to call a maxl script from a unix script. i am using ksh shell in unix.. Can anyone give me the syntax from this..I am not very familiar with this.