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

Get the selected items from Java API

Participant

Get the selected items from Java API

How do I get the selected items in the client from the Java API?

Is there an im-command or is the only way to use System.getenv("MKSSI_ISSUE0")?

4 REPLIES 4

Re: Get the selected items from Java API

Yes, this is - to my knowledge - the way how we do it in Java.

Re: Get the selected items from Java API

Hello Volker,

please could you explaine how it works, maybe with some Java code?

Thanks in advance,

Bernd

Re: Get the selected items from Java API

Hello Bernd,

we assume that we have a custom program written in Java that is executed using the custom menu entry in Integrity.

So the call behind the custom menu will be ..\jre\bin\java -jar ..\myJavaProgram.jar

To recognize now the items or documents that we have selected before the menu call, you can write the following code:

    public static String getDocumentID() {

        return System.getenv("MKSSI_DOCUMENT") == null ? "" : System.getenv("MKSSI_DOCUMENT");

    }  

    public static String getHostName() {

        return System.getenv("MKSSI_HOST") == null ? "" : System.getenv("MKSSI_HOST");

    }   

    public static String getPort() {

        return System.getenv("MKSSI_PORT") == null ? "" : System.getenv("MKSSI_PORT");

    }  

    public static String getUser() {

        return System.getenv("MKSSI_USER") == null ? "" : System.getenv("MKSSI_USER");

    }         

    public static String getIssue0() {

        return System.getenv("MKSSI_ISSUE0") == null ? "0" : System.getenv("MKSSI_ISSUE0");

    }  

Using it, you can get the Integrity details of the items selected. MKSSI_ISSUE0 can also be a list when you have multiple items selected. (MKSSI_ISSUE1, MKSSI_ISSUE2 etc.)

Does this help?

Volker

Highlighted

Re: Get the selected items from Java API

Hello Volker,

yes, it helps.

Thanks for your help

Bernd

Announcements