[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 &lt;ruz@bestpractical.com&gt;:<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-&gt;Transactions;<br>
while ( my $txn = $txns ) {<br>
&nbsp;&nbsp;&nbsp;....<br>
}<br>
<br>
On Wed, Jun 27, 2012 at 1:37 AM, Alexander Sagratyan &lt;<a \
href="sentmsg?compose&amp;To=fm100terra@mail.ru">fm100terra@mail.ru</a>&gt; \
wrote:<br> &gt; Hello. I have some questions abot GetHeader method. Any help is \
appreciated.<br> &gt;<br>
&gt; &nbsp;I have a scrip which retrieves Date header &nbsp;from ticket :<br>
&gt;<br>
&gt; my $Transaction = $self-&gt;TransactionObj;<br>
&gt; my $date_header = \
$Transaction-&gt;Attachments-&gt;First-&gt;GetHeader('Date');<br> &gt;<br>
&gt; This extraction works perfactly. &nbsp;Further in the same scrip I have:<br>
&gt;<br>
&gt; my $ticket = $search-&gt;Next &nbsp; &nbsp; # ticket object is retrieved from \
queue<br> &gt;<br>
&gt; The question is how to get the same Date header from ticket object? Does the<br>
&gt; &nbsp;Transaction/Attachment exist for already created ticket in queue&nbsp;? \
Will<br> &gt; 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