I have two different business objects that both use the same reusable part for their command handler. The command handler has two buttons on it, but I would like to hide the button when the command handler is executed under one business object and show it under the other. I know you can get the command name from the framework in code, but is there a way to do the same for the business object name? I'm not finding it in LANSA documentation.
Thanks.
Getting a framework business object name
Getting a framework business object name
There are 10 types of people in the world. Those who read binary, and those who don't.
Re: Getting a framework business object name
I think I just answered my own question. I'll just use a different command for the second business object and get the command name.
There are 10 types of people in the world. Those who read binary, and those who don't.
Re: Getting a framework business object name
I think you can use a custom property on your objects to denote a name/value and then get that property with with avGetUserProperty.
http://docs.lansa.com/14/en/lansa048/in ... 8_0670.htm
http://docs.lansa.com/14/en/lansa048/in ... lf2265.htm
http://docs.lansa.com/14/en/lansa048/in ... erProperty
http://docs.lansa.com/14/en/lansa048/in ... 8_0670.htm
http://docs.lansa.com/14/en/lansa048/in ... lf2265.htm
http://docs.lansa.com/14/en/lansa048/in ... erProperty
Re: Getting a framework business object name
From the command handler source, you can use the following:
To return the business object User Object Type name or caption:
#COM_OWNER.avObjectType
#COM_OWNER.avObjectCaption
To return the command handler User Object Type name or caption:
#COM_OWNER.avCommandType
#COM_OWNER.avCommandCaption
To return the business object User Object Type name or caption:
#COM_OWNER.avObjectType
#COM_OWNER.avObjectCaption
To return the command handler User Object Type name or caption:
#COM_OWNER.avCommandType
#COM_OWNER.avCommandCaption