r_nagu
7th June 2002, 17:28
Hi Guys,
I have created a chart using Chart Manager but I am not sure how to populate the data into this chart now. What I would like to do is to display BOM on this chart. We are having problems viewing multi-level BOMs in a display screen since users have to manually find and navigate through the sub-levels of BOM. So, I thought I could create a chart which will display this BOM with expand and collapse capability. For example, it would display the first level BOM and if there is a custom items with in that, users will able to click on that line and it will expand and display the sub-levels and so on.

I know of one session which does this (not BOM). That is tppss2100m000 (Planning board data) but unfortunately we don’t have the source code for this.

Do you guys thinks it’s possible? Is there any other way of doing this that you guys have tried?

Appreciate your help/feedback.

Thanks,
Nagesh

trchandra
7th June 2002, 20:53
Hi Nagesh,
If I understand your problem correctly, you are refering to Menu Browser kind of tree view. To generate a tree view, you need to use set of (Generic Browser Framework) gbf.* commands to generate view for BOM. This will allow you to expand and collapse nodes.

r_nagu
7th June 2002, 21:05
Ravi,
A tree view would be sufficient. The one I was talking about (example session tppss2100m000 (Planning board data)) has more graphical features. In this session you could set background and foreground color, text color etc. apart from expanding and collapsing nodes. But, I think a tree view would be more than sufficient.
The set of (Generic Browser Framework) gbf.* commands you have mentioned, are they supported in Baan IV. If yes where can I find any documentation/information on them?

Thanks,
Nagesh

trchandra
7th June 2002, 21:16
Nagesh,
If your baan supports Menu Browser (GUI), you should be able to use these gbf.* commands. For list of commands and their usage you need to refer to your Baan version Tools Technical help documentation. If you dont have tools help, you can get it from Baan Support.

r_nagu
7th June 2002, 23:48
Ravi,
Yes, our version does support Menu Browser since we are suing BW client. I found some information on gbf.* commands and started a small application but looks like I am stuck.

See the code below:


long retval

|#include "itggbfdefs"
|#include "itgcomlogging"

choice.cont.process:
on.choice:
test.01()

functions:

function test.01()
{
|retval = gbf.init(gbf.current.library(), "Test Menu",
| bit.or(GBF.MENU.ALL, GBF.MENU.FILE.OPEN),
| bit.or(GBF.BUTTON.ALL, GBF.BUTTON.FILE.QUIT),
| def.options)

retval = gbf.init("n", "Test Menu",
1, 1, 1)
}


I can not include itggbfdefs and itgcomlogging since we don't have the source code for these functions and thus when I compile it, I get errors on gbf.current.library(), bit.or(GBF.MENU.ALL, GBF.MENU.FILE.OPEN),
bit.or(GBF.BUTTON.ALL, GBF.BUTTON.FILE.QUIT). I believe in one these functions (itggbfdefs or itgcomlogging) these variables are defined.

Do you know any other way of doing this? Do you have any example code?

Appreciate you help.

Thanks,
Nagesh