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

Is it possible to change the Data Type of a field (e.g. from integer to shorttext)??

$
0
0

I want to change the data type of a field from integer to shorttext (so that instead of value 1234 the value 1234a is possible). As far as I can see this can't be done by "Overrides for fields", since the dropdown-menu for data-type is disabled. Are there any possibilities besides creating a new field?

Thanks!!


display of fields

$
0
0

Is there a way to independently control the size of a field in an Integrity item view? The field definition allows me to change the number of lines/rows for a long-text field, but that definition is applied by Integrity to every project and view that includes the field. I am only able to control field width by changing the grid-cell size in the "presentation" for the item. Is there some way to code field height and width for a particular view?

Java MKS Api Crash viewsandbox

$
0
0

 

Hallo,

 

 

 

wir versuchen derzeit über eine jarfile eine Verbindung mit Integrity aufzubauen und Befehle auszuführen. Der Aufbau und das Ausführen von Befehlen läuft einwandfrei, bis auf der "si viewsandbox" Befehl. Wenn wir diesen mit einer kleinen Sandbox ausführen wollen klappt alles, aber beim Ausführen des Befehls bei einer riesigen Sandbox bekommen wir die Folgende Fehlermeldung:

 

Hello,

 

 

we try to build a connection to Integrity with a jarfile, by using the Java MKS api, to execute some si commands. The Connection and execution of the commands works fine, except the "si viewsandbox" command. When we try to execute the "viewsandbox" command with tiny sandboxes, it works fine, but if we try to execute the command with a huge sandbox, we get the following error message:

 

 

 

#

 

# A fatal error has been detected by the Java Runtime Environment:

 

#

 

# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000000, pid=4984, tid=3628

 

#

 

# JRE version:  (7.0_40-b43) (build )

 

# Java VM: Java HotSpot(TM) Client VM (24.0-b56 mixed mode windows-x86 )

 

# Problematic frame:

 

# C 0x00000000

 

#

 

# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows

 

#

 

# If you would like to submit a bug report, please visit:

 

# http://bugreport.sun.com/bugreport/crash.jsp

 

#

 

 

 

--------------- T H R E A D  ---------------

 

 

 

Current thread (0x0054dc00):  JavaThread "main" [_thread_in_Java, id=3628, stack(0x010a0000,0x10aa0000)]

 

 

 

siginfo: ExceptionCode=0xc0000005, ExceptionInformation=0x00000008 0x00000000

 

 

 

Registers:

 

EAX=0x00100000, EBX=0x52aada90, ECX=0x12aa0da0, EDX=0x00500001

 

ESP=0x10a9edf0, EBP=0x10a9ee18, ESI=0x10a9edf4, EDI=0x10a9ee1c

 

EIP=0x00000000, EFLAGS=0x00010216

 

 

 

Top of Stack: (sp=0x10a9edf0)

 

0x10a9edf0:   10aa347b 12aa0da0 10a9edf8 52ab76ab

 

0x10a9ee00:   10a9ee1c 52b0d648 00000000 52ab76e8

 

0x10a9ee10: 10a9edf4 10a9ee20 10a9ee3c 10aa03d7

 

0x10a9ee20: 10a9ee70 10a9ee4c 639be6e2 00001f80

 

0x10a9ee30: 10aa0372 0054dc00 52ab76e8 10a9eebc

 

0x10a9ee40: 639bee1a 10a9ee70 10a9ef44 0000000a

 

0x10a9ee50: 52ab76e8 10aa9800 10a9ef54 00000000

 

0x10a9ee60: 0054dc00 0054dc00 0054dc00 00000004

 

 

 

Instructions: (pc=0x00000000)

 

0xffffffe0:

 

 

 

 

 

Register to memory mapping:

 

 

 

EAX=0x00100000 is an unknown value

 

EBX=0x52aada90 is an oop

 

{method}

 

- klass: {other class}

 

ECX=0x12aa0da0 is an oop

 

  1. java.lang.Class

 

- klass: 'java/lang/Class'

 

EDX=0x00500001 is an unknown value

 

ESP=0x10a9edf0 is pointing into the stack for thread: 0x0054dc00

 

EBP=0x10a9ee18 is pointing into the stack for thread: 0x0054dc00

 

ESI=0x10a9edf4 is pointing into the stack for thread: 0x0054dc00

 

EDI=0x10a9ee1c is pointing into the stack for thread: 0x0054dc00

 

 

 

 

 

Stack: [0x010a0000,0x10aa0000],  sp=0x10a9edf0,  free space=255995k

 

 

 

--------------- P R O C E S S  ---------------

 

 

 

Java Threads: ( => current thread )

 

=>0x0054dc00 JavaThread "main" [_thread_in_Java, id=3628, stack(0x010a0000,0x10aa0000)]

 

 

 

Other Threads:

 

0x56e40c00 VMThread [stack: 0x57060000,0x570b0000] [id=5364]

 

 

 

VM state:not at safepoint (normal execution)

 

 

 

VM Mutex/Monitor currently owned by a thread: None

 

 

 

Heap

 

def new generation   total 157248K, used 2795K [0x12aa0000, 0x1d540000, 0x27ff0000)

 

  eden space 139776K,   2% used [0x12aa0000, 0x12d5ae88, 0x1b320000)

 

  from space 17472K,   0% used [0x1b320000, 0x1b320000, 0x1c430000)

 

to   space 17472K,   0% used [0x1c430000, 0x1c430000, 0x1d540000)

 

tenured generation   total 349568K, used 0K [0x27ff0000, 0x3d550000, 0x52aa0000)

 

the space 349568K,   0% used [0x27ff0000, 0x27ff0000, 0x27ff0200, 0x3d550000)

 

compacting perm gen  total 12288K, used 518K [0x52aa0000, 0x536a0000, 0x56aa0000)

 

the space 12288K,   4% used [0x52aa0000, 0x52b21aa8, 0x52b21c00, 0x536a0000)

 

No shared spaces configured.

 

 

 

Card table byte_map: [0x56aa0000,0x56cd0000] byte_map_base: 0x56a0ab00

 

 

 

Polling page: 0x001c0000

 

 

 

Code Cache  [0x10aa0000, 0x10ae8000, 0x12aa0000)

 

total_blobs=39 nmethods=0 adapters=18 free_code_cache=32499Kb largest_free_block=33278912

 

 

 

Compilation events (0 events):

 

No events

 

 

 

GC Heap History (0 events):

 

No events

 

 

 

Deoptimization events (0 events):

 

No events

 

 

 

Internal exceptions (0 events):

 

No events

 

 

 

Events (10 events):

 

Event: 0.015 loading class 0x00b0bd30 done

 

Event: 0.015 loading class 0x00b0bd10 done

 

Event: 0.015 loading class 0x00b16d50

 

Event: 0.015 loading class 0x00b16d50 done

 

Event: 0.015 loading class 0x00b13e28

 

Event: 0.015 loading class 0x00b13e28 done

 

Event: 0.015 loading class 0x00b1af98

 

Event: 0.015 loading class 0x00b1af98 done

 

Event: 0.015 loading class 0x00b1afc0

 

Event: 0.015 loading class 0x00b1afc0 done

 

 

 

 

 

Dynamic libraries:

 

0x002e0000 - 0x0030f000 C:\Program Files\Integrity\IntegrityClient\jre\bin\java.exe

 

0x77090000 - 0x77210000 C:\Windows\SysWOW64\ntdll.dll

 

0x754b0000 - 0x755c0000 C:\Windows\syswow64\kernel32.dll

 

0x76c40000 - 0x76c87000 C:\Windows\syswow64\KERNELBASE.dll

 

0x76710000 - 0x767b0000 C:\Windows\syswow64\ADVAPI32.dll

 

0x76b90000 - 0x76c3c000 C:\Windows\syswow64\msvcrt.dll

 

0x74f60000 - 0x74f79000 C:\Windows\SysWOW64\sechost.dll

 

0x74c10000 - 0x74d00000 C:\Windows\syswow64\RPCRT4.dll

 

0x74bb0000 - 0x74c10000 C:\Windows\syswow64\SspiCli.dll

 

0x74ba0000 - 0x74bac000            C:\Windows\syswow64\CRYPTBASE.dll

 

0x764c0000 - 0x765c0000 C:\Windows\syswow64\USER32.dll

 

0x74d00000 - 0x74d90000 C:\Windows\syswow64\GDI32.dll

 

0x765c0000 - 0x765ca000 C:\Windows\syswow64\LPK.dll

 

0x75350000 - 0x753ed000 C:\Windows\syswow64\USP10.dll

 

0x73300000 - 0x7349e000 C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_41e6975e2bd6f2b2\COMCTL32.dll

 

0x75420000 - 0x75477000 C:\Windows\syswow64\SHLWAPI.dll

 

0x74f00000 - 0x74f60000 C:\Windows\system32\IMM32.DLL

 

0x75280000 - 0x7534c000 C:\Windows\syswow64\MSCTF.dll

 

0x74880000 - 0x748c6000 C:\PROGRA~2\Sophos\SOPHOS~1\SOPHOS~1.DLL

 

0x76230000 - 0x76235000            C:\Windows\syswow64\PSAPI.DLL

 

0x65810000 - 0x658ce000 C:\Program Files\Integrity\IntegrityClient\jre\bin\msvcr100.dll

 

0x63880000 - 0x63c00000 C:\Program Files\Integrity\IntegrityClient\jre\bin\client\jvm.dll

 

0x6c600000 - 0x6c607000 C:\Windows\system32\WSOCK32.dll

 

0x76b50000 - 0x76b85000 C:\Windows\syswow64\WS2_32.dll

 

0x77060000 - 0x77066000 C:\Windows\syswow64\NSI.dll

 

0x73500000 - 0x73532000 C:\Windows\system32\WINMM.dll

 

0x6f8b0000 - 0x6f8bc000 C:\Program Files\Integrity\IntegrityClient\jre\bin\verify.dll

 

0x6f890000 - 0x6f8b0000 C:\Program Files\Integrity\IntegrityClient\jre\bin\java.dll

 

0x6f870000 - 0x6f883000 C:\Program Files\Integrity\IntegrityClient\jre\bin\zip.dll

 

0x6c510000 - 0x6c5fb000 C:\Windows\system32\dbghelp.dll

 

 

 

VM Arguments:

 

jvm_args: -Xss250M -Xms512M -Xmx1G

 

java_command: C:\_projects\jenkins\run_and_log\MKS_connect_no_gui\mks_connect_test.jar C:/_projects/jenkins/DEV_m6.54.0.3/project.pj muell.txt

 

Launcher Type: SUN_STANDARD

 

 

 

 

 

Ist Ihnen ein solcher Fehler bekannt und gibt es dafür eine Lösung?

 

Do you know something about this and is there a solution?

 

 

 

Weitere Frage: Was bedeutet die Fehlermeldung com.mks.frame.ui.ViewException?

Another Question: What does "com.mks.frame.ui.ViewException" mean?

 

 

 

Mit freundlichen Grüßen,

Best reagards,

 

Alexander Nikic

 

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

Expand All in Relationship View of Query in Integrity?

$
0
0

relationship view of query.GIF

 

Does anyone know how to "Expand All / Collapse All" in a Relationship View of a query?  Relationship View is very cool... but who wants to click each and every item and related item to display all data?! 

MKS Integrity 2009 starup error

$
0
0

Hi,

 

The MKS Integrity Client 2009 produces an error when I try to open the application, and blocks out my computer. The error is an window with title "Error" and the only text "-1", and thats all. The application enters a loop showing this error, and have no other choise than reestart the computer.

 

I'm running MKS Integrity Client 2009 with service pack 6 in a Windows XP Pro computer for more that a year without any problem. The error started after I installed either the last Windows XP updates (around 8th to 10th -Oct-2013) or LabView 2010.

 

This is the error windows:

2013-10-13 10_45_09-MKS Source Integrity ViewSet - MKS Integrity 2009.png

 

I tried installing service pack 7, but the error persists.

 

Did someone have this error?

 

Cheers,

Pedro

Sort Defects by Creation Date in Report

$
0
0

I have a report that includes all the defects from a test session. How can I sort them by a given field? Also, how can I sort them by their creation date?

xpath and docx exports

$
0
0
xpath and docx exports (migrated thread) Posted: Aug 22, 2012 2:05 PM

jjohnson 

Posts: 5
  Registered: Jul, 2012


First off, the documentation on this stuff needs some work.  I couldn't find anything on this website that talks about xpath.  You have to actually download their docs before you even see it mentioned...

Here's what I'm trying to do.  Its a little more complicated than I'm going to describe here, but if I can get this bit to work, I can figure out the rest. 

I want to have a query that says: if this category=heading, and it has a descendant with a particular value in another field, do something.  You can't nest IF statements from what I've read (though I haven't actually tried it).  I would expect my code to look something like this (forgive the syntax):

I've created a field called 'columncount'

<%if(({Category}=="Heading") and ({xpath:name(./@columncount)}=="5"))%>
True
<%else%>
False
<%endif%>

From experimentation with xpath, I can only seem to get it to count things and to spit out "Category" and "Item" using 'name'.  So if I do name() I get 'Item', or if I do name(@*) I get 'col09' which is a field I created, but no idea why its returning it (its not the first or last field etc).  If I do name(//@*) I get 'Category'.

For giggles I did this:

<%{Section}%>
<%{xpath:name(*)}%>
<%{xpath:name(//@*)}%>
<%{xpath:name(*[@*])}%>
<%{xpath:name(node())}%>

Which should return the values of all of those for each line in a document. Whats interesting is that for everything thats <= 2 levels deep, i.e.:
1 (1 level)
1.1 (2 levels)
1.1.1 (3 levels)

I get:

1 - the section number
Item
Category
Item
Item

For > 2 levels I get

1.1.1
Category

I'm no expert with xml or xpath, but since there's a huge lack of documentation on this, I can only experiment and draw my own conclusions.  None of the example export files seem to go into much detail or do anything particularly fancy.

Why are there no nested IF statements?  No For loops, no variables or functions? 

    

          

Re: xpath and docx exports Posted: Aug 22, 2012 4:02 PM
Posted By:   jjohnson    Posts: 5 /  Registered: Jul, 2012  
I think I can simplify the problem a bit:

How do I write into my docx something that will tell me the previous line's category or the next lines category, without actually getting to that line so:

if (category of current line) = comment then
  give me the category of the previous line
endif

  

          

Re: xpath and docx exports Posted: Aug 24, 2012 4:54 AM
Posted By:   matthias.rump    Posts: 166 /  Registered: Mar, 2008  
Hi Mr Johnson,

to be honest, I'm a little confused about yout intention in using the Word Export.

As far as I know the main intention of this feature is to Export Requirements Documents from Integrity. For this usecase you would normally not need any xpath expression.

If you have a field named "columncount" you can access it in the word template via <%{columncount}%>.

It is possible to use IF-clauses in the word template e.g.
lt;%beginContent%>


<%beginLevel 1%>
<%if ({RQ_Category} == "Heading")or({RQ_Category} == "Document")%>
1     <%{RQ_Text} richcontent="false"%>
<%elseif {RQ_Category} == "Comment"%>
<%{RQ_Text}%>
<%else%>
MKS ID =  <%{ID}%>
EC-Kategory= <%{RQ_Category}%>     Status = <%{State}%>
Custom ID:
<%{Custom_ID}%>     Einstufung (Kunde):
<%{EPEC_CustomerCategory}%>     Ansprechpartner:
<%{ContactPerson}%>
Quelle:
<%{RQ_Text}%>
Datum      Kommentare
<%{RQ_Revision Date}%>     <%{EPEC_Comment}%>

<%endif%>
<%endLevel%>

<%beginLevel 2%>
<%if ({RQ_Category} == "Heading")or({RQ_Category} == "Document")%>
1.1     <%{RQ_Text} richcontent="false"%>
<%elseif {RQ_Category} == "Comment"%>
<%{RQ_Text}%>
<%else%>
MKS ID =  <%{ID}%>
EC-Kategory= <%{RQ_Category}%>     Status = <%{State}%>
Custom ID:
<%{Custom_ID}%>     Einstufung (Kunde):
<%{EPEC_CustomerCategory}%>     Ansprechpartner:
<%{ContactPerson}%>
Quelle:
<%{RQ_Text}%>
Datum      Kommentare
<%{RQ_Revision Date}%>     <%{EPEC_Comment}%>

<%endif%>
<%endLevel%>

<%beginLevel 3%>
.....


  

          

Re: xpath and docx exports Posted: Aug 24, 2012 1:03 PM
Posted By:   jjohnson    Posts: 5 /  Registered: Jul, 2012  
FYI, I'm using Integrity 10.0 in case you were curious - not that it really makes a difference here.

Sorry if what I wrote was a bit confusing.  Our customers are fairly insistent on the kinds of documents we give them.  Its not very practical for us to have to change the export document every time they want to add or remove a requirement, so formatting every line in the export Word document for every line in the requirement document can be time consuming, so I've written a fairly dynamic export document that will allow for changes and additions to the requirements document. 

I've added a number of fields that can be used in a somewhat dynamic manner. I have a field called Column Count which is basically just a way for the user to specify how many columns (fields) are used in that section. Next to that I have col01, col02, col03 up to col10.  I use this to generate a table.  When the gateway looks at the requirements document and sees a number in the column count, it uses a section of my word export document that has that number of columns prepared for it and fills them accordingly.

Its difficult to describe without actually showing you.  The customer has a document that they want our requirements output to look like so we have to work within those constraints.  In that document is a few tables on pages that are set to landscape instead of portrait.  In word you do this by creating a 'next page' section break before and after the section you want to be landscape. 

I was trying to figure out a way to have the word export file determine which tables were going to have more than a certain number of columns (in my case 6 or more) and have it automatically insert the needed section breaks.  Obviously I could do this if I was hitting each row at a time in the export document (i.e. using 'beginLevel') but because I'm trying to keep this as dynamic as possible I was trying to figure out a way to have it do this for me. I found that this worked to an extent:

<%if((({Category}=="Heading") or ({Category}=="Sub-Heading")) and ({xpath:.//@ColumnCount > 6}=="true"))%>
-----section break------
<%endif%>
<%if  *code for my tables* %>
table with > 6 columns
<%endif%>
-----section break-----


But the closing section break caused issues no matter where I put it whether before the endif or after so I had to give up on that. 

I'm not a coder so this is something I've been beating my head against and I get the impression that I'm trying to do a lot more with this stuff than were the intentions when this part of integrity was put together. The example files don't go into much detail about what different things you can do and only show a few options.

If you want to see what I came up with, I'll see if I can sanitize it a bit and post it here.

  

          

Re: xpath and docx exports Posted: Aug 27, 2012 11:39 AM
Posted By:   matthias.rump    Posts: 166 /  Registered: Mar, 2008  
I think I hear you now.

First of all, I'm customer and not MKS developer just as you, so for your really tricky plan, you should contact MKS support directly.

As far as I know the Word Export, there is no support for "nested" IF clauses, so your code snippet will never work, no matter where you put the "--section break--".

Nevertheless, something like

<% if((({Category}=="Heading") or ({Category}=="Sub-Heading")) and ({xpath:.//@ColumnCount < 6}=="true"))%>
-----section break------
table with < 6 columns
-----section break-----
<%endif%>

<%elseif((({Category}=="Heading") or ({Category}=="Sub-Heading")) and ({xpath:.//@ColumnCount = 6}=="true"))%>
-----section break------
table with 6 columns
-----section break-----
<%endif%>

<%elseif((({Category}=="Heading") or ({Category}=="Sub-Heading")) and ({xpath:.//@ColumnCount = 7}=="true"))%>
-----section break------
table with 7 columns
-----section break-----

<%endif%>


.. and so on...


should work.
It's far from elegant, but as long as it does the job.


HTH Matthias

PS: I'love to see your final solution here

  

            

Re: xpath and docx exports Posted: Aug 28, 2012 2:11 PM
Posted By:   jjohnson    Posts: 5 /  Registered: Jul, 2012  
Ok, I think I sanitized the attached docs sufficiently... 

So what I've attached works.  I added a screen shot that will show what it looks like in integrity.

RequestedExportTemplate is what they wanted it to look like.
WordExport-REQ is what I created
screenshot - integrity

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 ?

MKS Integrity Client 2009 SP5: linux vx Solaris performance comparision

$
0
0

Hi

 

I'm migrating my MKS Integrity Client 2009 SP5 on Solaris zoned server to a VMWARE ESX hosted Linux Debian 7 machine.

 

Suprise during testing performance beetwen the 2 machine using "si viewRevision command" (no I/O activity, only tcp connections to the same server) test cicle: Linux client is 8 time slower than Solarix box!

 

Any suggestion to improve Linux deployment?

 

Thanks

 

Carlo

How to get the total number of floating licenses?

$
0
0

I know how to get an overview of the licenses currently used and their users (by using "aa licenses" in the command window). Unfortunately, I can't find a reference in the instructions to see the total number of available floating licenses. Is there a way to get this info from the PTC/MKS vendor daemon-process? Thanks!

new rules for connections between client and server in 10.7?

$
0
0

Hi @all,

 

we will switch from Integrity 10.6 to 10.7 this weekend, but some testing-machines (server) will stay at 10.6. For this reason we tested to connect from a 10.7-client to a 10.6-server, but the client doesnt allow the connection. It states that client and server are not compatible. At the server we didnt configure any restriction, so from our experience the client should at most state that we could rollback the client or such things, but it simply denies the connection. With the admin-client, it connects (after two compatibility-messages), but it is hiding the config-section for workflows&documents. 

 

Is it possible to connect a 10.7-client to a 10.6-server in any other way? At least to the workflows+documents-part? We want to avoid a parallel-installation of two different clients, because this is a mess for the users too

 

Thanks, Jens

Learning javascript; integrity triggers

$
0
0

Dear community,

 

I would like to get a better understanding about the triggers in integrity and javascript. The reference I have found: Class LocalTriggerManager. I started to read the available triggers. I would like to do it well and not too much time dealing with selflearning; I would like to back myself with a good book could you please suggest me a good one? I’ve checked several but all most of them are specialized to web-development. But I need the "How to programming in Java Script - Developing Integrity Triggers" unfortunately I have not found it on amazon I am using often script languages like python or dxl.

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

Get projectType through CLI

$
0
0

Hello,

 

I need to know the projectType of projects in a sandbox, (meaning if they are build or normal etc.)

 

Until now I could use the command "si sandboxinfo --sandbox=... --xmlapi"

 

With Integrity 10.7 --xmlapi has been discontinued and using the same command without --xmlapi doesn't seem to give me the projectType.

 

Which command should I use for this matter?

 

Thanks in advance,

Luca.


Copy Parameters to a new Project

$
0
0

Is that possible? instead of Setting them up manually again ....

Thanks for sharing your expirience.

add a new member in mks using the java mks api: mksapi.jar

$
0
0

Hello

 

I am working at java tool which connects at the mks source integrity server that add new members in an mks project.

I read the following documentation

{

}

 

and I found java sample code only for connection with the server:

}catch (APIException e) {

{

 

IntegrationPointFactory ipf = IntegrationPointFactory.getInstance();CmdRunner cmdRunner;

try {

cmdRunner = ipf.createLocalIntegrationPoint().getCommonSession()

.createCmdRunner();

 

cmdRunner.setDefaultHostname(

"myserver");

cmdRunner.setDefaultPort(7001);

cmdRunner.setDefaultUsername(

"IntegrationUser");

cmdRunner.setDefaultPassword(

"secret");

 

e.printStackTrace();

}

 

However I have not found in the above documentation a sample for adding members in mks source integrity server using the mks java api.

Would you give me a sample code that do that or pointing me another documentation for the mks source integrity java api ?

 

 

 

 

 

 

Best Regards,

 

 

 

Integrity Unix client setup

$
0
0

Since the home directory is shared between the unix servers,  when i try to launch the client from one server while the client is opened with another server. Its throwing an error which says the client is already open.

I have a scenario that i need to connect from different servers simultaneously. Can someone please help me to setup the client to open in different servers simultaneously

Removing Attachments from the database

$
0
0

Hello,

 

The Integrity instance I work with has an attachment growth problem. Although we have implemented Attachment size restrictions, the growth rate is still projected to grow our database size in a way that negatively impacts our database refresh time. As a result, I've been tasked with identifying a method to remove attachments that are a specific age or older from the Attachments Table. The method identified will then be implemented as a routine data purge process for our program.


I've searched the documentation and community discussions for a best practice as far as removing Attachments from the database, but have not found any yet. Removing a given Attachment from an item via the GUI or API commands does not seem to delete the actual attachment file from the database. I'm seeking a safe method of removing a given attachment from the Attachments Table in the database itself.

 

Does anyone know of a recommended or best practice method of deleting attachments from the Attachments table in the database?

 

Thanks!

Bryan

How to skip Items which causing error in Schedule trigger.

$
0
0

Hi,

 

I have created the schedule trigger, which will update few fields on items given through query.

But while I ran schedule trigger. I got error as on item ID: 12345 have mandatory fields which are not filled which will abort transaction.

 

Is there any way skip such item having mandatory fields and going through other item ?

 

I have tried with adding try catch block but still its aborting by giving mention error.

 

Please suggest me.

Viewing all 3432 articles
Browse latest View live


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