As the title suggests, my query is whether both the GetVisible and the GetEnabled routines can be used in the same file. I have examples of each one individually that work without issue, so it is not the basic functionality at query here, but i need to be able to use both if possible to try and ensure user cannot hit certain buttons without having done other functions first, ie they cannot generate a report if they have not downloaded the data extract. If it is possible then what are the tricks to making it work.Many thanks to those in advance that help.
Use GetEnabled and GetVisible in same file
-
-
-
Re: Use GetEnabled and GetVisible in same file
Can you post a sample file where the two do not work together?
-
Re: Use GetEnabled and GetVisible in same file
Hi Rory, attached should be a file.
I have removed all the background coding and left only the ribbon options. Select the inventory option, then aged stock, by clicking on the Create Report option the two items currently not enabled should become enabled, but the ribbon disappears.
I have also had to remove the images to keep below the file size.
-
Re: Use GetEnabled and GetVisible in same file
You've set MyTag to "AgedGroup*" and then invalidated the Ribbon, which means all the Groups fire the getVisible callback. Since no group has a matching Tag, they're all hidden.
-
Re: Use GetEnabled and GetVisible in same file
Hi Rory
Thanks for the response, it had me heading in the right direction.
To solve it i actually used the id control rather than the tag control for the enabling sections
-
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!