on 2006 Sep 20 5:59 AM
Hi,
We have a requirement to show a graph on the MI application. We need to plot 10 points on the graph to show the variations .
Please let me know as to how this can be done.
Thanks
RajaSekhar
Hi Jo,
Thanks for your reply.
Our MI runtime is JSP. The detailed requirement is as follows
We need to make this chart available on Intermec iSafe 730 (operating system Pocket PC 2003) and JVM is NSIcom Cre-ME v 4.11.
Application is made using SAP Mobile Infrastructure. JSP is the Programming Model. We are using SAP MI client with SP16 with an Apache Tomcat 3.2.4 servlet engine.
Please let me know if we can create graphs using Javascript for a handheld PC also. Do mail us any sample code if you have any.
Thanks in advance
Raja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jo,
I have gone through details of the link you suggested:
As we can see, that request and response objects are being used for making image and sending it to the Browser.
But , i couldnt find request and response objects in the MAM Code. Are these objects further wrapped in MAM ?
How to access them in MAM code ?
i can just see context object which is being used of getting and setting objects To JSP ( and in turn browser )
Also, i couldnt find any kind of description/Documentation regarding packages ( com.sap.mbs.core.api.* ) like :
com.sap.mbs.core.api.Context
com.sap.mbs.core.api.Forward
com.sap.mbs.core.api.Forwards
Which could have helped in finding things.
Could you please tell any source of documentation/description that exists for such packages ?
Regards,
Vipin.
hello raja,
PocketIE support JavaScript 1.1 in the form of JScript
implementation. VBScript on the other hand is not supported.
regarding the graphs & charts using javascript, you can
make use of some free snippets available on the internet.
however, you have to make sure that the codes are for the
1.1 specification of javascript. just to give you some,
check out the following links for free scripts:
http://artdhtml.com/free/charts.asp
http://www.lutanho.net/diagram/
you can use jsp or servlet to pass the data that are to be
graphed in the browser.
hope this help.
jo
hello vipin,
i had posted the link to the generated javadoc for mbscore
before in other thread. the javadoc doesnt have the descriptions
but it will give you an idea of what classes/interfaces
as well as methods are there.
here's the link.
http://jny.50webs.com/mbscore/
regards
jo
Hi Jo ,
I tried out the applet tag used in JChart and some other links provided by you.
Its not working on PDA. they are working on desktop versions.
Also, for making line graphs through just javascript - first of all i couldnt find anythign that runs on PDA and also if i would have find out soemthing , it seems a very tedious task to make the entire mathematical calculations and create a line graph in javascript.
So, i guess some third party libraries or some tag libraies would be a good idea.
any hints or suggestions ( for libraries / tags ) ??
Thanks & Regards,
Vipin
hello vipin,
what type of charts are you trying to plot by the way?
if you are just plotting something like a bar-graph, it
is pretty easy with jsp/servlet. all you need is a 1px
image and an html table codes. in jsp page, you can create
a colums or rows for your bars, and your indicators will be
the image. your image width and/or height will be set to n
values depending on your data... here's a simple example.
blue.gif is a 1px image file of blue color. in this case
your data let's say percentage will be the variable for
the image's height attribute.
<table width="200" height="100" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="bottom" align="center"><img src="blue.gif" width="30" height="20"></td>
<td valign="bottom" align="center"><img src="blue.gif" width="30" height="80"></td>
<td valign="bottom" align="center"><img src="blue.gif" width="30" height="60"></td>
</tr>
<tr>
<td valign="bottom" align="center">Data1</td>
<td valign="bottom" align="center">Data2</td>
<td valign="bottom" align="center">Data3</td>
</tr>
</table>
regards
jo
Hi Jo,
I need to make a line graph not the bar chart one.
Following links contains some information regarding the PIE:
http://www.hpcfactor.com/support/cesd/d/0001.asp
http://en.wikipedia.org/wiki/Pocket_Internet_Explorer
Could you plesae give any hint on line graphs ?
Thanks & Regards,
Vipin.
hello vipin,
try looking at this site...
i don't have an PDA to test it.
it might worth a try.
http://www.sbmkpm.com/line.html
jo
hello raja,
what is your MI runtime? JSP/servlet or AWT?
for JSP/Servlet, you can make use of JavaScript to plot
your graph dynamically. or you can user flash (swf)...
the last resort is to create a jpeg image of the graph
during runtime.
here's a very good article on how to do this.
http://www.javaworld.com/javaworld/jw-05-2000/jw-0505-servlets.html
for awts, either you create from scratch or get commercial
ones... here's an open source one that you might want to
check.
regards
jo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
10 | |
10 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.