popeye
28th January 2002, 22:55
Hi !
How do I disable buttons (choice buttons) ?
I am using Baan IV c3.
Thanks.
mark_h
28th January 2002, 23:25
Use the maintain forms session(ttadv3100m000). From there you can maintain the options and buttons. To just disable a button from the form click on the "buttons" button. Then uncheck the button. Then to disable the option use the "Standard Opt." button to turn off other features.
Good Luck!
Mark
lbencic
28th January 2002, 23:27
First, copy the form to your package VRC. Then, choose the "buttons" button on Maintain Forms. This will have a listing of the buttons you see on the form. Disable the "OK", "Cancel" and "Continue" buttons by unchecking them. Disable other buttons by putting a 0 instead of the button number. The Special Options button on Maintain Forms may help you figure out which botton numbers have which description on the form.
You may then need to "dump" the form using the dump button. Exit Baan and come back - your button should be gone.
popeye
28th January 2002, 23:36
Hi,
I want the options to be disabled based on a condition.
In one case I want the button to be disabled and on the other
case I want it to be enabled.
My client is not too happy with a message + choice.again()
solution.
He wants it grayed out.
Let me know if this is possible.
Thanks.
lbencic
28th January 2002, 23:48
Unfortunately, I believe that can only be done in Baan V, at least with the documented functions. Do you know of a standard session in c3 that is doing that? If so, I can take a look in the code....
~Vamsi
28th January 2002, 23:48
Madhu,
Here is an extract from BaanERP help:
void disable.commands( string command [, string command]... )
Description
This disables the specified standard and/or form command(s). Standard commands are identified by their command IDs. Form commands are identified either by a function name, a session code, or a menu code.
Example
disable.commands( "test.function", "ttadv3500m000", ADD.SET )
See if this works for you.
~Vamsi
28th January 2002, 23:50
Gee Lisa, let me get a word in edge wise :D
lbencic
28th January 2002, 23:54
Sorry - your board is too good for that. When he responds it notifies me and I just can't keep my mouth shut :o
mark_h
29th January 2002, 00:01
OOPs - sorry about that. I have always been able to use message and choice.again. I do not recall ever having to gray out a button, but I will look around.
Mark
~Vamsi
29th January 2002, 01:24
Lisa, because you see me as a moderator you might have called it "your board". Actually I am just another Joe on this board who volunteered to keep an eye on the happenings in this nook of the world. So it is more our board :). Now Pat and James, they are different ...
Madhu (popeye), Print Objects by Program Script / Libraries (ttadv2439m000) for "tt" "stp" "standard" and in the resulting output check for "disable.commands". That function is part of the Standard Program (in BaanERP) and if it has been back ported to Baan IV, it will show up there.
General tip for all Baan users. Use the above session with ranges "tt" to "tt" and "dll" to "dll" and the remaining with open ranges. Check "Show Exported DLL Function Prototypes" to see a bunch of interesting functions.
popeye
29th January 2002, 02:02
Hi,
disable.command is not available on IV c3.
Thanks for the posts.
NPRao
29th January 2002, 03:56
You might also like to check out the sessions -
ttstpobjinfo and ttstpbaandoc
I know they are available in the latest BaaN versions!
patvdv
29th January 2002, 14:51
No smooching the admins here guys, we are human after all :D