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

Similar Messages

  • 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

  • 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

  • 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

  • Creating dependent values in XML forms

    Hello,
    I need to create subcategory that depends on the chosen category.
    So, I have created properties with dependent values and it work just the way I need, but my problem is that I need to use them in XML form.
    Does anybody have any idea how to build an XML form with two fields and the values of the second field will depend on the chosen value of the first one?
    Hopefully somebody can give me an advice pretty soon, because I need to solve the problem urgently.
    Thanks in advance,
    Inna

    Hi Inna,
    Unfortunately dependent properties are not supported by XMLForms.
    Patricio.

  • 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

  • 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

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

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

  • 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

  • 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

  • "Feedback" problem in XML Forms

    Hi Forum,
                    I have created an xml form (for creating and showing articles similar to News) using form builder. In the "show" form i placed a button and assigned the action "Details" to it (So when it is clicked takes to Details Screen). Created a KM Navigational iview that uses my custom layout "myNewsExplorer" in which i have removed some of the command groups like properties, permissions etc.. as i dont want the end users to see these options in the details screen. But to my surprise the feed back button's action is not using myNewsExplorer layout and it is directly pointing to AdminExplorer and giving me all the unwanted command groups and commands. How can i make the feed back option to point to my custom layout set.
                     I dont want to use "give feedback", "feedback" commands at the resource renderer level, since they dont provide facility to open the given feed backs and read (They only allow to give feed back and just list the given feedbacks).
                     Now i am trying to use two feed back buttons in the show form, the first one with action - Details (for admin). I want to get this button to only specified admin user and not to end users. How can i capture the current logged in user from the xml form and put a condition that this button should only appear to admin user ?
                     Please share some ideas. I need to deliver this functionality immediately (working at client place).         (Points Assured)
    Thanks
    Ramesh Kotagiri

    Hi,
    Your requirement is to Browse from different km folders based on some dropdown selection in xml form.  is n't?
    We also face similar kind of problem, in which we have to enable/disable one fields depends on value of another fields.
    As i know it is not possible in XML Form. We acheived our requirement by adding some javascript in generated xml form.  Since it is not a recommended solution i am not suggesting to do so.
    Please ask suggestion from others also.
    Regards
    Baby

Maybe you are looking for

  • CORBA COMM FAILURE AND ORB

    We are currently experiencing numerious and periodic CORBA COMM FAILUREs in prd. We are utilizing JDK 1.3 / CORBA and trying to submit to a C++ server object. When the web server starts up, it initializes the ORB using the ior and orb.init(). When th

  • Photo app not showing chunk of photos from 2009 to 2013 (says it's "downloading")

    For some reason when I click on the photos tab it says downloading below my most recent picture. When I scroll up it will show me back to april 29th of 2013. Then there is a large gap between 2013 and 2009 and there are image placeholders there. When

  • Capital Letter typing on Blackberry Classic

    I am using Blackberry Classic. Since last few days i am having following problem: 1)I cannot type Capital letter by holding the letter key- when i Hold the letter key it keeps repeating the same letter in lower case. 2) Whenever i reply to or create

  • Diff method of LSMW

    Hi all, I am new to LSMW. in my org we are going for migrating data to SAP. i studid some documentation and found that there are four method of LSMW such as 1.Batch input 2.direct input 3.BAPI 4.I Doc now i am confused over the fact that 1.what are t

  • Tax posting in cost center and profit center level at time of billing

    Hi All, I need the your inputs for below requirement: Currently system is updating the Tax amount on profit center level at the time of billing and there is separate condition is maintained in sales order for this tax amount and this Tax amount relat