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.

Similar Messages

  • 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

  • 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

  • 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

  • Multi-Valued Properties in XML Forms

    Hello,
    Can anyone tell me how to select multiple values for multi-valued properties in an XML Forms. It seems that the combo box only allows you to select one value.
    Thanks,
    Chris.

    Hi Chris,
    nice to hear, that you're implementing my way of solving this multi value issue. And much nicer to hear, that it seems to work for you, too!
    You can not write back your multi value properties from XML form. Thats for sure. You can think of:
    1. Synchronize the value of your text field property with the value of the multi value propery whenever you store the document. This could be done using the event "property set".
    <a href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5d0ab890-0201-0010-849d-98d70bd1d5f0">See: KM Events</a>
    2. Overwrite the content of your multi value property at runtime, depending on the value of the single value property which holds the csv. Do this by using a Repository Filter. <a href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/70ee3a57-0701-0010-3e9a-ddae7e4e0521">See: RepositoryFilter</a>
    3. Forget about the multi value property and make the text field property indexable. This should work, too.
    All three options should work!
    HTH,
    Carsten

  • Display Values of predefined properties in XML Forms

    In EP60 SP11 we have created several XML Forms with XFBuilder. In these forms several metadata properties are used which have predefined values available via a metadata extension. Everything works fine, except for the display of the predefined values. The "Show" and "List" forms of the XF Project display the value keys in stead of the value labels. For example, the value key "countries_EN" is displayed in stead of "United Kingdom". This problem also seems to be eminent when using static combo boxes. How can we proceed in order to have the value labels displayed in stead of the value keys??
    Thx Caspar

    Hi,
    You might have to use the control selector and add a condition...
    ie. if the condition is "countires_EN" then the caption will be "United Kingdom"
    Cheers,
    Vic

  • Dependant properties in XML Forms

    Hi all,
    I have a set of dependant properties, simillar to the Country / Cities example in the sap guides, and i understand how i can add this to the properties of a file, but how would i go about presenting these properties through the edit screen of an XML Form so that the cities properties display when a country is selected?
    Thanks

    Hi Richard,
    I would suppose that the property renderer which renders your dependant property takes care of this.
    The property renderer for the country property would have to make sure that when a country is selected the city property values are changed accordingly. The easiest would be to just do a server roundtrip with the new country value. The renderer for the city property would check the value of the country property and display the appropriate values accordingly.
    There is a renderer in the standard for dependant properties. Maybe that one will work for you as well. It is:
    Name: multi_dependence
    Codelink: com.sapportals.wcm.control.util.PropertyRendererMultiDependence
    Hope this helps,
    Esther

  • Dependent properties in XML Forms

    I followed this article
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/de31ec90-0201-0010-be95-f501d25027a8 ]
    and I tried to apply the example of dependent properties in a XML form.
    It didn't work.  The dependent property doesnt't refresh as it does in a Details dialog box. Does anyone know how to do it in the Edit Form?
    Are dependent properties supported by XML Forms?
    Thanks in advance.

    Hi Gabriela,
    unfortunately, this functionality is not supported in the XML Forms (out of the box), in the current version.
    Best regards,
    Robert

  • Properties in XML Forms label

    Hi
    I'm working with the XML Forms builder, and I'm trying
    to add properties as name, mail, and so on to labels
    in the edit form. So that the user doesn't have to fill
    this in, in a registration form.
    But I don't have any success in getting it to work.
    There’s nothing displayed in the labels.
    Is this possible?
    And if, does someone have any suggestions on how to get
    it to work?
    Another way to get the user information could be a link
    to the users card, but how should that be done?
    Thanks in advance for any help or suggestions.
    Regards
    Mikael L

    Hi Mikael,
    see Accessing creator information of form for details.
    In addition, see http://help.sap.com/saphelp_nw04/helpdata/en/fe/2a2c407586ea01e10000000a155106/frameset.htm
    Hope it helps
    Detlev

  • How to change dateformat of VALID FROM and VALID TO properties in xml forms

    Hi all,
                I have created a news using xml form bulider and i have given lifetime for that news ,also displaying the VALID FROM and VALID TO  in news.By default it is in mm.dd.yyyy format but i need to display the dateformat as dd.mm.yyyy in show form.Is there any possiblity to change the format in XSLT or any other solutions.
    Regards
    Bala

    Hi Bala
    Check this XML FORMS - Date Format.
    Its a quite easy way.
    Regards
    BP

  • Mulitvalue Properties in XML Forms via Checkboxes

    Hello All,
    I hope someone can help me with the following issue:
    I want to create a XML form whicht contains a custom cm-property called "<b>plant</b>" the property is a multivalue property and contains the possible entries <b>plant1,plant2,plant3,plant4</b>
    now I want to use the property for the EditForm via checkboxes, so that the editor of the form can set muliple entries for the property plant.
    the reason for that is, that some xml docements should contain e.x. plant1, plant2 others should contain plant1, plant3, plant4 or plant2, plant4.
    In the XML Formsbuilder I always get the message that I can't use the Control Checkbox because the property "plant" contains predefined values and I should use the control Combobox - but the combobox is not enought for my form, because it only alows one value of the property! I need a multivalued property because I want to create a search option set, whith which I can search for xml documents with the property value plant1, plant2 etc.
    Does anybody know how to handle this issue? (Answers will be rewarded!!)
    Regards
    Andreas

    Hi Andreas
    Here's two very interesting threads on this subject. I havent tried the suggestions out, so now you are on your own
    https://forums.sdn.sap.com/click.jspa?searchID=3579091&messageID=2591706
    https://forums.sdn.sap.com/click.jspa?searchID=3579119&messageID=3305300
    Kind regards,
    Martin

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

  • 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

  • How to assign drop down list in XML form to properties

    Hi ALL,
    When i was creating <b>Edit form</b> in XML Forms Builder,for <b>Bulletin Board</b> Application, i had to assign two drop down list boxes to properties created under Content Management Configuration > Global Services > Property Metadata. Can any one help me how to ASSIGN it or provide any related documents.
    Suitable replies will be rewarded, for sure.
    Regards,
    Shankar

    Hi Shankar
    Please have a look at this document, especially the part about the cookbook. It explains how to add properties in a dropdown list to your XML form.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ee639033-0801-0010-0883-b2c76b18583a
    Good Luck!
    Barry

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

Maybe you are looking for

  • Select certificate - 403 Forbidden: Access is denied in Safari

    Safari is asking to 'Select Certificate' for a website. It shows two certificates the old one which expired in Feb last year and the current one which is set to expire in 3011! Regardless which one you choose it comes back with.... Server Error 403 -

  • How to create a custom symbol for quick inserts

    I have found it extremely tedious to recreate statistical symbols over and over when it appears to be an unnecessarily lengthly process, when many stats students are in need of these characters and we have such a huge database of other less-used symb

  • PPD: Adobe missing

    I'm following POD printer's instructions for creating a PDF. Rather than use the Adobe PDF output option of InDesign, the printers advise that a postscript file be created first, then processed in Acrobat Distiller for the final pdf. The first step i

  • QueueConnectionFactory lookup: no valid constructor

    Hi, I have a peculiar problem, least i think so..anyway,..i have my application deployed to a Weblogic 7 Sp7 server. The server has two managed servers clustered together. The application is deployed to the cluster. Very recently for some optimizatio

  • Formatted search to contain if else statements

    Hi all I have a site that are looking to make projects in document lines compulsory for the user when posting to a specific GL account. I have worked with a doc that I found on the portal.  Its suggestion is to create a mandatory field on the RDR1 ta