Hey all.

I have had the following code working for a long time, and then I added a
new field recently to the DB and added another line of code, listing 1 is
the original listing 2 is the new code.

What I do not understand is that that Reactor seems to be calling the new
code, setting the value in the Record but when it comes to actually saving
the object to the DB the value is not saved. Anyone have any ideas where I
could start looking?

The only value not getting saved is the AgentDraft, I have debugged the code
with a line debugger and the call is being made to the Record to set the
object, so I am at a loss to explain this.


Listing 1:
----------
                        <cftransaction>
                                <cfset Booking.setBO_createDate(now()) />
                                <cfset Booking.setBO_AgentLocked(true) />
                                <cfset Booking.setBO_Agent(AgentId) />
                                <cfset
Booking.setBO_Lock(UserObject.getUserID()) />
                                <cfset Booking.Save(false) />
                  </cftransaction>


Listing 2:
----------
                        <cftransaction>
                                <cfset Booking.setBO_createDate(now()) />
                                <cfset Booking.setBO_AgentLocked(true) />
                                <cfset Booking.setBO_AgentDraft(true) />
                                <cfset Booking.setBO_Agent(AgentId) />
                                <cfset
Booking.setBO_Lock(UserObject.getUserID()) />
                                <cfset Booking.Save(false) />
                  </cftransaction>

Andrew Scott
Senior Coldfusion Developer
Aegeon Pty. Ltd.
www.aegeon.com.au
Phone: +613  8676 4223
Mobile: 0404 998 273





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

Reply via email to