Multiselect Metadata Property in XML Form

I have created an xml form to create news items for our company. The basics of the form can be found on http://service.sap.com/nw-howtoguides at Portal>KM and Collaboration>KM. I would like to add a custom metadata property that i have created that is multiselect. However i can't seem to figure out how to add the multiple checkboxes.
Anyhelp would be appreciated.

Hi Carsten,
I think you might be able to help me out in this.
I have created a multi valued property named “sls_region” with allowed values All, America, Europe. I have assigned this property in custom parameter section of Editxsl file of xml form.
I have created a filter with “sls_region “property with all allowed values for property available in dropdown.
While uploading news whatever value is selected in dropdown of filter gets assigned to custom property of the form.
To make it more clear
sls_region has value All, America, Europe
If in filter dropdown America is selected …..custom property has value set as America
If in filter dropdown Europe is selected …..Custom property has value set as Europe
If in filter dropdown All is selected …..Custom property has value set as All
This is working fine .Code which I am using for this is
<xsl:param name="ext_mars:sls_region" />(Defined in custom parameters section)
<input size="30" type="hidden"> 
<xsl:attribute name="name">wcmprop.mars:sls_region</xsl:attribute>
<xsl:if test="$ext_mars:sls_region=' '">
                 <xsl:attribute name="value" /> </xsl:attribute>
            </xsl:if>
             <xsl:if test="$ext_mars:sls_region!=' '">
               <xsl:attribute name="value">
<xsl:value-of select="$ext_mars:sls_region"/></xsl:attribute>
            </xsl:if>
</input>
But I need to change functionality like when user select All in dropdown of filter, all available values for that custom property get sets in form.
If in filter dropdown All is selected …..Custom property should have value set as All, America, Europe
Please guide me how to modify above code to achieve this.
Regards,
Madhvika

Similar Messages

  • Multiselect  metadata propert in xml form

    Hi,
    I have created an xml form to create news items for our company. I would like to add a custom metadata property that i have created that is multiselect.
    Eg I have created a multi valued property named “sls_region” with allowed values All, America, Europe. I have assigned this property in custom parameter section of Editxsl file of xml form.
    I have created a filter with “sls_region “property with all allowed values for property available in dropdown.
    While uploading news whatever value is selected in dropdown of filter gets assigned to custom property of the form.
    To make it more clear
    sls_region has value All, America, Europe
    If in filter dropdown America is selected …..custom property has value set as America
    If in filter dropdown Europe is selected …..Custom property has value set as Europe
    If in filter dropdown All is selected …..Custom property has value set as All
    This is working fine .Code which I am using for this is
    <xsl:param name="ext_mars:sls_region" />(Defined in custom parameters section)
    <input size="30" type="hidden"> 
    <xsl:attribute name="name">wcmprop.mars:sls_region</xsl:attribute>
    <xsl:if test="$ext_mars:sls_region=' '">
                     <xsl:attribute name="value" /> </xsl:attribute>
                </xsl:if>
                 <xsl:if test="$ext_mars:sls_region!=' '">
                   <xsl:attribute name="value">
    <xsl:value-of select="$ext_mars:sls_region"/></xsl:attribute>
                </xsl:if>
    </input>
    But I need to change functionality like when user select All in dropdown of filter, all available values for that custom property get sets in form.
    If in filter dropdown All is selected …..Custom property should have value set as All, America, Europe
    Please guide me how to modify above code to achieve this.
    Regards,
    Madhvika

    Thanks for responding
    sls_region is a multi value  property with values ALL , America, Europe.
    My current code which is working fine is like …whatever I select in my filter (a sender iview, custom developed component with multi value properties sls_region appearing as dropdown) get passed to receiver iview (basic search iview with a modified epcf receiver as collection renderer).
    Receiver iview is used for both uploading news and searching news. To upload news I am using xml form. I have modified edit xsl of form ….by adding code as mentioned above in my thread in detail
    So if in filter if I select America as region …..Uploaded news will have sls_region property set to America.
    If All is selected uploaded news has sls_region set to All.
    Code mentioned in my thread is working fine but now I need to modify it like ….
    If I Select All in filter...Uploaded news should be set with all allowed values of  sls_region property i.e.  All, America, Europe.
    To make it more clear if you look at my code above I want to add logic like
    if (test="$ext_mars:sls_region=' '")
    <xsl:attribute name="value" /> </xsl:attribute>
    Else {
    If (test="$ext_mars:sls_region = ‘All’)
    Value of select = “All” and “America” and “Europe” means news  get uploaded with            available values of  sls_region
    Else
    <xsl:value-of select="$ext_mars:sls_region"/></xsl:attribute> only with what is selected in filter either America or Europe.
    I want to set all allowed values of property sls_region in case when ‘”All” is selected in filter.
    Hope this will help you to have a clear understanding of my problem.

  • Metadata Properties and XML Form

    Hello,
    I have two metadata properties, Country and City, City is a dependent properties, when I select a Country the City change according to the value of Country. I put  in the XML form two combo box associated with Country and City properties, the Country is filling correctly, but the City is filled with numbers instead of the name of the City, and it don’t change according to the Country. If I see the properties in the details of the Xml Forms this two properties work fine. What is wrong? It is possible to include a dependent property in a XML Form or there is another way to do that?
    Thanks in advance for your help
    Maria Teresa

    Hello,
    Thanks for your help, but I read this document and I create the properties Country and City, they work fine if I check this in the Details of a document, but when I put this two properties in the XML Form, the Country property works fine, but the City property isn't filled with the valued I configured. What is wrong, how can I put a dependent property in a XML Form?
    Thanks
    Maria Teresa

  • How to display system property in XML forms

    Hi
    We are using XML forms template for publishing news in KM. In the show form we got author field (a label in the form) which is mapped to system property createdby (PropertyReference = /Properties/default:createdby).But while displaying the form author is not getting populated. When I try to edit the form in XML forms builder in data model tab under properties node no property is visible. Nothing is shown up in properties even after reload option is selected from context menu of properties node.
    I cheked by manually editing PropertyReference to some other property (e.g. modifiedby) but nothing is showing up.
    Can you please suggest how the createdby system property can be shown in the xml form?
    Thanks & Regards
    Sudip

    Hi Sudeep,
    Please try to open the formbuilder in another machine and try to see the properties xml form design view.
    You can even directly can create a lable in show form and add the property name along with the nama space name.
    For default properties namspace is default.Create a lable UI element in show form and select the datasource property and add the property value in that.
    With we can show file related system generated properties in show form.
    Regards,
    Rudradev Devulapelli

  • Multivalued metadata properties in XML Form Builder

    I have created some multi-valued properties in KM having their own namespace. When I assign these properties to the XML FB, the values are loaded only if I use a combobox. But my requirement is to selct multiple values, so if I associate a checkbox as the data type, I find none of values are loaded into XML project. Have anyone tried this out? Is it a bug? I am using SPS14.
    Kind Regards,
    Tridib

    Hi Detlev,
    I tried the workaround you described. Defined the allowed values, checked the declared property as "Multi-Valued", selected "allowedvalues_multivalued" as property renderer, refreshed the properties inside of the XML Forms workbench and wired this property to the checkboxes whose captions and values correspond to the allowed values just created and so on.
    When I generate the XSL template, click on the checkboxes inside of my HTML output and click on "Save" only the first value of those I have checked will be saved. (as to be seen in the details of the generated document)
    Although it seems that I have done everything all right, obviously I haven't.
    When I look into the generated XSL document I can see why this happens because several checkboxes with the name will be rendered.
    What did I wrong? Any help would be appreciated.
    (we run EP 6.0 SP 13)
    Thanks in advance
    Ralf

  • Property in XML Form

    Hallo,
    I have a problem with a property in the xml forms builder.
    The property should show the parent folder of the xml file. So I developed a property renderer.
    In the details page the property is displayed correctly.
    But when in the RenderListItem, the property is empty.
    Any idea?
    Regards,
    Gerhard

    Hi Gerhard,
    unfortunately your (any) property renderer will not be used in XMLForms. Its only
    possible to use basic property types in XMLForms (e.g. date, string, ...) and ONLY the values stored inside.
    Maybe you can combine the RenderListItem in you custom FlexUI LayoutSet (e.g. you can display your PropertyRenderer beside the XMLFormsItem)
    with kind regards
    --Matthias

  • Name property of XML forms

    Dear All,
    I need to display a fixed name (which cannot be edited by the end-user) on my Edit and Show Xml forms.
    The Name property available allows the Name to be entered on in text field and carries the same perfectly when rendering the Show form.
    However being in a text field allows the user to edit the name.
    Is there any way by which I could display the name property on a label or a locked control?
    Thanks

    Hi,
    I have tried placing a label and getting the Name Property to refer to the same but the system does not pick up the text on the label.
    I have also tried to replace the text field with a label but that didn't work either.
    It only seems to picks up the text as 'Name' when placed in a text field.
    Best

  • In XML Forms Date Format want to display like this (dd-MMM-YY)

    Hi All,
    I created one Custom Property for Date and use that property in XML Form Builder. In the RenderList that Date Field Display as (Medium Format) showing like this Apr 21, 2009 Format.
    But i requirement is to display Date Field as like this 21-Apr-2009 (DD-MON-YEAR) Format.
    In the Custom Property i set the
    Additional Metadata (csv): +   customFormat=dd.MMM.yyyy but this way is not working for XML Forms.(Refered this SAP NOTES:816761)
    when the IE Browser language is English(United States) [en-us] Date Field Display as (Medium Format) showing like this Apr 21, 2009 Format.
    But when the IE Browser language is English(canada) [en-ca] Date Field Display as (Medium Format) showing like this 21-Apr-2009 Format. so this way is not a right way..
    I need to achieve this..  please help me.. Appreciate for helpful answer.
    Regards
    Thillai J

    Thillai:
    Refer to this post:
    https://www.sdn.sap.com/irj/scn/thread?messageID=1166540
    Hope this helps!

  • Dynamic properties working in "normal KM" but not in XML forms

    Hi all,
    (EP 6.0 SP13)
    I've implemented a Metadata Extension that returns a list of properties. The list is dynamically generated based on the folder the document is located in. I've tested the Metada Extension on both existing documents and new documents and it works fine in "normal" KM scenarios ( Word documents, file uploads, etc.).
    The problem arises when I want to use these Dynamic properties in XML forms. I've added my property to a combox  in the XML Forms project. When accessing the Metadata Extension from XML forms the resource path is always null. Since all my business logic is based on knowing where in the KM structure the document is, I have a small problem...
    If I go to Details->Properties on the xml forms document and accesses my property there, the path is correct..
    To get the resource path I use these two methods:
    folder = metaContext.getResourcePath();
    (for newly created documents)
    folder = metaContext.getResource().getParentCollection().getRID().getPath();
    (for existing documents)
    these are null when calling my Metadata Extension from a XML Form.
    Any ideas?
    Vegard

    Hi Vegard,
    Could you post the code that loads/create the property objects dynamically?
    Maybe you can post it at this forum Dynamic properties working in "normal KM" but not in XML forms
    so I can award you some points.
    Thanks in advanced,
    André

  • How to get values in the combo box in a XML form?

    Hi All,
        1. I have created a property which has "Default value" as "Clothings" and  "Allowed Values(csv)" as Real Estate - Sales , Clothings etc" by navigating to KM > CM > Global Services > Property Metadata > Properties.
       2. In the XML form builder when I drag this property I get a combo box for this property.
       3. But when I preview this by going to Content Management > Folder > New > FORMS > and select my XML form project I get a preview but it is not showing me the default values in the combo boxes which I created using the property in XML form builder.
    Please Suggest me as to how to get those values (which I mentioned in property) in the combo box ?
    Thanks in Advance,
    Jasmine.

    Hi All,
      I ll make the above Query Simple.
    1.In Xml Form Builder when you drag a property which has some 3-4 assigned values so you are  recomended to use a combo box.
    2.But the problem after using COMBOBOX is I am not getting these values in the preview of the combo box.
    3.Help Required please its urgent.
    Thanks in advance,
    Jasmine.

  • XML form and metadata property of a resource

    Hi,
    Is there any way to set custom metadata property of KM resource by entering it into input field of XML form?
    Can we relate property of a KM resource to the field created in XML form?

    Hi Deepti,
    check out the last reply in this <a href="https://forums.sdn.sap.com/thread.jspa?threadID=9449">thread</a>. It tells you how to work with predefined property meta data in the XML forms builder.
    Hope this answers your question,
    Robert

  • Property MetaData in XML Forms

    We are currently using EP 5 SP 5 with CM SP5 Patch 3 Hotfix 11.  I have create a new XML Forms project using the Forms Builder.  I would like to be able to view/edit metadata properties through the XML forms. I have read about the PropertyEdit and PropertyView XSL for rendering properties in the KM section of the Help documents, but find the information lacking on how to get started. Does anyone have information on how to do this?

    You need to implement Resource List Filter. this manual should help you:
    <a href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/31fa0d2d-0401-0010-efa3-af7a8647c3bc?prtmode=navigate">Implementing Resource List Filters for Flexible UI Navigation</a>

  • Property not loaded in XML form builder

    Hi,
    I am trying to create a new application in XML form builder. I have created few custom properties in KM. I want to use those properties to map to the field in XML application. But i see that under teh data model, I am not able to see any properties from KM. When i click reload properties nothing gets loaded. Also when i right click on DataSchema, menu doesnt appear. What could be the problem?
    Regards,
    P188071

    Hi!
    You probably have to create a property group and a property structure in the Property Structure Service of km configuration first.
    See here for more details:
    https://www.sdn.sap.com/irj/sdn/thread?threadID=944815&messageID=5712759#5712759
    Pretty much the same requirements you have.
    Cheers,
      Jürgen

  • XML Forms - Data model - writing to XML or Doc property

    Hi,
    Can someone please explain how user data inputted into an XML Form is stored?  I understand how it is stored in XML format, but am a little lost with SDN help doco, below:
    "Data Model
    The data model is a structured description of the data that is stored in XML forms. The data that you enter in forms is written in either an XML file or in properties of documents. A combination of the two is also possible."
    (link: http://help.sap.com/saphelp_nw04/helpdata/en/8f/fe743c74fa6449e10000000a11402f/frameset.htm)
    What does "properties of documents" refer to?  Is this an existing document? A new KM resource (not of type XML)? Or is this document property of the XML file being created?
    Also, does ALL user input from a form need to be stored as XML files, rather than an XML file or some other resource type?
    Many thanks,
    Justin

    Hello Justin!
    >
    Justin Hume wrote:
    > What does "properties of documents" refer to?  Is this an existing document? A new KM resource (not of type XML)? Or is this document property of the XML file being created?
    >
    Look at this you wrote  "The data that you enter in forms" - writing in "properties of documents"  - it means that you can do some changes with KM files from XML forms, or you can administrate (approve doc. and so on).. So all property will be change in KM doc - wich you customize from XML form
    >
    Justin Hume wrote:
    > Also, does ALL user input from a form need to be stored as XML files, rather than an XML file or some other resource type?
    >
    Only XML (if use XML Form Builder)

  • Properties metadata with dependecies in XML Forms

    Hello!
    I've created two properties metadata with dependencies, like product and subproduct, so these two properties are related to each other.
    I tried to add these properties to a XML Forms, but when I add the product, the list is empty, doesn't show any of the predefined values. What can it be ?
    And how do I add these two properties related in the XML Forms ? Do I need to do any other configuration to the properties ??
    Thanks
    Luisa

    Hi Luisa,
    unfortunately, this feature is not supported by XMLForms --> sorry
    Regards
    --Matthias

Maybe you are looking for

  • Email and text messages notifications

    I was wondering is there any way to set the iphone so that as soon as you get an email or a text, you are notified immediately. It seems that I am only notified when I update my mail and that's when the phone tells me how many mails I have received.

  • Can't start Photoshop without deleting preferences file

    Hi gang, I have a Macbook Pro running Lion, OS X 10.7 that I purchased two months ago so it's relatively new. Just bought Adobe Photoshop CS5 Extended and installed it on the computer a day ago. Software will not operate unless I hold option+command+

  • Photo booth, problems with the new backround

    Has any one else had trouble with the new back rounds in photo booth, in mine, the back round over powers me so I am partially invisible. Is there anything I can do about it?

  • External Firewire ODD Problem

    Hi~ My Mac mini (PPC) would not recognize external firewire DVD writer. Trial I. System profiler information about firewire of Mac mini shows: Manufacturer - Unknown Model - Unknown Device In my other mac, iMac G5, the attached device information is:

  • IP Address of Client after IISProxy.dll configured

    Hi, We have a requirement to capture IP address of client. we are able to do it when the users access the portal from inside the firewall using portal url. http://<servername>:port/irj but when users access the portal outside the firewall we have IIS