[Anthill-pro] AHP3.3 job iteration properties in emailnotification

Samuel Cameron Samuel.Cameron at marketlive.com
Tue Sep 18 15:19:53 CDT 2007


This worked well.

Thanks!

Sam Cameron

-----Original Message-----
From: anthill-pro-bounces at lists.urbancode.com
[mailto:anthill-pro-bounces at lists.urbancode.com] On Behalf Of Eric
Minick
Sent: Tuesday, September 18, 2007 10:39 AM
To: AnthillPro user and support list.
Subject: Re: [Anthill-pro] AHP3.3 job iteration properties in
emailnotification

Sam,

The interation properties are available off the job trace. You can find 
out which properties you have with the getPropertyNames() method and 
then lookup the properties with a getProperty(name). I think you need 
something like the following snippet placed after the closing div of the

step iteration.

----------------
<h4> Properties </h4>

<div class="data-table-container">
<table class="data-table" cellpadding="4" cellspacing="1" width="100%">
 <table-body>
  <tr class="data-table-head">
    <th scope="col" align="left"
valign="middle"><strong>Name</strong></th>
    <th scope="col" align="left" valign="middle">Value</strong></th>
  </tr>
  #foreach($propertyName in $trace.propertyNames)
    <tr bgcolor="#ffffff">
      <td>$propertyName </td>
      <td align="center">$trace.getProperty($propertyName)</td>
    </tr>
  #end
 </table-body>
</table>
</div>
---------------------

Samuel Cameron wrote:
> I have a workflow with a job that is iterated with each iteration
having
> different values for a property. How can I display the value of that
> property in an email notification?
>
>  
>
> Thanks,
>
>  
>
> Sam Cameron
>
>  
>
>
>   
>
------------------------------------------------------------------------
>
> _______________________________________________
> Anthill-pro mailing list
> Anthill-pro at lists.urbancode.com
> http://lists.urbancode.com/mailman/listinfo/anthill-pro
>   
_______________________________________________
Anthill-pro mailing list
Anthill-pro at lists.urbancode.com
http://lists.urbancode.com/mailman/listinfo/anthill-pro


More information about the Anthill-pro mailing list