<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV>Thanks Samuel, and thanks for the short time in the answer.</DIV>
<DIV> </DIV>
<DIV>I will try to do your two suggest: variable, and brand new based on querybyshape widget</DIV>
<DIV> </DIV>
<DIV>But i have another question, i am trying to change all names in query2 (brand new widget based on query, similar logical, but diferent names to normal query), i am changing javascript functions, etc. What is exactly the reason to this answer: </DIV>
<DIV>-You can't have 2 query widget on the same page (or one query and one copy of the query)</DIV>
<DIV>- No it's not possible out-of-the-box. </DIV>
<DIV> </DIV>
<DIV>There are something especial en query widget that only can exist one time.</DIV>
<DIV> </DIV>
<DIV>Thanks for your answer.</DIV>
<DIV> </DIV>
<DIV>Alexys H</DIV>
<DIV> </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Mensaje original ----<BR>De: Julien-Samuel Lacroix <jlacroix@mapgears.com><BR>Para: Alexys Herleym Rodriguez Avellaneda <alexys_6@yahoo.es><BR>CC: chameleon <chameleon@lists.maptools.org><BR>Enviado: viernes, 21 de diciembre, 2007 16:08:32<BR>Asunto: Re: [Chameleon] query normal widget and query custom widget in different widgets<BR><BR>Hi,<BR><BR>No it's not possible out-of-the-box. What I may suggest to you is to use <BR>your query2 widget you created earlier. This new widget will do exactly <BR>the same thing as the normal query. However, it will set a special <BR>variable when you will click on the button (via JavaScript). Then with <BR>your myOnQuery function (see <BR><A href="http://chameleon-tiki.maptools.org/tiki-index.php?page=QueryWidgetCustomizingResults"
target=_blank>http://chameleon-tiki.maptools.org/tiki-index.php?page=QueryWidgetCustomizingResults</A> <BR>) you will check for this variable. If it is set, you will only open <BR>your custom popup.<BR><BR>Your other choice is to create yourself a brand new widget (See the <BR>QueryByShape widget).<BR><BR>Julien<BR><BR><BR>Alexys Herleym Rodriguez Avellaneda wrote:<BR>> Thanks Samuel, i follow this document <BR>> (_QueryWidgetCustomizingResults_). I can show in one button only the <BR>> normal query (popupresults = true in the CWC2 for query widget), and i <BR>> can show the two querys (normal and custom) with popupresults = false in <BR>> the CWC2 for query widget.<BR>> <BR>> My question is can i put another button with the custom query only? (it <BR>> is possible in the same query widget?). I need to have two buttons, <BR>> first with normal query, and second with de custom query only.<BR>> <BR>> Thanks
Samuel.<BR>> <BR>> Alexys H<BR>> <BR>> <BR>> ----- Mensaje original ----<BR>> De: Julien-Samuel Lacroix <<A href="mailto:jlacroix@mapgears.com" ymailto="mailto:jlacroix@mapgears.com">jlacroix@mapgears.com</A>><BR>> Para: Alexys Herleym Rodriguez Avellaneda <<A href="mailto:alexys_6@yahoo.es" ymailto="mailto:alexys_6@yahoo.es">alexys_6@yahoo.es</A>><BR>> CC: chameleon <<A href="mailto:chameleon@lists.maptools.org" ymailto="mailto:chameleon@lists.maptools.org">chameleon@lists.maptools.org</A>><BR>> Enviado: viernes, 21 de diciembre, 2007 15:17:46<BR>> Asunto: Re: [Chameleon] query normal widget and query custom widget in <BR>> different widgets<BR>> <BR>> Hi,<BR>> <BR>> You can't have 2 query widget on the same page (or one query and one<BR>> copy of the query) because of the javascript function calls. To make<BR>> your custom query see:<BR>> <A
href="http://chameleon-tiki.maptools.org/tiki-index.php?page=QueryWidgetCustomizingResults" target=_blank>http://chameleon-tiki.maptools.org/tiki-index.php?page=QueryWidgetCustomizingResults</A><BR>> <BR>> Julien<BR>> <BR>> Alexys Herleym Rodriguez Avellaneda wrote:<BR>> > Hi,<BR>> > <BR>> > I wish mery cristsmas for all.<BR>> > <BR>> > I want to do a copy (query2) of the query widget, for to do a custom<BR>> > query widget. When i run the query2 and delete que normal query widget,<BR>> > my custom work fine, but when the two widgets (query normal, and<BR>> > query2) exist (are together in chamaleon widgets folder), the query2<BR>> > send the popup window from query normal. How can i have the normal<BR>> > widget working (i.e in button 1) at the same time that que query<BR>> > custom (i.e. in button
2).<BR>> > <BR>> > The option popupresults="false" is limited, i need to show the next 3<BR>> > options: only normal query (already exist), only custom query (exist?),<BR>> > custom and normal (already exist).<BR>> > <BR>> > If the second option doesn't exist, the solution is create a query2 <BR>> widget?<BR>> > <BR>> > Thanks.<BR>> > <BR>> > Alexys H<BR>> > <BR>> > this is the cwc2 code for call to query and query2, in the same project:<BR>> > <BR>> > <BR>> > <BR>> > <td><cwc2 type="Query" visible="true" imagetip="Mostrar<BR>> > Informacion" PopupWidth="500" PopupHeight="600" Toolbar="false"<BR>> > Status="false" Menubar="false" RADIUS="3" MAXFEATURES="5"<BR>> > image="icons/icon_query.png"
toolset="Navigation"<BR>> > styleresource="NavButtons" popupstyleresource="TextButtons"<BR>> > highlightresults="false" popupresults="true" allowrectangle="true"<BR>> > persistentresults="true" submitpage="false"><BR>> > <image state="normal"/><BR>> > <image state="hover"/><BR>> > <image state="selected"/><BR>> > </cwc2></td><BR>> > <td><cwc2 type="Query2" visible="true" imagetip="Consulta Fedegan"<BR>> > PopupWidth="500" PopupHeight="600" Toolbar="false" Status="false"<BR>> > Menubar="false" RADIUS="3" MAXFEATURES="5" image="icons/icon_query.png"<BR>> > toolset="Navigation"
styleresource="NavButtons"<BR>> > popupstyleresource="TextButtons" highlightresults="true"<BR>> > popupresults="false" allowrectangle="false" persistentresults="true"<BR>> > submitpage="true"><BR>> > <image state="normal"/><BR>> > <image state="hover"/><BR>> > <image state="selected"/><BR>> > </cwc2></td><BR>> > <BR>> > <BR>> ><BR>> > ------------------------------------------------------------------------<BR>> ><BR>> > ¿Chef por primera vez? - Sé un mejor Cocinillas.<BR>> > Entra en Yahoo! Respuestas<BR>> > <BR>> <<A
href="http://es.rd.yahoo.com/evt:51361/*http://es.answers.yahoo.com/dir/index;_ylc=X3oDMTE4ZWhyZjU0BF9TAzIxMTQ3MTQzMjIEc2VjA0Jhbm5lcgRzbGsDQWNxdWlzaXRpb24-?link=over&sid=396545367" target=_blank>http://es.rd.yahoo.com/evt:51361/*http://es.answers.yahoo.com/dir/index;_ylc=X3oDMTE4ZWhyZjU0BF9TAzIxMTQ3MTQzMjIEc2VjA0Jhbm5lcgRzbGsDQWNxdWlzaXRpb24-?link=over&sid=396545367</A> <BR>> <<A href="http://es.rd.yahoo.com/evt:51361/*http://es.answers.yahoo.com/dir/index;_ylc=X3oDMTE4ZWhyZjU0BF9TAzIxMTQ3MTQzMjIEc2VjA0Jhbm5lcgRzbGsDQWNxdWlzaXRpb24-?link=over&sid=396545367" target=_blank>http://es.rd.yahoo.com/evt:51361/*http://es.answers.yahoo.com/dir/index;_ylc=X3oDMTE4ZWhyZjU0BF9TAzIxMTQ3MTQzMjIEc2VjA0Jhbm5lcgRzbGsDQWNxdWlzaXRpb24-?link=over&sid=396545367</A>>>.<BR>> ><BR>> ><BR>> > ------------------------------------------------------------------------<BR>> ><BR>> >
_______________________________________________<BR>> > Chameleon mailing list<BR>> > <A href="mailto:Chameleon@lists.maptools.org" ymailto="mailto:Chameleon@lists.maptools.org">Chameleon@lists.maptools.org</A> <mailto:<A href="mailto:Chameleon@lists.maptools.org" ymailto="mailto:Chameleon@lists.maptools.org">Chameleon@lists.maptools.org</A>><BR>> > <A href="http://lists.maptools.org/mailman/listinfo/chameleon" target=_blank>http://lists.maptools.org/mailman/listinfo/chameleon</A><BR>> <BR>> -- <BR>> Julien-Samuel Lacroix<BR>> Mapgears<BR>> <A href="http://www.mapgears.com/" target=_blank>http://www.mapgears.com/</A><BR>> <BR>> <BR>> ------------------------------------------------------------------------<BR>> <BR>> ¿Chef por primera vez? - Sé un mejor Cocinillas.<BR>> Entra en Yahoo! Respuestas <BR>> <<A
href="http://es.rd.yahoo.com/evt:51361/*http://es.answers.yahoo.com/dir/index;_ylc=X3oDMTE4ZWhyZjU0BF9TAzIxMTQ3MTQzMjIEc2VjA0Jhbm5lcgRzbGsDQWNxdWlzaXRpb24-?link=over&sid=396545367" target=_blank>http://es.rd.yahoo.com/evt:51361/*http://es.answers.yahoo.com/dir/index;_ylc=X3oDMTE4ZWhyZjU0BF9TAzIxMTQ3MTQzMjIEc2VjA0Jhbm5lcgRzbGsDQWNxdWlzaXRpb24-?link=over&sid=396545367</A>>.<BR><BR>-- <BR>Julien-Samuel Lacroix<BR>Mapgears<BR><A href="http://www.mapgears.com/" target=_blank>http://www.mapgears.com/</A><BR></DIV><BR></DIV></div><br>
<hr size=1><br><font face="Verdana" size="-2">¿Chef por primera vez? - Sé un mejor Cocinillas.<br><a href="http://es.rd.yahoo.com/evt:51361/*http://es.answers.yahoo.com/dir/index;_ylc=X3oDMTE4ZWhyZjU0BF9TAzIxMTQ3MTQzMjIEc2VjA0Jhbm5lcgRzbGsDQWNxdWlzaXRpb24-?link=over&sid=396545367">Entra en Yahoo! Respuestas</a>.<br></font></body></html>