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

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

How can I get the current address of the data with the code?

smcvr
14-Alexandrite

How can I get the current address of the data with the code?

I need to define the latest versions of drw data as addresses in SAP. When the user clicks on this address, he should see the picture of his data in the last version. How can I get the current address of the data with the code?

9 REPLIES 9
joe_morton
17-Peridot
(To:smcvr)

What do you want to link to specifically? The visualization of the drawing? 

d_graham
17-Peridot
(To:smcvr)

@joe_morton  a very good question.

 

@smcvr , You say you want a link to “drawing data” what does that even mean? 🤷‍♂️

Be specific.

 

The best way to get an answer to a question is to post a clear question.

smcvr
14-Alexandrite
(To:d_graham)

smcvr_0-1680585576109.png

Hi! @d_graham , @joe_morton 

I want to reach the represantation of the piece. The link above changes with the version of the piece. As this piece is updated, I also need to change the link I defined.

I will define this link as a constant somewhere. How can I get the current version of the part without changing this constant?

HelesicPetr
21-Topaz II
(To:smcvr)

Hi @smcvr 

For your requirement, you need to create own custom jsp page, where you run code to get latest iteration of latest revision. 

You can go to the page with http variable oid or what ever you need and you can use it to search the object you need. 

Then get the redirection to the detail page or whatever you want. 

url example 

smcvr
14-Alexandrite
(To:HelesicPetr)

Hi @HelesicPetr 

How can I create this page? Do you have a document for this?

HelesicPetr
21-Topaz II
(To:smcvr)

Hi @smcvr 

Good start is to learn general overview from Component Catalog in the Windchill

https://server.app.com/Windchill/app/#ptc1/componentCatalog/componentCatalog?oid=OR%3Awt.org.WTUser%3A207&u8=1

go to specific example with detail page where you can find how page is created 

https://server.app.com/Windchill/app/#ptc1/tcomp/infoPage?typeIdForTypeLookup=com.ptc.carambola.customization.examples.infoPage.Carambola

 

Just simple jsp page is located in codebase/netmarkets/jsp/

in my example I used location codebase/netmarkets/jsp/com/ext/EUtility/GoToLatestObject

where GoToLatestObject.jsp is stored. 

 

PetrH

smcvr
14-Alexandrite
(To:HelesicPetr)

I did not understand how to create the JSP file and how to contain code in it?

d_graham
17-Peridot
(To:smcvr)

@smcvr , what @HelesicPetr suggested re:JSP is very doable but the SAP user will need a Windchill license. Do they have licenses?


How are you getting the link to SAP? Just curious. I’m thinking you’re using ESI. True?

 

smcvr
14-Alexandrite
(To:d_graham)

@d_graham 

 We make the SAP connection with the application named connect, the application belongs to integral soft

Top Tags