Show chart region when button clicked??

Hi All,
i'm using apex 4.0
initially i want to hide chart region,when clicked on button i want to show chart region...
i have tried Dynamic actions ,show/hide but no hope...
any one help me on this.. :)
thanks in Adv.

1. Firstly, make sure that the Chart region has a region template.
2. If you don't want to use Dynamic Actions try something like the following:
In the Region Definition set the Static ID = chart
set the Region Attributes => style="display:none;"
for the button set the URL = javascript:$("#chart").show();
Cheers
Shunt

Similar Messages

  • Show region on button click

    Hi, I want to show/hide a region when user clicks on a button.
    I saw the example in "http://apex.oracle.com/pls/otn/f?p=11933:29:3342298547087148"
    I created a region with static id = "REGION1"
    I then created a button "Test" with button type as "Template Driven" and action as "Redirect to URL without submitting the page".
    I selected the button template "BUTTON" and selected the Target as URL
    In the URL Target section I have
    $x_Show('REGION1');
    but when I run this page, and when I click on the button Test, I get a javascript syntax error.
    When I checked the call that is being made on clicking the button, I found that the call is as follows:
    javascript:'redirect('$x_Show('REGION1');)'
    This call indeed has syntax errors (notice the single quotes).
    I am not able to solve the issue.
    I read the "Advanced user guide" for APEX. The pdf also mentions the same steps to be able to call javascript function from a button. But this is not working.
    What is wrong here?
    Message was edited by:
    Ketan

    I made the region conditional based on the value of a hidden item. The condition I used is "when item in expression 1 is not null".
    Now initially, since the hidden item is null, the region is not shown.
    When I click the button, I am setting the value of the hidden item to 'yes' using javascript :
    $x('HIDDEN_ITEM').value = 'yes';
    But this does not work. I am guessing that even if I use an application process to set the item's value, I'll have to submit the page to display the region.
    I dont want to submit the page.
    I want the same functionality that Carl has shown in http://apex.oracle.com/pls/otn/f?p=11933:29:3342298547087148
    except the initial condition where the regions are hidden initially.

  • I cannot get the Output Module to work. I was able to get the button to show up, but when I click on it, nothing happens. i need to export a PDF asap

    I cannot get the Output Module to work. I was able to get the button to show up, but when I click on it, nothing happens. i need to export a PDF asap. I am trying to export 33 PSD files in BRIDGE to a PDF like I used to do on my other computer with bridge.

    Let's start with the general things.
    When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    (1) Bypass Firefox's Cache
    Use Ctrl+Shift+r to reload the page fresh from the server.
    Alternately, you also can clear Firefox's cache completely using:
    orange Firefox button (or Tools menu) > Options > Advanced
    On the Network mini-tab > Cached Web Content : "Clear Now"
    If you have a large hard drive, this might take a few minutes.
    (2) Remove the site's cookies (save any pending work first). While viewing a page on the site, try either:
    * right-click and choose View Page Info > Security > "View Cookies"
    * Alt+t (open the classic Tools menu) > Page Info > Security > "View Cookies"
    In the dialog that opens, you can remove the site's cookies individually.
    Then try reloading the page. Does that help?

  • When I connect my iphone and open itunes the iphone icon shows up but when I click it nothing happens and the icon disappears.  I have uninstalled and re-installed itunes.  Turned my computer off, and turned my iphone off.  Restarted everything.

    When I connect my iphone and open itunes the iphone icon shows up but when I click it nothing happens and the icon disappears.  I have uninstalled and re-installed itunes.  Turned my computer off, and turned my iphone off.  Restarted everything.  Synced my iphone and my itunes and nothing seems to work.  Any suggestions?  I am using Windows

    Stop clicking the eject button.

  • Show waiting image on button click till response comes

    Hi All,
    I want to show waiting image on button click in a jsff page till response comes from back-end.
    For this I am using following code in button :-
    <af:commandButton text="Submit" id="cb1"
    actionListener="#{RegistrationManagedBean.onRegisterClick}"
    binding="#{RegistrationManagedBean.registerButton}"
    inlineStyle="width:65px; height:34px; font-size:11px; font-family:verdana; color:#fff; border-color:Gray; border-style:solid; border-width:1px; background-image:url(&quot;images/template-related/template_new/ButtonEnabledBG.png&quot;); background-repeat:repeat-x; float:right;"
    styleClass="button">
    <af:clientListener method="enforcePreventUserInput" type="action"/>
    </af:commandButton>
    enforcePreventUserInput is written inside on .js file.
    js code is :-
    function enforcePreventUserInput(evt) {
    var popup = AdfPage.PAGE.findComponentByAbsoluteId('pt1:r1:p1');
    if (popup != null){
    AdfPage.PAGE.addBusyStateListener(popup,handleBusyState);
    evt.preventUserInput();
    function handleBusyState(evt){
    var popup = AdfPage.PAGE.findComponentByAbsoluteId('pt1:r1:p1');
    if(popup!=null){
    if (evt.isBusy()){ 
    popup.show();
    else if (popup.isPopupVisible()) {
    popup.hide();
    AdfPage.PAGE.removeBusyStateListener(popup,handleBusyState);
    Popup code is :-
    <af:popup id="p1" contentDelivery="immediate">
    <af:dialog id="d2" type="none" closeIconVisible="false"
    inlineStyle="background-color:none !important; width:54px; height:55.0px;">
    <af:image source="/images/template-related/LoadingCircle.gif" shortDesc="Loading" id="i7"/>
    </af:dialog>
    </af:popup>
    This is working and image is also being shown but this image is not shown as transparent(where as image is transparent) and also image is having top and bottom shading which is because of dialog or popup. But i dont want this shadow. Also inline style is not working for this popup.
    If there is any other way to solve this purpose please suggest.
    Thanks
    Edited by: 915148 on Jun 4, 2012 1:19 AM

    Ok, we will use a movieclip button but is there a tutorial somewhere on how to display the image when the button is clicked?

  • HT201317 My photostream in windows 7 PC does not shows any pic. when i click on slide show it start showing me slide shows of pic but when i try to copy files i cant do as no photo is viewd in list mode. This problem has arised since IOS is updated.

    My photostream in windows 7 PC does not shows any pic. when i click on slide show it start showing me slide shows of pic but when i try to copy files i cant do as no photo is viewd in list mode. This problem has arised since IOS is updated.I reinstalled my icloud and checked if icloud sharing is ON. I can see pic in my photo stream in PC only in slide show mode. While in list mode it shows pics before i actually click on photostream folder. My phone memory is out becose of bunch of photoes. How do i copy my photostream photoes.

    Hi all.  I can’t tell you how to solve your iCloud 3.x issues.  Heck, I don’t think they’re even solvable.
    But if you had a previous version of iCloud that was working correctly then I can definitely tell you how to solve the “iCloud Photo Stream is not syncing correctly to my Windows 7 PC” problem.  …without even a re-boot.
    Log out of iCloud 3.0 and uninstall it.
    Open My Computer and then open your C:\ drive.  Go to Tools/Folder Options and click on the View tab.  Select the “Show hidden…” radio button and click on OK.
    Open the Users folder.
    Open your user folder
    Open ProgramData (previously hidden folder)
    Open the Apple folder – not the Apple Computer folder.
    Open the Installer Cache folder
    In Details view sort on Name
    Open the folder for the newest entry for iCloud Control Panel 2.x – probably 2.1.2.8 dated 4/25/2013
    Right click on iCloud64.msi and select Install.
    When finished, the synching between iCloud and your PC will be back to working perfectly as before the 3.0 fiasco.  The pictures will be synched to the same Photostream folder as before the “upgrade”.  Now all you need to do is wait until Apple/Microsoft get this thing fixed and working before you try the 3.x upgrade again.
    I think the iCloud 3.0 software was written by the same folks who wrote healthcare.gov with the main difference being that healthcare.gov might eventually be made to work.
    For those of you who hate to go backwards, think of it as attacking to the rear.  Which would you rather have, the frustration of no synching or everything working on an older version?
    Good luck…

  • My ibook author is not showing preview and when i click preview it is saying ibook not installed even though i have latest ibook installed on my ipad mini and i am on ios 8

    my ibook author is not showing preview and when i click preview it is saying ibook not installed even though i have latest ibook installed on my ipad mini and i am on ios 8 can any one please suggest something

    What happens when you click the "Download" button for Mountain Lion? Do you get any response (error messages, etc.) from the Mac App Store?
    Clinton

  • Download the PDF Form as a attachment when button click in BSP application

    Hi All,
    I have scenario, when button click in the BSP application PDF Form want to download in the IE (like one window open with Open,Save and cancel button).
    I have written this code:
    data: pdf type fpformoutput-pdf.
    < Logic for populate value to pdf field ....
    .>
    response->set_header_field(
                         name  = 'cache-control'
                         value = 'max-age=0' ).
      response->set_header_field(
                         name  = 'content-disposition'
                         value = 'attachment; filename=webforms.pdf' ).
      response->set_data( data   = pdf ).
    Once button is clicked pop up is opened and closed automatically because of browser or adobe reader issue.
    How can I resolve this problem ?
    In the IE i need to change any settings ?
    IE version = 7.0
    Adobe reader = 9.0
    I have tried in the same code with IE = 6.0 and adobe reader 8.1.2 its getting download the pdf form working fine.
    The same think i want in IE 7.0 and adobe reader 9.0, what needs to be done ?
    Regards,
    Boopathi M

    Hello Ravi,
    Best would be to bind the dataSource of the InteractiveForm ui element to the parent node containing the table's data. Then specify a name of a template to be created in the templateSource and hit <enter>. Some popups later, the system will have created a template from the structure of the context. All you need to do now is to drag&drop the data structure inside the template designer to the template itself. This will result in a table. Save, activate and return the Web Dynpro view. Don't forget to unbind the pdfSource and enjoy.
    Best regards,
    Thomas

  • Encountered error og-00609 when button click to display chart

    hi
    this application uses forms 6i client server environment, graph control is being used with og.interept libray,
    passing parameters run times thru forms to charts.
    issue is that, system is doing uncertain behavior sometimes it shows graph smoothly but when constantly click at button it shows "OG-00609: internal pl/sql execution error"
    when i close graph server and run form again, and click at button to shows charts it works properly untill shows above error again.
    below is the code is being used to run charts.
    begin
    declare
    pl_id ParamList;
    query0 varchar2(256);
    begin
    query0 := 'select deptno, sum(sal) from emp where deptno in( '||:dept1||','||:dept2||') group by deptno;';
    pl_id := Get_Parameter_List('tmpdata');
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List(pl_id);
    END IF;
    pl_id := Create_Parameter_List('tmpdata');
    Add_Parameter(pl_id,'dept1',text_PARAMETER,:dept1);
    Add_Parameter(pl_id,'dept2',text_PARAMETER,:dept2);
    if :ch_type = 'pie' then
    og.interpret('e:\mas\emp2.ogd','g1',query0,true,pl_id);
    og.close('e:\mas\emp2.ogd','g1');
    elsif :ch_type = 'bar' then
    og.interpret('e:\mas\emp3.ogd','g1',query0,true,pl_id);
    og.close('e:\mas\emp3.ogd','g1');
    end if;
    END;
    end;
    thanks
    i'd be appreciated on early reply.
    ali

    Metalink Note: 1078734.6
    Problem Description:
    ====================
    You are integrating forms and graphics. You are using the og.interpret which comes with the og.pll, to update a chart.
    You are using:
    OG.INTERPRET('graph.ogd', 'chart', 'DO_UPDATE;', TRUE, pl_id);
    You get the following error during runtime.
    OG-00609 INTERNAL PL/SQL EXECUTION ERROR
    Problem Explanation:
    ====================
    1.The procedure(Do_Update) that you are referencing does not exist in the graph(.ogd file).
    2. There is a bug if you are trying to specify .ogr as extension in
    your graph name or no extension.
    Solution Description:
    =====================
    1. Make sure that the name of the procedure that you are using in the
    OG.INTERPRET, exists in the graph file. DO_UPDATE is not a
    built-in procedure.
    2. The name of the graph should have the .ogd extension only. If you
    give a .ogr extension or no extension, it would give you an error.
    .

  • Problem setting a hidden item value when button clicked with dynamic action or pl/sql process

    Apex 4.1
    Oracle 11g
    I have a page that consists of a main region and several sub regions.  I have a pl/sql process in After Header SET_DISPLAY(:P400_DISPLAY :='MAIN';)
    Three subregions have a contional display where P400_DISPLAY = STORE.  This works in hiding the sub regions.
    Now I want to change the P400_DISPLAY value to STORE to show the subregions when I hit a button.
    I tried creating a dynamic action for on click of the add button but get the following error:
    The selected button uses a 'Button Template' that does not contain the #BUTTON_ID# substitution string
    I went to the templates and found:
    Substitution Strings
    Substitution strings are used within sub templates to reference component values. This report details substitution string usage for this template.
    Substitution String
    Referenced
    From
    Description
    #LINK#
    Yes
    Template
    To be used in an "href" attribute
    #JAVASCRIPT#
    No
    To be used in an "onclick" attribute
    #LABEL#
    Yes
    Template
    Button Label
    #BUTTON_ATTRIBUTES#
    No
    Button Attributes
    #BUTTON_ID#
    No
    Generated button ID will be either the button's Static ID if defined, or if not will be an internally generated ID in the format 'B' || [Internal Button ID]
    I then tried creating a page process, pl/sql, :P400_DISPLAY :='STORE'; when the appropriate button is pressed.  The button action is submit page. However, it does not change the P400_DISPLAY value and the subregions stay hidden.
    Suggestions please on how to fix the template or change the P400_DISPLAY value?

    The root issue is that, although you change the value of your page item, it isn't visible to other areas of the page until it is in the session. So, any other action based on the value of your page item; the visibility of a control, a report based on the item's value, etc. will all be unaffected by changing the value of the page item until it has been changed in the session. Even after this the items are stored in the session, you must thereafter do something to cause the value to be reevaluated. To see the effect of this, observe that your page loads and evaluates the value of your page item, it sees that is "MAIN" and hides the regions. However, it doesn't reevaluate them after this.
    So; your choices to get this value set in the session are to either Submit the page, or use JavaScript to set the value in the session. If you use the latter of these, you'll have to do some further work to cause the visibility tests to be re-run, So, let's stick with with the submit method.
    What you've done above sounds correct for this but, there are a lot of decisions you could have made that might have caused things not to happen in the correct sequence.
    Firstly, let's confirm that what I describe above is your problem. From the development environment, load the page, click the button to change the value and submit. Now, click the link labelled Session. Is it still set to MAIN? If so; this is your issue.
    Let's start with the your After Header computation. Did you set it to *only* run if the current value of your page item is NULL??? If not, that's your problem.
    Load Page -> Item set to 'Main' by Computation -> Click Button -> Item set to STORE -> Submit -> Load Page -> Item set to 'Main' by Computation
    See the problem?
    Assuming this isn't the issue, you created a Branch to the same page, right? What is your process point for the Branch? Is it *After* Validation, Computation etc? Because if not, you aren't changing the value before the submit happens.
    I bet it is the first issue but, take a look at these.
    Cheers,
    -Joe

  • How to show all regions when opening piano roll?

    hey,
    I want to be able to see all events in all regions when opening (not toggling!) a piano roll. I just switched from version 5 (yes, 5) to 9. It used to be like this: you deselect all regions and then just open the matrix editor (that's how the piano roll was called in ancient times).
    If I do this in 9, the piano roll shows nothing. If I select all regions and open the PR, it shows only one. If I select one region, open the PR and then go back to the arrange window and select all regions it does show all info in the PR but this is a bit of a not-very-efficient work around.
    Anyone any idea?
    grtz
    Janco

    double click a region, then highlight the ARRANGE window and type command + a. It is essential to choose all regions this way not as you mentioned by choosing all by hand. Remember that when you doubleclick a region Logic highlights the PIANOROLL. So you have to highlight the arrange window by clicking on the bar just below the main tools or in other words, just above the ruler (I don't know the exaqct word for it but I hope you know what I mean.
    Message was edited by: samplaire
    Message was edited by: samplaire

  • 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);

  • Some affect on buttons when button click

    Dear All,
    I have 6 buttons in windows phone application page with Custom Control Template. I have also capture "Pressed" VisualState and change the button color which working fine.
    However when any button click then I want to hide a all other buttons for 2 seconds and keep this Pressed button (in Pressed visual state) visible only. Is there any way to achieve this goal in "Pressed" VisualState?
    I capture "Click" event of button and in this click, tried following codes
    btnNearest.Opacity = 0;
    btnInstructions.Opacity = 0;
    btnFavorities.Opacity = 0;
    btnServices.Opacity = 0;
    btnInformationi.Opacity = 0;
    Thread.Sleep(2180);
    this.NavigationService.Navigate(new Uri(sUrl, UriKind.Relative));
    However all buttons does not hide, but it looks when it navigate to new page then button hides but not during "Thread.Sleep".
    Is there any way to hide all buttons for just 2 seconds and keep Pressed button visible (in Pressed state)?
    Thanks in advance.
    M. Irfan

    Dear Vineet24,
    Thank you for your message. It was good work-around but I am afraid, it does not work for me. Actually I am using Custom Template of button so only changing Button color will not help in this case. Following is the custom template which I used
    on all buttons
    <phone:PhoneApplicationPage
    xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows"
    ........>
    <phone:PhoneApplicationPage.Resources>
    <ResourceDictionary>
    <Style x:Key="CircleButtonTextOnlyStyle" TargetType="Button">
    <Setter Property="HorizontalAlignment" Value="Center"/>
    <Setter Property="VerticalContentAlignment" Value="Center"/>
    <Setter Property="FontFamily" Value="/Fonts/DroidKufi-Regular.ttf#Droid Arabic Kufi" />
    <Setter Property="Foreground" Value="White" />
    <Setter Property="FontSize" Value="18" />
    <Setter Property="Template">
    <Setter.Value>
    <ControlTemplate TargetType="Button">
    <Grid RenderTransformOrigin="0.5,0.5">
    <Grid.RenderTransform>
    <CompositeTransform Rotation="-5.75"/>
    </Grid.RenderTransform>
    <vsm:VisualStateManager.VisualStateGroups>
    <vsm:VisualStateGroup x:Name="CommonStates">
    <vsm:VisualState x:Name="Normal"/>
    <vsm:VisualState x:Name="MouseOver">
    <Storyboard>
    <ColorAnimation Duration="0" Storyboard.TargetName="buttonPath" Storyboard.TargetProperty="(Path.Fill).(SolidColorBrush.Color)" To="#a9873c"/>
    <ColorAnimation Duration="0" Storyboard.TargetName="buttonPath" Storyboard.TargetProperty="(Path.Stroke).(SolidColorBrush.Color)" To="#a9873c"/>
    </Storyboard>
    </vsm:VisualState>
    <vsm:VisualState x:Name="Pressed">
    <Storyboard>
    <ColorAnimation Duration="0:10:59.9" Storyboard.TargetName="buttonPath" Storyboard.TargetProperty="(Path.Fill).(SolidColorBrush.Color)" To="#a9873c"/>
    <ColorAnimation Duration="0:10:59.9" Storyboard.TargetName="buttonPath" Storyboard.TargetProperty="(Path.Stroke).(SolidColorBrush.Color)" To="#a9873c"/>
    </Storyboard>
    </vsm:VisualState>
    </vsm:VisualStateGroup>
    </vsm:VisualStateManager.VisualStateGroups>
    <!--Data="M 10 20 L 70 17, 145 20, 110 130 70 128 50 130 Z"-->
    <Path x:Name="buttonPath"
    Data="M 5 20 L 80 23, 50 95 25 95 Z"
    StrokeThickness="40"
    StrokeLineJoin="Round"
    Stroke="#464646"
    Fill="#464646" />
    <ContentPresenter VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
    HorizontalAlignment="{TemplateBinding HorizontalAlignment}"/>
    </Grid>
    </ControlTemplate>
    </Setter.Value>
    </Setter>
    </Style>
    </ResourceDictionary>
    </phone:PhoneApplicationPage.Resources>
    Thank you once again.
    M. Irfan

  • Droid Razr M , after update to 4.4.2 my "Phone" widget on my homepage no longer works.. shows android and when I click on it  says "app not installed"

    hello all, I just got my phone on Monday, this morning I was prompted to update the software, when I did, my homepage "phone app" no longer works.  It now shows the android robot above the word "phone" and when I click on it, it says "app isnt installed"

    It needs to be updated or reinstalled, i would just go ahead and do a reset on the phone although probably should check your "playstore" first and at the top left there should be 3 horizontal lines click, then my apps, then anything that still says update go ahead and update. then turn phone off and on. doesn't work. can try holding a place on mainscreen where there is no icon and add widget should come up and see if there it is in there just looks different or something . if not factory reset

Maybe you are looking for

  • Different ipods on same computer

    How do I set up two different itunes accounts on the same computer, one for my classic ipod and one for my son's ipod touch?

  • Free Upgrade to CS6 with Purchase of CS5.5

    In case anyone is considering moving to CS5.5 now would be a good time. Any CS5.5 purchase now gets a free upgrade to CS6 when it ships. Bob

  • Reg Query designer - Urgent

    Hello all, In the Query designer we have a structure in which I would like to edit one of the K.F . For example the K.F is a Formula K.f which is built on Fiscal year & Amount Now I've to include version to this K.F. Please let me know how this can b

  • 0080004528 000000 The document is not relevant for billing

    Hi All, How to rectify this.. 0080004528 000000 The document is not relevant for billing Please do give me the reply ASAP you will be given full points.. Jay

  • J2ee  - Restarting specific server process

    hi, We have Central instance with 3 j2ee server processes running. One of the server process has issues, needs restart . I tried with SMICM and JCMON to restart only a specific server process. I could not try all options in production instance. Is it