Skip to Content
Former Member
Apr 14, 2006 at 06:33 AM

XML Form builder


Hello everybody!

There is an XML form (created in XML Forms Builder). I need to create/edit xml files using this form, in the same way as I can do it in the Portal.

I have some code, which should solve my problem, but it isn't work:

IURLGeneratorService generatorService = (IURLGeneratorService) ResourceFactory.getInstance().

IUriReference reference = generatorService.getRelativeUri(PathKey.XML_FORMS_EDIT_PAGE);

UriQuery query = new UriQuery();
query.add("XMLFormID", "btexx_quicknotes");

reference = reference.setQuery(query.toExternalForm());
response.write("<a href="" + reference.toExternalForm() + "" >link</a><br>n");

It opens my XML form, but after clicking “save” button it rises exception:

Cannot read item b0c02216-adad-2810-3180-f457b90bace4.xml
com.sapportals.wcm.repository.InvalidUriException: Invalid RID: b0c02216-adad-2810-3180-f457b90bace4.xml
	at com.sapportals.wcm.repository.ResourceException.fillInStackTrace(

I suppose that there are some other necessary parameters for XML editor, but I don’t know where I can get it.

Does anyone know how to solve my problem?