cancel
Showing results for 
Search instead for 
Did you mean: 

Migrating XML Forms Documents

Former Member
0 Kudos

Hi All,

Using xml forms we have created a custom news application for our company.

What I need to do is now migrate all the old news items we have into EP6, based on this news app.

I have created xml documents based on the xsl stylesheet and schema provided in the xml project.

But I have two issues.

How to generate the random document Id that the portal creates when you create a new news Item from the create menu.

When I upload my old news xml files in to KM, it fails to recognise or apply the news form to this file. So when I click the file all I see is xml instead on transformed news item based on my xml forms project.

Is there a better way to convert the existing data into xml forms document.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

The problem is, even when I create my news item using the xsl template, it is not recognised as an forms based publishing item. there is a system property "resource type" that needs to be set to the corresponding xml forms project for the KM to recognise the file and render it. Since i cannot populate that property when i manually create the file, it now only opens as an xml document rather than the xml form item.

Former Member
0 Kudos

Hi,

I have the same problem, so any positive solution for ut will be really useful.

former_member748019
Participant
0 Kudos

Hi Ranganath,

can you exactly explain, what kind of XML items you want migrate into EP60 ? For example:

(1) XMLForms items from EP50 ?

(2) some kind of XML data ?

(3) .... ?

Kind Regards

--Matthias

Former Member
0 Kudos

Matthias,

I am migrating xml files from a lotus notes database.

I have created these xml files using the schema provided in the xml project I created.

former_member748019
Participant
0 Kudos

Hi Ranganath,

if I understand you in a right way, you have some kind of XML data (not produced by XMLFormsService) and you want to process them with XMLForms.

I think this is not easy to do. From my point of view, the most complicated thing is to set the ResourceType of your imported XML items. There is no ready to use tool in KM available to set properties afterwards for imported items (e.g. 1000 imported XML items in one folder).

You can reach this by writing your own tool, e.g. you can write a servlet or a report to do this job.

If you have not so much items, its easier to create the items manually by XMLForms, instead of importing data.

Kind regards

--Matthias

Former Member
0 Kudos

Matthias,

You are right, we are tring to migrate external xml data.

We need to migrate about 4 years worth of data (abt 5000 files).

How would I create a servlet or a report to change the resourceType property. Is there some kind of tutorial or instructions that I can follow?

Thanks for your help.

Ranganath

former_member615122
Participant
0 Kudos

Ranganath,

there a good introduction into the reporting API. Check the following link:

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/kmc/implementing customer reports using the km reporting api.article

Hope this helps,

Roland

Former Member
0 Kudos

hi

regarding your second question all your xsl files get generated in etc folder/ xml forms .so you need to upload corresponding xsl to etc folder under KM content to get proper rendering also try to use xml iviews in case opf generation og xml forms.

hope this help you to work arround

please don,t forget to give points.

with regards

subrato kundu