Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic SYNERGY (steve huntington)
Decrease font size
Increase font size
Topic Title: Change API Query
Topic Summary:
Created On: 17-Mar-2006 09:20
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 17-Mar-2006 09:20
User is offline View Users Profile Print this message


Palle Clausen

Posts: 11
Joined: 17-Oct-2005

I created a Query from perl with the PERL API
my $searchres = $csapi->QueryData($aUser, "Basic Summary", "(service_report_no='1111')", undef, undef, undef, "problem_number");

I need the Problem_number for alle CR found

HOW do I do I tried reading the API doc with out any luck!!

To check that I actual foun the right data I used
  my $xmlData = $searchres->getXmlData();
  print "resultat:  $xmlData";

Report this to a Moderator Report this to a Moderator
 7-Apr-2006 19:33
User is offline View Users Profile Print this message


James McCaskey

Posts: 3
Joined: 7-Nov-2003

I'm not sure exactly what you mean, however, if you want to get them all into an array, you could do something like this:

my $searchres = $csapi->QueryData($aUser, "Basic Summary", "(service_report_no='1111')",
undef, undef, undef, "problem_number");
my @listofCRs;
my $pos=0;
for ($pos = 0; $pos < $searchres->getDataSize(); $pos++)
{
my $cr = $searchres->getDataObject($pos)->getDataObjectByName("problem_number")->getValue();
push(@listofCRs, $cr);
}
print "@listofCRs\n";


Hope that helps!

-Jim
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic SYNERGY forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 15:34.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.