Unsetting Action Buttons [message #2057] |
Tue, 12 May 2009 05:22 |
gpatti
Messages: 283 Registered: August 2008
|
Senior Member |
|
|
I have a couple of questions regarding unsetting action buttons:
1. I've unset some action buttons in _cm_initialise(). The buttons do not display when entering a LIST transaction as required, but I notice that when I return to the LIST screen from, say, an update, the buttons are then displayed. Am I putting the unset in the wrong place?
2. I have two list transactions both based on the same table (accessed via different navigation buttons to provide a functional split). I want to display different action buttons depending on the transaction. In which method would I put the code for this?
|
|
|
Re: Unsetting Action Buttons [message #2058 is a reply to message #2057] |
Wed, 13 May 2009 05:20 |
AJM
Messages: 2371 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
(1) The action buttons are set at the start of each page controller, so if you unset any in your _cm_initialise() method they will only be unset when that method is called, which is only the first time that the script is run - so on all subsequent iterations the buttons will not be unset. The best way is to use the _cm_changeConfig() method instead as this is called on every iteration.
(2) Use the _cm_changeConfig() method.
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|