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

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Usage of Customize Client

spearson
1-Newbie

Usage of Customize Client

I am trying to create a custom action to open windows explorer in my current sandbox location. I can't see to figure out how to specify the sandbox path in the Custom Action view. Is this possible?

2 REPLIES 2
mrump
14-Alexandrite
(To:spearson)

Hi Steve,

We did the following:

- code a custom Java Application and start it via a custom Button. It must not be in Java, any language you like will do, but due to the Integrity Java API I think JAVA suits best 😉

- In the Application or scrip you have to read the process's environment Variables to get the current selection from the GUI. This gives you among others the Files System Path of the selected sandbox.

- if you have Files System Path simply call an Explorer or what ever tool you like

HTH

JensN.
13-Aquamarine
(To:spearson)

We wrote a batch and then we called this batch without any parameter in a custom action:

set WIN=%MKSSI_WINDOW%

set SUBPROJECT=%MKSSI_SUBPROJECT1%

set SMEMBERPATH=%MKSSI_MEMBER1_SANDBOX%

set SBOXPATH=%MKSSI_SUBPROJECT1_SANDBOX%

set NMEMBER=%MKSSI_NMEMBER%

set NSUB=%MKSSI_NSUBPROJECT%

set NFILE=%MKSSI_FILE%

if %WIN%==sandbox GOTO P0

:P0

if %NMEMBER%==0 GOTO P1

if %NMEMBER%==1 GOTO P2

:P1

if %NSUB%==1 GOTO P3

if %NSUB%==0 GOTO P4

:P2

set x=%SMEMBERPATH%

set x=%x:project.pj=%

echo %x%

explorer.exe %x%

GOTO END

:P3

set x=%SUBPROJECT%

set x=%x:/=\%

set x=%x:project.pj=%

echo %x%

explorer.exe %x%

GOTO END

:P4

set x=%NFILE%

set x=%x:project.pj=%

echo %x%

explorer.exe %x%

GOTO END

:END

kind regards, Jens

Top Tags