Is it possible to connect the API using Windows credentials? For example, if you are using SharePoint, you can send credentials using System.Net.CredentialCache.DefaultNetworkCredentials which sends a "security package" or something like that with your WIndows logon credentials.
Connect API Using Windows Credentials
What is the CLI to check if a subproject exists on the trunk of a project ?
I need a command to check if a subproject already exists on the trunk or mainline of a project.
how do i change an archive type to binary
how do i change an archive type to binary
item relationship column disable issue in Web url access
i accidentally disabled "itemrelationship" column column in WEB : url access(view relationship for an ID). How can i restore the default settings...
I presume i stored the disabled options as default settings for my account.
Things i tried thus far
- reinstall web browser
- check in another user system. it is disabled only for my login only .This points that these settings are stored somewhere in the server for my account settings
set proxy hostname and port with cli
Hello,
I am searching for the command to set via mks cli the hostname and port for a proxy server in Mks client under File->Edit Preferences->Integrity Client->Servers->Proxies.
I tried integrity setprefs --save --command=connect --ui=gui socksProxyHost=blabla but socksProxyHost is not recognized for this command.
Please help me with this topic.
Thank you very much in advance!
Hello,
Please help me with an answer to my question above, I need to make this work asap.
An additional question: is still not possible to import a viewset in the MKS client via CLI ( so when I open the client to have the viewset imported without needing any action from my side ) ? I saw an older post where you said this is not supported by cli yet.
Thank you again!
The "si rlog" CLI command does not accept the --xmlapi option ?
Hello everyone,
I am using PTC Integrity Client 10.6.0.7337
If I run the testrLog.bat batch file below
set cmd_args="{membername} [{revision}] CPID={cpid} {date} description={description} {author}\n"
set days=90
set user_filter=--rfilter=author:someUserName
si rlog --xmlapi --hostname=someHost --port=7010 --user=someUserName --project=t:/mks/archive/SomeProject/project.pj --recurse --format=%cmd_args% --rfilter=daterange::past:%days%:days %user_filter% > rlog.txt
I get an empty xml file
<?xml version="1.0"?>
<Response command="rlog" app="si" version="4.14.7337 0-0 7337">
<App-Connection port="8101" userID="someUserName" server="someHost"></App-Connection>
</Response>
If I run the "si rlog" command without the --xmlapi flag I get a longer list, as expected
member name: Source\src\core\__init__.py; working file:
head: 1.1
member: 1.1
branch:
locks:
locking policy: Exclusive locks mandatory
attributes:
file format: text
revision storage: reverse deltas
total revisions: 1; branches: 0; branch revisions: 0
description:
etc
etc
So, can someone please indicate how to get more information in the XML file by using si rlog --xmlapi ?
Thanks !
What is the CLI to check if a subproject exists on the trunk of a project ?
I need a command to check if a subproject already exists on the trunk or mainline of a project.
Connect API Using Windows Credentials
Is it possible to connect the API using Windows credentials? For example, if you are using SharePoint, you can send credentials using System.Net.CredentialCache.DefaultNetworkCredentials which sends a "security package" or something like that with your WIndows logon credentials.
Search All Items in MKS from CLI
I want to search all the items in MKS for a particular condition from command line interface. But, I'm not getting any such option. MKS CLI offers a command to view multiple items ("im issues") but it is asking for item id. I'm not sure how this command would return multiple items details as one item id can return only one item details.
I can search all the items without knowing the item id or run a query based on a condition using explorer GUI. So, just wondering why similar staff is not there in CLI. Please suggest if this can be achieved using CLI.
--------------------------------------
Best Regards
Sourav Das
si rlog command from Java API doesn't enumerate all file members ?
Hello,
I am using PTC Integrity client Build: 10.6.0.7337
I have a project say X containing 4 file members.
I am interested to see the revision history for these 4 file members.
In CLI it works just fine
si rlog --hostname=someHost --port=somePort --user=someUser --project=SomeProject/project.pj --norecurse --format="{membername}, [{revision}],{author}\n"
I see the revision history for all 4 file members.
However using the Java API I receive information only about 3 of the file members.
Similarly if I check a project with 3 file members, the Java API returns information about 2 file members
Similarly if I check a project with 1 file member, the Java API returns no information !
Therefore I assume there is a bug in the mksapi.jar and always information about one file member is skipped
IntegrationPointFactory factory = IntegrationPointFactory.getInstance();
IntegrationPoint integrationPoint = factory.createLocalIntegrationPoint(APIVersion.API_4_13);
integrationPoint.setAutoStartIntegrityClient(true);
String userNameX = "someUser";
String passwordX = "somePassword";
Session session = integrationPoint.createSession(userNameX, passwordX);
CmdRunner cmdRunner = session.createCmdRunner();
String hostX = "someHost";
int portX = 101;
cmdRunner.setDefaultHostname(hostX);
cmdRunner.setDefaultPort(portX);
HashMap<String, String> options = new HashMap<>();
String commandText = "rlog";
options.put("project","SomeProject/project.pj");
options.put("norecurse",null);
options.put("batch",null);
options.put("nofailOnAmbiguousProject",null);
String cmd_args="{membername}, [{revision}], {author}\n" ;
options.put("format",cmd_args);
Command cmd = new Command(Command.SI, commandText);
for (Map.Entry<String,String > entry : options.entrySet())
{
if (null == entry.getValue())
cmd.addOption(new Option(entry.getKey()));
else
cmd.addOption(new Option(entry.getKey(),entry.getValue()));
}
Response response = cmdRunner.execute(cmd);
WorkItemIterator selection = response.getWorkItems();
while (selection.hasNext())
{
WorkItem workItem = selection.next();
txtArea.append(String.format("workItem: %s (%d)\r\n",workItem.getId(),workItem.getFieldListSize()));
}
cmdRunner.release();
Need help to create script to automate task..
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:
- Open the application.
- Open the document using ID.
- 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?
Does anyone have instructions for modifying an existing Export already in the Gateway tool?
Hi,
I was just wondering if anyone had instructions for updating an existing export.
Thanks,
Ginny M.
Internal unique numeric id of file members, subprojects ?
Hi there,
For example I have a project with 2 file members named "fileéè.txt" "fileàâç.txt" using accented characters in their file names.
Is there available some kind of internal unique numeric id for these two file members ?
The CLI console doesn't display well names with accented characters, I see question marks ???? instead of the real characters, but the Java API is fine in this regard.
Therefore I am thinking to match the "altered" file member names received from CLI with the correct names received by using the Java API,
based on a common internal unique numeric id that these members might have.
How to view identical members on trunk and branch
Hi There,
We are merging code from Trunk to the Branch, and few of the members on the branch are identical to the trunk members, so we want to find out how many branch members are identical to the trunk and update the member revision on the trunk.
Is there anyway we can run a query to view the all identical members on trunk and branch ?
What is the CLI to check if a subproject exists on the trunk of a project ?
I need a command to check if a subproject already exists on the trunk or mainline of a project.
si rlog command from Java API doesn't enumerate all file members ?
Hello,
I am using PTC Integrity client Build: 10.6.0.7337
I have a project say X containing 4 file members.
I am interested to see the revision history for these 4 file members.
In CLI it works just fine
si rlog --hostname=someHost --port=somePort --user=someUser --project=SomeProject/project.pj --norecurse --format="{membername}, [{revision}],{author}\n"
I see the revision history for all 4 file members.
However using the Java API I receive information only about 3 of the file members.
Similarly if I check a project with 3 file members, the Java API returns information about 2 file members
Similarly if I check a project with 1 file member, the Java API returns no information !
Therefore I assume there is a bug in the mksapi.jar and always information about one file member is skipped
IntegrationPointFactory factory = IntegrationPointFactory.getInstance();
IntegrationPoint integrationPoint = factory.createLocalIntegrationPoint(APIVersion.API_4_13);
integrationPoint.setAutoStartIntegrityClient(true);
String userNameX = "someUser";
String passwordX = "somePassword";
Session session = integrationPoint.createSession(userNameX, passwordX);
CmdRunner cmdRunner = session.createCmdRunner();
String hostX = "someHost";
int portX = 101;
cmdRunner.setDefaultHostname(hostX);
cmdRunner.setDefaultPort(portX);
HashMap<String, String> options = new HashMap<>();
String commandText = "rlog";
options.put("project","SomeProject/project.pj");
options.put("norecurse",null);
options.put("batch",null);
options.put("nofailOnAmbiguousProject",null);
String cmd_args="{membername}, [{revision}], {author}\n" ;
options.put("format",cmd_args);
Command cmd = new Command(Command.SI, commandText);
for (Map.Entry<String,String > entry : options.entrySet())
{
if (null == entry.getValue())
cmd.addOption(new Option(entry.getKey()));
else
cmd.addOption(new Option(entry.getKey(),entry.getValue()));
}
Response response = cmdRunner.execute(cmd);
WorkItemIterator selection = response.getWorkItems();
while (selection.hasNext())
{
WorkItem workItem = selection.next();
txtArea.append(String.format("workItem: %s (%d)\r\n",workItem.getId(),workItem.getFieldListSize()));
}
cmdRunner.release();
How do I create a query that gives me all Problem reports that have change packages closed since a specific date?
Our problems have one or more work instructions that have one or more change packages associated with them. I can query to get a list of all work instructions that have changes packages closed since the specified date but I cannot get back to the list of problem reports associated with these work instructions
Where can I download "PTC Integrity" for free (I'm a student)?
Thank you very much for your help!
si rlog command from Java API doesn't enumerate all file members ?
Hello,
I am using PTC Integrity client Build: 10.6.0.7337
I have a project say X containing 4 file members.
I am interested to see the revision history for these 4 file members.
In CLI it works just fine
si rlog --hostname=someHost --port=somePort --user=someUser --project=SomeProject/project.pj --norecurse --format="{membername}, [{revision}],{author}\n"
I see the revision history for all 4 file members.
However using the Java API I receive information only about 3 of the file members.
Similarly if I check a project with 3 file members, the Java API returns information about 2 file members
Similarly if I check a project with 1 file member, the Java API returns no information !
Therefore I assume there is a bug in the mksapi.jar and always information about one file member is skipped
IntegrationPointFactory factory = IntegrationPointFactory.getInstance();
IntegrationPoint integrationPoint = factory.createLocalIntegrationPoint(APIVersion.API_4_13);
integrationPoint.setAutoStartIntegrityClient(true);
String userNameX = "someUser";
String passwordX = "somePassword";
Session session = integrationPoint.createSession(userNameX, passwordX);
CmdRunner cmdRunner = session.createCmdRunner();
String hostX = "someHost";
int portX = 101;
cmdRunner.setDefaultHostname(hostX);
cmdRunner.setDefaultPort(portX);
HashMap<String, String> options = new HashMap<>();
String commandText = "rlog";
options.put("project","SomeProject/project.pj");
options.put("norecurse",null);
options.put("batch",null);
options.put("nofailOnAmbiguousProject",null);
String cmd_args="{membername}, [{revision}], {author}\n" ;
options.put("format",cmd_args);
Command cmd = new Command(Command.SI, commandText);
for (Map.Entry<String,String > entry : options.entrySet())
{
if (null == entry.getValue())
cmd.addOption(new Option(entry.getKey()));
else
cmd.addOption(new Option(entry.getKey(),entry.getValue()));
}
Response response = cmdRunner.execute(cmd);
WorkItemIterator selection = response.getWorkItems();
while (selection.hasNext())
{
WorkItem workItem = selection.next();
txtArea.append(String.format("workItem: %s (%d)\r\n",workItem.getId(),workItem.getFieldListSize()));
}
cmdRunner.release();
Presentation template image-links. Working links break upon returning to edit template.
In Integrity presentation templates I insert an image URL to an image on the server (correct location). The image displays correctly. Later I come back to edit the template, and broken-link icon displays in place of image. Integrity will not allow to save template unless broken-link icons are deleted and new image links created. This has happened to me many times!! Very frustrating. Especially since the archaic grid interface practically requires you to use transparent images to control column-widths.
How do you get around this issue? When will the bug be fixed? (I think I reported it a few months ago...can't remember).