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

CLI command to get the document detail in GUI (document->view)

mkhan-2
1-Visitor

CLI command to get the document detail in GUI (document->view)

Good Morning,

Again my apologies if it is a dumb question. I want to display all the detail via cli command just like I can do it in GUI document->view. I want to process that in a different program.

Thank you for your help.

ACCEPTED SOLUTION

Accepted Solutions

Hello Muhammad,

what about "im viewsegment --xmlapi --fields=text,category 162", whereas the 162 is the document id?

You are getting then xml data which you can process

Does this help?

Volker

View solution in original post

4 REPLIES 4

Hello Muhammad Khan‌,

Unfortunately, what you have requested isn't currently possible.

Which program are you trying to process with?

Regards,
Kael


Kind Regards,
Kael Lizak

Senior Technical Support Engineer
PTC Integrity Lifecycle Manager

I achieve this by using im viewissue --showAttachments --showAttachmentDetails command. Just not sure how to access the child nodes.

Hello Muhammad,

what about "im viewsegment --xmlapi --fields=text,category 162", whereas the 162 is the document id?

You are getting then xml data which you can process

Does this help?

Volker

Hello Muhammad Khan‌, Volker Eckardt,

That will work up to Integrity 10.6, but be aware that the command was never published, and so any scripts relying on that won't work as of 10.7, when that option was removed from the product.  You could get the same effect by using the mksAPIViewer or java -jar <clientInstallDir>/lib/mksapi.jar --iplocal --xml <CLICommand>, as per CS166082.

Regards,
Kael


Kind Regards,
Kael Lizak

Senior Technical Support Engineer
PTC Integrity Lifecycle Manager
Announcements


Top Tags