This may be basic JSP but not sure I have this connected right. I have a
page where the oid is for an ECN. I would like to also display
information about the associated ECR. In my case, I can assume that its
one to one.
I added the following code to get the ECR and map it to a NmOid object
(right?).
<%
Persistable p = (Persistable) (commandBean.getPageOid()).getRef();
NmOid ecrOid = null;
if (p instanceof WTChangeOrder2)
{
WTChangeOrder2 ecn=(WTChangeOrder2)p;
WTChangeRequest2 ecr=null;
QueryResult queryresult =
ChangeHelper2.service.getChangeRequest(ecn, true);
if (queryresult.hasMoreElements())
{
ecr = (WTChangeRequest2)queryresult.nextElement();
ecrOid = new NmOid(ecr);
}
} %>
I would now like to plug the ecrOid into the following getModel block:
<jca:getmodel var="infoModel" descriptor="${panelDescriptor}"<br"/>
serviceName="wt.fc.StandardPersistenceManager"
methodName="refresh">
<jca:addserviceargument value="${argOid}" type="wt.fc.ObjectIdentifier"<br"/>/>
</jca:getmodel>
What I know:
* Can't call out ecr or ecrOid like ${argOid} above. Tried
<%=ecr%> or <%ecrOid%> but I believe they just output text value of
object, right?
* Added this line:
<c:set var="argOid" value="<%=ecrOid%">"/>
So that is why you see ${argOid} above but it did not display anything.
If someone has a clearer example, please reply.