Hello Guys,
i created a customized subtab with a link to a new created JSP Site. On that page i want to show some additional informations which i get from the class which i have written for that actions. It works fine for simple return functions. But now i want to pass the Part to the functions, but how do i get the WTPart Information from the current Part Page where i am on?
Thank you for help in advance
Best Regards,
Daniel
Solved! Go to Solution.
Daniel,
Is it something along the lines of this in your jsp you are looking for?
<%@ include file="/netmarkets/jsp/util/begin.jspf" %>
<%@ page import="wt.fc.Persistable" %>
<%@ page import="wt.util.*" %>
<%@ page import="wt.part.*" %>
<%@ page import="wt.fc.*" %>
<%
String oid = request.getParameter("oid");
ReferenceFactory rf = new ReferenceFactory();
Persistable p = rf.getReference(oid).getObject();
WTPart wtp = (WTPart) p;
String num = wtp.getNumber();
%>
<%@ include file="/netmarkets/jsp/util/end.jspf"%>
Daniel,
Is it something along the lines of this in your jsp you are looking for?
<%@ include file="/netmarkets/jsp/util/begin.jspf" %>
<%@ page import="wt.fc.Persistable" %>
<%@ page import="wt.util.*" %>
<%@ page import="wt.part.*" %>
<%@ page import="wt.fc.*" %>
<%
String oid = request.getParameter("oid");
ReferenceFactory rf = new ReferenceFactory();
Persistable p = rf.getReference(oid).getObject();
WTPart wtp = (WTPart) p;
String num = wtp.getNumber();
%>
<%@ include file="/netmarkets/jsp/util/end.jspf"%>
Hi Jørn , it works perfect for me 🙂 Thank you for your help again. Wish you a good week.