Hi All.

Now that everybody is busy, I would like to ask you to take a look at myu
problem. I think I chose a bad time to send it, last night...

Thanks in advance,

Erik-Jan


Hi all,

I am running into some problem with the iterator object, and I am not sure
that it is because I am doing something wrong, or that there is something
else that's wrong...

I have a ListRecord, which holds the data for a mailinglist. The List
hasMany recipients.

I want to do an import of addresses to the mailing list, so I call the 
ListRecord.getRecipientIterator. This is the code I have so far:

<cfloop index="index" list="#filecontent#" delimiters="#chr(10)##chr(13)#">
        <cfset newRecord = #ListRecord.getrecipientiterator().add()#>
        <cfset newRecord.setEmail(currentaddress)>
        <cfset newRecord.setStatus('1')>
        <cfset newRecord.setDateAdded(Dateformat(now(), 'yyyy-mm-dd'))>
        <cfset newRecord.setListID(ListRecord.getlistid())>
        <cfset newRecord.validate()>
</cfloop>

<cfset #ListRecord.getrecipientiterator().save()#>


But when I do this, I get the following error:

An error occured while Transforming an XML document.  
Empty expression!  
  
The error occurred in
C:\var\cfmxroot\wwwroot\mailman.jaquet.net\reactor\core\objectTranslator.cfc
: line 153

Am I going about it the wrong way? Should I take a different approach?

Hope you can help!

Kind regards,

Erik-Jan



 

-- Reactor for ColdFusion Mailing List -- [email protected]
-- Archives at http://www.mail-archive.com/reactor%40doughughes.net/


Reply via email to