[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rt-users
Subject:    Re: [rt-users] ticket's getheader method
From:       Ruslan Zakirov <ruz () bestpractical ! com>
Date:       2012-06-28 18:17:45
Message-ID: CAMOxC8s4bPxUOHLv+9biiptry-TZ8jsY3uNetwzzdiT_-xOvrA () mail ! gmail ! com
[Download RAW message or body]

On Thu, Jun 28, 2012 at 9:10 AM, Alexander Sagratyan <fm100terra@mail.ru> wrote:
> 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.

there was a typo. It sure should be my $txn = $txns->Next


>
>
> 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.
>
>



-- 
Best regards, Ruslan.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic