[prev in list] [next in list] [prev in thread] [next in thread]
List: rt-users
Subject: Re: [rt-users] =?utf-8?q?ticket=27s_getheader_method?=
From: Alexander Sagratyan <fm100terra () mail ! ru>
Date: 2012-06-28 6:10:33
Message-ID: 1340863832.234573116 () f230 ! mail ! ru
[Download RAW message or body]
[Attachment #2 (text/plain)]
Thanks for a help.
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.
Thu, 28 Jun 2012 00:21:20 +0300 от Ruslan Zakirov <ruz@bestpractical.com>:
hi,
my $txns = $Ticket->Transactions;
while ( my $txn = $txns ) {
....
}
On Wed, Jun 27, 2012 at 1:37 AM, Alexander Sagratyan <fm100terra@mail.ru> wrote:
> Hello. I have some questions abot GetHeader method. Any help is appreciated.
>
> I have a scrip which retrieves Date header from ticket :
>
> my $Transaction = $self->TransactionObj;
> my $date_header = $Transaction->Attachments->First->GetHeader('Date');
>
> This extraction works perfactly. Further in the same scrip I have:
>
> my $ticket = $search->Next # ticket object is retrieved from queue
>
> The question is how to get the same Date header from ticket object? Does the
> Transaction/Attachment exist for already created ticket in queue ? Will
> Transactions field be useful in this case?
--
Best regards, Ruslan.
[Attachment #3 (text/html)]
<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>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic