cancel
Showing results for 
Search instead for 
Did you mean: 

XML Form - Simple Question

Former Member
0 Kudos

I realise that this is probably very simple, but I am very new to this, so any assistance is much appreciated!

I have created an XML form for company news, and I would like to provide everyone with the ability to create a news item, which would then be submitted for approval.

Which iview do I use/create to point directly to the XML form that allows a user to create a new news item?

ie I want to put have a link "Submit a News Item" which will take the user straight through to the xml form where they can enter the details of the news item.

Thanks in advance for any assistance.

Regards

Richard

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Richard

You can create the XML form using the form Builder. Then you can create a KM navigation iview for displaying the news.You has to change the "path to initially displayed folder" in the property of the iview. Then in the "layout set" make as "NewsExplorer/NewsBrowser" for the admin and the user screen.The "layout set mode" should be "exclusive".

In the admin screen there should be links in the top part for creating new news items. The users are not allowed to create new news. In your case select the layout as NewsExplorer to allow all to create news.

In the Elearing of KM (Intermediate) you can have a look at "XML Forms" eclass.

https://www.sdn.sap.com/sdn/pilot.sdn?page=eL_KM.htm

Regards

Geogi

Former Member
0 Kudos

Hi Geogi, thanks for getting back to me.

I have tried what you suggest previously, but I'm not sure this is what I am looking for.

What I would like to do is the following (sorry if I wasn't clear before):

1. Any user can create a news item (but only create, they can't edit/delete previous news items)

2. The news item that they create, when saved, is submitted for approval by the designated approval user/group

3. Once approved, the news item will display for everyone (in an iview with the layout set to NewsBrowser)

If I use the NewsExplorer layout set, then I get a list of all of the news items that have been created, and as you say, there is a link at the top that allows a new news item to be created (links to the Create Form), but this also allows any user to edit/delete existing news items.

I would like the user to be taken straight to the Create Form, without seeing the list of existing news items (so they can't edit/delete them).

Once they have saved the news item they create, then the document created should enter the approval process which is defined on the folder.

Is there an easy way of doing this?

I have managed to link straight to the Create Form by building a URL iview which points to the same location as the link on the NewsExplorer page (I'm sure there must be a better way?), but I have found that when the user saves the form, it bypasses the approval process.

Looking forward to any suggestions/advice you can give.

Thanks

Regards

Richard

Former Member
0 Kudos

Hi Richard

The approval process can be triggered for the news items also since it is stored in KM. But if the user is having the create access then he is able to see and edit news. If you want only the link in the admin iview go to the NewsExplorer Layout set.In the Collection Renderer there is a property that describes the number of items to be displayed in the render list. Make it as zero..try this

we can wait for some other suggestions if not solved.....

Regards

Geogi

Former Member
0 Kudos

Hi Geogi,

Thanks for your suggestion.

It appears that the solution that I am using currently using (a url iview that points to the Create Form) might be the best way??

I am still having a problem with this though - when a user saves a form, it is not triggering the approval process - the document that is created is immediately visible to the end users, even though I have an approval process in place. Any ideas on what I might have missed?

Thanks

Regards

Rich

PS. Do the newsexplorer/newsbrowser layout sets check the approval status? I have created a document, which has been submitted for approval, and yet it is still visible to all users.....maybe I am missing something with the approval process?

Message was edited by: Richard McGrath

Former Member
0 Kudos

Hi Richard

Automatic triggering of the approval process (without explicitly submitting the document for approval) is not possible by configuration. You have to create repository services for this.

I tried for setting/getting the approval status in the edit form itself. I am able to get the status of the document(news item) but i am not able to set it.You can try in this way to change approval status of a new item created.

Regards

Geogi

Former Member
0 Kudos

Hi Geogi,

thanks very much for your assistance on this - I really appreciate the time and effort that you have put in trying to assist me here.

I read back over my notes on the approval process, and I now don't believe that it is possible to set up the approval process as I want to.

As described above, I wanted everyone to be able to create a document, but then have this document visible to the author and the approver.

Unfortunately, in order to allow anyone to create a document, they must all have read/write access to the directory.

As soon as you have read/write access to the directory, you belong to the authors group, which can automatically see any document which is awaiting approval.

In order not to see the document, you need to have only read access to a directory.

So as a result, I don't think that it is possible to achieve what I was hoping to achieve.

Thank you again for the input you have provided - whilst it may not have solved this problem, it has certainly helped to increase my understanding of the system.

Regards

Richard