Skip to main content
1-Visitor
June 14, 2013
Solved

Get Part Information where i am on for JSP Site

  • June 14, 2013
  • 1 reply
  • 1817 views

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

Best answer by JørnAHansen

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"%>

1 reply

1-Visitor
June 14, 2013

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"%>

dwallys1-VisitorAuthor
1-Visitor
June 17, 2013

Hi Jørn , it works perfect for me 🙂 Thank you for your help again. Wish you a good week.