Hello,
when you used the JSPs and tag library of X-Application to create a new document (e.g.
<bdm:action type=“create” schema=“Property”>…</bdm:action> ), the new document is created within the workspace. It has no ino:id. It gets its id if it is committed.
<bdm:action type=“commit” >…</bdm:action>
If you want to display the ino:id after committing the document, you can use
<bdm:display select=“$ID”/>
If you want to access the document via scriptlet
<BR> SessionContext sessionContext = ServletSessionContext.getSessionContext(pageContext);<BR> BusinessDocumentWorkspace ws = sessionContext.getWorkspace();<BR> BusinessDocument doc = ws.lookup("current");<BR> String id = doc.getId();<BR>
Remark: If you define the attribute ‘document’ for your create action, the new document is registered by this name within workspace.
<bdm:action type=“create” schema=“Property” document=“myDoc”>…
You have to use this name, when committig the document
<bdm:action type=“create” document=“myDoc”>…
and when looking up this document
… ws.lookup(“myDoc”);
The name “current” is used by default if no attribute is set.
Does this information help you?
Bye,
Christian.
#webMethods#API-Management#Tamino