On Oct 9, 2008, at 10:40 PM, Bob Mathias - Sysero llc Dev wrote:
> Button1 RegID was set to "QuickButton1". I used your example in
> DaboDemo dHtmlBox
> to setup my test within the event onHit.
>
> def onHit(self, evt):
> self.Form.ObjectBoxHtml.DataSource = self.Form.ObjectBoxHtml
> self.Form.ObjectBoxHtml.DataField = "Source"
> self.Form.ObjectBoxHtml.Value = """
There's a big difference: you're setting the DataSource of the
control to itself. In the demo, there are two controls: and edit box
and an html box, and the edit box's DataSource is linked to the html
box, so that changes in the edit box are flushed to the html box when
the edit box loses focus.
> When I ran the program I received the error Attribute Error:
> 'NoneType' object has no attribute 'ObjectBoxHtml'. Help!!
Could you post a traceback of the error? Sounds like you're trying to
reference the html box before it has been created.
> The next step I want to load a HTML from my SQLite database when the
> form is opened. I think I can do that in the onCreate or onActivate
> dForm event?
You could create a bizobj with a connection to the SQLite database,
and then bind the dHtmlBox control to the bizobj (DataSource), with
the DataField bound to the column name in the SQLite table.
-- Ed Leafe
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]