<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>------------------------english------------------------------------------------------------------</p>
    <p>Hello,<br>
      <br>
      The configuration of the SearchRouter looks ok. The specification
      of "data-autocomplete-using: type" does not work, since you have
      not specified a table column under attributes named "type".<br>
      So far, the error message says your class is not correct. Are the
      connection name, table name, and column names correct?<br>
      What does Mapbender3 say as an error message when calling
      app_dev.php? Here are usually more information in the log.<br>
      <br>
      However, in the latest Mapbender 3.0.6.1 version, another error is
      known, which should be noted:<br>
      <a class="moz-txt-link-freetext" href="https://github.com/mapbender/mapbender/issues/543">https://github.com/mapbender/mapbender/issues/543</a><br>
      <br>
      As a comparison, here is the configuration of the SearchRouter as
      the export of the following application:<br>
      <a class="moz-txt-link-freetext" href="https://demo.mapbender3.org/application/mapbender_user_reference">https://demo.mapbender3.org/application/mapbender_user_reference</a></p>
    <p>(see below)<br>
    </p>
    <p>-------------------------german----------------------------------------------------------------</p>
    <p>Hallo,<br>
      <br>
      die Konfiguration des SearchRouters sieht soweit ok aus. Die
      Angabe von data-autocomplete-using: type funktioniert so jedoch
      nicht, da du keine Tabellenspalte unter attributes angegeben hast,
      die "type heißt". <br>
      Soweit sagt die Fehlermeldung, dass deine Class-Angabe nicht
      korrekt ist. Stimmen der Connection-Name, Tabellenname und
      Spaltennamen?<br>
      Was sagt der Mapbender3 als Fehlermeldung bei dem Aufruf über
      app_dev.php? Hier kommen meist aufschlussreichere Informationen im
      Log raus. <br>
      <br>
      Bei der neusten Mapbender 3.0.6.1 Version ist jedoch ein anderer
      Fehler bekannt, der beachtet werden sollte: <br>
      <a class="moz-txt-link-freetext" href="https://github.com/mapbender/mapbender/issues/543">https://github.com/mapbender/mapbender/issues/543</a><br>
      <br>
      Als Vergleich ist hier mal die Konfiguration des SearchRouter als
      Export der folgenden Anwendung: <br>
      <a class="moz-txt-link-freetext" href="https://demo.mapbender3.org/application/mapbender_user_reference">https://demo.mapbender3.org/application/mapbender_user_reference</a><br>
      <br>
              id: 571<br>
              title: 'SQL Search via SearchRouter'<br>
              class: Mapbender\CoreBundle\Element\SearchRouter<br>
              configuration:<br>
                  tooltip: mb.core.searchrouter.class.title<br>
                  title: mb.core.searchrouter.class.title<br>
                  target: 'map'<br>
                  timeoutFactor: 3<br>
                  width: 700<br>
                  height: 500<br>
                  asDialog: false            <br>
                  routes:<br>
                      poi:<br>
                          class:
      Mapbender\CoreBundle\Component\SQLSearchEngine<br>
                          class_options:<br>
                              connection: search_db<br>
                              relation: qry_mapbender_user_suche<br>
                              attributes:<br>
                                  - firstname<br>
                                  - lastname<br>
                                  - fullname<br>
                                  - usertype<br>
                                  - ergebnis<br>
                              geometry_attribute: the_geom<br>
                          form:<br>
                              lastname:<br>
                                  type: text<br>
                                  options:<br>
                                      label: 'Lastname:'<br>
                                      required: false<br>
                                      attr:<br>
                                          data-autocomplete: 'on'<br>
                                          data-autocomplete-distinct:
      'on'<br>
                                          data-autocomplete-using:
      'firstname,usertype'<br>
                                  compare: ilike<br>
                              fullname:<br>
                                  type: text<br>
                                  options:<br>
                                      label: 'Project:'<br>
                                      required: false<br>
                                      attr:<br>
                                          data-autocomplete: 'on'<br>
                                  compare: ilike<br>
                              usertype:<br>
                                  type: choice<br>
                                  options:<br>
                                      label: Usertype<br>
                                      required: false<br>
                                      empty_value: 'Please Choose...'<br>
                                      choices:<br>
                                          company: Company<br>
                                          administration: Administration<br>
                                          university: University<br>
                                          user: User<br>
                                  compare: ilike<br>
                          results:<br>
                              view: table<br>
                              count: true<br>
                              headers:<br>
                                  ergebnis: Name<br>
                                  fullname: Project<br>
                                  usertype: Usertype<br>
                              callback:<br>
                                  event: click<br>
                                  options:<br>
                                      buffer: 50<br>
                                      minScale: 500<br>
                                      maxScale: 2500<br>
                              styleMap:<br>
                                  default:<br>
                                      strokeWidth: 2<br>
                                      strokeColor: '#00ffff'<br>
                                      fillColor: '#00f300'<br>
                                      fillOpacity: 0.5<br>
                                      pointRadius: 10<br>
                                  select:<br>
                                      strokeWidth: 3<br>
                                      fillColor: '#FF0000'<br>
                                      strokeColor: '#FF00FF'<br>
                                      fillOpacity: 1<br>
                                      pointRadius: 10</p>
    <pre class="moz-signature" cols="72">-- 
Mit freundlichen Grüßen

Charlotte Toma
GIS-Consultant

**********************************
AGIT 2017
5.-7. Juli 2017 in Salzburg
Besuchen Sie uns an Stand Nr. 31
<a class="moz-txt-link-abbreviated" href="http://www.agit.at">www.agit.at</a>
********************************** 

 Charlotte Toma
 WhereGroup GmbH & Co.KG
 Eifelstraße 7
 53119 Bonn
 Germany

 Fon: +49(0)228 90 90 38 - 24
 Fax: +49(0)228 90 90 38 - 11

 <a class="moz-txt-link-abbreviated" href="mailto:charlotte.toma@wheregroup.com">charlotte.toma@wheregroup.com</a>
 <a class="moz-txt-link-abbreviated" href="http://www.wheregroup.com">www.wheregroup.com</a>

 Folgen Sie der WhereGroup auf twitter: <a class="moz-txt-link-freetext" href="http://twitter.com/WhereGroup_com">http://twitter.com/WhereGroup_com</a>

Amtsgericht Bonn, HRA 6788
-------------------------------
Komplementärin:
WhereGroup Verwaltungs GmbH
vertreten durch:
Olaf Knopp, Peter Stamm
------------------------------- </pre>
    <div class="moz-cite-prefix">Am 24.06.2017 um 18:33 schrieb Tino
      Schuldt:<br>
    </div>
    <blockquote type="cite"
cite="mid:trinity-9489c486-a972-43cd-b51f-d6e73a463af4-1498322008030@3capp-gmx-bs38">
      <div style="font-family: Verdana;font-size: 12.0px;">
        <div>Hallo, <br>
          <br>
          ich versuche seit einiger Zeit den Search Router mithilfe der
          mapbender.yml Datei zu erstellen. Leider bekomme ich beim
          einlesen Fehlermeldungen. Was mache ich falsch? Nur wenn ich
          searchrouter aus meiner mapbender.yml Datei entferne klappt
          alles problemlos. <br>
          Ich nutze die neuste Mapbender 3.0.6.1 Version. <br>
          <br>
          Fehlermeldung: <br>
            > loading
          Mapbender\CoreBundle\DataFixtures\ORM\Application\LoadApplicationData <br>
          <br>
                                                                        <br>
            [Symfony\Component\Debug\Exception\ContextErrorException]   <br>
            Notice: Undefined index: class                             <br>
                                                                        <br>
          <br>
          doctrine:fixtures:load [--fixtures [FIXTURES]] [--append]
          [--em EM] [--shard SHARD] [--purge-with-truncate]
          [--multiple-transactions] [-h|--help] [-q|--quiet]
          [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi]
          [-n|--no-interaction] [-s|--shell] [--process-isolation]
          [-e|--env ENV] [--no-debug] [--] <command><br>
          <br>
          <br>
          Mein Code ist wie folgt: <br>
          <br>
                      elements: <br>
                          sidepane: <br>
                              searchrouter: <br>
                                  target: map <br>
                                  asDialog: false <br>
                                  timeoutFactor: 3 <br>
                                  height: 500 <br>
                                  width: 700 <br>
                                  routes: <br>
                                      poi: <br>
                                          class:
          Mapbender\CoreBundle\Component\SQLSearchEngine <br>
                                          class_options: <br>
                                            connection: postgis <br>
                                            relation: geodata.poi <br>
                                            attributes: <br>
                                              - gid <br>
                                              - name <br>
                                            geometry_attribute: geom <br>
                                          form: <br>
                                            name: <br>
                                              type: text <br>
                                              options: <br>
                                                required: true <br>
                                                attr: <br>
                                                  data-autocomplete:
          'on' <br>
                                                 
          data-autocomplete-distinct: 'on' <br>
                                                 
          data-autocomplete-using: type <br>
                                              compare: ilike <br>
                                          results: <br>
                                            view: table <br>
                                            count: true <br>
                                            headers: <br>
                                              gid: ID <br>
                                              name: Name <br>
                                            callback: <br>
                                              event: click <br>
                                              options: <br>
                                                buffer: 10 <br>
                                                minScale: null <br>
                                                maxScale: null</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Mapbender_users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Mapbender_users@lists.osgeo.org">Mapbender_users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/mapbender_users">https://lists.osgeo.org/mailman/listinfo/mapbender_users</a></pre>
    </blockquote>
    <br>
  </body>
</html>