<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2014/1/13 Andreas Neumann <span dir="ltr"><<a href="mailto:a.neumann@carto.net" target="_blank">a.neumann@carto.net</a>></span><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Hi Alessandro,<br>
<br>
Thanks for the changes. Do you have an existing test installation<br>
publically available. The GlobalOptions.js contain quite a few different<br>
settings that wouldn't make it compatible with the demo projects in the<br>
main branch. So it is a bit of work to set up your copy at my machine.<br></blockquote><div><br></div><div>Not yet sorry, will be probably available in a couple of weeks.</div><div><br></div><div>My intention was to make all possible configuration parameters optional, so that QWC can run with minimal (ideally no) configuration.</div>
<div>Your difficulties mean that I've failed :)</div><div>All new settings I've introduced are tested for typeof('nameofsetting')=='undefined' and shouldn't be mandatory or have smart defaults.</div>
<div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br>
<br>
Am <a href="tel:08.01.2014%2018" value="+390801201418">08.01.2014 18</a>:51, schrieb Alessandro Pasotti:<br>
<div class="im">> Hi,<br>
><br>
> as discussed a few days ago, I'm trying to implement a configurable output<br>
> for search results, it's now possible to show search results in left panel<br>
> (default), right panel, bottom panel and in a separate window.<br>
><br>
> I've published it in a branch (still work in progress), please give me some<br>
> feedback.<br>
><br>
> This is what I've done so far:<br>
><br>
> 1. added an optional config var in GlobalOptions.js<br>
> var mapSearchPanelOutputRegion = 'popup' ; // Possible values:<br>
> default,right,bottom,popup, see<br>
> <a href="https://github.com/elpaso/QGIS-Web-Client/blob/configurable_layout/site/js/GlobalOptions.js#L197" target="_blank">https://github.com/elpaso/QGIS-Web-Client/blob/configurable_layout/site/js/GlobalOptions.js#L197</a><br>

<br>
</div>Does this concern the builtin search method that uses QGIS server? The<br>
one in the panel on the left?<br></blockquote><div><br></div><div>Yes. Default is just the old behavior, but now the user can config QWC to show results in bottom, right and in a Ext window.</div><div> </div><div>[...]</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">
><br>
> 4. added an Ext alert modal in case of no results. I'm still looking for a<br>
> better solution, I'm sure that the user should be warned about "no records<br>
> found" but I'd rather prefer a spotlight message to a modal alert.<br>
<br>
</div>yes - maybe we should introduce a messaging system like in QGIS desktop<br>
with a message bar that pops up at the top of the map panel but does not<br>
block the interface. Until then you could use the status bar at the bottom.<br></blockquote><div><br></div><div><br></div><div>Yes, that was the idea, but I've already looked for an Ext solution in the past without finding one. I'm too lazy to code one from scratches.</div>
<div><br></div><div>I'm now changing QGIS.SearchPanel to handle empty values if allowBlank is True.  </div><div>As always in web forms it's difficult to tell a blank from a null but I would like to allow partial searches in the form when allowBlank is true for some fields. </div>
<div>I think I will just add an optional configuration variable to define the default behavior.</div></div><div><br></div>-- <br>Alessandro Pasotti<br>w3:   <a href="http://www.itopen.it">www.itopen.it</a>
</div></div>