Setting null values

6 views
Skip to first unread message

Joe Bodell

unread,
May 16, 2011, 3:12:03 PM5/16/11
to reacto...@googlegroups.com
Quick question, now that everyone's gone home from cf.Objective()....

You pull a record object, and you want to make sure a field's value is NULL. What's the correct syntax?

FooRecord.setField("NULL")
FooRecord.setField("")
FooRecord.setField(0)
FooRecord.setField()


.......?

Thanks,

Joe

Mark Drew

unread,
May 16, 2011, 7:15:01 PM5/16/11
to reacto...@googlegroups.com
Having looked at the code, I think you can do :
FooRecord.setField("")

See the following xslt code:

> <xsl:if test="@nullable = 'true'">
> null="#Iif(NOT Len(arguments.to.<xsl:value-of select="@alias" />), DE(true), DE(false))#"
> </xsl:if> /&gt;


Regards

Mark Drew

> --
> You received this message because you are subscribed to the Google Groups "Reactor" group.
> To post to this group, send email to reacto...@googlegroups.com.
> To unsubscribe from this group, send email to reactor-user...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/reactor-users?hl=en.

Joe Bodell

unread,
May 17, 2011, 10:24:44 AM5/17/11
to reacto...@googlegroups.com
This worked and only required a bit of kluging around in the service method (changing an argument from type=numeric to type=any). Obviously there are a couple of different ways to handle that piece, but they have nothing to do with Reactor itself.

Thanks Mark!

--Joe
Reply all
Reply to author
Forward
0 new messages