cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

JSP Plumbing - getting ECR info from a ECN oid

avillanueva
22-Sapphire II

JSP Plumbing - getting ECR info from a ECN oid

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}"&lt;br"/>
serviceName="wt.fc.StandardPersistenceManager"

methodName="refresh">

<jca:addserviceargument value="${argOid}" type="wt.fc.ObjectIdentifier"&lt;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="&lt;%=ecrOid%">"/>

So that is why you see ${argOid} above but it did not display anything.



If someone has a clearer example, please reply.

0 REPLIES 0
Announcements


Top Tags