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

Similar Messages

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

  • Restoring af:selectBooleanCheckbox value after setting visible=true

    Using JDev 11.1; I have a table that displays data from a model object, and one of the columns contains true/false values which we render in the table using an af:selectBooleanCheckbox. All works fine except that user is able to hide the table by expanding other components which sets visible=false on the bounding component for the table. If user elects to redisplay the table by reducing the other component zoom, then the table displays again but the selected check-marks/tags do not return.
    Thought initially it might've been because the query was being reissued on the table, but not so. More about the selected attribute on the af:selectBooleanCheckbox, which I have set to the default (false). So the value property is set to the table collection attribute as required to interface with the model, but I need to know what to set the selected attribute to. I can see that when the table is redisplayed, this default value of false is being sent through to the model which is discarding the values I want to retain.
    I've tried some EL in the selected property to set it to true/false based on what's in the table, but the problem with that is that it becomes essentially a read-only control. I need to find some way to disable the value assignment when making the table visible again. Any suggestions?
    Thanks,

    Andrefs,
    In ADF BC, one way we deal with this is by adding a transient Boolean attribute to the View Object with getters (translate 0/1 to false/true) and setters (vice-versa). Then, we bind the UI to the transient attribute. It's been so long since I've done EJB's, but could you take a similar approach?
    John

  • Set 'IgnoreUnrelatedDimensions' property to True for a single attribute

    Currenlty the 'IgnoreUnrelatedDimensions' property is set to false for a particular measure group. And because of this the measure value is null againist all unrelated dimension attributes.
    There is a requirement to show the measure values against one of the attributes within unrelated dimension, while it most remain null against all the other attibutes.
    Is this anyway possible ?
    Saurabh Kamath

    Thanks Pritam.
    I think you didn't get my question.
    For Example consider AdventureWorks cube, in case of 'Sales Targets' measure group IgnoreUnrelatedDimensions property is set to false and because of this when we look at the value of '[Measures].[Sales Amount Quota]' against any attribute of 'Geography'
    dimension (unrelated dimension) the result is null. Or even Category attribute from Product dimension.
    If I switch IgnoreUnrelatedDimensions property to "True", I get to see measure values for all the attributes of 'Geography' dimension and attributes from other unrelated dimension as well. But I just want have a look at '[Measures].[Sales Amount
    Quota]' against Country attribute of Geography dimension.
    Answer:
    Inclusion of a simple script command shown below will do the trick.
    Scope([Geography].[Country].Children,[Measures].[Sales Amount Quota]);
    This = [Geography].[Country].CurrentMember.Parent;
    End Scope;
    So [Measures].[Sales Amount Quota] value is seen against Country attribute of Geography dimension even though there is no relationship between 'Geography' dimension and 'Sales Targets' measure group, and IgnoreUnrelatedDimensions property
    of 'Sales Targets' measure group is set to false.
    Saurabh Kamath

  • Set images in aspx to visible =true if checked in database equals true

    I'm trying to visibly display which car park spaces are occupied. I have done this so far by using images on top of a panel with a car park background and a select date box as shown in code below:
    <asp:Label ID="Label3" runat="server" Font-Bold="True" Width="125px">Select Date:</asp:Label><b></b>
    <asp:TextBox ID="DateBox" runat="server" Width="140px" AutoPostBack="True">dd/mm/yyyy</asp:TextBox>
    <asp:ImageButton ID="DateImage" runat="server" Width="34px" ImageUrl="~/Pics/Select_date.png" Height="23px" />
    <ajaxToolkit:CalendarExtender runat="server" TargetControlID="DateBox" PopupButtonID="DateImage" Format="dd/MM/yyyy"></ajaxToolkit:CalendarExtender>
    </div>
    <div>
    <asp:Panel runat="server" BackImageUrl="~/Pics/Available.png" Height="427px" Width="662">
    <asp:Image ID="Bay1Occ" runat="server" Height="56px" ImageUrl="~/Pics/OccupiedDisabled.png" style="top: 728px; left: 40px; ; float: left; height: 65px; margin-top: 0px;" Width="40px" Visible="false" />
    <asp:Image ID="Bay2Occ" runat="server" Height="56px" ImageUrl="~/Pics/OccupiedDisabled.png" style="top: 726px; left: 84px; ; float: left; height: 65px" Width="40px" Visible="False"/>
    <asp:Image ID="Bay3Occ" runat="server" Height="56px" ImageUrl="~/Pics/OccupiedDisabled.png" style="top: 727px; left: 129px; ; float: left; height: 65px" Width="40px" Visible="False"/>
    <asp:Image ID="Bay4Occ" runat="server" Height="56px" ImageUrl="~/Pics/OccupiedDisabled.png" style="top: 728px; left: 172px; ; float: left; height: 65px" Width="40px" Visible="False" />
    <asp:Image ID="Bay5Occ" runat="server" Height="56px" ImageUrl="~/Pics/Occupied.png" style="top: 728px; left: 219px; ; float: left; height: 65px" Width="40px" Visible="False"/>
    <asp:Image ID="Bay6Occ" runat="server" Height="56px" ImageUrl="~/Pics/Occupied.png" style="top: 728px; left: 264px; ; float: left; height: 65px" Width="40px" Visible="False"/>
    <asp:Image ID="Bay7Occ" runat="server" Height="56px" ImageUrl="~/Pics/Occupied.png" style="top: 728px; left: 309px; ; float: left; height: 65px" Width="40px" Visible="False"/>
    <asp:Image ID="Bay8Occ" runat="server" Height="56px" ImageUrl="~/Pics/Occupied.png" style="top: 728px; left: 355px; ; float: left; height: 65px" Width="40px" Visible="False"/>
    <asp:Image ID="Bay9Occ" runat="server" Height="56px" ImageUrl="~/Pics/Occupied.png" style="top: 728px; left: 403px; ; float: left; height: 65px" Width="40px" Visible="False"/>
    <asp:Image ID="Bay10Occ" runat="server" Height="56px" ImageUrl="~/Pics/Occupied.png" style="top: 727px; left: 448px; ; float: left; height: 65px" Width="40px" Visible="False"/>
    <asp:Image ID="Bay11Occ" runat="server" Height="56px" ImageUrl="~/Pics/Occupied.png" style="top: 727px; left: 494px; ; float: left; height: 65px" Width="40px" Visible="False"/>
    <asp:Image ID="Bay12Occ" runat="server" Height="56px" ImageUrl="~/Pics/Occupied.png" style="top: 727px; left: 538px; ; float: left; height: 65px" Width="40px" Visible="False"/>
    <asp:Image ID="Bay13Occ" runat="server" Height="56px" ImageUrl="~/Pics/Occupied.png" style="top: 726px; left: 584px; ; float: left; height: 65px" Width="40px" Visible="False"/>
    <asp:Image ID="Bay14Occ" runat="server" Height="56px" ImageUrl="~/Pics/Occupied.png" style="top: 727px; left: 631px; ; float: left; height: 65px" Width="40px" Visible="False"/>
    <asp:Image ID="Bay15Occ" runat="server" Height="56px" ImageUrl="~/Pics/Occupied.png" style="top: 864px; left: 38px; ; float: left; height: 65px" Width="40px" Visible="False"/>
    <asp:Image ID="Bay16Occ" runat="server" Height="56px" ImageUrl="~/Pics/Occupied.png" style="top: 865px; left: 83px; ; float: left; height: 65px" Width="40px" Visible="False"/>
    <asp:Image ID="Bay17Occ" runat="server" Height="56px" ImageUrl="~/Pics/Occupied.png" style="top: 864px; left: 128px; ; float: left; height: 65px" Width="40px" Visible="False"/>
    <asp:Image ID="Bay18Occ" runat="server" Height="56px" ImageUrl="~/Pics/Occupied.png" style="top: 865px; left: 173px; ; float: left; height: 65px" Width="40px" Visible="False"/>
    </div> </div>
    I want when the date is selected for the images shown in code above to be set to visible depending on if the checked box in database shown below = true.
    CREATE TABLE [dbo].[History] (
    [BookID] INT IDENTITY (1, 1) NOT NULL,
    [Disabled] BIT NULL,
    [ParkName] NVARCHAR (50) NULL,
    [Campus] NVARCHAR (50) NULL,
    [BayNo] INT NULL,
    [VisId] INT NULL,
    [StaffId] NVARCHAR (128) NULL,
    [bkDate] NVARCHAR (10) NULL,
    [Checkin] NVARCHAR (10) NULL,
    PRIMARY KEY CLUSTERED ([BookID] ASC),
    I cant use the Booking ID as that corresponds to the booking number. The space identity is made up of bay no, campus and park name.
    I have this in my aspx.cs so far but have no idea how to do what I need. I have tried researching it.
    int BookingDisplay()
    using (SqlConnection myConnection = new SqlConnection(DefaultConnection))
    myConnection.Open();
    //Add visitor to database
    SqlCommand MyCommand = new SqlCommand
    ("SELECT (ParkName), (Campus), (BayNo) FROM (History) WHERE (((bkDate) = @bkDate) AND ((Checkin) = @Checkin))", myConnection);
    MyCommand.Parameters.AddWithValue("@bkDate", DateBox.Text);
    MyCommand.Parameters.AddWithValue("@Checkin", true);
    MyCommand.ExecuteNonQuery();
    a desperate learner

    The History table should have its own ID called RecID that is the primay key and an
    IDENTITY column.
    The BookID column should be coming from another table call it Bookingnumbers that has a BookID that is assigned to the BookiD in History when a dummy record is inserted into Bookingnumbers. BookID in Bookingnumbers is just a count or counter table that holds
    the last ID used for (Book Numbers) with BookID in Bookingnumbers being an
    IDENTITY column used to populate BookID in the History BookID column..

  • 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

  • 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

  • Panel.visible=true doesn't seem to work when logged in.

    Hello,
    I’m tryin to make a flex application. When a user logs in there appears an extra panel. I’m trying to make this work with pnl.visible=false and when logged in pnl.visible=true. But somewhere there must be an error cause the panel is not seen, when logged in. On the base state you have a login button which shows the loginstate when clicked. There you can give username and pass and a button which starts the function checklogin(event). All the code in this function works, except the pnlmonbeheer.visible=true., because when you log in successful and you go back to the base state and you then go to the ‘statetoeristingelogd’ state, the panel is still not visible. Here the code:
    private function checklogin(evt:ResultEvent):void
                            if(evt.result.loginsuccess == "yes")
                            _user = this.username.text;
                            currentState = "";
                            this.lblwelkom.text="Welkom " + _user;
                            pnlmonbeheer.visible=true;
                            if(evt.result.loginsuccess == "no")
                            mx.controls.Alert.show("Invalid username/password");
    The other button on the base state leads you to the state ‘statetoeristingelogd’. The panel ‘pnlmonbeheer’ that I want to make visible is on this state and is set invisible because of visible=”false”.
    <mx:State name="statetoeristingelogd" basedOn="statetoerist">
                      <mx:RemoveChild target="{button3}"/>
                      <mx:AddChild relativeTo="{panel2}" position="lastChild">
                            <mx:Panel  visible="false" x="0" y="348" width="250" height="111" layout="absolute" title="Beheer Monumenten" borderColor="#DEE438" backgroundColor="#B9BBBC" backgroundAlpha="0.7" id="pnlmonbeheer">
                                 <mx:Button x="8" y="6" label="Toevoegen" width="115" click="showaddmon();"/>
                                 <mx:Button x="133" y="6" label="Updaten" click="showupdatemon();"/>
                                 <mx:Button x="8" y="39" label="Verwijderen" click="deleteRow();"/>
                            </mx:Panel>
                      </mx:AddChild>
    Somehow the panel stays invisible
    Can someone help me please, thank you in advance..
        

    hi,
    enterState="pnlmonbeheer.visible=true"
    add this event in your state as following
    <mx:State name="statetoeristingelogd" basedOn="statetoerist" enterState="pnlmonbeheer.visible=true"> 
    if pnlmonbeheer becomes visible then it means pnlmonbeheer dont have visibility from the function checklogin because it may be not added yet to the stage during the state change so you may set its visibiliy on enterState event
    regards
       ATIF

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

  • Exception setting property value with CGLIB ( in hibernate)

    My hbm.xml file is:
    <hibernate-mapping>
    <class name="com.dst.fourx.model.codeModel.CodeGroupDisplay" table="CODE_GROUP_DISPAY1">
    <composite-id name="codeGroupDisplayKey" class="com.dst.fourx.model.codeModel.CodeGroupDisplayKey">
    <key-property name="nlsLanguage" type="java.lang.String" column="LANG_CD" />
    <key-many-to-one name="codeGroupCode" class="com.dst.fourx.model.codeModel.CodesGroup" column="CD_GRP_CD" />
    </composite-id>
    <property name="createDate" column="CREATE_DT" type="java.util.Date" not-null="true"/>
    <property name="createUserCode" column="CREATE_USER_CD" type="java.lang.String" not-null="true"/>
    <property name="updateDate" column="LAST_MOD_DT" type="java.util.Date"/>
    <property name="updateUserCode" column="LAST_MOD_USER_CD" type="java.lang.String"/>
    <property name="displayText" column="DISPLAY_TXT" type="java.lang.String" not-null="true"/>
    </class>
    <query name="findAllEditableCodeGroups">
    <![CDATA[from CodeGroupDisplay]]>
         </query>
    </hibernate-mapping>
    I m getting the following error while running the above query:
    org.hibernate.PropertyAccessException: exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of com.dst.fourx.model.codeModel.CodeGroupDisplayKey.setCodeGroupCode
         at org.hibernate.tuple.PojoComponentTuplizer.setPropertyValues(PojoComponentTuplizer.java:63)
         at org.hibernate.type.ComponentType.setPropertyValues(ComponentType.java:262)
         at org.hibernate.type.ComponentType.resolve(ComponentType.java:447)
         at org.hibernate.type.ComponentType.nullSafeGet(ComponentType.java:182)
         at org.hibernate.loader.Loader.getKeyFromResultSet(Loader.java:759)
         at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:292)
         at org.hibernate.loader.Loader.doQuery(Loader.java:412)
         at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:218)
         at org.hibernate.loader.Loader.doList(Loader.java:1593)
         at org.hibernate.loader.Loader.list(Loader.java:1577)
         at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:395)
         at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:271)
         at org.hibernate.impl.SessionImpl.list(SessionImpl.java:844)
         at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74)
         at com.dst.fourx.core.impl.ao.dao.actions.HibernateNamedQueryAction.execute(HibernateNamedQueryAction.java:79)
         at com.dst.fourx.core.impl.ao.dao.BaseDAOHibernate.execute(BaseDAOHibernate.java:129)
         at com.dst.fourx.core.impl.ao.dao.AddEditCodeDAO.getAllFundingTypes(AddEditCodeDAO.java:47)
         at com.dst.fourx.core.impl.ao.dao.AddEditDAOTest.testGetCreditBankAccts(AddEditDAOTest.java:29)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at junit.framework.TestCase.runTest(TestCase.java:154)
         at junit.framework.TestCase.runBare(TestCase.java:127)
         at junit.framework.TestResult$1.protect(TestResult.java:106)
         at junit.framework.TestResult.runProtected(TestResult.java:124)
         at junit.framework.TestResult.run(TestResult.java:109)
         at junit.framework.TestCase.run(TestCase.java:118)
         at junit.framework.TestSuite.runTest(TestSuite.java:208)
         at junit.framework.TestSuite.run(TestSuite.java:203)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
    Caused by: net.sf.cglib.beans.BulkBeanException: com.dst.fourx.model.codeModel.CodesGroup$$EnhancerByCGLIB$$fd9c7e4e
         at com.dst.fourx.model.codeModel.CodeGroupDisplayKey$$BulkBeanByCGLIB$$ae2c0401_2.setPropertyValues(<generated>)
         at org.hibernate.tuple.PojoComponentTuplizer.setPropertyValues(PojoComponentTuplizer.java:59)
         ... 32 more
    Caused by: java.lang.ClassCastException: com.dst.fourx.model.codeModel.CodesGroup$$EnhancerByCGLIB$$fd9c7e4e
         ... 34 more

    check the setter method for the property LANG_CD in com.dst.fourx.model.codeModel.CodeGroupDisplay.
    it must be like -
    setNlsLanguage(CodesGroup xyz) { ... }
    The paremeters must be objects, not the type of the database column. We can specify the actual field in CodesGroup which acts as the foreign key in CodeGroupDisplay in the "property-ref" attribute of <many-to-one> element in the mapping file for CodeGroupDisplay.
    This worked for me. Hope it works for you too.

  • JavaFX applet crashes while setting Group visible

    Hi,
    I have a big problem with my JavaFX applet. Sometimes I have to switch the visibility of some Groups in my applet. But often the GUI crashes and I have to close the browser and start it again. I think it's just the GUI that chrashes because the Java Console tells me the applet is running. Do anyone know how to fix this problem?
    Thanks,
    Tobi

    casperghost wrote:
    Do you mean that it just doesn't react anymore?Exactly. The GUI just freezes.
    var event:String = "" on replace   //if variable changes set visible
          if(event.equals("online"))
                 groupOffline.visible = false;
                 groupOnline.visible = true;
          if(event.equals("offline"))
                 groupOnline.visible = false;
                 groupOffline.visible = true;
    var groupOnline:Group = Group
         var text:Text = Text
              font : Font {
                   size: 24
              x: 50
              y: 100
              content: bind "{user} is online"
         var btn:MyButton = MyButton   //custom node
              title: "Test"
              posX: 100
              posY: 150
              action: function()
                   //Action
         content: [text, btn]
         visible: false;
    var groupOffline:Group = Group
         var text:Text = Text
              font : Font {
                   size: 24
              x: 50
              y: 100
              content: bind "{user} is offline"
         var btn:MyButton = MyButton   //custom node
              title: "Test2"
              posX: 100
              posY: 150
              action: function()
                   //Action
         content: [text, btn]
         visible: false;
    }I've shorten the code. There are more groups like them above. But it's always the same. If the event variable changes I set the visibility of the groups. But on Windows XP with Firefox and IE the GUI freezes sometimes. On Mac I haven't got this problem.

  • To set a default role according to the user.

    Hi,
    I would like to set different default roles according to users. For example, we have the following prerequisites:
    1) 3 roles: roleA | roleB | roleC (in this order).
    2) 3 differents users: user1, user2, user3.
    So, if I log-in with the user1, the default role should be the roleA; if I log-in with the user2, the default role should be the roleB; and so on.
    But I don't want to change the order of the roles using "sort priority" property.
    How can I do this?
    Thanks,
    Samantha.

    Hello Samantha,
    Does each of the users need to have each of the roles? If not you could just not assign the other roles except the one you want to display as default role (a assume you mean the role that is displayed first after logon).
    If each of your users need every role, I am afraid your requirement is not realizable unless you use the sort priority property. Why don't you want to use it in the first place?
    On possible yet circuitous way to meet your requirements would be the following:
    Create another role for each of your user(-group)s. Say in your case Role 1, Role 2 and Role 3 which are not defined as entry points.
    Assign roleA, roleB and roleC to Role 1 where roleA has the lowest sort priority; and assign user1 to role 1.
    Assign roleA, roleB, roleC to Role 2 where roleB has the lowest sort priority; and assign user 2 to Role 2
    and so on.
    Of course you need to use sort priority for that and I think thats hard to maintain. (probably not even what you are looking for)
    Maybe you can get a litle more concrete what you are trying to achieve.
    best regards
    Stefan

  • [svn:fx-trunk] 11276: Turning the default of ItemRenderer' s autoDrawBackground property to true.

    Revision: 11276
    Author:   [email protected]
    Date:     2009-10-29 13:25:24 -0700 (Thu, 29 Oct 2009)
    Log Message:
    Turning the default of ItemRenderer's autoDrawBackground property to true.  This is part of the changes outlined here: http://opensource.adobe.com/wiki/display/flexsdk/ItemRendererChanges
    This will break existing ItemRenderers because now we are drawing a rectangular background for rollover/selection/caretting that was not being drawn before.  Existing item renderers should be updated to either opt out of this new behavior by explicitly setting autoDrawBackground to false or by updating their ItemRenderers to expect this behavior.
    QE notes: Most tests should have already been updated.  If tests with item renderers are broken, please update them.
    Doc notes: -
    Bugs: -
    Reviewer: Pete F.
    Tests run: checkintests
    Is noteworthy for integration: Yes
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ItemRenderer .as

    Gordon, it looks like its been a while since you made this post.  Not sure how valid it is now...   I am particularly interested in the LigatureLevel.NONE value.  It seems that it is no longer supported.
    How do I turn of ligatures in the font rendering?
    My flex project involves trying to match the font rendering of Apache's Batik rendering of SVG and ligatures have been turned off in that codebase.  Is there any way (even roundabout) to turn ligatures off in flash?
    Thanks,
    Om

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

  • Error setting property 'html1' in bean of type null

    Dear All;
    I am currently on site, and away from my team, so they send over additional screens, that i treid to add to the project i have with me, i added the model, i add the SRC folder, and the .JSPX pages, only when i run the pages, i get Error setting property 'html1' in bean of type null, i checked previous threads, and i know the error and accordingly i checked that the page def exists, which it does, and that all the managed beans are there, and linked to faces config, which they are, so i am just wondering if any1 has any idea, as to how to make the pages work...
    regards
    Halim

    hi frank,
    I cross checked, all the entries in the bean, with those in the JSPX source code, and chceked in the auto comment of the JSPX page the name of the bean, i have checked the faces config, i am going to remove the the new models and re-add them, just tell me if i need to add any files other than those:
    MODEL X folder, which contains the model
    JSPX folder, which contans the pages
    SRC folder in view controller
    And the faces config to web-inf
    thanks in advance man
    regards
    Halim

Maybe you are looking for