[Geomoose-users] Re: Refresh Mapbook

gayani gayani.edirisinghe at gmail.com
Thu Oct 27 02:09:36 EDT 2011


Mr.Dan,
This was the method I required.  I used this method and now my application
is running properly. Thank you very much for your help.

Thanks
Gayani Edirisinghe



On Tue, Oct 25, 2011 at 6:50 PM, Dan Little [via Geomoose-users] <
ml-node+s964460n3451344h83 at n3.nabble.com> wrote:

> No, the mapbook should not be dynamic.  It's a configuration file and there
> are plenty of options in the runtime environment to perform dynamic
> operations.
>
> I still really don't know what you're trying to do.  But assuming you have
> two known PHP scripts, and you're trying to share data between them, and
> assuming you're using GeoMOOSE 2.2/2.4 the following should work.  I haven't
> debugged or tested any of this code.  I just started typing and copied some
> of the code from the demo.
>
> In the mapbook:
>
> <service name="service_a" title="Service A">
>  <url>myphp/service_a.php</url>
>  <input type="user" name="input_a" title="An input from the user:"/>
> </service>
>
> <service name="service_b" title="Service B">
>  <url>myphp/service_b.php</url>
>  <input type="hidden" name="input_b"/> <!-- hidden input that will be set
> to input_a -->
> </service>
>
> Later in the catalog:
> <tool name="call_service_a" title="Service A" type="service"
> service="service_a" selectable="false"/>
>
> The PHP:
>
> myphp/service_a.php
> <?php
> header('Content-type: text/xml');
>
> print "<results>";
> print "<html><![CDATA[";
> print "<a href=\"javascript:GeoMOOSE.startService('service_b', {input_b:
> '". $_GET['input_a']."']})\">Show Service B</a>";print
> "]]></html></results>";
> ?>
>
> myphp/service_b.php
>
> <?php
> header('Content-type: text/xml');
> print "<results>";
> print "<html><![CDATA[";
> print $_GET['input_b'];
> print "]]></html></results>";
> ?>
>
>
>
> >________________________________
> >From: gayani <[hidden email]<http://user/SendEmail.jtp?type=node&node=3451344&i=0>>
>
> >To: [hidden email] <http://user/SendEmail.jtp?type=node&node=3451344&i=1>
> >Sent: Monday, October 24, 2011 10:10 PM
> >Subject: [Geomoose-users] Re: Refresh Mapbook
> >
> >Hi,
> >Can't we do it dynamic.
> >
> >I need to pass a variable from one php file to another PHP file through
> map
> >service. That's why I an tring to make dynamic the Mapbook.
> >
> >Please help me to solve this problem.  (pass the variable within two PHP
> >files)
> >
> >Thanks
> >Gayani
> >
> >--
> >View this message in context:
> http://geomoose-users.964460.n3.nabble.com/Refresh-Mapbook-tp3450108p3450274.html
> >Sent from the Geomoose-users mailing list archive at Nabble.com.
> >_______________________________________________
> >Geomoose-users mailing list
> >[hidden email] <http://user/SendEmail.jtp?type=node&node=3451344&i=2>
> >http://lists.osgeo.org/mailman/listinfo/geomoose-users
> >
> >
> >
> _______________________________________________
> Geomoose-users mailing list
> [hidden email] <http://user/SendEmail.jtp?type=node&node=3451344&i=3>
> http://lists.osgeo.org/mailman/listinfo/geomoose-users
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://geomoose-users.964460.n3.nabble.com/Refresh-Mapbook-tp3450108p3451344.html
>  To unsubscribe from Refresh Mapbook, click here<http://geomoose-users.964460.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=3450108&code=Z2F5YW5pLmVkaXJpc2luZ2hlQGdtYWlsLmNvbXwzNDUwMTA4fDIwMTE5NTA3OTk=>.
>
>


--
View this message in context: http://geomoose-users.964460.n3.nabble.com/Refresh-Mapbook-tp3450108p3456803.html
Sent from the Geomoose-users mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geomoose-users/attachments/20111026/9b5dcde8/attachment-0001.html


More information about the Geomoose-users mailing list