In the UI, certain controls behave depending upon settings from the bizobj. For example, a certain button might be enabled for a SuperUser, but not for a different type of user. The business object has a property named lSuperUser and reflects whether or not this guy should have access to the button.

Would you have your UI button's refresh event refer to the business object's property, or gather that property from the BO into the UI's property set and refer to that instead?

For example, which would you choose for cmdShowPayRates.Click:

  this.enabled = thisform.oBizobj.lSuperUser

...or...

this.enabled = thisform.lSuperUser (whereby lSuperUser property was retrieving and set from call to BO)

...or is this simply a matter of style and these are basically equivalent? Seems to me that option #1 is easiest and least likely to fail, but I'm not sure if I like referring to the BO so much in the UI, as I like to keep a good logical separation.

Your thoughts appreciated....thanks!

--

Thanks,
--Michael



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to