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

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

MKS field filled by java API

ptc-5385228
2-Explorer

MKS field filled by java API

Hi,

It is possible to fill a field with text from mks window using the java API. The ideea is to call an addon which put some text into a field, egg. "Description" from Create OpenIssue window or any other. The addon is based on MKS Java API.

Thank you for your support.

ACCEPTED SOLUTION

Accepted Solutions
drusu
12-Amethyst
(To:ptc-5385228)

This is possible providing the following assumptions are true:

  1. The item edit operation is initiated through the Java API (eg. user could click a custom button which calls your custom app and that initiates the edit)
  2. A local integration point is used
  3. The Java integration exists on the user's machine (this won't work from a trigger script)
  4. The user must have the Integrity Client installed

Essentially, you would create the editissue API Command with the Option to set the field value of the Description field and also with the "gui" Option. Since the "gui" Option is used, the item edit will be presented to the user in a regular edit window with the Description field prepopulated. The field values that are set by the Java API are only saved if the user clicks OK or Apply and those field values can also be changed by the user (assuming proper editibility permissions etc.).

Please see the Integrations Builder Guide for more details.

Regards,

Dan Rusu

View solution in original post

2 REPLIES 2
drusu
12-Amethyst
(To:ptc-5385228)

This is possible providing the following assumptions are true:

  1. The item edit operation is initiated through the Java API (eg. user could click a custom button which calls your custom app and that initiates the edit)
  2. A local integration point is used
  3. The Java integration exists on the user's machine (this won't work from a trigger script)
  4. The user must have the Integrity Client installed

Essentially, you would create the editissue API Command with the Option to set the field value of the Description field and also with the "gui" Option. Since the "gui" Option is used, the item edit will be presented to the user in a regular edit window with the Description field prepopulated. The field values that are set by the Java API are only saved if the user clicks OK or Apply and those field values can also be changed by the user (assuming proper editibility permissions etc.).

Please see the Integrations Builder Guide for more details.

Regards,

Dan Rusu

ptc-5385228
2-Explorer
(To:drusu)

Thank you for the solution.

I look for a solution to made this with a window initiated by MKS client and then call the addon to fill a specific field, but i guess i can manage this with your solution.

Announcements


Top Tags