Populating dynamic values in the combobox with XML form Builder.
I am trying to populate dynamic value in the combobox with xml form builder. I see the document saying create property group and document property Id with respecitive values. I am able to create the property group with system admin -> System config
-> KM -> CM -> Global services -> property Metadata -> groups with new button. and I am trying to create document property Id with value. I am not able to find the way to give value in the property. I am using EP 7.0 Sp 14. Please let me know how to sovel it
Hi
You can create new property metadata with System Admin > System Config > KM > CM > Global services > Property Metadata > Properties > New. Specify the values for this metadata as the ones you need to have in the combo box. Use allowed values parameter of the matadata to sepcify the values. Each metadata property will have unique property ID and you can map this property ID to your combo box in xml forms.
Give it a try.
Regards,
Yoga
Similar Messages
-
I want to design a News like the *LInklist* by XML Form Builder
Hello:
Everyone!
Now I have another problem about XML Form Builder
I want to design a News like the LInklist by XML Form Builder
I want the result,For Example
SAP News
1news1
2news2
3news3
who can give me some adviseon about how to disign the Edit, Show and Renderlistitem in XML
Thanks a lot
Hope your help!Hi,
In XML Form
1) Edit form is used for designing the user interface.
2) Show form is used for displaying the xml form to the end user
3) RenderListItem is used for rendering the xml form into a small description like 1News1, 2news2 etc..
Here you need to display only the heading of the xml form
After you create the xml form
Create Layout set where you need to give the proerties like xml renderer form , no of items to display etc...
Thanks&Regards,
Raghu -
Hi All,
1 ) My XML form builder is hanging up very very frequently (other than this, my portal is very fast).
when I save the project its hangs up at "50% saving internal model". then I have to close the xml form builder and reopen it and save it again (when i do it repeatedly, some time it saves).
when I click on "open Project" many times its not popup the project list, I have to close the xml form builder, logout from my portal and then login back.
Its horrible to work on this, keeps on hanging every time. Any idea why its behaving like this? as I said, my portal is very fast except XML form builder.
My Java version is 1.4.2_16... XML form builder verison is 6.xx
2) when clicked on "preview" button, can we open a pcd iview??? my requirement is, when user clicks on preview button I need to open my application built in PDK java (created iview out of it, which shows xml form in a better way)?
3) Can I show "Edit" form first other than "Renderer" form in News application? Presently it shows renderer form-> user has to click edit link -> then it will open Edit form. I want "Edit" form to be visible to the user in the first step itslef. is it possible?
Thanks
Pradeep
Edited by: pradeep bondla on Nov 19, 2009 3:08 AMHi.
I suppose changing of the JDK, because 1.4.2_16 is not recommended version (see SAP Note 716604). Refer to note 718901 - How to Change the JDK of the J2EE Engine.
Also check what version of client JRE in use. (see Note 1341069 - XML Forms Builder not supported if client JRE is 1.6).
Best regards,
Aliaksandr Zhukau -
Populating ComboBox with XML data
Hi there,
Probably the most basic question, but I'm having a hard time with this...
Trying to populate the ComboBox with XML data as a dataProvider.
Here is the code snippet:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical"
creationComplete="baseDataRequest.send()">
<mx:Script>
<![CDATA[
import mx.collections.XMLListCollection;
import mx.rpc.events.ResultEvent;
[Bindable]
private var baseDataXML:XML;
private function baseResultHandler(event:ResultEvent):void
baseDataXML = event.result.node.child as XML;
]]>
</mx:Script>
<mx:HTTPService id="baseDataRequest"
useProxy="false"
resultFormat="e4x"
result="baseResultHandler(event)"
url="XML_URL"/>
<mx:ComboBox id="comboDemo"
width="390"
dataProvider="{baseDataXML}"
labelField="NodeName"/>
</mx:Application>
And that returns nothing, basically. I know the XML is being pulled, because if I do this:
baseDataXML = event.result as XML;
then I just see a single item in my ComboBox, with full XML content.
How do I populate the ComboBox with XML contents?
XML example:
<root>
<node> <child>Child1</child>
<child>Child2</child>
</node>
</root>
Question: how do I populate the ComboBox with XML data nodes? I need <child> content to be the labelField of each combo box item...
Thanks!
K<mx:Script>
<![CDATA[
var baseDataXML:XML = <root><node><child>Child1</child><child>Child2</child></node></root>;
]]>
</mx:Script>
<mx:ComboBox id="comboDemo"
width="390"
dataProvider="{baseDataXML.node.child}"
labelField="NodeName"/>
Don't do:
baseDataXML = event.result.node.child as XML;
Instead just do:
baseDataXML = XML(event.result);
And in your combo:
dataProvider="{baseDataXML.node.child}" -
Problem in XML Form Builder development
I am developing some KM Navigation iView template with XML Form Builder . I create a label , when it be clicked , relative files will be download to local PC. But the caption of the label is the complete path of the file, not "file down" which I expected.
I need help, Regards.Sonal,
You can check
http://help.sap.com/saphelp_nw2004s/helpdata/en/8f/fe743c74fa6449e10000000a11402f/content.htm
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ee639033-0801-0010-0883-b2c76b18583a
James -
Show user´s name and lastname using XML Form Builder
Hello
I created a XML project with XML Form Builder and i have to show user´s name an lastname in RenderListItem form.Can anybody help me,please? ThanksHi Unai,
check out the description by Patricio in this thread:
https://forums.sdn.sap.com/click.jspa?searchID=78716&messageID=1616027
Hope this helps,
Robert -
Dear All,
I want to read all the data from xml form builder file which is located in KM Folder.
I want to pass all the related data to other third party tool .
how can I pass that data to other tool from KM folder directly .
please give me solution for the same.
Thanks in advance .
Thanks & Regards,
Meghal ShahHi Meghal,
Please have a look at below help link and see if it helps:
http://help.sap.com/saphelp_nw74/helpdata/en/4c/4e889a7ba25fb6e10000000a15822b/content.htm?frameset=/en/4c/4e889a7ba25fb6e10000000a15822b/frameset.htm¤t_toc=/en/b3/72eb4fe26740aeb5d355c6c52e2639/plain.htm&node_id=266&show_children=true#jump266
Regards,
Herman
SAP AGS -
Issue in populating dynamic values in smartform
Hi Experts,
I am facing some serious alignment issue while populating dynamic values in smartform.
Through table, I am populating dynamic values in smart form. If my internal table contains 20 records , first 10 records are populating in first page and remaining records are populating in next page properly. But here issue is whenever that first 10 records are populated in first page system automatically leaves empty row at the end of page. Ideally it should not happen. please tell me how to solve this issue.
thanks
KarthikHi,
I was wondering how are the bold lines output, if you only have one line type... is the Table node executed multiple times under the loop node, where the bold text is implemented as separate text node..? It should IMO actually not affect the output of the table in any negative way if it's done so - just curious
With the "protect" I meant this baby:
You could also try to download and attach only the (upper) node involved in the output of table instead of whole form, if there is something in the form that should not be seen publicly...
cheers
Janis -
How to assign a dynamic value to the value property of a button ?
Hi Folks,
I have a need, can i know how to assign a dynamic value to the value property of a button. Scenario is like follows...
This is a struts based web application
1. I have a file which consists of login user details (user name and his previlages) for a web application.
2. I got those user details, into a List.
3. When a user logged into the web app, in the home page there are few buttons. The type and number of buttons shown depends on the type of user/ user. (Buttons have different combination and the number of buttons available are not constant, they will vary from user to user).
4. for each button, there will be a different action. I can pass the value of a button to an action class, but here button must have a dynamic value.
Here is my test code:
<%
if (List != null)
for (int i = 0; i <List.length; i++)
%>
<html:submit property="rduname" value= "<%=List%>" onclick="return submitRdu('<%=List[i] %>');"/>
<%
%>
But my problem is how to assign a dynamic value to the value property of the button ( i know 'value= "<%=List[i]%>" ' will not work, just wanted show you guys).
Thanks in advance,
UV
Edited by: UV_Dev on Oct 9, 2008 2:15 PMLet me try i know am not good at JSP but do we need double quotes here
value= <%=List%>i think JSTL should help you about the dynamic thing -
XML Form Builder-Problem with the save button
Hi All,
I created a project in XML Form Builder.
I included a button "Save" in my project.
All is working fine when i preview my project in XML Form Builder.
The problem is when i run my project with iview.
I suppose the form to save my input and then to be closed but
unfortunately it did not.
I don't know where the problem is as in the XML Form Builder everything seems ok.
Thank you for your help!
Regards,
AriHi Carsten,
Thank you for your help.
There is no javascript error in the form.
In the status bar when i have my mouse over the button i can see "javaxcript:HrefSubmit('save',"");"
And when push the button "Transering Data..."
I created the form in the Xml Form Builder and in preview there the project works.
What do you mean "Did you access your Form using the KM Admin Explorer via a comman?"
How can i have acess there?
I appreciate you help!
Regards,
Ari -
Default value of the combobox in a table
Hi,
I am facing a strange problem.I have a column of a table of type comboBox.But when I try to retrieve the value of the cell of that table, it returns a blank value to me.I am using table.getValueAt(0,1) function.Where I am trying to retrieve the value of the element in row zero and column 1.
But when I select something in the combobox then that value comes up, but if i don't select anything in the combobox, the default topmost value of the combobox is not returned.
Any suggestions,
Connie.Hi..
my code looks like this:
//to make the second column of the Left table a combobox
TableColumn col = mLeftTable.getColumnModel().getColumn(1);
//col.setCellEditor(new DefaultCellEditor(comboBox));
col.setCellEditor(new MyComboBoxEditor(values));
col.setCellRenderer(new MyComboBoxRenderer(values));
class MyComboBoxRenderer
extends JComboBox
implements TableCellRenderer {
public MyComboBoxRenderer(String[] items) {
super(items);
class MyComboBoxRenderer
extends JComboBox
implements TableCellRenderer {
public MyComboBoxRenderer(String[] items) {
super(items);
public Component getTableCellRendererComponent(JTable table, Object value,
boolean isSelected,
boolean hasFocus, int row,
int column) {
if (isSelected) {
setForeground(table.getSelectionForeground());
super.setBackground(table.getSelectionBackground());
else {
setForeground(table.getForeground());
setBackground(table.getBackground());
// Select the current value
setSelectedItem(value);
return this;
Somewhere in the code i have the following line:
mDataModel1.addRow(new Object[] {mDSPathTextField.getText(),
"aa"});
now my combobox does not add the value aa as it topmost value and makes it selected by default.Can u guide me on what to do?
thx
Connie -
How to reference a file with the XML Forms Builder?
Hello,
I've created a form at the XML Form builder (I am using NW 04). This enables the users to create new topic.
I've created at at the "Edit" form an option to upload a file along with the new topic. The file is being saved in a subfolder of the topics main folder.
My question is how to create a link to the specific file that has been uploaded with it's specific topic at the "Show" Form? Note that the subfolder contains files of many topics, I want to link to this specific file uploaded with it's relevant topic when created. How do I do that?Hi Roy,
> I've created at the "Edit" form an option
> to upload a file along with the new topic.
What I expect that you have done is to add a browse functionality which browses within KM with the possibility to upload an image into KM?! As done within SAP Demo News?!
If that's the way, just compare the SAP Demo News: Create /DataSchema/News/image and map it to the browser, whereas in the show form part you'll map it to an image.
If I didn't understand you right and the issue is still open, please report...
Hope it helps
Detlev -
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 -
XML Forms Builder - problem with checkbox
Hi,
I have created many checkboxes in XML Forms Builder and if I want to create a new document based on this "Form" I have still checked one of checkboxes. I would like to have all empty checkboxes becasue user should check the appropriate checkboxes.
Do you know how to resolve this problem?
Thaks for help!
Regards,
Andrzej TabaraHi,
is it always the same checkbox that is already filled in? Is this ckeckbox based on a metadata-definition?
If yes: You could maybe have a look at the metadata-definition. Is there maybe a default-value defined?
Kind reagrds
Karin -
Error writing output with iview for xml form builder
Hi,
I created a Xml Form Builder's project in which I developed an "Edit" and "ListEdit" sheet.
I also created an iview for theese in which the code link is:"com.sap.km.cm.xmlform",and the field for Style Sheet for List and for single item are set up correctly,but when I tried the preview the following error message happened:
com.inqmy.lib.xsl.xslt.XSLOutputException: Error writing output. -> org.w3c.dom.DOMException: Root Element is already present, cannot be appended as a child.
could someone help me?
thank's a lot!
Nick.Hi,
Now I'm confused,what do you mean with create new data? Are users editing existing documents
(as if they go to a document example.xml > edit) or they are creating new documents (as if they go
on folder > new > forms)?
The problem is, in both cases a user would need read/write permissions.
The normal flow content (data) is created in KM is as follows:
1. user is assigned to a role
2. role contains KM Navigation iView
3. KM Navigation iView executes com.sap.km.cm.navigation component
4. user chooses New > Form UI command (edit_xml_forms)
5. edit_xml_forms UI command executes its code (com.sapportals.wcm.rendering.uicommand.cm.UIXMLFormsCreateCommand) and open xml edit for the user
6. user fill the form and click Save, form is created into folder
For what I understood so far, your requirement basically asks you to go directly to step 5, it is
possible to pass a URL that goes directly to step 5, the UI command button, but if you do that
you won't have a context, so chances that it will work are slim, since a context is required to
fill the parameters asked by the app (like folder, user, permissions, etc). Even though, in some cases you can
still pass the parameters via post in the URL but you must know which service/parameters the
app asks for it, also a URL is static...
That was the create scenario, I think it's more cons than pros, users would still be
able to bypass the URL iView created for that, I'd suggest evaluating again if it's really
a problem having users access cm to manage data
kind regards,
Rafael
Maybe you are looking for
-
Interactive reports in SAP query
I created a SAP query which prints the sales documents numbers..After displaying the ALV list,when I click the sales documet ,it will directly go to the VA03 tcode. Can any body help how to develop it?
-
I downloaded iOS 7 but it won't verify
I downloaded it a while ago, then did not use my iPad. Now it won't verify because it says I am no longer connected to the Internet when obviously I am writing this. How do I fix this?
-
No entry in table T001P when running time eval
Hi, Can someone tell me, why this error occurs. "No entry in table T001P" when running time evaluation PT60. I checked his Infotype 1 and has the Personal Area/Subarea assigned. Thanks, Swarna.
-
Pdf to word, not exporting as a .docx but as a "File"
can anyone help me, when ever i export my pdf file through t he web page it saves just as a "file" and not a .docx which means that i can open the document in word . Help please
-
HELP! Error message during rendering
With only 1 hr. left of an almost 3 hr. process to create the DVD, I got an error message and the process was cancelled! I've started it again but I'm really worried that the same thing will happen. I have to deliver this DVD later this afternoon and