Another question... I want to have a GAP that will add some other Object to an attribute of my DataSkin. This is what I have tried with no success. fromexpr: accounts.getItem(self.account_id) attrsexprs: account_object=RESULT This way in my UI Methods in my DataSkin I can access (and change) the attributes of "account_object". Q. How can I do this? Should I be doing this in a different/better way? Thanks, -Ben
Hi Ben, GAPs are sort of deprecated at this point in favor of SkinScript. In SkinScript you might do something like this: WITH accounts.getItem(self.account_id) COMPUTE account_object=RESULT or more carefully... WITH accounts.getItem(self.account_id) COMPUTE account_object=(RESULT is _.None) and NOT_FOUND or RESULT -steve
"bentzion" == bentzion <bentzion@bellatlantic.net> writes:
bentzion> Another question... bentzion> I want to have a GAP that will add some other Object to bentzion> an attribute of my DataSkin. This is what I have tried bentzion> with no success. bentzion> fromexpr: accounts.getItem(self.account_id) attrsexprs: bentzion> account_object=RESULT bentzion> This way in my UI Methods in my DataSkin I can access bentzion> (and change) the attributes of "account_object". bentzion> Q. How can I do this? Should I be doing this in a bentzion> different/better way? bentzion> Thanks, -Ben
participants (2)
-
bentzion@bellatlantic.net -
Steve Spicklemire