Set Property Visible Issue

Has anyone been able to get a layer with Set Property Visible = True or False working, with onLoad?

I have an image gallery state and each image in the gallery is a substate.  Initially my "Next/Previous Image" buttons were only in the main gallery state and not the sub-states.
I wanted to have the "Previous Image" button be disabled on the first image and the "Next Image" button be disabled on the last image.
I was trying to figure out how to set the property of the buttons, but since onLoad only applies to the intial load of the SWF, that wouldn't work. (It only took me an hour to realize that ).  I moved the buttons in with the sub-states and that took care of the problem.
I was thinking that having an onLoad "State" could be really useful, but I'm also beginning to realize that it's more a matter of figuring out "how" to solve a problem with the functionality that's there, rather than adding more functionality.  In my case anyway.  FC is to some extent - deceptively simple.  It does much more than what appears on the surface.
Great product. Very cool.

Similar Messages

  • Setting property variable issue

    Hi,
    I have search form with two tables.Based on search fields i have to render only one table.So that i have bind table rendered property(testSearchEnable) to the backing bean class.
    Backingbean code:
    private boolean testSearchEnable = true;
    //setters and getters to the same variable.
    search(ActionEvent ae){
    if(testName !=null){
    setTestSearchEnable(true);
    }else{
    setTestSearchEnable(false);
    Jsff:
    <af:commandButton text="Search" id="cb1"
    actionListener="#{backingBeanScope.testSearchBean.search}"/>
    <af:table rendered="#{backingBeanScope.testSearchBean.testSearchEnable }" id= "t1" partialTriggers=" ::cb1"/>
    <af:table rendered="#{!backingBeanScope.testSearchBean.testSearchEnable }" id= "t2" partialTriggers=" ::cb1"/>
    here my problem is what ever value iam seeting in search that is not effecting in the jsp page.
    But if i make varaible to 'static' it is working fine...
    What could be the reason? can i make it as static? Do we get any issues if we make static?
    thx.

    Hi,
    Always mention your JDev version. (Read through this announcement : https://forums.oracle.com/forums/ann.jspa?annID=56)
    I would recommend you to use the switcher component instead of playing with the rendered property.
    Ex:
    <af:commandButton text="Search" id="cb1"
        actionListener="#{backingBeanScope.testSearchBean.search}"/>
    <af:switcher id="s1" defaultFacet="table1"
            facetName="#{backingBeanScope.testSearchBean.testSearchEnable eq 'true'?'table1':'table2'}">
        <f:facet name="table1">
            <af:table id= "t1" partialTriggers="::cb1"/>
        </f:facet>
        <f:facet name="table2">
            <af:table  id= "t2" partialTriggers="::cb1"/>
        </f:facet>
    </af:switcher>-Arun
    Edit : Use request/view scope for the bean instead of backing bean scope.

  • Set property visible true according to ResultSet results.

    I have a column that has to GoImageLinks in a data table that is filled with a commandButton, one of them has to be visible according to what my method: "fillAttribute" in proyect model returns. So how can I do this, I need to pass a RichGoImageLink to this method to evaluate if is visible or not.
    It would be something like this:
    protected void fillAttributes(ViewRowImpl r, ResultSet rs,RichGoImageLink glVer) {
    try {
    populateAttributeForRow(r, 0, rs.getString(1));
    populateAttributeForRow(r, 1, rs.getString(5));
    populateAttributeForRow(r, 2, rs.getString(39));
    populateAttributeForRow(r, 3, rs.getString(3));
    populateAttributeForRow(r, 4, rs.getString(10));
    populateAttributeForRow(r, 5, rs.getString(18));
    populateAttributeForRow(r, 6, rs.getString(13));
    populateAttributeForRow(r, 7, rs.getString(8));
    if(rs.getString(40.equals("1"))){
    glVer.setVisible(true);
    } catch (SQLException e) {
    e.printStackTrace();
    } finally {
    }

    Why don't you do this in the UI layer?
    It's not a good idea to do this in the model layer anyway.
    If our table is based on a VO you can use an EL like visible=#{row.attrib40=='1'} to archive the same thing, but keep the MVC pattern.
    Timo

  • 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

  • Visibility issue with a sub report in Report Manager

    I have a subreport in a List item. In the visibility property of the subreport, I have the following expression:
    =IIF(Fields!X.Value = "A", "True", IIF(Fields!X.Value = "B", "True", "False"))
    This is working fine for me in SSDT. If the value of field X is A or B the subreport does not display, but the subreport displays otherwise.
    However, when I upload the report to Report Manager and run it the subreport will always display, even when the value of Field X is A or B. 
    Any suggestions for what I'm doing wrong, and/or how to fix or work around?. I've inserted Field X as a textbox into the List item, alongside the subreport, to ensure that the value is in fact A or B for the subreports that are displaying when they shouldn't.

    I've tried making the change suggested by
    PrajapatiNeha and then re-uploading the RDL to Report Manager.  The visibility error is still occurring.
    Thanks for your responses. I've downloaded the RDL from Report Manager, and located the appropriate code  for the subreport. The RDL contains the following for the sub-reports visibility properties:
    <Visibility>
    <Hidden>=iif(Fields!Indicator_Group.Value = "Service Utilisation" Or Fields!Indicator_Group.Value = "GP Referred Services", True, False)</Hidden></hidden>
    </Visibility>
    I dont really have any experience with reading the XML code, but this appears to be ok?
    If i set the visibility property to Hidden, then the subreport will not display for all records. But with the expression the subreport is still always displaying.
    Thanks

  • 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

  • Cannot set property 'readyState' of undefined?

    Cannot set property 'readyState' of undefined este es mi error cuando utilizo Websocket de coldfusion! Alguna solucion?

    I had the same issue. The problem turned out to be the default port used by websockets (8575) wasn't open by default. Once this was opened, the readystate error disappeared.

  • Set default visibility

    Hi experts!
    This is a question about SAP Records Organizer (RM). I didn't find this particular forum on sap sdn, If this post is wrong here please tell me good location.
    Inside a record, nodes can set a visibility for a Role. Visibility for each node is ("*") by default, it's means, "all roles".
    Well, I need to set visibility only for a user's role that instance node (maybe I need to create a ABAP function module).
    Example: User JOHN (with Z_ROLE_1) creates a "invoice"(node) inside record. And system creates instance of node with visibility only for Z_ROLE_1.
    Do you know how I do this?
    A lot of thanks in advance.
    Best regards.

    do you have an array with all your movieclip instance names
    or their _name property strings? if so, you can loop through that
    array (or combination of arrays if they are divided among several
    arrays).

  • 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

  • I set Application.Visible is false,but Toolbar still Visible

    I set Application.Visible is false, the window of PS will hidden.
    But when I run an action the toollbar will showon, that looks strange.
    Is anybody konw how to hidden the toolbar?

    I am having the exact same issue and searching Google for an answer doesn't help.  Please let me know if you figure out a way to hide the toolbar/palette.

  • How to get Document Set property values in a SharePoint library in to a CSV file using Powershell

    Hi,
    How to get Document Set property values in a SharePoint library into a CSV file using Powershell?
    Any help would be greatly appreciated.
    Thank you.
    AA.

    Hi,
    According to your description, my understanding is that you want to you want to get document set property value in a SharePoint library and then export into a CSV file using PowerShell.
    I suggest you can get the document sets properties like the PowerShell Command below:
    [system.reflection.assembly]::loadwithpartialname("microsoft.sharepoint")
    $siteurl="http://sp2013sps/sites/test"
    $listname="Documents"
    $mysite=new-object microsoft.sharepoint.spsite($siteurl)
    $myweb=$mysite.openweb()
    $list=$myweb.lists[$listname]
    foreach($item in $list.items)
    if($item.contenttype.name -eq "Document Set")
    if($item.folder.itemcount -eq 0)
    write-host $item.title
    Then you can use Export-Csv PowerShell Command to export to a CSV file.
    More information:
    Powershell for document sets
    How to export data to CSV in PowerShell?
    Using the Export-Csv Cmdlet
    Thanks
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How to set property classes at runtime.

    Well, as the subject line says my question is plain and simple. I don't see any property for this in SET_ITEM_PROPERTY built-in.
    Currently a form has 10 subclassed blocks and views. These blocks have almost similar/definite number of items. At a time only one block with its canvas will be shown to the user. Instead of using so many sub-classed objects, I would like to use only one block and canvas. Now I am looking get getting just property classes from the 10 child forms, which I am looking forward to apply to the common block and items. Any other ideas for the same also appreciated.
    Thanks,
    -- Raam.

    alsalamu alykom
    I think there is no way to set property classes at runtime.
    u must loop through the objects

  • Read a property in the set-property tag

    How i can read a custom property defined in struts-config by adding <set-property property="customproperty" value="CustomValue"/> ??
    I want to put some extra info about every action in the struts-config.xml and then read it from the action or actionMapping classes in run-time.

    Hi,
    I found it!!
    The answer is: extend the ActionMapping (or the BC4JActionMapping for Oracle jdev developers) And add the extra-atributes (with the same name as the value in the <set-property> tag ) with their setter and getter methods.
    Then add to <action> in the struts-config.xml the atribute className:
    <action path="/logon" className="MyActionMapping">
    <set-property property="customProperty" value="SomeValue" >
    </action>
    or,
    change in the web.xml the mapping param:
    <init-param>
    <param-name>mapping</param-name>
    <param-value>MyActionMapping</param-value>
    </init-param>
    Then, in the Action wich receive the ActionMapping object, cast to MyActionMapping and get the atributes with their setter and getter methods:
    ((MyActionMapping)mapping).getCustomProperty();
    i hope this help to others with the same problem.

  • What is the need for setting property data inside the JMSMesage

    Hi
    Could anybody please let me know
    *What is the need for setting property data inside the JMSMesage??
    For example i have a seen a similar example as shown ??
    I have seen a
    Message.setStringProperty("Sport","Basketball");
    and also please tell me how can the MDB recievies this property data ??
    Thanks in advance .

    raviprivate wrote:
    Could anybody please let me know
    *What is the need for setting property data inside the JMSMesage??
    For example i have a seen a similar example as shown ??
    I have seen a
    Message.setStringProperty("Sport","Basketball"); Look at the detail JMS documentation on [Message Properties|http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/jms/Message.html] .
    >
    and also please tell me how can the MDB recievies this property data ?? MDB onMessage method argument is the Message object and if you look at the documentation, Message interface has getter methods to retrieve the properties.

Maybe you are looking for

  • Setting resolution to 1680x1050 60Hz on Mac Mini

    I have a non-Apple display that I am using with a Mac Mini, OSX 10.5.8. This display has a native display resolution of 1680x1050. Unfortunately this is not one of the display options in System Preferences, although there are display options with an

  • Having trouble saving edited images back to organizer.

    After I save images in Editor, they don't always "save". I get "IAC error failed message", and sometimes image doesn't save at all after numerous editing steps. Thanks in advance.

  • How to design template by using subtemplate

    Hi, I want to display invoice number,customer name,invoice date in the header part and in line part I want to dispaly item name,item description,quantity,uom,extended amount.How can I achieve this.Which method should I use like subtemplate method or

  • Verizon DSL & WRT54G

    Hi. I have been attempting to connect my Verizon DSL service up to a Linksys WRT54G Wireless Router for my mother. I can't figure out what I am doing wrong.  I have set up (and own) three of these wireless routers at my own apartment, and I've never

  • GW 2014 and Novell Client

    Hi, since we upgraded to GroupWise 2014 SP1 HP1 some (but not all) of our users (still GW 2012 Clients) complain that they have to authenticate twice, Novell Client and GroupWise.. is there a change because of the decoupling of GW and eDirectory? Som