<HTML><BODY>Thanks for a help.<br><br>I also used Transactions property. But instead of while loop used Next method. Although I\ve expected to see First-lie method. Nevertheless everything works.<br><br><br>Thu, 28 Jun 2012 00:21:20 +0300 от Ruslan Zakirov <ruz@bestpractical.com>:<br>
<blockquote style="border-left:1px solid #0857A6; margin:10px; padding:0 0 0 10px;" class="mailru-blockquote">
<div id=""><div class="js-helper js-readmsg-msg">
<style type="text/css"></style>
<div id="style_13408320810000000356" class="mr_read__body">
<base target="_self" href="http://e.mail.ru/cgi-bin/">
<div id="style_13408320810000000356_BODY">hi,<br>
<br>
my $txns = $Ticket->Transactions;<br>
while ( my $txn = $txns ) {<br>
....<br>
}<br>
<br>
On Wed, Jun 27, 2012 at 1:37 AM, Alexander Sagratyan <<a href="sentmsg?compose&To=fm100terra@mail.ru">fm100terra@mail.ru</a>> wrote:<br>
> Hello. I have some questions abot GetHeader method. Any help is appreciated.<br>
><br>
> I have a scrip which retrieves Date header from ticket :<br>
><br>
> my $Transaction = $self->TransactionObj;<br>
> my $date_header = $Transaction->Attachments->First->GetHeader('Date');<br>
><br>
> This extraction works perfactly. Further in the same scrip I have:<br>
><br>
> my $ticket = $search->Next # ticket object is retrieved from queue<br>
><br>
> The question is how to get the same Date header from ticket object? Does the<br>
> Transaction/Attachment exist for already created ticket in queue ? Will<br>
> Transactions field be useful in this case?<br>
<br>
<br>
<br>
-- <br>
Best regards, Ruslan.<br>
</div>
<base target="_self" href="http://e.mail.ru/cgi-bin/">
</div>
</div>
</div>
</blockquote>
<br></BODY></HTML>