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

Login through CLI command

$
0
0

Good morning

I am just wondering if it is possible to login from CLI command? The reason I ask is I have to import data through PTC integrity and into a web based application so if I can login from client computer it can import data for anybody that is using the web application.

Thank you for the help


Modeler: Change line styles?

$
0
0

Hello,

 

How can I change line styles for link items in PTC Integrity Modeler?

 

1) For example, I would like the link lines to run in a rectangular fashion (i.e. parallel to grid lines instead of across), but I can't seem to find the button/option where to set this.

 

2) How can I force links to collapse? This applies for nesting links for example, I'd prefer a design that resembles an file structure rather that a few separate links.

 

 

Thank you!

 

Lisa Moevius

MKSSI command for viewing Subproject config path.

$
0
0

I am aware that MKSSI_PROJECT_CONFIG_PATH command displays the project configuration path.

 

If i had to display the configuration path of a subproject then what would be the command?

 

I would like to know if the below understanding is correct: 

MKSSI_SUBPROJECT" + cnt + "_CONFIG_PATH when a normal subproject is configured as Build.

Due to the above command MKSSI_BUILD environment variable value is not getting set.

im viewissue question

$
0
0

Good afternoon,

I am using the following command

im viewissue  --showAttachments --showAttachmentDetails (showAttachmentDetails and showAttachments are very important for the result set I am expecting).

 

I have 2 questions.

 

1. Is it possible that I can get selected list of fields instead of using im view issue command( because I want only 3 fields and it returns way too many).

 

2. Is it possible to run a "query"  with im view issue? as I need the attachement detail . or is there any command that does it? im issue may be? but I cant find ad attachment flag.

 

Thank you for your help

Can't Get Attachments through API

$
0
0

I can't get attachments to download through the API. I've tried adding "remote://" for both the "cwd" and "outputFile" options but nothing seems to point the command to my local computer. Any idea what I'm missing? Here is my code

 

private string localFolder = Windows.Storage.ApplicationData.Current.LocalFolder.Path;
public void SaveAttachments(int IssueId, string FieldName, List<MKS.ManagedAPI.Item> AttachmentItems)
{
try
{
Command cmd = new Command("im", "extractattachments");
cmd.AddOption("hostname", hostServer);
cmd.AddOption("port", hostPort.ToString());
cmd.AddOption("user", userName);
cmd.AddOption("password", userPassword);
cmd.AddOption("cwd", Path.Combine("remote://", localFolder, IssueId.ToString()));
cmd.AddOption("outputFile", Path.Combine("remote://", localFolder, IssueId.ToString(), AttachmentItems[0].Id.ToString()));
cmd.AddOption("field", FieldName);
cmd.AddOption("issue", IssueId.ToString());

 

if (!APIFactory.IsInitialized)
APIFactory.MKSInitialize();

 

IIntegrationPoint ip = APIFactory.CreateIntegrationPoint(hostServer, hostPort, false, 4, 13);

ISession s = ip.CreateSession(userName, userPassword);
ICmdRunner cr = s.CreateCmdRunner();
IResponse r = cr.Execute(cmd);

 

cr.Dispose();
s.Dispose();
ip.Dispose();

}
catch (Exception ex)
{
ExceptionUtilities.LogException(ex, ex.Message);
}
finally
{
// Nothing.
}
}

 

The error I get is:

im: MKS124822: Invalid value provided for "outputFile": File paths must be rooted in /opt/plm/IntegrityServer10/data/tmp: outputFile is set to /opt/plm/IntegrityServer10/bin/C:\Users\userName\Documents\Visual Studio 2013\Projects\GATestExecutionClient\GATestExecutionClient\bin\x86\Debug\AppX/C:\Users\userName\AppData\Local\Packages\f6931c13-f27d-4e60-849e-9aabd681f391_4vvq3fpr0tnrp\LocalState\24682\icon_home_news_bug.png

I need to integrate codewarrior 10.6 [ Eclipse IDE] with PTC integrity SCM

$
0
0

Hi All,

 

We  have procured PTC integrity for our ALM. We are using codewarrior 10.6 IDE for our code development ( It's a eclipse ( juno 2.2) based IDE). We planned to integrate it with PTC integrity SCM ( software code management) . Would like to know whether its feaasible ?

Always Null response

$
0
0


Hi all,

 

I try to use mks api but without success and don't know why (but i'm a rookie )

I use Visual studio express 2012 and the C api for integrity 10.4 API Version: 4.12.4301.

My problem is i always get NULL response, i try with different command but it's always the same.

 

#include "stdafx.h"
#include "mksapi.h"

 

mksIntegrationPoint ip = NULL;
mksSession session = NULL;
mksCmdRunner cr = NULL;
mksrtn rtn = MKS_SUCCESS;

mksCommand MyCmd;
mksResponse MyResponse;
mksResult MyResult;
mksItem MyItem;

mksField field = NULL;
mksWorkItem wi = NULL;
wchar_t summary[1024];
wchar_t userlogin[1024];
wchar_t newId[256];

 

int _tmain(int argc, _TCHAR* argv[])
{

  rtn = mksAPIInitialize(NULL);
  rtn = mksCreateIntegrationPoint(&ip, "myserver",7001,0);
 
  rtn = mksGetCommonSession(&session, ip);
 
  rtn = mksCreateCmdRunner(&cr, session);
  /* Setup defaults for the mksCmdRunner.*/
  rtn = mksCmdRunnerSetDefaultHostname(cr, "myserver");
  rtn = mksCmdRunnerSetDefaultPort(cr, 7001);
  rtn = mksCmdRunnerSetDefaultUsername(cr, "IntegrationUser");
  rtn = mksCmdRunnerSetDefaultPassword(cr, "secret");

  MyCmd=mksCreateCommand();
  MyCmd->appName = _T("im");
  MyCmd->cmdName = _T("about");

  MyResponse = mksCmdRunnerExecCmd(cr,MyCmd,NO_INTERIM );
  MyResult = mksResponseGetResult(MyResponse);
  MyItem = mksResultGetPrimaryValue(MyResult);
  rtn = mksItemGetId(MyItem, newId, sizeof(newId));
  rtn = mksGetError();
 

 

  mksAPITerminate();
  return 0;
}

 

What am i doing wrong ?

Large Item History causes: Unbuffered entity enclosing request can not be repeated

$
0
0

Some of our items with lots of history cause an error.  There is about a 2 minute delay as it tries to process the item, and then throws this error:

 

EXCEPTION: com.mks.api.response.APIConnectionException: Unbuffered entity enclosing request can not be repeated.

sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

java.lang.reflect.Constructor.newInstance(Unknown Source)

java.lang.Class.newInstance(Unknown Source)

com.mks.api.response.APIExceptionFactory.getAPIExceptionObject(APIExceptionFactory.java:134)

com.mks.api.response.APIExceptionFactory.createAPIException(APIExceptionFactory.java:80)

com.mks.connect.AbstractCmdRunner.executeCommand(AbstractCmdRunner.java:317)

com.mks.connect.AbstractCmdRunner.executeCommand(AbstractCmdRunner.java:242)

com.mks.connect.AbstractCmdRunner.execute(AbstractCmdRunner.java:394)

foo.bar.MksClient.buildIssue(MksClient.java:268)

 

Code causing error:

----------------------------------------------

Command cmd = new Command();

cmd.setApp( Command.IM );

cmd.setCommandName( "viewissue" );

cmd.addOption( new Option( "showHistory"));

cmd.addOption( new Option( "showAnnotations"));

cmd.addSelection( issueId );

Response respViewissue  = cmdRunner.execute(cmd); // exception occurs here

 

If I remove the "showHistory" option it runs without problems, but obviously we don't get the history, which we want.

 

Is there some server setting we can change so the API will work with large items with lots of history?  We're running on JBoss.

 

It looks like it may be a looping issue though.  This item refers to another item, which refers back to this item.


Has anyone successfully run Integrity PC Client in a Citrix environment

$
0
0

Has anyone successfully run Integrity PC Client in a Citrix or other VM environments?

10.8: Multiple Sandboxes on same Folder?

$
0
0

Hello,

 

We are working with Integrity 10.5. I have seen that in 10.8, there are no project.pj files in the sandboxes anymore (all sandboxes kept in local database).

Does this mean that we could have multiple sandboxes (from the same project) in the same folder?

We are especially interested in having multiple sandboxes from different user PCs pointing to one sandbox on a network drive.

This could help replacing our shared sandboxes...

 

Any info is appreciated.

 

Regards,

Stephan

What do you wish you had learned sooner about Integrity?

$
0
0

My role in my company is changing soon. I've prepared a lot of documentation for newer users, but was wondering if you in the community have additional ideas?

 

What would you say are  2-3 most useful things you learned LATE about Integrity-- that is, what do you wish you had understood earlier? For example, my list would include:

1- How to multi-edit a list of items

2- How relationship fields are set-up, and how they work

3- How Export puts priority on local vs. server configuration files and templates

4- How to configure email alerts for myself on the Web interface

etc.

 

Anything *you* would put on the list?

 

Bob

Is it possible to run a sql command from a trigger?

$
0
0

I have defined an executeCmdAs with the following command "im diag --diag=runsql --param=select login from mksdomainusers".  However, the following error is returned: "Runsql Diagnostic: SQL Statement execution failed: Invalid SQL type: sqlKind = UNINITIALIZED"

 

 

Thank you,

 

Paul Hartwig

How can I delete an attribute from the roundtrip-configuration ?

$
0
0

I have a doors-module with an already defined attribute.

But now I have to re-create it from a RIF-file [which has to be imported].

Nevertheless if a rename or delete this attribute, it stays valid in the roundtrip configuration and is therefore not imported and raises an error in the report.

 

Any suggestions ?

 

Than you,

Thomas MIGLINCI

IIS 7.5 generating empty xml after website is published

$
0
0

Good Morning,

When I run bat file on my local host it runs fine. After publishing it on the server it generates empty XML file this is the command I am running

im viewsegment --xmlapi > test.xml --user="user" --password="Pass" --fields=ID,"Text English" 1235545. I am not sure what needs to be done as I have given all the appropriate permissions on the folder.

Any help will be greatly appreciated.

How to tell CheckOut to keep changes on :working member in a sandbox?

$
0
0

Hi,

 

have some trouble using PTC Integrity ... hope it´s due to my beginner status

 

Usecase:

(0) setup a sandbox

(1) have a binary file member

(2) make working file writable

(3) apply some changes in the sandbox (to the working file)

(4) do a CheckOut to bring the changes under source control

(5) the CheckOut always (regardless of any settings in the UI, e.g. "overwrite working file if changed") overwrites the "local" changes in the sandbox with the content from the server! (similar as Resynchronize command)

 

If I do the same workflow on a ASCII/Text file, then the CheckOut keeps the local changes in the sandbox, which is absolutely what I expect and want.

 

To me it seems that Integrity behaves totally different for binary files as for ASCII files.

How can I change the behavior to always keep local changes in the :working file on a CheckOut?

 

Integrity Version 10, Build 10.5.0.5479

 

Thanx in advance

Markus


Is there a way to revert to a previous version of a member in Config Mgmnt?

$
0
0

My user wants to roll back a member to a previous version.  I know there is a way to do this in other tools.  Can PTC Integrity do this?

 

Thanks,

Ginny

I need to integrate codewarrior 10.6 [ Eclipse IDE] with PTC integrity SCM

$
0
0

Hi All,

 

We  have procured PTC integrity for our ALM. We are using codewarrior 10.6 IDE for our code development ( It's a eclipse ( juno 2.2) based IDE). We planned to integrate it with PTC integrity SCM ( software code management) . Would like to know whether its feaasible ?

Web service Proxy Authorization Required( 'http://www.w3.org/2005/05/xmlmime')

$
0
0

Hi,

I'm trying to test PTC  web services  in Visual Studio by adding a web reference to a project.

 

I've been able to successfully test
http://integrityserver:7001/webservices/2009/7/Source/?wsdl

 

where (integrityserver is the name of our server). I can see the 25 methods of the /Source web service

 

However when I add a web reference for

http://integrityserver:7001/webservices/10/2/Integrity/?wsdl

 

I get the error below from Visual Studio

 

The document was understood, but it could not be processed.
  - The WSDL document contains links that could not be resolved.
  - There was an error downloading 'http://www.w3.org/2005/05/xmlmime'.
  - The request failed with HTTP status 407: Proxy Authorization Required.
There was an error download

 

Other tools like SoapUI don't work as well asking for authentication too.

 

Why  is this 'http://www.w3.org/2005/05/xmlmimeURL blocked by the proxy server in this context ?

( I can certainly access 'http://www.w3.org/2005/05/xmlmime in my browser without problems)

 

Thanks !

useful custom commands

$
0
0

Hi,

 

i'm looking for some useful custom commands.

At the moment we have custom commands for:

 

Copy SI Link to clipboard

Copy IM Link to clipboard

View Sandbox in Windows Explorer

 

i would be pleased if i get some new ideas (or a we can create a list) of useful custom commands (maybe with code)

Is the process of migraion from RCS to database repository same for the production and staging server? If yes, how is it differnert for staging server?

Viewing all 3432 articles
Browse latest View live


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