jmathew
1st July 2004, 11:27
Hi,

In the session Maintain Chart Manager Application Data (ttchm1100s000) there is the option Application Options (ttchm1120s000) where option could be defined and used in programing. The help for this session ttchm1120s000 says that the options defined could be used for Starting a Session or some other action that can be progarmmed.

I have defined this option and also available in the Chart Manager, but where do i have to write the program? Is it in choice section of the script. Suppose i want to start a session from this option, how can i program it?

If anybody can help me......

Thanks & Regards,
John.

klixy23
1st July 2004, 16:24
Here is a sample:

function call.chm()
{
CHM_SELECT_CHARTTYPE, "bsp1", "", chart_name, chart_type)
ret = chm.chartman(CHART.APPLICATION, CHART.TITLE, "bsp1", "")
chno = chm.new(CHART.NAME, chart_type)
if (chno = 0) then
send.chart.data()
ret = chm.draw()
get.chart.data(chno)
endif
}

function void send.chart.data()
{
| ...
}

function void get.chart.data(long chart_no)
{
long request
double cat_from, cat_to

repeat
request = chm.get.request(chart_no, cat_from, cat_to)
on case request
| here is the defined apllication option code 100
case 100:
tisfc010.mcno = mcno
export("tisfc010.mcno", tisfc010.mcno)
zoom.to$("tclus0502m000", Z.SESSION, "tclus0701m000", "", 0)
break
| here is the defined apllication option code 101
case 101:
zoom.to$("tclus0201m000", Z.SESSION, "tclus0701m000", "", 0)
break
endcase
until (request = CHM_ABORT)

}

Refer also to the function chm.get.request.

jmathew
3rd July 2004, 08:55
Hi Klixy,

Thanks a lot for the help. I got it working as per your guidance.

Thanks & Regads,
John.

jmathew
3rd July 2004, 09:48
Hi Klixy,

I have another problem which is after producing the chart on screen i am not able to print the same on the printer. The only option now is to take a screen shot and put it in MS Power Point slide for printing. Can i get this done directly from Baan. What are the pre-requisites for printing? Are there any hardware requirement to set this up?

Anyone can help.....

Thanks in advance...
John.

klixy23
5th July 2004, 09:22
For printing charts you have to install a postscript printer and driver. I've done this with the Quick guide 1305, which I have only as fax print.

I just looked in the script and there are no definitions or code for printing. It seems it is standard functionality.

After pressing the printer button the session ttchm1160m000 pops up.

jmathew
5th July 2004, 16:00
Hi Klixy,

Thanks a million. We followed your instructions and tried the set up in Baan and we have the graph printing directly from Baan. It is a great help and thanks for sharing knowledge.

Thanks,
John.

nehagarg
3rd July 2010, 14:08
Hi,
Can u pls provide me d document hoe u made d chart along with script.
I m trying but not getting success.







Hi Klixy,

I have another problem which is after producing the chart on screen i am not able to print the same on the printer. The only option now is to take a screen shot and put it in MS Power Point slide for printing. Can i get this done directly from Baan. What are the pre-requisites for printing? Are there any hardware requirement to set this up?

Anyone can help.....

Thanks in advance...
John.

jmathew
10th July 2010, 13:44
Hi Neha,

It has been long time since I left the customer site where we had developed a lot of graphs in Baan IV c4 and they were awesome. Hence, I am not able to send you a document with the procedure. However, there is a file which me, which was a simple example for the top 10 customers which I had got from one of the members on this forum and I have attached the same with this thread.

Try this simple example to produce graph of Top 10 customers in Baan and then if you require help in improving your code for other graphs, let me know and I will surely help you on this.

Hope this helps.

nehagarg
12th July 2010, 11:05
Hi JMathew,
I need a help for line graph not for pie graph fo ERP LN 6.1.
I hv also got same eg. but when I m trying for line graph. It is not printing anything. So pls provide me help for LN & others graph other then pie.

Thanks in Advance