Displaying custom property as label

Hello Community...
I need to design a custom tag, to render a collection of objects and determine what property of object display as label by tag's attribute.
Just like in struts <html:optionsCollection label="label" value="value"> ... and could it be done in JSP based tag ?
sorry for my bad english :)

I believe you already have solution with you.No need to re-invent the wheel if you are already using struts.
Please go through the below article.
http://masterdev.dyndns.dk/dev/6.htm
Note: It is not always nessary to use LabelValueBean exclusively for this one can easily configure use their respective collection accordingly.
<html:select name="myFormBean" property="selectedUserId">
    <html:options name="myFormBean" collection="usersList" value="userId" labelProperty="username"/>
</html:select> I'm assuming that usersList property in MyFormBean holds a Collection of UserBean objects which has properties like userId and username.
Hope that might help :)
REGARDS,
RaHuL

Similar Messages

  • Custom property not displaying at folder creation or Details screen

    Hello everyone
    I have created a custom boolean property that I need to have displayed both at folder creation and in the Details screen of a folder after it's created.  The property is in the default namespace, and is in the Custom group.  I have created a properties file for the label and created the necessary meta data extension.  The folder validity pattern is " / " and the Resource Type listed is "normalct" so that it's active for folders only.
    Then I went to Property Groups and listed my new property in the Group Items field of the Custom group.  The Custom group is a part of "all_groups" so that group is displayed both when a new folder is created in KM and when the Details screen of a folder is displayed.
    <i>However,</i> my custom property isn't displaying under the Custom tab when I go to create a new KM folder, nor when I view the Details screen of an existing folder.  What configuration am I missing?  Do I have to develop a custom property renderer for each new property I need to create?  I was hoping I could achieve this result with configuration changes only, but I must be missing something.
    Any help would be greatly appreciated and rewarded. 
    Thanks in advance,
    Fallon

    Hi Fallon,
    actualy, if you want this property to be displayed only for folders and not for documents, you don't need to specify the resource type for folders. Setting "/" or "/**" for "Folder Validity Patterns" and "" (empty) for "Document Validity Patterns" should be enough.
    If you sill experience problems, you have to check all settings, for example with the settings suggested in this <a href="https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2654">weblog</a>. If you use the "default" Property Group in the property settings, you don't have to enter the <b>Property ID</b> in a special Property Structure Group that in turn is integrated in the all_groups Property Structure Group.
    Hope this helps,
    Robert

  • Problem in displaying a custom property

    Hi,
      I am trying to display the permissions of a user for the documents in KM Content.
    I am following this <a href="https://media.sdn.sap.com/html/submitted_docs/nw_kmc/howto/km/flexui/Flexible%20UI%20Components.html#_Toc88990490">link</a> to go about it.
    The steps that I followed:
    -- I created a new property renderer and a property with the property ID - 'custom_permission_property'.
    -- Restarted the portal.
    -- I created a Layout Set and set its 'Displayed properties' to   custom_permission_property.
    -- But when I create a KM Navigation iView, set its Layout Set property and preview it, I just see the root folder 'documents' and a link below displaying the property name 'custom_permission_property'. When I click on the link, nothing happens!! Strange!
    Can someone please tell me if there's any other configuration that is to be done?
    Thanks & regards,
    M.Subathra

    In the default collection renderer you have the following <i>Displayed Properties</i> : <b>rnd:displayname(contentLink)</b>.
    The <i>(contentLink)</i> is used to set the displayname of the document as an hyperlink, and to open the document.
    I do expect the action performed is defined in the Property Renderer of the property
    Just try and see what appens.
    P.S. you do not need to restart your Portal to activate these changes
    Hope this help
    Vincent

  • How can I add a custom property to an object, like a paragraph?

    Hi,
    We have a merge process that combine multiple document into one and I need to store the filename of the imported file at the beginning of each merge point.   Each document that we merge contains a Title paragraph and I was wrongly assuming that I could set the label property of this paragraph with my value for future references, but only to find out that the paragraph object doesn't have a label property.
    I also tried setting a custom property by doing this
    paragraph.properties["myCustomProperty"] = "value";
    It doesn't crash, but if I try reading the value it is always undefined.
    I'm looking for alternative, or on how would you approach this, can you please advice?
    Your help is much appreciated.
    Thanks

    Peter Kahrel wrote:
    You could label the paragraph's parent story. Is that any good?
    Peter.
    Well I tought about it, but then I have to find a way to keep track of which paragraph this value belongs to and so far I havent found a way to uniquely identify a paragraph and I can't assume that the merged document won't be edited so I can't use the index.
    Peter Kahrel wrote:
    Otherwise use a paragraph property that you never use and that doesn't affect composition, such as .bulletsTextAfter
    P.
    It may be an alternative, but that may cause problem in the furture if they ever decide to use or change that properties.  Plus, I'm not sure if can put anything I want in there, but that would be worth the try.

  • How to reference a custom property in a vo transient attribute expr + bug

    Hi all
    I have created a transient attribute with an expression that evaluate null content to replace it by a appropriate text.
    <ViewAttribute
        Name="DescriptionUI"
        IsUpdateable="false"
        IsSelected="false"
        IsPersistent="false"
        PrecisionRule="true"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        AliasName="VIEW_ATTR"
        SQLType="VARCHAR">
        <TransientExpression><![CDATA[((Description == null) ? 'Pas de description' : Description)]]></TransientExpression>
      </ViewAttribute>I have defined a custom property for that attribute that contains the message text. I was surprised to see that the custom property was not associate with the attribute in the source file. Don't understand where the association is done
        <Properties>
          <CustomProperties>
            <Property
              Name="flex.tree.noLabel"
              ResId="flex.noDescription"/>
          </CustomProperties>
        </Properties>I had some difficulties to use the custom property editor. When creating a new related one by using an existing resource the property column value is not changed and the content 'Property' is generated. Because no relationships exists between attribute and the property, the entry is lost in the table referring custom property list for the attribute when your come back into the view object or if you save an another entry in an another attribute.
    So my first question ? Is the attribute editing part the right part to define custom property pairs if they are not related to attributes ? is it a bug ?
    My second question is : is it possible to evaluate the bundle in the expression (replacing the literal 'Pas de description' by an expression) ? What is the expression to use ? Where it is described to do such things in the help or in the documentation ?
    Thank you

    This is wrong
    ((Label == null) ? {FlexParameterModelBundle['flex.tree.noLabel']} : Label)
    What is the correct syntax to refer to the project model standard bundle in the groovy expression ?
    Thank for the help !

  • How to create Image as Custom Property Type used in Configurable Web Part?

    I wanted to create custom configurable web part property for Image.
    Example - the screenshot of Image property used in Image web part is shown below:
    My goal is to create as many images as possible in custom configurable web part.
    I tried to write the code:
    [WebBrowsable(true),
    WebDisplayName("Example Photo"),
    WebDescription("Example Photo of the user"),
    Category("Custom User Profile"),
    Personalizable(PersonalizationScope.Shared)]
    public Image ExampleUserPhoto { get; set; }
    However, the result does not display Image configurable web part property.
    I wonder why the data type Image does not cause the custom web part to have Image configurable web part property.
    Other data types such as Boolean, Enum, Integer, String and DateTime can be used.
    How can I create Image as Custom Property Type used in Configurable Web Part?

    I have examined that context node __00 has been enhanced,and  has a class name  z___00. But  when I created a new attirubute by right click " Attributes" with wizard under context node __00.There is still  a error message "view is not enhaced or copied with wizard".
    But  when  I created a method  "getvaliation "  in the class of context node zcl__00, the attribute  'valiation' automatically created(at the same time the method "getvaliation' automatically  created for the attribute 'valiation') and I need not to create attibute 'validation' by wizard .  It seemed as if the problem is resloved. But when I make test for it in web ui .There is a runtime erro message.
    Do I need to make some configurations in  the business object layer  for the checkbox? but  the checkbox is only used as a flag  to decide whether a backgoud job is needed to be executed.
    Edited by: samhuman on Jun 22, 2010 10:31 AM

  • Custom Property in Microsoft Word 2010 Document Template and Sharepoint 2010 Content Type not Syncing up

    I wrote a macro in a Word 2010 template with a custom property called HeaderFooter (a Yes/No value). When the property is changed to No, the header and footer are hidden, otherwise, the header and footer are displayed.
    I added the template to a SharePoint 2010 Document library, with a content type DocInformation and a column name HeaderFooterOffOn that I want to map to the custom property HeaderFooter in the Word Document.
    The macro isn't working in SharePoint, though, because when the user clicks on the HeaderFooterOffOn in the DIP of the Word Document, the Word Custom Property (HeaderFooter) isn't changing with it.
    How do I get these two synced up, so that when the SharePoint column is changed, the Word Document's custom property simultaneously updates with it?

    Hi kevinkevinc,
    There is no direct way to run macro in SharePoint
    As a workaround, I suggest you use SharePoint Event Receiver to run some custom code when column changed.
    Here is a similiar thread for your reference:
    http://social.msdn.microsoft.com/Forums/office/en-US/249249e2-3263-4001-86fa-bda342d95f35/run-word-macro-on-newly-uploaded-sharepoint-word-documents?forum=sharepointdevelopmentlegacy
    More information:
    SharePoint Event Receiver:
    http://msdn.microsoft.com/en-us/library/ee231563.aspx
    http://msdn.microsoft.com/en-us/library/ff398052.aspx
    Best Regards
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Zhengyu Guo
    TechNet Community Support

  • Adding Custom Property in Catalog

    Hi all,
    trying to add a new property in the product and SKU level. I have added the below code in custom catalog.xml.
    And the below SQL script, i have got by invoking the following like in . In dyn/admin , atg/commerce/catalog/productcatalog , generate SQL link...
    but i am getting the following error when executing the SQL script.
    Pls let me know the best way to add a custom property in catalog, n generate SQL for same
    <item-descriptor name="product" id-space-name="product" xml-combine="append">
    <table name="abc_product" type="auxiliary" id-column-name="product_id">
    <property name="isABC" data-type="boolean" default="false" column-name="abc"
    category-resource="SIM" display-name-resource="abc">
    <attribute name="propertySortPriority" value="-1"/>
    </property>
    </table>
    </item-descriptor>
    -------------------------------------------------------Error when executing script----------------------
    Error starting at line 1 in command:
    CREATE TABLE abc_product (
         product_id           varchar2(254)     NOT NULL REFERENCES dcs_product(product_id),
         abc           number(1)     NULL,
         CHECK (abc IN (0, 1)),
         PRIMARY KEY(product_id)
    Error at Command Line:2 Column:61
    Error report:
    SQL Error: ORA-02270: no matching unique or primary key for this column-list
    02270. 00000 - "no matching unique or primary key for this column-list"
    *Cause:    A REFERENCES clause in a CREATE/ALTER TABLE statement
    gives a column-list for which there is no matching unique or primary
    key constraint in the referenced table.
    *Action:   Find the correct column names using the ALL_CONS_COLUMNS
    catalog view

    @Gurvinder,
    I changed the DDL/SQL script. this script worked in CATAA/CATAB schema, But failed in Publishing schema. Find the problem below in publishing schema.
    CREATE TABLE abc_product (
    product_id varchar2(254) NOT NULL,
    abc_uin number(1) NULL
    ,constraint sim_product_pk primary key (product_id)
    ,constraint sim_product_f1 foreign key (product_id) references dcs_product (product_id));
    -----------------------CATA Schema-------
    CONSTRAINT "DCS_PRODUCT_C" CHECK (nonreturnable in (0,1)) ENABLE,
         CONSTRAINT "DCS_PRODUCT1_C" CHECK (disallow_recommend in (0,1)) ENABLE,
         CONSTRAINT "DCS_PRODUCT_P" PRIMARY KEY ("PRODUCT_ID") // there there is only one primary key
    ------Publishing Schema----------------------------------
    CREATE TABLE "ATGSIMPUB"."DCS_PRODUCT"
    (     "ASSET_VERSION" NUMBER(19,0) NOT NULL ENABLE,
         "WORKSPACE_ID" VARCHAR2(40 BYTE) NOT NULL ENABLE,
         "BRANCH_ID" VARCHAR2(40 BYTE) NOT NULL ENABLE,
         "IS_HEAD" NUMBER(1,0) NOT NULL ENABLE,
         "VERSION_DELETED" NUMBER(1,0) NOT NULL ENABLE,
         "VERSION_EDITABLE" NUMBER(1,0) NOT NULL ENABLE,
         "PRED_VERSION" NUMBER(19,0),
         "CHECKIN_DATE" TIMESTAMP (6),
         "PRODUCT_ID" VARCHAR2(40 BYTE) NOT NULL ENABLE,
         "VERSION" NUMBER(*,0) NOT NULL ENABLE,
         "CREATION_DATE" TIMESTAMP (6),
         "START_DATE" TIMESTAMP (6),
         "END_DATE" TIMESTAMP (6),
         "DISPLAY_NAME" VARCHAR2(254 BYTE),
         "DESCRIPTION" VARCHAR2(254 BYTE),
         "LONG_DESCRIPTION" CLOB,
         "PARENT_CAT_ID" VARCHAR2(40 BYTE),
         "PRODUCT_TYPE" NUMBER(*,0),
         "ADMIN_DISPLAY" VARCHAR2(254 BYTE),
         "NONRETURNABLE" NUMBER(1,0),
         "BRAND" VARCHAR2(254 BYTE),
         "DISALLOW_RECOMMEND" NUMBER(1,0),
         "MANUFACTURER" VARCHAR2(40 BYTE),
         CONSTRAINT "DCS_PRODUCT_C" CHECK (nonreturnable in (0,1)) ENABLE,
         CONSTRAINT "DCS_PRODUCT1_C" CHECK (disallow_recommend in (0,1)) ENABLE,
         CONSTRAINT "DCS_PRODUCT_P" PRIMARY KEY ("PRODUCT_ID", "ASSET_VERSION") //there is two primary keys
    Regards
    Edited by: Bravo on Apr 22, 2013 5:23 AM

  • Adding Custom Property to Files

    I am trying to add a custom property to file in a repository and I am apparently missing something.
    I have created a custom property and and metadata extension for the language files. I add the property to the property group custom. I added the custom property to the folder display under presentations fine.
    The issue is when I hit the details of the files I can not find anywhere where my customer property show up...
    Any ideas??
    D.

    Hi Derek,
         Looks like you have done everything correctly. The property should show up under custom tab. I would recommend going through the following PDF and see if you missed anything.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/working with metadata properties in km.pdf

  • Custom Property update in coding - throws AccessDeniedException

    Hi,
    I am using the following code to update the newly created custom property in KM
    RID rid1 = RID.getRID("/documents/MWRD/internet/Departments/Engineering/Engineering_Reports/Reports/"+res.getDisplayName());
    IResource fileResource = ResourceFactory.getInstance().getResource(rid1, context);
    IPropertyName propName = new PropertyName("http://mwrd/xmlns/propertiesnamespace","DepartmentName");
    IProperty property = fileResource.getProperty(propName);
    if(property == null){
    property = new Property(propName,"Engineeringreports");
    fileResource.setProperty(property);
    During the execution of the line set property following error is displayed "AccessDeniedExceptionPermission denied: uri=/documents/Engineering/Engineering_Reports/Reports/10-2008-Excessive_Infiltration_Vol_36.pdf, permission=leaf_write_properties, user=anonymous
    Please help me to solve the issue

    Yes The code was modified to handle version issues
    IVersionController vc = (IVersionController) folderResource.as(IVersionController.class);
         IResourceList rc = folderResource.getChildren();                    
         if (vc != null){vc.disable(true);};
              fileResource.setProperty(mutableProperty);
         if (vc != null){vc.enable(rc);};

  • SharePoint Online - I cannot move my custom property any higher than PicturePlaceholderState

    I cannot move my custom property (User Profile) any higher than PicturePlaceholderState - reordering just doesn´t work. Any ideas, how I can achieve this?
    thx
    Haider

    You are not able to move the property order any higher because there are duplicate display order values for your properties. The display order of the property that you are trying to move currently has the same display order as property "SPS-PicturePlaceholderState".
    You can use the following Powershell script that will allow you to see the current display orders of your properties as well as modify the display order of any of your properties.
    function ListUserProfilePropertyDisplayOrder($siteUrl){
    $site = Get-SPSite $siteUrl
    $context = Get-SPServiceContext $site
    $upcManager = New-Object Microsoft.Office.Server.UserProfiles.UserProfileConfigManager($context)
    #if you have other profile sub-types than the default profile sub-type name ("User"), you will need to change the following line and use the name of the desired profile sub-type
    $defaultUserProfileSubTypeName = [Microsoft.Office.Server.UserProfiles.ProfileSubtypeManager]::GetDefaultProfileName("User")
    $upcManager.ProfilePropertyManager.GetProfileSubtypeProperties($defaultUserProfileSubTypeName) | Format-Table -Property Name,DisplayName,DisplayOrder
    #Example Usage
    ListUserProfilePropertyDisplayOrder http://your.site.url
    function ModifyUserProfilePropertyDisplayOrder($siteUrl, $propertyName, $displayOrder){
    $site = Get-SPSite $siteUrl
    $context = Get-SPServiceContext $site
    $upcManager = New-Object Microsoft.Office.Server.UserProfiles.UserProfileConfigManager($context)
    #if you have other profile sub-types than the default profile sub-type name ("User"), you will need to change the following line and use the name of the desired profile sub-type
    $defaultUserProfileSubTypeName = [Microsoft.Office.Server.UserProfiles.ProfileSubtypeManager]::GetDefaultProfileName("User")
    $profileSubtypePropManager = $upcManager.ProfilePropertyManager.GetProfileSubtypeProperties($defaultUserProfileSubTypeName)
    $profileSubtypePropManager.SetDisplayOrderByPropertyName($propertyName, $displayOrder)
    $profileSubtypePropManager.CommitDisplayOrder()
    #Example Usage
    ModifyUserProfilePropertyDisplayOrder http://your.site.url TargetPropertyName DesiredDisplayOrder

  • Custom property renderer for multiple value selections of property metadata

    Hi,
    We have created custom predefined metadata properties and fetching data from SAP to display values while uploading a document from KM.Everything is working fine and values are being displayed in a dropdown.
    The standard property multi-valued displays values in checkboxex but the requirement is to allow for multiple selections in dropdown using shift ot ctrl key.
    We started creating our own property renderer by decompiling classes like allowedvalues_multivalued
    but we could not see the property on the upload screen.
    Any help is greatly appericiated.
    Thanks,
    Vasu.

    Vasu,
    Try changing the property renderer setting in your custom property.  There might be one which allows a multiple select box.  If not, you can always create your own.  The following links are helpful:
    https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/5800
    https://www.sdn.sap.com/irj/sdn/nw-cm?rid=/library/uuid/f7b176eb-0701-0010-2b84-8edb1f76771d
    Andrew

  • Custom Property Renderer - class not found error?

    Hi,
    I am trying to create a custom property renderer in KM - just a basic Hello World for now, as in some of the other threads on SDN.
    When I use the renderer for a property in my layout set, nothing is displayed.
    My code is as follows:
    public class SBPCPropertyRenderer extends AbstractPropertyRenderer
         public Component renderProperty(IProperty property, IResource res, int maxLength)
              throws WcmException
              TextView t = new TextView();
              t.setText("Hello World");
              return t;// renders a property
    public interface IRFServiceWrapper extends IService
        public static final String KEY = "com.company.project.km.SBPCPropertyRenderer";
    public class RFServiceWrapper implements IRFServiceWrapper
         private IServiceContext mm_serviceContext;
          * Generic init method of the service. Will be called by the portal runtime.
          * @param serviceContext
         public void init(IServiceContext serviceContext)
              mm_serviceContext = serviceContext;
                CrtClassLoaderRegistry.addClassLoader(this.getKey(), this.getClass().getClassLoader());
          * This method is called after all services in the portal runtime have already been initialized.
         public void afterInit()
          * configure the service : @param configuration
         public void configure(IServiceConfiguration configuration)
          * This method is called by the portal runtime when the service is destroyed.
         public void destroy()
          * This method is called by the portal runtime when the service is released.
         public void release()
         * @return the context of the service, which was previously set by the portal runtime
         public IServiceContext getContext()
                return mm_serviceContext;
          * This method should return a string that is unique to this service amongst all
          * other services deployed in the portal runtime.
          * @return a unique key of the service
         public String getKey()
                return KEY;
    However, when I try to render using this bespoke renderer, I get the following error in the Default Trace:
    #1.5#000BCDEE0DD8005600000082000006C00004497AFED42BF7
    #1206692517085
    #com.sapportals.wcm.rendering.property.PropertyRendererUtil
    #sap.com/irj
    #com.sapportals.wcm.rendering.property.PropertyRendererUtil
    #username
    #6737
    #ITNSAPNT06_J2E_4316950
    #username
    #9cf6bb00fc9e11dcbc54000bcdee0dd8
    #SAPEngine_Application_Thread[impl:3]_34
    #0
    #0
    #Error
    #Plain
    #Either the class com.company.project.km.SBPCPropertyRenderer could not be found oder the following error occurs while rendering: java.lang.ClassNotFoundException: com.company.project.km.SBPCPropertyRenderer
         at com.sapportals.wcm.crt.CrtClassLoaderRegistry.findClass(CrtClassLoaderRegistry.java:176)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:219)
         at com.sapportals.wcm.rendering.property.PropertyRendererUtil.renderProperty(PropertyRendererUtil.java:122)
         at
    My PortalApp.xml is as follows:
    <?xml version="1.0" encoding="utf-8"?>
    <application>
      <application-config>
        <property name="SharingReference" value="usermanagement, knowledgemanagement, landscape, htmlb, exportalJCOclient, exportal"/>
      </application-config>
      <components/>
      <services>
        <service name="default">
          <service-config>
            <property name="className" value="com.company.project.km.SBPCPropertyRenderer"/>
            <property name="startup" value="true"/>
          </service-config>
        </service>
        <service name="RFServiceWrapper">
          <service-config>
            <property name="className" value="com.company.project.km.RFServiceWrapper"/>
            <property name="startup" value="true"/>
          </service-config>
        </service>
      </services>
    </application>
    Can anyone spot what I am doing wrong?
    Thanks,
      Tom

    Hi Tom,
    I've implemented similar behaviour but with the state of resource. The code is following:
    private static final class URLs {
              private static final String BEFORE_APPROVAL = "/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/etc/public/mimes/images/s_s_ledr.gif";
              private static final String APPROVAL = "/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/etc/public/mimes/images/s_s_ledy.gif";
              private static final String PUBLISHED = "/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/etc/public/mimes/images/s_s_ledg.gif";
              private static final String     ARCHIVED = "/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/etc/public/mimes/images/s_s_ledi.gif";
         public Component renderProperty(IProperty property, IResource res, int maxLength){
              Image image = null;
              try {
                   IRepositoryServiceFactory factory = ResourceFactory.getInstance().getServiceFactory();
                   IURLGeneratorService ug = (IURLGeneratorService)factory.getService(IServiceTypesConst.URLGENERATOR_SERVICE);
                   IStatemanagementManager stateManager = (IStatemanagementManager) factory.getRepositoryService(res,IWcmConst.STATEMANAGEMENT_SERVICE);
                   IStatemanagementUtilsResource sResource = stateManager.getStatemangementResource(res).getUtils();
                   Locale locale = res.getContext().getLocale();
                   IState state = sResource.readState();
                   if (state.getID().equalsIgnoreCase(States.BEFORE_APPROVAL))
                        image = new Image(ug.createAbsoluteUri(new UriReference(URLs.BEFORE_APPROVAL,null,null)).getPath(), state.getDescription(locale));
                   if (state.getID().equalsIgnoreCase(States.ARCHIVED))
                        image = new Image(ug.createAbsoluteUri(new UriReference(URLs.ARCHIVED,null,null)).getPath(), state.getDescription(locale));
                   if (state.getID().equalsIgnoreCase(States.APPROVAL))
                        image = new Image(ug.createAbsoluteUri(new UriReference(URLs.APPROVAL,null,null)).getPath(), state.getDescription(locale));
                   if (state.getID().equalsIgnoreCase(States.PUBLISHED))
                        image = new Image(ug.createAbsoluteUri(new UriReference(URLs.PUBLISHED,null,null)).getPath(), state.getDescription(locale));
                   return image;
              } catch (Exception e) {
                   StatePropertyRenderer.log.fatalT(e.getMessage());
                   return image;
    But you can simply take one of the properties of your resource with the method res.getProperty(<IPropertyName>) instead of state and check the value of this IProperty. I took images from KM but you can also add necessary images to your project and use them.
    Regards
    Pavel

  • How to add custom property to CharacterFormat?

    Hi,
    Is there a way to add the custom property to character format and save in to XML TextFlow without significant changes in TLF?

    Interesting.  Looks like that could maybe be an ASDoc bug or something else going on.  The actual implementation of the contructor for ApplyElementUserStyleOperation in my build of TLF looks like this:
    public function ApplyElementUserStyleOperation(operationState:SelectionState, targetElement:FlowElement, styleName:String, value:*, relativeStart:int = 0, relativeEnd:int = -1)
    I'm not sure how to answer #2, but my first thought is that there's a fairly good chance that whatever you end up using 'user styles' for will not be related to the actual formatting of the text.  It could be some sort of metadata that's completely abstract from how the text is formatted or represented visually, which is where the text layout format applies.  There are more technical reasons why it shouldn't be there also, but they're probably not worth the energy unless you really want to know.   ..and Robin would be a better person to comment on that also.
    I don't know what build of TLF (if any) is included in the Flex 3.4 SDK, but TLF does not have any dependencies on the Flex framework (or any particular version of it).  The only requirement is that you are targetting Flash Player 10 or above.  You can always download the latest (or a very recent) version of the TLF SWC's, RSL's, and source with the Flex 4 SDK from the Flex 4 download site at:
    http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4

  • Adding Custom Property to all documents

    Hi Experts,
      I have requirement to add custom property for documents. This property should be displayed under custom Tab of all documents. How can i achieve this?  Please help me regarding this.
    Regards,
    Kumar.

    Hi Kumar,
    Make all the properties, indexable.
    This u can do in the configuration of properties.
    Then these props will be searchable
    U need to come up with how u want to search these docs
    Probably a search iview and its search options and search components will be reqd.
    Mention the requirements in that way. U can start a new thread for searching rather
    than continuing with this thread as the subject is adding custom property.
    Regards
    BP

Maybe you are looking for

  • Urgent ,complaint summary report  ??

    Hi Gurus, "The new complaint summary report is missing Location from the Ship-to Name/Location and Sold-to Name/Location fields" this is the problem. Please let me know how to go abt this .. which tcodes do I need to refer.. do I need to look at CRMD

  • How do I tell if my Mac is being hacked or if someone is leeching my wireless connection

    Mac OS X Version 10.4.11 (Build 8S2167) 2011-09-19 07:49:17 +1200 2011-09-19 07:49:22.145 BluetoothUIServer[219] Can't open input server /Library/InputManagers/CTLoader 2011-09-19 07:49:22.196 UniversalAccess[217] Can't open input server /Library/Inp

  • Capturing HD to FCP Pro

    If I want to capture HD DV fig. to FCP is the only thing I have to do is change the capture setting to 1080i (50 or 60)? Jeff Dual G4 1 GIG, G4 1.25 Laptop Macbook Pro 2.0   Mac OS X (10.4.7)  

  • IE 11 Enterprise Mode Sites List - Must Force IE 8 Emulation to Default or Disaster

    I've gone through about 100 postings thus far and not sure what I'm missing. I have a scenario where 98% of the sites internal are IE8 compatible and in some cases IE7.  I was hoping their was an option to default IE 11 to IE 8 Emulation mode but I c

  • Why won't itunes load on travelmate 290

    I have an Acer Travelmate 290 and although I can download iTunes on it, it refuses to work properly. I cannot sync to it and all the features are not present. Can anyone help? I'm not a "Techie" so dumb your answers down please.