Yeah, the label property will only get set by the framework if setData() is called, so if it was a direct SQL insert then it will bypass the framework :)
cheers, Justin -- Justin Carter http://www.madfellas.com/blog http://twitter.com/justincarter On Tue, Jan 14, 2014 at 9:31 AM, Scott Mebberson <[email protected]>wrote: > Hey Jeff, > > Of course. I'll give that a shot, and verify it that it doesn't happen for > new instances. I'm working with data imported by someone else, so chances > are they didn't script label field up when inserting the data. > > I think everyone can ignore this post! Sorry. > > cheers, > Scott. > > On 14/01/2014, at 8:57 AM, Jeff Coughlin <[email protected]> wrote: > > I haven't seen this, but I'm still on FC 6.3 at the moment (except for > some testing I'm doing in 7). Until a fix is found, one thing you can do > is force it to save the title to the label by creating a custom > beforeSave() method inside the custom type. If anything it will at least > give you a temporary workaround. But if this is a bug in FC7, then it's a > pretty serious one (IMO). > > Example: > > <cffunction name="beforeSave" access="public" output="false" > returntype="struct"> > <cfargument name="stProperties" required="true" type="struct" /> > <cfargument name="stFields" required="true" type="struct" /> > <cfargument name="stFormPost" required="false" type="struct" /> > > <cfset arguments.stProperties.label = arguments.stProperties.title /> > > <cfreturn super.beforeSave(argumentCollection=arguments) /> > </cffunction> > > If you feel comfortable sharing your CFC, go ahead and post it (maybe > we'll see something you're missing - sometimes it just takes a second set > of eyes to see something we've overlooked). If not, you are welcome to > send it to just me and I'll be happy to see if something jumps out. > > -- > Jeff Coughlin > > On Jan 13, 2014, at 5:12 PM, Scott Mebberson <[email protected]> > wrote: > > Has anyone run into a problem in which labels for a custom object type > aren't working on all occasions. Works for some instances of the object > type, but not others. The type does have a title property, which always > contains the real value. > > I've tried the following: > > - updateApp (a few dozen times, and after each of the following) > - added bLabel to the title cfproperty tag > - added displayLabel.cfm to the type folder in webskins and am > outputting stObj.title > > But still, no label. The label doesn't exist in the stObj that is passed > around to the various webskins. > > Any ideas? > > I'm running FarCry 7 (I did git pull on both core and farcrycms this > morning so they're fresh!). > > Thanks, > Scott. > > > > -- > You received this message cos you are subscribed to "farcry-dev" Google > group. > To post, email: [email protected] > To unsubscribe, email: [email protected] > For more options: http://groups.google.com/group/farcry-dev > -------------------------------- > Follow us on Twitter: http://twitter.com/farcry > --- > You received this message because you are subscribed to a topic in the > Google Groups "farcry-dev" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/farcry-dev/yrrRHhE0H-4/unsubscribe. > To unsubscribe from this group and all of its topics, send an email to > [email protected]. > > For more options, visit https://groups.google.com/groups/opt_out. > > > -- > You received this message cos you are subscribed to "farcry-dev" Google > group. > To post, email: [email protected] > To unsubscribe, email: [email protected] > For more options: http://groups.google.com/group/farcry-dev > -------------------------------- > Follow us on Twitter: http://twitter.com/farcry > --- > You received this message because you are subscribed to the Google Groups > "farcry-dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message cos you are subscribed to "farcry-dev" Google group. To post, email: [email protected] To unsubscribe, email: [email protected] For more options: http://groups.google.com/group/farcry-dev -------------------------------- Follow us on Twitter: http://twitter.com/farcry --- You received this message because you are subscribed to the Google Groups "farcry-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
