![]() |
Telelogic SYNERGY (steve huntington) | ![]() |
Topic Title: Change API Query Topic Summary: Created On: 17-Mar-2006 09:20 Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
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"; |
|
![]() |
|
![]() |
|
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 |
|
![]() |
Telelogic SYNERGY
» SYNERGY/Change
»
Change API Query
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.