george7a
20th June 2005, 12:49
Hello,
I was wondering if there is way that I can edit the main menu.
What I mean is that I want to add another whole new menu with sub menus to a maintain sessions.
For example, I want to add my menu after the help menu and call it "view".
I know how to add some options to the special menu. But I want to add a new menu. Is that possible? :confused:
Thanks allot,
- Goerge
victor_cleto
20th June 2005, 16:15
It is possible to create your own menu.
Since you cannot change the standard one, just copy it to your custom VRC and then just edit it thru Maintain menus.
george7a
20th June 2005, 16:43
It is possible to create your own menu.
Since you cannot change the standard one, just copy it to your custom VRC and then just edit it thru Maintain menus.
Thanks for your reply.
Can you please tell me what is the name / code of this menu?
lets say for Maintain Countries, how can I find the name of the main menu? :confused:
Thanks again,
- George
bdittmar
20th June 2005, 17:52
Thanks for your reply.
Can you please tell me what is the name / code of this menu?
lets say for Maintain Countries, how can I find the name of the main menu? :confused:
Thanks again,
- George
Hello George,
Maintain-,Display-,Print- Countries is locatet in :
BaaN -> Common -> Logistictables -----> tcmcs00003001 (1-3)
That's the code of the standard menue.
Regards
george7a
20th June 2005, 17:55
Thank you.
I will give a try
george7a
20th June 2005, 18:14
Hello George,
Maintain-,Display-,Print- Countries is locatet in :
BaaN -> Common -> Logistictables -----> tcmcs00003001 (1-3)
That's the code of the standard menue.
Regards
:(
That gave me the menu of the bw. I need the code of the menu that is inside the Maintain Countries. The one that has "File", "Option" and all that stuff. Please checkthe image I attached before.
Thanks again
mark_h
20th June 2005, 20:41
Check under Application Development\ Master Data\ Maintenance. There are some sessions there the display what is on the menu. I thinking adding something to the menu is easy - getting it to do a specific task is difficult. I actually posted something in this forum on another thread about this at one time. I can no longer find that thread. Hope you figure it out and post a solution in this forum. I tried several searches using my login (mark_h) but could not find that thread. I will keep searching.
RaymondH
21st June 2005, 10:42
The session Mark is refering to is ttadv4176m000.
See also thread http://www.baanboard.com/baanboard/showthread.php?t=8521
george7a
22nd June 2005, 09:01
That is great!
Thanks allot.
Now how can I put something in this new menu? lets say it will open another session. :confused: :confused: :confused:
Thanks again it really did help me.
- George
george7a
23rd June 2005, 13:32
I thinking adding something to the menu is easy - getting it to do a specific task is difficult. I actually posted something in this forum on another thread about this at one time. I can no longer find that thread. Hope you figure it out and post a solution in this forum. I tried several searches using my login (mark_h) but could not find that thread. I will keep searching.
I added this menu, I also added something in the menu! I took the Field help option and put it inside my menu .. it works .. this is nice. BUT , how can I let it do what I want to do? for example I have created a new menu called tccom20000002, how can I link it with it? :confused:
Any help is really appreciated.
Mark, I didn't find the post you talked about :(
Thanks in advance,
- George
george7a
27th June 2005, 10:52
Check under Application Development\ Master Data\ Maintenance. There are some sessions there the display what is on the menu. I thinking adding something to the menu is easy - getting it to do a specific task is difficult. I actually posted something in this forum on another thread about this at one time. I can no longer find that thread. Hope you figure it out and post a solution in this forum. I tried several searches using my login (mark_h) but could not find that thread. I will keep searching.
Mark, Can you remember the idea behide letting this menu work?!
I have searched allot and I can't find anything :( , But still I believe it can be done, and I do need to do it. So if you remembered anything , any thing, please let me know.
Thanks allot,
- George
mark_h
27th June 2005, 16:39
Sorry to say the only thing I remember was being able to add something to the menu. I did not spend much time on trying to get something on the menu to run a script. I figured it had to do with something with the Baan internal stuff and that was beyond my knowledge. I was really hoping you could figure it out and post a solution.
george7a
27th June 2005, 16:46
Sorry to say the only thing I remember was being able to add something to the menu. I did not spend much time on trying to get something on the menu to run a script. I figured it had to do with something with the Baan internal stuff and that was beyond my knowledge. I was really hoping you could figure it out and post a solution.
Now I am beginning to doubt it is doable .. because your are the only one said it is :(...
I am still new with baan tools.. very new.. but I had this idea and I think it is great.. well .. :(
I will keep trying..but did you see it working anywhere? is it doable? :confused:
Thanks again,
P.S. what do you mean by "Baan internal stuff "?
mark_h
27th June 2005, 17:49
First of all I think it is a great idea also. I wish I had time to look at it some more. I have not seen this working and I hesitate to say it is not doable, just that I do not know how to make it work.
george7a
27th June 2005, 18:19
First of all I think it is a great idea also. I wish I had time to look at it some more. I have not seen this working and I hesitate to say it is not doable, just that I do not know how to make it work.
Thanks allot for all your input
- George
beginer
28th June 2005, 12:03
Hi ,
Hope u people are not talking about creating a extra toolbar.
With the function create.extra.toolbar()....one can easily put the image he wants & then on click of that could write a code that will execute.
george7a
28th June 2005, 12:15
I don't think so :(
Can this extra tool bar be in all session?! without maintaining all the forms?
The idea is to create a menu/toolbar that works from all sessions without maintaining all session.
How can I add a working tool bar to all sessions?
Thanks allot
- George
beginer
28th June 2005, 12:29
Hi ,
Well maintaining forms is not required for this.
As this is created using the standard function which is called in the Program Script.
May b u can write this as a external function/dll ... but that too will require calling this function in all yr session.So u would require source codes.
This function normally is called in "init.form" section.
george7a
28th June 2005, 12:46
So we have to edit all the source codes? for all the sessions?
beginer
28th June 2005, 13:19
Yes ...
If u want to follow this u hv to edit all the source code with atleast 1 line...
which will call the customized function/dll in init.form section & which in turn would call the create.extra.toolbar() function with appropriate arguments (Name & name of gif file associated)....
george7a
28th June 2005, 13:23
Thanks, But I am looking for an easier way. I want it to work without changing so many things.
If you read all the thread.. I have managed to add a menu and in the menu I put the "Field Help" option. I can put any standard Baan option. I am looking for a way to put any option I want. for example open another session.
Thanks again for your input
mark_h
28th June 2005, 17:38
Here is something you can think about trying - currently on the tool bar is ottstpcalc(under tools). What you can try is writing a 3gl script that gives the user the choice of running the calculator or running someother option. You can test the 3gl script first. Once you are sure it launches your session and the calculator correctly then what you can do is rename ottstpcalc to something like ottstpcalc1. Then change your script to launch ottstpcalc1. Compile it. Then copy the resulting object into ottstpcalc.
I do not know what issues this may cause internally to Baan. There may be some sessions that use the calculator or call it directly. This was just something I just thought of.
george7a
29th June 2005, 11:25
I do not know what issues this may cause internally to Baan. There may be some sessions that use the calculator or call it directly. This was just something I just thought of.
Mark,
Thanks again for your advice.. but it didn't work :(
I got the attached error when I renamed the calc object to my object.
I even tried to replace the calc with the calendar object it didn't work and I got the the same error
I replaced the object that is found under $BSE/tools/ttB40_c4/ottstp
any other ideas?
Thansk again for all your help,
- George
mark_h
29th June 2005, 15:37
Fresh out of ideas for now. Will have to think on this some more.
george7a
29th June 2005, 16:40
I have renamed ottstpcalc to ottstpcalc1. Then I tried to activated ottstpcalc1 from run program and it didn't work! It had the same error as before. If we can fix this we can replace the calc.
SanttuP
29th June 2005, 23:42
Is this create.extra.toolbar() available in 4c4? I gave it a try but the compiler doesn't want cooperate. Documentation was saying it to be a 4GL library function so there shouldn't be any includes or additional dll definitions needed, or is there?
mark_h
29th June 2005, 23:54
I think it is only available for Baan 5. At least last time I looked. Even if it work it would not solve the original problem. Basically it would be nice to write a function and have it globally available to all sessions without having source code.
SanttuP
30th June 2005, 00:13
True, just got excited about the possibility of creating extra buttons. Thanks anyway.
muheeb
30th June 2005, 12:18
Hi,
Actuaully I still didn't find a way to link a different object to existing
menu command and/or create new menu command and make it
enabled (with some existing object).
There's a way to use an existing menu command and replace
its object to another object (customized)...
for example, replace "Calculator" (ottstpcalc)... after backuping the
original object (ottstpcalc), to compile (bic6.1) the new script
to object "ottstpcalc" that will replace the old calc.
Then each time you choose "Calculator" (you can change its
name in "Master Data" of course) the new object will run.
That's all folks.
george7a
30th June 2005, 18:18
Hi,
There's a way to use an existing menu command and replace its object to another object (customized)...for example, replace "Calculator" (ottstpcalc)... after backuping the original object (ottstpcalc), to compile (bic6.1) the new script to object "ottstpcalc" that will replace the old calc.
Then each time you choose "Calculator" (you can change its name in "Master Data" of course) the new object will run.
That's all folks.
That works!!
But the calculater is used in baan by users (I know the can use the windows calc) & maybe by other Baan internal functions, no?
Is there a nicer way to do this??
Thanks again
mark_h
1st July 2005, 16:36
Have you looked at using ttaad2108m000 and ttaad2109m000 - Key map groups. I was able to set-up a short cut to one of my function servers in these sessions. So now <ctrl>-<shift>-<f3> launches one of my sessions from any menu or session(I think). I could assign this keymap group to all users. I am not sure if you can now define the <ctrl>-<shift>-<f3> as the shortcut to your session. Not sure if this helps.
One thing to note - I had to try a couple of settings before I hit on the <ctrl>-<shift>-<f3>.
george7a
4th July 2005, 10:20
Have you looked at using ttaad2108m000 and ttaad2109m000 - Key map groups. I was able to set-up a short cut to one of my function servers in these sessions. So now <ctrl>-<shift>-<f3> launches one of my sessions from any menu or session(I think). I could assign this keymap group to all users. I am not sure if you can now define the <ctrl>-<shift>-<f3> as the shortcut to your session. Not sure if this helps.
<ctrl>-<shift>-<f3>.
Hi Mark,
Thanks again for you reply.
I tried what you said and now ctrl+F1 activates my session. But I couldn't insert it in a menu! I have the menu but it is disabled. I tried to maintain ttadv4172m000 but it didn't work. How can I let it be in my new menu?
Any ideas?
One more problem I have with this solution that in this way I can't know from what session my session was executed! I need to know the fields of the session and more stuff.. from the other solution ( overwriting the calc object) I could know from what session my session was executed, but know I can't :(
I guess if my session was executed from any session's menu it will know from where it was executed, no?
Thanks again...
- George
muheeb
4th July 2005, 10:49
George7a...
Hii,
from what I could understand from your messages you posted (you and mark)
and among a lot of words (some of them are grammatically incorrect or
mistyped)..
first of all the "key grouping" and "mapping" is a nice thing, though
it's for global calling from anywhere, but it won't help you, George7a,
cause you want to know your father no? the session that called
you (but when you press something it's you the keys that
called the process... not the session itself).
You can replace any object in baan's menu and use it for your own
goals (hacking the system), but adding a brand new object as new menu
command, I doubt it.... at least in Baan4c4.
george7a
4th July 2005, 11:05
George7a...
Hii,
from what I could understand from your messages you posted (you and mark)
and among a lot of words (some of them are grammatically incorrect or
mistyped)..
first of all the "key grouping" and "mapping" if nice feather, though
it's for global calling from anywhere, but it won't help you, George7a,
cause you want to know your father no? the session that called
you (but when you press something it's you the keys that
called the process... not the session itself).
You can replace any object in baan's menu and use it for your own
gouls (hacking the system), but adding a brand new object as new menu
command, I doubt it.... at least in Baan4c4.
Thanks Muheeb,
But I don't like replacing Baan objects.. I know it works great. I am looking for another idea/trick to avoid that.
Thanks again,
- George
P.S. Sorry for the grammar mistakes :p
george7a
5th July 2005, 13:35
Until now I couldn't insert any new thing inside the new menu! What I can insert is just standard options.
I saw this session Global Replace of Menu Data ttadv3260m000 .. is it helpful?
I have created my own menu tccom2george! Can I replace it with any menu?
- George
muheeb
5th July 2005, 16:03
George7a...
Hii,
These kind of sessions (and Global Replace of Form Data)
is for replacement not adding new things into Menus or Forms.
But you, or any good tools programmer, can write a script
that adds whatever you want to the Forms/Menus
through TT tables... and then run Create Runtime DD (Forms and Menus)
manually or better using AFS. In this case you add/change
anything in range of Forms/Menus (Baan's Menus) in one strike.
mark_h
5th July 2005, 18:50
George,
I also do not think ttadv3260m000 is what you are looking for. I think you are still looking to add something to drop down list or on the toolbar. I was not aware of the fact that you needed session fields from the child session. Back to the drawing board.
george7a
11th July 2005, 11:29
I have a new Idea!
But first I must know what is the name (ttaad??????) of the Tools (or Options) menu?
I tried to print all of the tt menus but it was hard to find it :)
I know I can't edit it..but still I would like to know it's name. Can anybody help?
Thanks in advance
mark_h
11th July 2005, 15:21
George,
See the attached. As far as I know this is where you tell baan what goes into the option or tools menu on the tool bar.
george7a
11th July 2005, 15:27
Mark,
I have tried that.. I used user.0 so I can add a new option BUT there is no place to link user.0 with an object/sesison/menu..
Do you know how can I link between user.0 & a new object??
Thanks,
mark_h
11th July 2005, 19:32
No I do not know how to link it. I look at this on occasion and have yet to find a solution.
george7a
18th July 2005, 09:03
Now I know also that all the menu names are saved in
$BSE/lib/dtopt1
$BSE/lib/dtopt2
$BSE/lib/dtopt3
I can add something to these text files and it will be added to the menu (I couldn't add a new menu field before! Until now, I could just change the name of the Calc option.). But still I can't find the place to link the new menu with my object/session
Any idea? :confused:
Thanks in advance,
- George
george7a
1st August 2005, 15:06
Can this be done in Baan 5? I see it has the same problem. no? (there is no place to link the menu with the new script/object)
Is there a hope in Baan 4? :(
- George
abieber
13th August 2005, 00:02
Hi,
interesting stuff I could read in this thread. I tested to insert a new menu in the menu bar including some standard form options (next.frm). It worked!
Standard form options are stored in ttadv470. The option number (e.g. 27) is linked there with an option code (next.frm), which is used also in program scripts.
For choices like "calculator" there has to be a place where the link to the executable session (ottstpcalc in this case) is stored.
I could not find any tools table with this link so maybe it is stored in any text file and could be expanded with own links.
An other possibillity would be to find an other option than calender and calculator which starts a baan session too but is not realy used by users. Does anybody know someone?
And one idea more: has anybody practice with bucket messages? With this feature sessions can be started. And there exists a form option "bms". Maybe this could be used in any way.
I hope anybody can pick up some of my thoughts and find a way....
Alex