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
Similar Messages
-
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,
TridibHi 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,
MadhvikaThanks 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. -
SharePoint 2013 Search: Instant Refinement of Multi-Value Properties with out clicking Apply
Hi All,
I will need help in modifying the Filter_Multivalue.htm file .
The default multivalue refinement behaves as step 1 & 2.
steps:1 When one configure a refinement as multi-value, the user is presented with the list of available filters with checkboxes
Step:2The user must select one or more checkboxes and then click on the Apply link. After they click on the Apply link, the results are refined by the selected filters but only the selected filters are presented:
Need solution for the below:
Need an Instant Refinement solution, all filters are displayed all of the time and when the user clicks on a checkbox, the results are instantly refined without the need to click on an Apply link.
Any one might have come a cross this scenairo , please share the code and details working steps.
Thanks in advance.
Regards,
ajayHi Ajay,
According to your description, my understanding is that you want to make the refinement of multi-value properties without clicking Apply.
I recommend to follow the steps in the link below to achieve the goal:
http://stevemannspath.blogspot.com/2013/07/sharepoint-2013-search-instant.html
With the Instant Refinement solution, all filters are displayed all of the time and when the user clicks on a checkbox, the results are instantly refined without the need to click on an Apply link.
Best regards.
Thanks
Victoria Xia
TechNet Community Support -
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 CasparHi,
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 -
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 dont 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 TeresaHello,
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 -
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?
ThanksHi 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 -
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.
Theres 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 LHi 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 -
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
AndreasHi 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 -
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
BalaHi Bala
Check this XML FORMS - Date Format.
Its a quite easy way.
Regards
BP -
SetProperty with multi valued properties not working
having the same problem as this post:
http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=article&group=weblogic.developer.interest.personalization&item=603&utag=
looks like i'm getting a null pointer from PropertyBean.PropertyObject for some
reason. i took the code available in the admin tool and tried to replicate that,
but it doesn't seem to work properly. the article link above shows the same details
of the problem that i'm having.Dan,
I took a quick look at the code and need a little more information to
determine whether this is a bug. Could you switch off JIT so we can see line
numbers on the exception? It appears that the EntityPropertyManager thinks
that you are setting a simple Text property. You could also try repeatedly
calling setProperty passing each String from your ArrayList.
Sincerely,
Daniel Selman
"Dan Kim" <[email protected]> wrote in message
news:3af6f412$[email protected]..
>
having the same problem as this post:
http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=article&group=weblogic.develo
per.interest.personalization&item=603&utag=
>
looks like i'm getting a null pointer from PropertyBean.PropertyObject forsome
reason. i took the code available in the admin tool and tried toreplicate that,
but it doesn't seem to work properly. the article link above shows thesame details
of the problem that i'm having. -
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?
VegardHi 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é -
Download/Upload Multi-valued property using Code
We are developing program that will download document properties from one Portal Server and upload document properties to another server.
Can someone provide a code snipplet on how to deal with multi-valued property for this download/upload requirement.
1. How do we download property values for Multi-valued properties for document.
2. How do we upload property values for Multi-valued properties for document.We were able to do this. This bug is fixed by SAP in 7.0 ICE.
-
XML FORM - How to save read-only controls with a default value
Hello everybody,
I have a 3 xml forms, each one to create one type of news. I need to use 3 because each of this forms has their own controls. But the control which indicates the type of news (asociated with a KM Predefined Property) must be common in the 3 forms, in order to use it on searches.
The question is, how can I include in this forms a control:
- Visible for the user
- With a default value defined in the control properties (each form has a different value, corresponding with the type of news)
- Read-only mode
- The value showed in the control must be saved in the associated KM Predefined Property when the user clicks the Save button.
Anyone knows how to do this?
What control can I use?
I was thinking of trying with text boxes, but I don't find the way to make them unwritable (Read only mode).
It is posible using labels?
Thanks.
Kind regardsHello Jose,
I know you responded with a question... I see it in the email, but I don't see it here! Very odd... but in response:
The first thing I do when I open the Edit.xsl file is do a 'find' for the name of the text field that I want to be read-only (in my test case, it's 'location'). Repeat the find until you see something like:
[code]<!--
field location
-->[/code]
Below there is where I put the new code. Mine looks like this:
[code]- <xsl:choose>
- <xsl:when test="location='' and ($editmode='create')">
- <xsl:choose>
- <xsl:when test="./xf:ValidationError/@tagname='location'">
- <input name="location" size="30" type="text" class="urEdfiTxtEnbl" id="field_1157467268006">
- <xsl:attribute name="tabindex">
- <xsl:choose>
<xsl:when test="$accessibilitymode='true'">21</xsl:when>
<xsl:otherwise>3792</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
- <xsl:attribute name="value">
<xsl:value-of select="''" />
</xsl:attribute>
- <xsl:attribute name="readonly">true</xsl:attribute>
</input>
</xsl:when>
- <xsl:otherwise>
- <input name="location" size="30" type="text" tabindex="3792" class="urEdfTxtEnbl" id="field_1157467268006">
- <xsl:attribute name="value">
<xsl:value-of select="''" />
</xsl:attribute>
- <xsl:attribute name="readonly">true</xsl:attribute>
</input>
</xsl:otherwise>
</xsl:choose>[/code]
I put the <xsl:attribute name="readonly"> in both places (when test, and when not test). I'm not entirely sure if that's necessary, but that worked for me.
Hope this helps,
Fallon
Maybe you are looking for
-
How do you unlock an Ipad SIM card?
I just upgradesd to the latest Ipad software. Once th Ipda restarted I got an error indicating the the SIM card was locked. How can I unlock it and get my Ipad back?
-
10.4 Update won't install.. invalid signature.
I'm trying to install the 10.4 update. It downloads the whole thing and then aborts installation due to an "invalid signature". It then says to try installing manually with the 'Download only' menu option. It does the same thing doing this.
-
We have struck with a problem, while we inserting the chinese character(other than english) into the postgre sql database through text Driver sun.jdbc.odbc.JdbcOdbcDriver.The data is in the form of text file stored in the UTF 8 format. When inserting
-
Weblogic doesn't reload classes
Hi, I'm working with weblogic7.0 sp2 on Windows NT... When I put the updated classes into the classes directory under WEB-INF... The latest classes are not getting loaded until I restart the server... I've set the "set STARTMODE=false" ... But, it wo
-
Concerns, in regards to iOS 5's new Notification system
I know that Apples primary intent with the revamped Notification system was to avoid the obstrusiveness of the current system. But I have heard and seen that the newer system (beta builds, anyway are actually more obstructive as they cover half of th