Quantcast
Channel: PTC Community : Popular Discussions - Integrity
Viewing all 3432 articles
Browse latest View live

How to create a report in MKS using java?

$
0
0

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


Promoting SQLTABL through Implementer

$
0
0

Hi, I'm on IM ver 10.2 and our IBM i is at 7.1. We've just begun to experiment with DDL. I was able to successfully create a new table and promote through IM. However, when I made a change to the CREATE TABLE statement and promoted it through IM, the move failed. Looking in the joblog, I see an error CPF320A "member cannot be removed". I read in this forum that IM should recognize the change in the CREATE TABLE and automatically use an ALTER TABLE to modify the existing table. Does anyone have any suggestions?

 

Object code  . . . . . . . . . .   SQLTABL  SQL table (source-based)          

Activity flag  . . . . . . . . :   1            1=Active, 0=Inactive          

Object type  . . . . . . . . . :   *FILE                                      

Object attribute . . . . . . . :   PF                                         

Source member type . . . . . . :   SQLTABL                                    

Default source file  . . . . . :   QSQLSRC                                    

Creation sequence  . . . . . . :   0100         1-ZZZZ                        

Special characteristics  . . . :   SQLTABLS     *DATA, *MERGE, *MAINT, ...    

Object authority . . . . . . . :   *KEEP        *KEEP, *GRANT                 

Remove obj in from env . . . . :   N            Y=Yes, N=No                   

Remove src in from env . . . . :   N            Y=Yes, N=No                   

Creation process . . . . . . . :   C            C=Compile, M=Move             

Archive in MKS Source  . . . . :   Y            Y=Yes, N=No                   

Creation command . . . . . . . :   RUNSQLSTM SRCFILE(#SRCLIB/#SRCFIL) SRCMBR(#S

RCMBR) COMMIT(*NONE) DFTRDBCOL(#FILLIB)                                        

 

 

This is the test script. I first created the table with a single field CACUST with a PRIMARY KEY constraint. Next, I check it out as a change in IM and added the CAHPC field.

======================================

CREATE TABLE CUSTADD (                                                   

  CACUST CHAR(6) CCSID 37 NOT NULL DEFAULT '' ,                          

  CAHPC CHAR(1) CCSID 37 NOT NULL DEFAULT '' ,                           

  CONSTRAINT Q_CUSTADD_CACUST_00001 PRIMARY KEY( CACUST ) )              

                                                                         

  RCDFMT RCUSTADD    ;                                                   

                                                                         

LABEL ON TABLE CUSTADD                                                   

  IS 'Customer additional info' ;                                        

                                                                         

LABEL ON COLUMN CUSTADD                                                  

( CACUST IS 'Customer             ' ,                                    

CAHPC IS 'High                profile             customer' ) ;         

                                                                         

LABEL ON COLUMN CUSTADD                                                  

( CACUST TEXT IS 'Customer' ,                                            

CAHPC TEXT IS 'High profile customer' ) ;                               

                                                                         

GRANT ALTER , DELETE , INDEX , INSERT , REFERENCES , SELECT , UPDATE     

ON CUSTADD TO QPGMR WITH GRANT OPTION ;                                  

Integration of MKS into MATLAB Simulink

$
0
0

Hi,

 

I'm a student from germany working on the integration of MKS into MATLAB Simulink. Via google I found out that there is a possibility to directly link Simulink Blocks to requirements in MKS, but it seems there is an addin or something similar needed (called mksmathworks.exe), to accomplish this integration. My Version of MATLAB meets all the requirements mentioned in this document

ftp://ftp.mks.com/pub/support/integritysoln2009/integrations/Mathworks/readme.htm

and I'm owning a full license of MKS Integrity 2009.

Is there anybody who can tell me how to conduct this integration of MKS into MATLAB and where I can get this mksmathworks.exe, mentioned in the link above.

 

Many thanks in advance

 

Niklas

Automated Test Execution

$
0
0

Hello Everybody,

 

I found in Integrity documentation that it should be possible to run automatically tests.

In the help, it is mentionned that is is possible to find additional information in "Integrating Integrity 2010 for Automated Test Execution" document available from support.

 

I am currently running Integrity 10.6 and I was not able to find the above mentionned document.

 

Thanks in advance for any support on finding this documentation or any other documentation that could help to understand how to use Automated Tests.

 

Regards.

Marc.

Does Integrity Support any SSO Solutions other AD?

$
0
0

Is there anyway we can integrate Integrity with a non AD  identity management services?

 

Thank you

Binesh Kumar

Barry Wehmiller

in MKS Source : Transforming a folder in subproject

$
0
0

Hello,

is there a way to do the change from a folder to subproject (a lot of folder have been created by errors they should be subproject).

 

BR

Lionel

Searching for TortoiseSVN similar functions

$
0
0

Hey,

I am new to PTC and needed to work with PTC since 2 month.

I have 2 years of experience with TortoiseSVN and now i have to get in the new PTC Environment.

 

I wonder where the very simple basic functions which TortoiseSVN comes up with are in PTC.

 

In TortoiseSVN i can simply see in the WindowsExplorer in which Folder is a Change in a file.Tortoisesvnstate1.jpg

I can right click the Folder in the Explorer and will get instantly the Option to see all differences in the Folder lokally compared to the repository .

I will only see the effected Folder and below them the files. Everything else is hidden, because its not interesting.

Then i can also right click in the Explorer on a Folder and see the Log.

I will then see all changes since the Sourcecode got introduced as a new Project in SVN.

I can see each check-In, or in PTC-Language: Change-packages.

I can see a comment to the check-In and i also can see which files changed.

I also can simply see, what Revision i got and what the current Revision is.

 

Ok in PTC, first of all, i can not see it in the Windows Explorer, which is not very neatly, but ok

i gotta deal with it. Next i want to see my lokal changes. but PTC does not give me the Option or i am just to stupid.

I can filter for lokal modifactions in the sandbox-view, but it will still Show up every Folder, no matter if there is a Change in it or not.

Ok i can expand all, then the whole sandbox-Folder-structure get expanded and i can see the modified files,  ¿but i have the whole folderstructure opend ?

I only wanted a tiny overview about my lokal changes, i dont care about the folderstructure at this Point.

Pretty similar case if i have a older file-Version and want to see which files are actually newer.

 

Ok, i can deal with the pretty complicated Views which PTC is providing. I mean i have no choice

But what i really really missing is a overview about the whole Project-Source-Code-History.TortoisesvnHistory.1.jpg

In Tortoise you just right-click the Folder and then press the Button "Log" and will see the whole SourceCodeHistory.

In PTC i can only see a Single-File-History or a Project-History.

- The FileHistory is not very interessting usually. Because why would you check each file for a History.

You rather looking for a overview about all files at a specific Point.

- In the Project-History i only see the specific Time-Stamps where Lables where created. Which is useless for me.

 

UseCase: There is a Team working on a Project.

I use the Project-Result for my own work.

Sometimes the Team get a Bug in the current Project so that the resulting Tool doesn´t work.

But i was in Holidays, bevor Holidays, it worked, after it doesn´t.

But i need the Tool for my work, so i go and want to get a older Project-Version.

Now i could just get the Version bevor my Holidays. But there was maybe a necessary Change after that Moment i dont want to miss.

So i want the last working Version.

But PTC does not Show me every changes in the whole Project over the last couple weeks, so i would be able to pick it myself. Tortoise does that.

Or am i wrong? Is there a way to get a similar function?

 

 

 

TortoisesvnHistoryLog.1.jpg

 

I might just Need some Training, which i possibly won´t get, so please excuse my less knowledge about PTC

 

Any Help?

Use MKS Java Api from MATLAB

$
0
0

Hello PTC community,

i'm trying to call the MKS Java Api from MATLAB (Release 2010b 32 bit).

This is because I want to avoid having an external java-class since our main code is all in MATLAB and running Java classes in Matlab was never an issue before.

 

It all looks good at the beginning, however, when running the cmdRunner-Class, i encounter a Java exception.

Below is an excerpt of the code (MATLAB M-File format) that i'm trying to run. The full m-file with more information is also attached.

 

When I run the same code from an external Java class in the JRE, everything is working fine. (Thus it shouldn't be the connection to the server)

 

Is there somebody who could help me with this? Any help would be greatly appreciated.

 

Thanks,

Stefan

 

javaaddpath('C:\Matlab\WORK\mksapi.jar');

javaclasspath('-dynamic');

import java.util.List;

 

import com.mks.api.*

import com.mks.api.response.*;

import com.mks.connect.*;

 

ipf = IntegrationPointFactory.getInstance();

 

APIVersion=util.APIVersion(4,11); % Was also tested with 4,15

 

IntegrationPoint = ipf.createIntegrationPoint('SERVERNAME',7001,true,APIVersion); 

 

Session = IntegrationPoint.createSession('USERNAME','PASSWORD');

 

CmdRunner = Session.createCmdRunner();

 

% CmdRunner-Test:

CmdRunner.toString()

% Answer:

% com.mks.connect.HttpCmdRunnerImpl@2bce4f

 

cmd = Command(Command.SI,'about');

 

resp = CmdRunner.execute(cmd);

% Answer:

% ??? Java exception occurred:

%

% (no more information...)


User date type field and Relevance

$
0
0

Hi, We' use MKS 2009.  We have a Item that has a User data type field that needs to be relevant (visible) when a Pick data type field is set to Yes.  The Pick data type has no default value and the User data type field is populated with the members of a Group.  The issue is that regardless of the status of the Item, when the Pick data type field is set to Yes, the caption (Text) of the User data type field is shown but not the field itself.  The field is shown only after the change is saved and the Item edited.  See attached.  Is this normal?  Thanks,

Cannot obtain registry lock

$
0
0

What is the fix for the error message in MKS 2009 for the "Cannot obtain registry lock" error when you check in/check out a member?

Software development vs Hardware develoment

$
0
0

Would PTC Integrity be equally useful to develop hardware-based systems than Software systems, or it the tool dedicated to Software development?

ALM: trace between input and test case not possible

$
0
0

We are using the ALM solution and found that creating traces between inputs (input documents) and test cases are not possible.

Traces can only be added between requirements or specifications and test cases.

Traces from inputs can only go to requirements or specifications, not to test cases.

Does anybody know a possible reason?

 

We could add traces (Validated By / Validates) to inputs via administration, but what else has to be done to get traces between inputs and test cases to work?

 

Any help is appreciated.

 

Stephan

How to use third-party tools in Integrity?

$
0
0

Hello, I'm new comer, I want to get some supports from here. We had some problems when learning Integrity system, we want to know it how to use third-party tools, such as, Redmine, Git, Preforce etc.
1. Can be fulfilled in Integrity?
2. If can, how do we do?

Could you give us some advice or solution? Thanks!

Traceability between PTC Integrity and Enterprise Architect

$
0
0

Hi,

 

we want to create a connection between Integrity Items from PTC and packages/ elements from Enterprise Architect. Both tools have IDs with which they can be identified clearly. In the forum I read that there are several possibilities to get data out of PTC Integrity such as using command line scripting, running reports, using gateways, web services, API or trigger scripts.

 

My question is, which of these possibilities would you suggest when you want to connect one integrity item with one or more Enterprise Architect package/s or element/ s. Is there a way using a standard feature of PTC Integrity which helps the developer to get that task done with less changes in Integrity or do you suggest a self-made program which writes in each tool the specific ID/s from the opponent's tool to help the user for example to find the suitable UML diagram in the Enterprise Architect for an already open requirement integrity item of PTC Integrity faster?

 

 

Thanking you in anticipation.

 

 

 

Regards

Dan

Promoting SQLTABL through Implementer

$
0
0

Hi, I'm on IM ver 10.2 and our IBM i is at 7.1. We've just begun to experiment with DDL. I was able to successfully create a new table and promote through IM. However, when I made a change to the CREATE TABLE statement and promoted it through IM, the move failed. Looking in the joblog, I see an error CPF320A "member cannot be removed". I read in this forum that IM should recognize the change in the CREATE TABLE and automatically use an ALTER TABLE to modify the existing table. Does anyone have any suggestions?

 

Object code  . . . . . . . . . .   SQLTABL  SQL table (source-based)          

Activity flag  . . . . . . . . :   1            1=Active, 0=Inactive          

Object type  . . . . . . . . . :   *FILE                                      

Object attribute . . . . . . . :   PF                                         

Source member type . . . . . . :   SQLTABL                                    

Default source file  . . . . . :   QSQLSRC                                    

Creation sequence  . . . . . . :   0100         1-ZZZZ                        

Special characteristics  . . . :   SQLTABLS     *DATA, *MERGE, *MAINT, ...    

Object authority . . . . . . . :   *KEEP        *KEEP, *GRANT                 

Remove obj in from env . . . . :   N            Y=Yes, N=No                   

Remove src in from env . . . . :   N            Y=Yes, N=No                   

Creation process . . . . . . . :   C            C=Compile, M=Move             

Archive in MKS Source  . . . . :   Y            Y=Yes, N=No                   

Creation command . . . . . . . :   RUNSQLSTM SRCFILE(#SRCLIB/#SRCFIL) SRCMBR(#S

RCMBR) COMMIT(*NONE) DFTRDBCOL(#FILLIB)                                        

 

 

This is the test script. I first created the table with a single field CACUST with a PRIMARY KEY constraint. Next, I check it out as a change in IM and added the CAHPC field.

======================================

CREATE TABLE CUSTADD (                                                   

  CACUST CHAR(6) CCSID 37 NOT NULL DEFAULT '' ,                          

  CAHPC CHAR(1) CCSID 37 NOT NULL DEFAULT '' ,                           

  CONSTRAINT Q_CUSTADD_CACUST_00001 PRIMARY KEY( CACUST ) )              

                                                                         

  RCDFMT RCUSTADD    ;                                                   

                                                                         

LABEL ON TABLE CUSTADD                                                   

  IS 'Customer additional info' ;                                        

                                                                         

LABEL ON COLUMN CUSTADD                                                  

( CACUST IS 'Customer             ' ,                                    

CAHPC IS 'High                profile             customer' ) ;         

                                                                         

LABEL ON COLUMN CUSTADD                                                  

( CACUST TEXT IS 'Customer' ,                                            

CAHPC TEXT IS 'High profile customer' ) ;                               

                                                                         

GRANT ALTER , DELETE , INDEX , INSERT , REFERENCES , SELECT , UPDATE     

ON CUSTADD TO QPGMR WITH GRANT OPTION ;                                  


C API Response not working

$
0
0

Hi,

I'm using the C API 4.15 with Integrity 10.7 and Visual Studio 2010.

Creating the integration point, the sesson an the command works without erros.

With "mksCmdRunnerExecCmd" I get a response pointer.

 

Working with this pointer I always get  = null.

- mksResponseGetResult(MyResponse);   = null

- mksResponseGetFirstWorkItem  works, but  mksWorkItemGetResult(workItem)  = null

In all cases the error code  = 0

In the example in  "Always Null response"  there is the same problem.

 

The Java API  and the command line works fine without problems.


Can anybody help ?

 

Is there any logging possibility to find out the problem ?

 

Thanks

Uwe

is it possible to restore a deleted member revision?

$
0
0

Hello,

 

is it possible to restore a deleted member revision on MKS2009?

 

one user just delete revision 1.x. we wanted to add it again using "add member from archive" but integrity tell that the member already exist.

 

Thanks for any suggestion

Error MKS124066: Type "ALM_Requirement Document" does not exist. what reason?

$
0
0

It had happened when I imported a reqiurement document (Integrity v10.6).

 

Thanks!

Need help to create script to automate task..

$
0
0

I want to create one script that will open the PTC Integrity and use it to perform some task. I have listed out the activity that I want to automate below:

Application is PTC integrity. It is linked with database server that has lot of files in it which have unique ID. So I need to use ID to open the document and export it.

Steps:

  1. Open the application.
  2. Open the document using ID.
  3. Export the document to some specific format.

I want to know which scripting to be used to automate this process, i.e., I give array of IDs , the script will open the application and then open the document using IDs and export them till all the IDs are exported. Using Excel VBA can it be done?

Has Integrity Source 10 unicode support (UTF16)?

$
0
0
Has Integrity Source 10 unicode support (UTF16)? (migrated thread) Posted: Mar 15, 2012 9:10 AM

   s.saul    Posts: 68   From: Germany  Registered: Aug, 2004



We are actually on Integrity 2007 and think about upgrading.
There are some Feature requests active for a long time that show the need for unicode (UTF16) support (Integrity Source, possibility to diff, no binary storage).

So does Integrity 10 (Source) support unicode / UTF16?
Re: Has Integrity Source 10 unicode support (UTF16)? Posted: Mar 15, 2012 9:45 AM
Posted By:   mlizak    Posts: 72 /  Registered: Feb, 2011  
Hello Saul,

Unfortunately, that feature has not been currently implemented.  Could you please contact Integrity Support or your current Account Manager to communicate that this is still an important issue for you?

Regards,
Kael

            

Re: Has Integrity Source 10 unicode support (UTF16)? Posted: Mar 22, 2012 3:39 AM
Posted By:   s.saul    Posts: 68 /  From: Germany /  Registered: Aug, 2004  
Thanks for the fast answer.
I contacted support and am now waiting (obviously as many others) for an implementation.
Viewing all 3432 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>