Mr.Dan,<br>This was the method I required. I used this method and now my application is running properly. Thank you very much for your help.<br><br clear="all">Thanks<br>Gayani Edirisinghe<input type="hidden"><input type="hidden"><div>
</div><input type="hidden"><input type="hidden"><div></div><br>
<br><br><div class="gmail_quote">On Tue, Oct 25, 2011 at 6:50 PM, Dan Little [via Geomoose-users] <span dir="ltr"><<a href="/user/SendEmail.jtp?type=node&node=3456803&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="h5">
        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.
<br><br>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.
<br><br>In the mapbook:
<br><br><service name="service_a" title="Service A">
<br> <url>myphp/service_a.php</url>
<br> <input type="user" name="input_a" title="An input from the user:"/>
<br></service>
<br><br><service name="service_b" title="Service B">
<br> <url>myphp/service_b.php</url>
<br> <input type="hidden" name="input_b"/> <!-- hidden input that will be set to input_a -->
<br></service>
<br><br>Later in the catalog:
<br><tool name="call_service_a" title="Service A" type="service" service="service_a" selectable="false"/>
<br><br>The PHP:
<br><br>myphp/service_a.php
<br><?php
<br>header('Content-type: text/xml');
<br><br>print "<results>";
<br>print "<html><![CDATA[";
<br>print "<a href=\"javascript:GeoMOOSE.startService('service_b', {input_b: '". $_GET['input_a']."']})\">Show Service B</a>";print "]]></html></results>";
<br>?>
<br><br>myphp/service_b.php
<br><br><?php
<br>header('Content-type: text/xml');
<br>print "<results>";
<br>print "<html><![CDATA[";
<br>print $_GET['input_b'];
<br>print "]]></html></results>";
<br>?>
<br><br><br></div></div><div><br>>________________________________
<br><div class="im">>From: gayani <<a href="http://user/SendEmail.jtp?type=node&node=3451344&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>>
<br>>To: <a href="http://user/SendEmail.jtp?type=node&node=3451344&i=1" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br></div><div class="im">>Sent: Monday, October 24, 2011 10:10 PM
<br>>Subject: [Geomoose-users] Re: Refresh Mapbook
<br>>
<br></div><div class="im">>Hi,
<div class='shrinkable-quote'><br>>Can't we do it dynamic.
<br>>
<br>>I need to pass a variable from one php file to another PHP file through map
<br>>service. That's why I an tring to make dynamic the Mapbook.
<br>>
<br>>Please help me to solve this problem. (pass the variable within two PHP
<br>>files)
<br>>
<br>>Thanks
<br>>Gayani
<br>>
</div></div><div class="im">>--
<br>>View this message in context: <a href="http://geomoose-users.964460.n3.nabble.com/Refresh-Mapbook-tp3450108p3450274.html" rel="nofollow" link="external" target="_blank">http://geomoose-users.964460.n3.nabble.com/Refresh-Mapbook-tp3450108p3450274.html</a><br>
>Sent from the Geomoose-users mailing list archive at Nabble.com.
<br>>_______________________________________________
<br>>Geomoose-users mailing list
<br></div>><a href="http://user/SendEmail.jtp?type=node&node=3451344&i=2" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br>><a href="http://lists.osgeo.org/mailman/listinfo/geomoose-users" rel="nofollow" link="external" target="_blank">http://lists.osgeo.org/mailman/listinfo/geomoose-users</a><br>>
<br>>
<br>>
</div><div class="im">_______________________________________________
<br>Geomoose-users mailing list
<br><a href="http://user/SendEmail.jtp?type=node&node=3451344&i=3" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br><a href="http://lists.osgeo.org/mailman/listinfo/geomoose-users" rel="nofollow" link="external" target="_blank">http://lists.osgeo.org/mailman/listinfo/geomoose-users</a><br>
        
        <br>
        <br>
        </div><hr color="#cccccc" noshade size="1">
        <div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif"><div class="im">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                </div><a href="http://geomoose-users.964460.n3.nabble.com/Refresh-Mapbook-tp3450108p3451344.html" target="_blank" rel="nofollow" link="external">http://geomoose-users.964460.n3.nabble.com/Refresh-Mapbook-tp3450108p3451344.html</a>
        </div><div><div></div><div class="h5">
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em">
                
                To unsubscribe from Refresh Mapbook, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.
        </div></div></div></blockquote></div><br>
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://geomoose-users.964460.n3.nabble.com/Refresh-Mapbook-tp3450108p3456803.html">Re: [Geomoose-users] Re: Refresh Mapbook</a><br/>
Sent from the <a href="http://geomoose-users.964460.n3.nabble.com/">Geomoose-users mailing list archive</a> at Nabble.com.<br/>