Set  the visibility false on click PopUp

Hi,
I want to set the visibility false of my component on the click of popup
but the problem is when i generate the Pop Up on Page then it lost the control of all the child's on that Page and when i set the visibility false of component then it is not set
Please guide.
Thanks,

You could use PopupFetchListener - to set the visibility of the button to false.
Here, is a sample based on your use-case.
Sample.jspx:
<?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">
<af:form id="f1">
<af:panelFormLayout id="pfl1">
<f:facet name="footer"/>
*<af:commandButton text="CommandButton" id="cb2"*
*binding="#{SampleBean.button}"/>*
*<af:commandButton text="Show Popup" id="cb1" partialSubmit="true">*
*<af:showPopupBehavior triggerType="action" popupId="p1"/>*
*</af:commandButton>*
</af:panelFormLayout>
*<af:popup id="p1" popupFetchListener="#{SampleBean.popupFetchListener}"*
*contentDelivery="lazyUncached">*
*<af:dialog id="d2" title="Sample Dialog">*
*<af:outputText value="Popup Contents" id="ot1"/>*
*</af:dialog>*
*</af:popup>*
</af:form>
</af:document>
</f:view>
</jsp:root>
*SampleBean.java:*
import oracle.adf.view.rich.component.rich.nav.RichCommandButton;
import oracle.adf.view.rich.context.AdfFacesContext;
import oracle.adf.view.rich.event.PopupFetchEvent;
public class SampleBean {
private RichCommandButton button;
public SampleBean() {
public void setButton(RichCommandButton button) {
this.button = button;
public RichCommandButton getButton() {
return button;
*public void popupFetchListener(PopupFetchEvent popupFetchEvent) {*
*this.getButton().setVisible(false);*
*AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();*
*adfFacesContext.addPartialTarget(this.getButton());*
Thanks,
Navaneeth

Similar Messages

  • Setting the visibility of a button after a click on a TabbedPane

    I have a page with a Tabbed Pane.
    I would like to set the visibility of a command button when I click on a Tab.
    To do that I put a disclosureListener like this:
    <af:panelTabbed position="above" testId="Tab1" >
    <af:showDetailItem id="Tab1" text="Tab1" disclosureListener="#{prova.apri}">
    <af:outputText value="Table1"/>
    </af:showDetailItem>
    <af:showDetailItem id="Tab2" text="Tab2">
    <af:outputText value="Table2"/>
    </af:showDetailItem>
    </af:panelTabbed>
    In the backing bean I have the attribute bound to the commandButton and the listener method like this:
    public void apri(DisclosureEvent disclosureEvent)
    // Add event code here...
    RichShowDetailItem o =
    (RichShowDetailItem) disclosureEvent.getSource();
    this.commandButton1.setVisible(true);
    this.commandButton1.setRendered(true);
    It doesn't work !! I guess I'm missing something....
    Could someone help me??
    Thanks a lot.
    Alfredo

    Based on the code you provided it does not look like you are using a partialPageTrigger, which would be required in this case.
    --Ric                                                                                                                                                                                                                                                                               

  • How to Set the Visibility of a field in ESS Address view through portal

    Hi experts,
      I want to set the visibility of a field in ESS Address view through portal.How to edit a field through portal? Please help me with procedures to be followed..
    Thanks&Regards,
    Karthik.

    Hi,
    Login to portal with a user having content administration role.
    Navigate to your iview which must be under content provide by SAP(if its a standard iview).
    Open the iview and click on preview button.
    Then press ctr on keyboard and rightmouseclick on the field for which you want to change.
    A popup will open. Change the visibility in the popup and save the changes. This is a way of personalization and it'll be applicable for all the users.

  • Looking for a way to programmatically set the visible portion of the front panel when a subVI opens

    I am looking for a way to programmatically set the visible portion of the front panel when a subVI opens.  Haven't found any posts that relate, but I'm not sure how to ask the right question.  To be clear, I want to write a helper VI to go through a list of subVIs to make sure the background images are all in the same place when their respective subVIs open.  I hate manually playing with scroll bars before I save each of the VIs...  I'm figuring I need to find the top/left location of the background image (know how to do this already) and then set a VI FP property to  these values or some offset, but I can't find the relevant property. FP:run-timeposition:custom looked promissing, but only affects the location of the window, not the area of the front panel the window is displaying.
    Solved!
    Go to Solution.

    Cool.  Getting closer.  The way I implemented your suggestion affects the subVI only if it is open.  I can use this to do what I'm after, perhaps putting the code into each subVI.  Maybe open all subs, run the helper, and save.    Seems like I'm missing the elegant version...
    My proof of concept code:

  • How to programmatically set the Visibility of an Iview INVISIBLE ?

    Hi ..... I need to programmatically set the visibility of an IView for a user Invisible - In order to achieve that , I am trying the below code....But getting errors-
    Code -
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sapportals.portal.pcd.gl.PcdInitialContextFactory");
                 env.put("com.sap.portal.jndi.requested_aspect","com.sap.portal.pcd.gl.PersistencyAspect");
    env.put("java.naming.factory.object", "__IPcdContext__");
    InitialContext iCtx = null;
    String iViewID = "pcd:portal_content/ABC/1Portal/mywork/iviews/XYA_iViews/adf.ivw_ess_jspdynpage";
                 iCtx = new InitialContext(env);
                 IiView result =(IiView)iCtx.lookup(iViewID);     
                 IiViews iViewSrv = (IiViews)PortalRuntime.getRuntimeResources().getService(IiViews.KEY);
    INewObjectDescriptor IVtoCreate =(INewObjectDescriptor) iViewSrv.instantiateDescriptor(CreateMethod.NEW,"par:/applications/com.sap.km.cm/components/navigation",request.getUser());
    IVtoCreate.putAttribute("com.sap.portal.navigation.invisible", true);
    the above method putAttribute is not apllicablt for (String,Boolean)\
    Please suggest as to how can I programmatically set an Iview Visible/Invisible .

    I think the property is com.sap.portal.navigation.Invisible with a capital I for invisible...
    This blog has an example: Hiding portal role content with a simple iView

  • Setting the visibility of check box based on values of dropdown field

    Dear Experts,
    I have to set the checkbox visible/hidden based on the values of dropdown field.
    Request you to please provide code example.
    Regards,
    Upendra

    Hi,
    For capturing the selected value from the dropdown (ComboBox in SAPUI5) field use the change event of the combobox UI element. Within this you can get the selected value using the getLiveValue() method of the combobox.
    Then depending on the value you can set the visible boolean property of your checkbox.
    Refer to the link ComboBox for more details.
    Regards,
    Saurabh

  • Why error when looping a sheets collection and setting the visible property?

    I get an error on line 5 when running the following code:
    1Sub ShowSheets(vSheets() As Variant)
    2
    3 Dim i As Long
    4 For i = LBound(vSheets, 1) To UBound(vSheets, 1)
    5 ThisWorkbook.Sheets(vSheets(i, 1)).Visible = xlSheetVisible
    6 Next i
    7
    8End Sub
    The error code I get is:
    Run-time error '-2147417848 (80010108)':
    Method 'Visible' of object '_Worksheet' failed
    I only get the error when at least one of the sheets is a chart. But the error does not occur when the chart object is looping. Instead it occurs when the first worksheet object after the chart object is looping.
    What is the cause of this error?

    Hi JP3O,
    >> only get the error when at least one of the sheets is a chart. But the error does not occur when the chart object is looping<<
    I am trying to reproduce this issue however failed. From the error message, it seems that the visible couldn't set when you call the sub.
    How the code was executed? Would you mind sharing more detail about this secnario?
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Setting the Visibility of Groups in a View.

    Hi,
    Here is a Scenario
    There Two WD Views in View 1 there are three groups,in second group i have a button Next, if i click this button it will navigate to View 2, in View two there are five groups,
    I want after clicking Next Button only first three views should be visible in View2 leaving 4 and 5th view.
    how do i can do this..
    Regards,
    RK

    Just to add to Armins answer.
    Create a data element in the context of type Visibility, which is available under
    Dictionary Simple Type
    |_ Local Dictionary
         |_ com.sap.ide.webdynpro.uielementdefinition.Visibility
    then you bind the visibility property of the group to your newly created context element, and updates the visibility of the element in the action method of your button.
    This is the prefered way, since it provides a cleaner design.
    See http://help.sap.com/saphelp_nw04/helpdata/en/15/0d4f21c17c8044af4868130e9fea07/frameset.htm for more information.
    Regards
    Mattias

  • Setting the visibility of columns in document rows

    Hello,
    I have an UDF in a row of a document, this UDF is a drop-down-list with two entries: A and B.
    If i choose A, i want the column e.g. "discount" get automatically set to inactive.
    Now, the visibility and active/inactive is set with the form settings, but where is it stored? Which table?
    Best Regards,
    Leonhard

    Hi Leonhard,
    The Form setting values are stored in the table CPRF. But as per your requirement its not possible to enable or disable the values without using SDK. Hence u may have to make use of SDK to validate the UDF values (A or B in your case) and then take appropriate actions (Active or Inactive).
    Hope its clear to you..
    Regards
    Reno.

  • Setting the playhead with a click

    i feel like im missing something obvious here. i would like to be able to click in the bar ruler and have it set the playhead at the nearest coarse setting. in other words, i dont like the fact that when i click in the lower third of the bar ruler it places the playhead at some incredibly fine point; instead of placing it at bar 4.1.1.1 it will place it at 4.1.1.82 or something. changing snap values hasnt helped. is there some kind of a snap value somewhere for this?

    Changing snap values ought to do it, but if you manually - or accidently - put it to a non-round location, it will move by snap values to and from that location. Like after it's at 4.1.1.82 it easily goes to 4.2.1.82. This is useful when you want to edit un-quantized or audio tracks, and don't want to disturb the downbeats, for example.
    Anyway, the solution is to manually enter the number in the transport. (Always good for precise control of playhead and/or locators.) For 4.1.1.1 you only need to type the number 4. After that it's back to whatever snap position you've selected.
    Message was edited by: Charlie the Tuna

  • Hi how to set the visible property in oracle adf?

    Hi,
    I am new to oracle adf in my application one of the field is id and it is sequence generated value Whenever I entered remaining values and click on save then only it has to display with sequence generated value before saving it has to be in hide mode. Can any one help me how the approach is.

    As there are three ways through which you may pass a message to B2B, so there are three ways to set Action name property.
    If you are using SCA/Fabric then set below properties -
    b2b.fileName
    b2b.contentType
    If you are using JCA JMS adapter, then set below property -
    jca.jms.JMSProperty.ACTION_NAME
    If you are using JCA AQ adapter then set -
    ACTION_NAME
    Regards,
    Anuj

  • I can't set the visible property of a CWAnnotation Object

    I'm working in a W2000 with Visual Basic 6.0.
    When I try to set this property (Visible in CWAnnotation), Visual Basic generates a run time error. Is there any kind of patch?

    This is a known issue with Measurement Studio 6.0. There is not currently a patch for this problem. The workaround is to move the annotation outside the plot area when you do not want to display it.
    David Rohacek
    National Instruments

  • Setting the current in an ADF table via click

    Hi,
    I have created a HTML table in a jsp by dragging a DataControl from the DataControl Palette. Can I set the current row by clicking a table row?
    Thank you for any Information!
    Simon

    hi,
    take a look at this thread
    how to get a pagination dropdown inside an ADF Faces Rich Client Table ?
    Timo

  • HT1338 Can I set the MacBook Pro to make clicking sounds when I type?

    Is there a way to set the keyboard to make clicking sounds when typing?

    There is no settings in the System Preference to accomplish that.
    Exception.
    System Preference > Universal Access
    Slow Keys with use click key sounds.

  • $ie.visible = $false

    I use the following to assign text and search ok if set $ie.visible = $true. But the text cannot be assigned if set $ie.visible = $false. The text box is still empty after run $ie.Document.getElementById('TextBox_ID') = 'This is'.  
    Is there a way to fix it? Thank
    $ie = New-Object -COM "InternetExplorer.Application"
    $ie.visible = $true
    $ie.Navigate('http://searchtext.com')
    While  ($ie.busy) { Start-Sleep -Seconds 1 }
    $ie.Document.getElementById('TextBox_ID') = 'This is'
    $ie.Document.getElementById('Search_ID').click()

    What is this line supposed to do" "ie.Document.getElementById('TextBox_ID') = 'This is'"
    An ID cannot have a space in it.
    You cannot directly assign a value in that way.  You need to assign the value member.
    A web page that I not vivible can very easily not behave as expected.  It all depends on the design of the web page.
    if($tb=$ie.Document.getElementById('TextBox_ID')){
        $tb.Value='This is the new value' 
    }else{
        # textbox not found
    ¯\_(ツ)_/¯

Maybe you are looking for

  • Generate absence quota through RPTIME00

    Dear Gurus, I have to generate absence quota of 2 days every month for all employees and the generated absence quota for the current month will be added in the quota of previous month e.g (2+2=4). I use negative time management and want to use RPTIME

  • Mass data handling in an Enterprise SOA

    Hello together, i'm working on my diploma thesis with the title "Design of a service-oriented architecture based on SAP NetWeaver". For this work an enterprise service is designed to calculate a special price matrix (10x5) from a given price for a pr

  • The official Arduino thread

    So, I'm opening this topic to discuss about our favorite hardware platform. There is a wiki page to get you started [1], and of course there is the arduino-sdk in aur [2]. Feel free to talk about both the harware and software part. [1] https://wiki.a

  • [TV@Master] Technical specs ? And then some...

    Is there anyone who have info on wich frequency limits the RADIO part of the TV@nywhere has ? With an older kind of VCR with manual tunning you might draw sound out from the "video out", and recieve sound from frequencies from around 40Mz to near 900

  • What is lost when resetting all settings on iPad

    What is lost when resetting all settings on ipad2