Skip to main content
15-Moonstone
April 3, 2023
Question

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

  • April 3, 2023
  • 2 replies
  • 2521 views

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?

2 replies

joe_morton
18-Opal
18-Opal
April 3, 2023

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

18-Opal
April 3, 2023

@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.

smcvr15-MoonstoneAuthor
15-Moonstone
April 4, 2023

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
22-Sapphire II
22-Sapphire II
April 4, 2023

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