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

Get Part Information where i am on for JSP Site

SOLVED
Highlighted
Level 1

Get Part Information where i am on for JSP Site

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

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Get Part Information where i am on for JSP Site

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

2 REPLIES 2

Re: Get Part Information where i am on for JSP Site

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

Re: Get Part Information where i am on for JSP Site

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