<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.3790.2491" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>the getInit is a forced passage, the first time you access
cartoweb. Try doing x($this->serverContext->getMapObj()); this should stop
the flow and display the content of the map object. If if doesnt work the first
time, then it mean your whole plugin is ignored.</FONT></DIV>
<DIV><FONT size=2>See the outline plugin for a live exemple of getMapObj() call
and use.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Regards,</FONT></DIV>
<DIV><FONT size=2>Oliver</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=venu.papasani@gmail.com
href="mailto:venu.papasani@gmail.com">VenuGopal Papasani</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=oliver.christen@camptocamp.com
href="mailto:oliver.christen@camptocamp.com">oliver</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, February 28, 2006 2:38
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Cartoweb-users] Hi Problem
with my Plugin</DIV>
<DIV><BR></DIV>
<DIV>Hi Oliver,</DIV>
<DIV> I am verymuch thankful for u r suggestion.If I have called
the method in getInit() I lost the error but the execution does not enter to
any of the methods even to the getInit().How can i make my execution start
with getInit() in <A href="http://serverDhis.php.No">serverDhis.php.No</A>
coloring have been seen on my map.</DIV>
<DIV> </DIV>
<DIV>Bye.</DIV>
<DIV>venu.<BR><BR> </DIV>
<DIV><SPAN class=gmail_quote>On 2/28/06, <B class=gmail_sendername>oliver</B>
<<A
href="mailto:oliver.christen@camptocamp.com">oliver.christen@camptocamp.com</A>>
wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<DIV><FONT size=2>Hi Venu,</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>at the constructor level, </FONT><FONT size=3>getMapObj()
is not available,</FONT></DIV>
<DIV>try calling it at the getInit() level.</DIV>
<DIV>please have a look at <A
onclick="return top.js.OpenExtLink(window,event,this)"
href="http://www.cartoweb.org/doc/misc/plugins_diagram.pdf"
target=_blank>http://www.cartoweb.org/doc/misc/plugins_diagram.pdf</A> ,
this show the flow and order of calls between the client and
server </DIV>
<DIV> </DIV>
<DIV><FONT size=2>Regards</FONT></DIV>
<DIV><FONT size=2>Oliver</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV><SPAN class=e id=q_109b064b069bc7d0_1>
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV style="BACKGROUND: #e4e4e4; FONT: 10pt arial"><B>From:</B> <A
title=venu.papasani@gmail.com
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:venu.papasani@gmail.com" target=_blank>VenuGopal Papasani
</A></DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=cartoweb-users@lists.maptools.org
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:cartoweb-users@lists.maptools.org"
target=_blank>cartoweb-users@lists.maptools.org </A></DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, February 28, 2006
10:06 AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Cartoweb-users] Hi Problem
with my Plugin</DIV>
<DIV><BR> </DIV>
<DIV>Hi ,</DIV>
<DIV> I am trying to color my India
map.First I am trying to color the map without any functionality on the
client side.I have written the following plugin dhisind and i have written
the serverDhisind.php witth the functionality to just color my map.I am
getting the following error.when i did not call the function
colormapfromdata() from the construct the execution never enters into the
function but when i added it in the constructor I was getting the
following error.I have referred to the following link there is no method
called getMapObj() in the ServerPlugin::serverContext class.</DIV>
<DIV><A onclick="return top.js.OpenExtLink(window,event,this)"
href="http://cartoweb.org/doc/cw3.0/apidoc/Server/ServerPlugin.html#var$serverContext"
target=_blank>http://cartoweb.org/doc/cw3.0/apidoc/Server/ServerPlugin.html#var$serverContext
</A></DIV>
<DIV> </DIV>
<DIV>I need your help in solving this problem.</DIV>
<DIV> </DIV>
<DIV>I am here attaching my dhisind plugin and my
client.ini(client_conf),India.map,India.ini,layers.ini(server_conf)</DIV>
<DIV> </DIV>
<DIV>The error was as follows::</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><BR><B>Fatal error</B>: Call to a member function getMapObj() on a
non-object in
<B>C:\wamp\www\cartoweb3\plugins\dhisind\server\ServerDhisind.php</B> on
line <B>41</B></DIV>
<P><STRONG></STRONG> </P>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Regards,</DIV>
<DIV>Venu.</DIV></SPAN></DIV>
<P>
<HR>
<P></P>_______________________________________________<BR>Cartoweb-users
mailing list<BR><A onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:Cartoweb-users@lists.maptools.org"
target=_blank>Cartoweb-users@lists.maptools.org </A><BR><A
onclick="return top.js.OpenExtLink(window,event,this)"
href="http://lists.maptools.org/mailman/listinfo/cartoweb-users"
target=_blank>http://lists.maptools.org/mailman/listinfo/cartoweb-users</A><BR>
<P></P>
<P></P></BLOCKQUOTE></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></BODY></HTML>