Thanks I will try this Shaz
On Mar 9, 10:28 am, Bryan Larsen <[email protected]> wrote: > They all work. :) > > Usually, you want this sort of code in the model, although sometimes > it is appropriate to go in view code. > > The easiest place is in your field definition. > > fields do > foo :integer, :default => 42 > end > > before_create let's you do it in code: > > before_create { |record| > record.foo = 42 > > } > > Bryan > > On Mar 9, 4:13 am, Shaz <[email protected]> wrote: > > > Hi, > > > just grappling with how would you default field values on a Hobo > > Screen using lookup of data. > > > Would it be ruby code, a sql statement, javascript or DRYML to lookup > > data not currently on the form, and thus get defaults > > for current screen. > > > Thanks Shaz --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/hobousers?hl=en -~----------~----~----~----~------~----~------~--~---
