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

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

Get Part Information where i am on for JSP Site

dwallys
1-Visitor

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

ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

2 REPLIES 2

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.

Announcements


Top Tags