Hello,
I send you two pages and the structure files that I used to generate them. The first one ?create.jsp? is the page that creates a document of doctype RegistryListObject. The page was generated from structure_rim.xml. Within this file, I disabled fields and modified some names within the tag to make them better readable, e.g. the list to iterate the ROL Entries.
The page ?create.jsp? contains the functionality to add new nodes into the ROL Entry list. RegistryListObject is defined as a list of alternatives. By default the type of a new node is the first alternative. It is possible to switch the type of this node. If it?s an Organization, you can edit the values of the attributes of the Organization. At this place, I added a link referring to a sub-page ?editOrganization.jsp?.
<xapp:elementaction type="select" base="ROL-Entries" form="form1">
<a href="javascript:document.forms['form1'].action='editOrganization.jsp';document.forms['form1'].submit();">edit the organization entry</a>
</xapp:elementaction>
The sub-page allows you to modify the Organization node. It was originally generated from structure_org.xml. The changes I made within the structure file:
(1) I corrected the paths for nodes
(2) I added missing loops
The resulting JSP ?create.jsp? was copied to the ROL application with the new name ?editOrganization.jsp?.
Within the generated page I made the following adaptation for it works as a sub-page
(1) I added a base attribute to the enclosing xapp:form tag
(2) I replaced absolute paths ?/Organization? b relative paths ?Organization?
(3) I replaced the reference to ?create.jsp? by ?editOrganization.jsp?.
(4) I replaced the commit action by a link action.
The pages are attached via zip file. You can extract them and try out by invoking the create.jsp directly. I added a check for an existing document.
This is a slightly other approach than yours. I did not check your JSP, for the incorrect paths of the loops. Can you live with the pages I send you?
Bye,
Christian.
PS: the structure file of my last post contains an error: paths for attributes of LocalizedString like ./@lang must be LocalizedString/@lang. It is corrected in structure_org.xml.
subpageCreate-2002-11-08.zip (70.3 KB)
#webMethods#API-Management#Tamino