Page 1 of 1

Start web application with button.

Posted: Thu May 16, 2024 1:31 pm
by Hansjoerg
Hello everyone,
in PDM you can store a URL for a button. When you press the button, the stored page is opened. I would like to use this function to call up the web interface of our DMS. However, I would like to navigate directly in the DMS to the item selected in the PDM. To do this, however, I have to add the ident number of the component in the PDM to the URL.
Is there a solution for this? Only a static URL is provided in the PDM.

I also have the same problem when calling up our ERP system. Here I can add call parameters to the EXE so that the desired article is opened immediately and the page required for the design is displayed.

You can call up a few values in a process call, but unfortunately the one I need is not included.

Does anyone have any ideas or know of any instructions on how to solve the tasks?

Re: Start web application with button.

Posted: Thu May 16, 2024 1:43 pm
by bnemec
I've thought about adding ways to link from PDM to our ERP item master screen. Only method I know of (that's not full of work arounds) is to have a "Menu add-in" that adds functions to the right click menu and does the opening in the

Code: Select all

case EdmCmdType.EdmCmd_Menu
From there you can collect the data about the file and assemble your URL.

Re: Start web application with button.

Posted: Thu May 16, 2024 2:08 pm
by JSculley
If the built-in values available when connecting the button to a command string aren't what you need, you need to create a custom add-in and have the button run the add-in. Launching a browser with whatever URL info you want is trivial from within an add-in.

Re: Start web application with button.

Posted: Thu May 16, 2024 2:21 pm
by AlexB
It's possible to use a command string as shown here if your information is available in the given options. This google searches your file name for example.
image.png
image.png (9.21 KiB) Viewed 1838 times

Re: Start web application with button.

Posted: Thu May 16, 2024 9:20 pm
by jcapriotti
AlexB wrote: Thu May 16, 2024 2:21 pm It's possible to use a command string as shown here if your information is available in the given options. This google searches your file name for example.
image.png
I've never figured out what the last %% option does. It's not documented. Anyone figure it out?

Re: Start web application with button.

Posted: Fri May 17, 2024 12:01 pm
by JSculley
jcapriotti wrote: Thu May 16, 2024 9:20 pm I've never figured out what the last %% option does. It's not documented. Anyone figure it out?
I believe it adds an actual % character. Since '%' is used to identity the dynamic triggers (%!1 %2, etc), you need to 'escape' the % with another % if you want the % character in the actual command string.

For example, you might need it in a URL that includes encoded characters.

Re: Start web application with button.

Posted: Fri May 17, 2024 7:17 pm
by jcapriotti
Sure wish we could pass variable values

Re: Start web application with button.

Posted: Sat May 18, 2024 4:50 am
by Hansjoerg
jcapriotti wrote: Fri May 17, 2024 7:17 pm Sure wish we could pass variable values
I would like that too.
The way I see it, there's no way around an add-in.
Task, Dispatch, Controll logic and now Add in with VB.NET......

Well, you grow with your tasks :D