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

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.

  • 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

  • Best way to handle .properties and .xml files

    Hi,
    I have an application which contains so many properties and XML files, these are a part of WAR file which we deployed in
    tomcat server. Whenever we make changes to these properties and XML files we redeploy the app and start the server.
    Is there any way we can make sure that these files can take changes without redeploying or starting the server?
    Please clarify.
    Thanks.

    Sure - keep them outside of the war. Pick any directory where you can put them (a directory where the server is allowed to read of of course), load them from that directory in your application. Make sure you can reach that directory through (S)FTP to easily be able to modify them. Then all you need is a way to reload them in the application, should the information be cached.

  • 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

  • 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

  • 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

  • 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

  • Images and XML forms and Images and scaling

    Hello,
    I have two questions about using images in XML forms.
    1) How do I insert images into the XML form editor.
    The thread HTML Editor in XML Form? (Posted: Aug 26, 2004 7:50 PM), discuss how the HTML Editor in XML forms can be extended to be able to insert images like in the KM editor.
    Has anyone any practical experience with this?, as the thread is fairly old.
    And is there other solutions which are more suited?
    The portal is running on WAS 6.40, EP 6.0 SP11
    2) Is is possible for the portal to scale images
    In the portal, different users will use XML forms to publish news stories. These users will want to publish images along with the text.
    In many content management systems, the system will automatically scale the images (e.g. create one thumbnail, a mid-size image and keep the full size) Can this be achieved in the portal.
    The reason for this is to make sure that no one can post a very large image and to make sure each image is the same size.
    I'm interested in hearing how other people, solve the issue with uploading and scaling of images used in the portal.
    Kind regard,
    Jørgen Ruud
    Will reward SDN points.

    Hi Sumit,
    Just to add to what Duncan had said ... please ensure the following things as well
    1. Access portal using FQDN
    2. Maintain proper browser settings http://wiki.sdn.sap.com/wiki/display/EP/MSIE6BrowserSettingsforaccessingSAP+Portals
    3. Please go through the forum link http://forums.sdn.sap.com/thread.jspa?threadID=1814082
    Regards,
    Mahesh

  • 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

  • KM Repository images,and XML Forms not displaying.

    Hello All,
    I am currently running NW04 SPS14 Portal with KM & Collaboration.
    However, the icons in the Content Management>> Explorer>> Documents repository are not displaying. Instead a little while box, with a red x sign appears in place of the images.
    When I launch the XML Forms builder, the application doesnt load.
    Also, the content developed using XML forms are no longer displaying, instead I get an error message "<b>Resource cannot be displayed with XML Resource Renderer</b>"
    I will appreciate any suggestion that will help to resolve this problem.
    Thank you.
    Regards,
    Collins.

    Hi Collins
    Have u got any solution to your problem .  Could you please share the solution to this problem
    Thanks
    Prasad

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

Maybe you are looking for

  • Help with templates in indesign

    i need to make a photo book in indesign i was wondering if there were any templates or software out there to automate the process. I do not want to use blurb because their prices are too high

  • Totally helpless installing NetWeaver with ABAP

    Hi, I am trying to install SAP NetWeaver 2004 SneakPreview with ABAP for the last 2 days. But I am getting the error esage which is at the end of this topic:I did all the above and am at my wits end: 1) Removed any exiting database instance. 2) Insta

  • Photosmart 7520 I lost wireless scanning

       I was scanning documents with the PS 7520 and Adobe Pro XI, when for no apparent reason, I lost the ability to scan.  I received the following error message - "Error while interacting with the scanner: the selected scanner was not found."  The pri

  • Unable to cancel/reprocess Messages of status 'HOLD'

    Hi all, I m working on a EOIO Scenario. So System Error mesages blocked further processing of messages and all successive mesages after the failed message went to 'HOLD'. So I canceled the 'System Error' message.Its status changed to 'Cancelled with

  • Structure's in Reporting

    Hi All,                   In reporting can we change global structure to local structure?                   If yes, Please explain the procedure. Regards, Niranjan.