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

Similar Messages

  • Show  / Hide image on button click

    I have a button that when clicked through an advanced action will show a tick graphic.
    This works fine but what I would like to happen that if the button is pressed again the tick will disappear.
    Also if the button was pressed for a third time the tick graphic would reappear, and so on.
    What is the most efficient way of doing this?
    Many thanks in advance.
    Viki

    Here we go (again). Sorry, but I have answered similar questions so many times. Here is an article that offers you several toggle button scenarios:
    Toggle Shape buttons - Captivate 6 - Captivate blog
    Steps for your use case, since you don't want to change the look of the toggle button:
    create a boolean user variable v_visib ; you can give it a default value of 0
    create a conditional advanced (or shared) action like this:
    IF v_visib is equal to 1
      Show im_x                where im_x is the image you want to show, in a shared action will be a parameter
      Toggle v_visib
    ELSE
      Hide im_x
      Toggle v_visib

  • Reg : show/hide subforms under buttons in Static page(Java Script)

    Hi All ,
    I am creating Adobe Interactive form(static page). In this page have 3 buttons.For each button one subform is there. I want to show/hide subforms under buttons.
    I am using javascript. Please give me the code for this.
    Thanks
    Risha

    Hi Risha,
    can you explain your question like do u have some condtions to show or hide the subform? OR if u click
    button you want to show the subform and by default subform should be hidden something like this?
    Normally for showing the subfrom on click of the button: (By default make your subform invisible from its properties).
    Select the button and in the click event select java script option and write the following code:
    Subform.presence = "visible";
    (*you have to give full path of the subform instead of only subform name).
    With Regards,
    Ravi

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

  • How to show/hide individual radio buttons in a single radio button list

    Can I apply javascript to checkboxes in order to show/hide individual radio buttons in a single radio button list?

    Thanks, Niall,
    I'll give it a try . . .
    Yours,
    Robert Anderson
    SWRCB WebSupport
    1001 I Street
    Sacramento, CA 95814
    8th floor 59B
    (916) 341-5950
    [email protected]
    >>> Niall O'Donovan <[email protected]> 8/5/2010 1:47 PM >>>
    Hi,
    Yes, it can be done. You just need to reference the actual button, rather than the radio button group.
    It is best if you name the radio button group AND all of the individual radio buttons.
    If the radio button group was named "myRadioButtons" and the three rb were named "yesRB", "noRB", and "maybeRB". All of this is in the hierarchy.
    Then this script in the click event of the checkbox would work:
    if (this.rawValue == 1)
         myRadioButtons.maybeRB.presence = "hidden";
    else
         myRadioButtons.maybeRB.presence = "visible";
    Hope that helps,
    Niall

  • Show/hide HTML Region with click on a Button

    Hi,
    is it possible to Show or hide a HTML Region if o want to use a Button for hide or show the region?
    Can  everyone explain it to me?
    Thx for all
    René

    Hi,
    htmlRegionId can something like dataDiv
    In Header section of the region 
    <div id="htmlRegionId">
    In Footer section of the region
    </div>
    on Page level javascript
    <script type="text/javascript">
    function showHideRegion(){
         $("#htmlRegionId").toggle();
    </script>
    On Button Click Action redirect to URL and enter the following text
    javascript: showHideRegion();

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

  • Show an image on button click

    We need the button to display an image on a button when clicked for a tic tac toe game.  Any help would be helpful.

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

  • Issue with page processing - confirmation message & show /hide a button..

    Hello,
    I am working on a to do list application.
    I have events and for each event, I show list of tasks (grouped in reports based on the calculated task's status).
    In one region I have a drop down list of events and a Select Event button.
    For each task, I had to create a CLOSE option (initially I used a link, but the requester wanted a confirmation before closing the task).
    Now I have a checkbox for each task (generated dynamically with apex_item.checkbox(1,task_id)).
    Closing a task in my application means to set the end_date to sysdate.
    I followed the instructions from
    http://download-west.oracle.com/docs/cd/B31036_01/doc/appdev.22/b28839/check_box.htm#CEGEFFBD. I've created also a button and a process and updated the sql from "delete" to "update".
    The process is set: OnSubmit - After Computations and Validations; Run Process Once per page visit (default).
    The issue number 1 is that I see the confirmation message (that tasks have been closed) every time I reload the page (the same when I click Select_event button).. not only after I press on that Close_task button..
    For issue number 2, I have to mention that I've added a condition to show / hide the Close_task button, only if I have at least 1 task in the report.
    The issue number 2 is that I see the button only if I click 2 times on the Select_Event button.. The same is for hide.
    I feel like I am missing something very important about how to synchronize different events(buttons clicks), processes..
    help..?
    Thank you!
    Anca

    This forum is magic..
    As soon as write here, I find the answer!
    Issue 1: I fixed it by specifying this: When Button Pressed (Process After Submit When this Button is Pressed) and my button. I miseed this 1st time.
    Issue 2: I moved the button after the report.. and now it's working just fine!
    I did this about it for some time before asking the question here.. but I just had to write here and got the right answer ;)
    Have a nice day!
    Anca

  • HIDE / SHOW active panels

    hallo another tweak to my tiny script...
    I know its a little foolish to be tweaking such a little nonsense script BUT hey everybody has to start somewhere and THAT'S what a forum is about :)
    I got this problem:
    Iam trying to hide all panels i have currentlly visible and later show them again as they were before... i can do it in two separate scripts (scriptHIDE, scriptSHOW) thats fine with me...
    i just need to script an exact functionality of pressing TAB key (show/hide panels)
    when i use "app.panels.everyItem().visible = false" all the panels dissapear BUT there is no way to show them back :) they are gone
    when i in contrary use "app.panels.everyItem().visible = true" InDesign shows EVERY panel possible...
    isnt there some smarter and cleaner way to toggle ON / OFF panels but only those which are currentlly visible (including Tools and Control)...

    Hi Rosta,
    My idea is to save "visible" property of every panel in an array, and then after making every panel invisible you can restore the visible state of the panels:
    // remember which panels visible and invisible in array
    var arr = app.panels.everyItem().visible;
    // make every panel invisible
    app.panels.everyItem().visible = false;
    // restore settings from the array
    for (i=app.panels.length -1; i>=0; i--){
    app.panels[i].visible = arr[i];
    Kasyan

  • Show/hide layer bug PS 12.01.x64?

    I know that you OPT-Cllick on the eyeball to show or hide multiple layers in PS on the Mac. I could hide all by OPT-clicking on one eyeball. But OPT-Clicking it again did not show all the hidden layers again. It did nothing. Even after several reboots.I had to manually turn on all the layers.
    But then I CONTROL-Clicked on the eyeball to bring up the context menu, which said "Show/Hide all layers" and somehow that woke up the show/hide function when OPT-Clicking on an eyeball. So now everything works normally. The FNCT-Click (or right mouse button) on the eyeball has become a switch to turn on the OPT-Click behavior.
    Anyone else notice this?
    Thanks
    Stan
    MacBookPro6,2 Intel Core i7o OS 10.6.4

    The second Option+Eyeball click is a not a "show hidden layers" command, it goes to the previous state of visible layers... so if you opt+eyeball+click to just see one layer, then for whatever reason make another layer visible, or hide that layer and make another visible, or if you manually hid all but one layer, then that second opt+eyeball+click will appear not to work (if your expectation is to have all the layers become visible)
    Kind of a convoluted answer there!  But try that out and see if that is what you are experiencing.
    I think at one point, quite a few versions ago, the opt+eyeball+click was a "show this layer/show all hidden layers" command. But Adobe changed the behavior because the second opt+click would make every layer visible, including the layers you had intentionally hidden.

  • Explanation of show/hide parent?

    The reason I am asking is:  I don't seem to have those options (show/hide Parent) when right clicking on folders in the tree.  The way I have been organizing in LR4 is by creating a new top level folder and dragging the individual folders into that new folder (within LR).
    I will be moving to a new computer soon and want to make sure the move goes well...
    Thanks,
    kristin

    If the parent folder is shown in LR (which, in my case is D:), then all of the subfolders will not show the command "Show Parent". If you right click on the parent folder, it should say "Hide This Parent".
    If the parent folder is not shown in LR ... well, I'm sure you can guess
    The purpose is to allow you to configure the appearance of the Folder Panel.

  • 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

  • Show form on button click

    Hello, I am using JDeveloper 11.1.2.3.0
    I have one button and one form on my jsf page. I want the form to be rendered when I click the button (to be visible). How can this be done in ADF?
    Thank you

    No offence, but have you read the post? I shows exactly your use case. OK, the title and the content is more about creating page variables. If you store the flag to hide/show the panel at a different place this is OK, still the actions you need to do are the same.
    Timo

Maybe you are looking for

  • BW solution for ABAP Reports

    Hi All, I have a client which implemented SAP R/3 and they have certain standard reports like MB5B, VA05 and certain zreports. Now my task is to propose a BW solution for that client. What will be the steps that needs to be done to accomplish this ta

  • Audio level driven by marker

    Hey all, 3 pronged this..... I would like to set markers on my audio layer that will drive its volume. So for example I have a clip that comes in with a voice over and I would like the background audio bed to drop down quiet whilst the voice is on an

  • IPhoto v7.x (iLife 08) RAW workflow

    I'm looking for some opinions on a workflow here. I have an Olympus E-510 and shoot in RAW. For my amateur needs, iPhoto's editing tools are sufficient and I like iPhoto's library characteristics. I import the Oly RAW files and then edit as needed wh

  • I have so much trouble with the plug in part of the program I want to disable this in Mozilla. I have to go to windows explorer to get around this plug in problem with Mozilla.

    # Question I have so much trouble with the plug in part of the program I want to disable this in Mozilla. I have to go to windows explorer to get around this plug in problem with Mozilla

  • Lightroom 4 crashes on import

    Windows 7, Home Edition, version 6.1 service pack 1 Intel 7, with more than 400gb memory available I've now spent more than 32 hours trying to solve this problem, including two phone calls and three chat sessions with Adobe Help Desk.  The Help desk