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

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

For C#; what is the code syntax for for this CLI? [tm editresult --field='Actual Result'='60' --sessionID=509239 622815]

rteifke
8-Gravel

For C#; what is the code syntax for for this CLI? [tm editresult --field='Actual Result'='60' --sessionID=509239 622815]

What syntax is needed using the C# API for the following Command LIne Interface

[tm editresult --field='Actual Result'='60' --sessionID=509239 622815]

I have tried

issuesView.AddOption("field", "'Actual Result'='" + resultString + "'");

and the error states /"Actual Result/" does not exist


1 ACCEPTED SOLUTION

Accepted Solutions

Not sure if you're still looking for this, but if I understand what you're looking for, then here's what I would use assuming "Actual Result" is a custom field:

issuesView.AddOption("field=Actual Result", resultString);

I am using C# with Integrity 10.5 also.

View solution in original post

6 REPLIES 6

Is "Actual Result" the field name or is it an overridden display name? You need to provide the absolute field name which could be different than it appears when viewing the items.

That is the correct name otherwise the CLI would have the same issue, but the CLI works.

BTW: Using  10.5.0.5479 version of Integrity with API of 4.13.5479

if that means anything

I'm not all that familiar with the C API, but have you tried not having Actual Result wrapped in single quotes?

I have tried that and some other syntax with no luck.

I am not sure if it matters but its the C# API not the 'C' API

I have an email into Kristina Taylor(I met her at PTC Global in June)…but I think
she may be on vacation?

We only have a Java API and C API (and then WebServices and such). There is no C# API specifically but you can leverage the C API using C# code and Article 161216‌ has some sample code showing how to do this. Unfortunately it doesn't have an example showing the command option syntax.

Kristina is in Product Management so she probably won't respond to support requests like this directly. If no other users on this forum can chime in about the syntax, I would open a case with PTC Technical Support and get a better response that way.

Not sure if you're still looking for this, but if I understand what you're looking for, then here's what I would use assuming "Actual Result" is a custom field:

issuesView.AddOption("field=Actual Result", resultString);

I am using C# with Integrity 10.5 also.

Top Tags