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

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

How to create a report in MKS using java?

vk
1-Newbie
1-Newbie

How to create a report in MKS using java?

Hi,

I was able to ran the query from command prompt To view the report and then create the report from the existing report with different query.

Please find below for this:

im viewreport “any report name” > somefile.txt(Eg:test.txt)

im createreport –reportTemplateFile=”test.txt” –name=”some name for newly created report” –query=”any query name from Integrity”


Now I need to develop this through Java.

Could you please let me know how can I give the options to view report and createreport. mainly how to give option for file name for viewreport.


I tried with this:

     Command cmd = new Command(Command.IM, "viewreport");

    //cmd.addOption(new Option("selectionFile","../testfile.txt"));

    //cmd.addOption(new Option("report","Report Recipe - Test"));

    //cmd.addSelection("Report Recipe - Test");


    Command cmd1 = new Command(Command.IM,"createreport");@@@@

    cmd1.addOption(new Option("reportTemplateFile","testfile.txt"));

    cmd1.addOption(new Option("query","Alm_All My Work"));

    cmd1.addOption(new Option("name","testreport1"));

Can anybody please help me on this?


Thanks a lot in advance.


Regards,

Vasavi

1 REPLY 1
KaelLizak
14-Alexandrite
(To:vk)

Hello vasavi k‌,

Could you open a case with PTC Integrity Support on this issue?


Regards,

Kael


Kind Regards,
Kael Lizak

Senior Technical Support Engineer
PTC Integrity Lifecycle Manager
Top Tags