[Nitro] Using Og with GUI

David Legard dalegard at gmail.com
Thu Sep 15 19:18:24 EDT 2005


I am using Og to drive a GUI-based application, which uses several onscreen 
controls, button, text boxes and the like.
 Obviously, I have to extract information from the controls called 'name', 
'date', 'address' etc for Og to write away to the database.
 As I am quite strict with naming conventions, I find myself writing a lot 
of code like:
 m.name=getControlValue('name')
m.date=getControlValue('date')
m.address=getControlValue('address')
m.phone=getControlValue('phone')
.
.
.
.
 Is there any way I can tie the control 'name' to the object attribute '
m.name <http://m.name>' and so on, to avoid having to write all this 
repetitive code?
 Ideally I would like to write something like:
 allControls.each do |k|
 m.k=getControlValue(k)
end
  DAL.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/nitro-general/attachments/20050915/ffc2d900/attachment.html 


More information about the Nitro-general mailing list