on 12-15-2008 4:27 PM
Hi,
I'm trying to put an xml form I have done into the portal. Unlike most examples I could find in the documentation I only want to have one iview which is a text editor, and another which displays the text. I followed all the instructions, and used the layout set NewsBrowser to display the iview with the text as display only (I have tried this using the Show form and RenderListForm). However, I am unclear what to put in the "Path to Initially Displayed Folder" and "Path to Initially Displayed Folder". The XML form appears to be in the /documents folder under "xmlforms", "xfbuilder", "preview" but if I use this it cannot display the form. I tried to copy the xml files to my own folder /documents/Welcome but it still came up blank. I have also tried to use the xml form from the /etc folder but with no luck. I have the same result when trying to bring up the Edit form too.
Can anyone advise what I'm doing wrong?
Thanks
Cindy
Hi Stewart,
For displaying the xml forms as news you just follow thye steps.
Create the xml forms in xml form builder and generate it .
Create a folder in km (for example documents/testfolder).
Navigate to the folder and on the top there is a menu bar goto folder->new->forms
Inside the forms you can see the list of xml forms there you select your form.
Edit form will appear and enter the values in edit form and save it.
Xml news is created in that folder(testfolder).
Give the folder path in iview as path to initiallly displayed folder and layouyt set as
NewsBrowser.
Now you can view the news.
Just check it.
Regards
Bala
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
When I use a News Explorer I get New SAP Demo News, New Sponsored link etc across the top of the iview - do I need to exlude these? They do not exist in the folder I am referencing but they still appear?
Also the iview shows the final rendered screen, and only displays the text editor if they click on the "Edit" link. When you enter new text and click on preview it displays the old text, and when you save it produces this runtime error:
Runtime Error
An exception occured while processing the request.
-
Additional information: Exception during PageProcessorComponent.doContent()
Exception ID = c092d700-8dad-2b10-b080-9c0b81e24f13
To just show the editor do I need to do the final step you mentioned in that document section 3.6?
>
> When I use a News Explorer I get New SAP Demo News, New Sponsored link etc across the top of the iview - do I need to exlude these? They do not exist in the folder I am referencing but they still appear?
In order to see only YourForm at the top of the iView you need to edit your Folder Settings:
place asterisk "*" in the Forms to Exclude field and provide the name of YourForm in the Forms to include field.
It's difficult to give an advice without deeper details about your business goal, problem, etc. That's why once again i recommend doing exercises from "How to create XML forms" then when you achieve the same results as in the tutorial, you can start to create your own forms.
I did follow the tutorial when I was creating the forms, the only difference being I used only the controls I need on the form. I have also done everything suggested to me so far and nothing makes any difference.
I have just gone back into the XML form builder to check it all yet again and it seems to have lost various settings and I can no longer display the Dataschema and it will not let me select a form for show. It looks like it has corrupted somehow.
I will try from scratch again (this will be the third time!)
Hi Stewart,
I'm not sure about what exactly do you need, but as far I know you want:
- an iView to create/edit a xml document
- an iView to display the document
But before going to PCD and create the iViews let's start with some work on KM
help me with the checklist:
- You have created and generated the XML Form project, which can be found into /etc folder
- Your workplace (where you're running the tests) is /documents/Welcome and you have set the
availbility of your xml form for this folder (as Aliaksandr Zhukau reply)
Now how it's going to work:
The documents created will be into a folder inside /documents, if you use another folder you may get
runtime errors. You have access to KM and can work freely and create the documents, but end users
without admin rights can't access KM, so that's when we must create a KM Navigation iView so the
user can have a view of part of KM and work there.
as for
I am unclear what to put in the "Path to Initially Displayed Folder"
that's where you
set /documents/Welcome
Also, I need to be able to give the user the edit form as an iview
You could instead use a
KM Document iView with a layout set that opens directly the edit form, but that's not good because it's
static, you'd need one iView for each document. I'd advise having a KM Navigation iView where the user
has a view of all documents and edit them by clicking on the context menu and selecting Edit option.
When I use a News Explorer I get New SAP Demo News, New Sponsored link etc across the top
of the iview - do I need to exlude these? They do not exist in the folder I am referencing but they still
appear?
You fix that on Forms Availbility (as Aliaksandr Zhukau explained) or you can change the
layout set to not show any control options (but then users wouldn't be able to create anything anymore)
I have just gone back into the XML form builder to check it all yet again and it seems to have lost
various settings and I can no longer display the Dataschema and it will not let me select a form for
show. It looks like it has corrupted somehow.
It can be the version of your java runtime
environment, try restarting it (or the pc). If you still have the problems with datamodel not appearing, try
creating any object, go on its properties, dataschema and type anything, then the datamodel loads on
the left panel. If still nothing works and the xml forms builder seems corrupted check if others projects
works, if they do it can be the width/height of the forms of the project you were working and change it
from fixed to relative dimensions.
hope this helps, if not fill me in with more details,
Rafael
Edited by: Rafael Martins on Dec 18, 2008 10:45 AM
Thanks for the replies. I had done as you all specified but still it did not work, and so I started again, and as far as I know did everything the same except this time it seemed to work. No idea why but suspect there was something wrong with the original xml form.
My only comment would be for the editing person, who is required to access the editor by an iView and will not have direct access to KM, the context menu appears as a tiny little icon on the far right of the screen - easily missed. Is there any way to make this more prominent?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, Stewart.
Please check step by step tutorial [How_to_create_XML forms.pdf|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/ee639033-0801-0010-0883-b2c76b18583a] until you fully understand a process of creation XML Forms. It's a good how to guide, but it misses one important step - Forms Availability setup.
In CM Configuration navigate to Form-Based Publishing -> Forms Availability -> Folder Settings. Create a new entry with the path where your items are stored (for example - /documents/Welcome) and the name of the XML Forms Project as Forms to Include.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
if you just want to show text, why don't you use an HTML document in KM displayed in a "KM document" iview ?
Sorry for not answering the question, but that could be a way of doing what you want.
Fabien.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
75 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.