On 01/01/2013 09:50 AM, Carey Gagnon wrote:
Can anybody point me in the right direction?
Some questions.
1) Do you want the BackColor to change when the search fills the text
boxes?
I want the BackColor to change based on the value of the field (values are
int 0 or 1, or true and false if a dTextBox is used)
Alright.
2) Define got nothing? Do you mean the color did not change? The reason I
ask is that I have seen issues with BackColor. It could be the event is
actually firing. Have you tried putting in a print string to verify?
What I mean by got nothing is I can't seem to pull the value from the
field. If I can do that I can muddle my way through the rest. This is a
learning process. For example, if I use onValueChanged I can print that
value, but that value is only shown if I type something in the field, not
when I move through the records of the search results. next record, last
record, previous record etc
The easiest way is to tag each field with a RegID.
For example this is a field in a grid sizer on a form of mine.:
sz_order.append(dabo.ui.dCheckBox(self, DataSource="public.order_header"
, DataField="checked", RegID="ohChecked"))
If I want to get the its value I can do this from within the form:
val = self.Form.ohChecked.Value
and if I want to set it:
self.Form.ohChecked.Value = False
Have you explored the command window in your app?
It can be invoked by doing Ctrl-D from within your app.
It will open a shell where you can interact with your code. Just
remember it will open as the form. The title bar of the shell will show
you where you are.
So if you want to do what I showed above from the shell you can leave
out the Form so the code becomes:
val = self.ohChecked.Value
Thanks
Carey
--
Adrian Klaver
[email protected]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]