<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Julian,<br>
    <br>
    Yes I think that widget was added in the 2.2 release so you will
    need to use that version for sure.&nbsp; And I'm afraid that 'How to
    Create a Widget' has some correct sections in it but others are out
    of date, so your best bet for an example is to look at real code.&nbsp;
    Find a widget that has the chrome behaviour you want (button, panel,
    dialog, etc.) and try to follow one of those.<br>
    <br>
    Mike<br>
    <br>
    On 21/11/2011 3:23 PM, Julian Bogdani wrote:
    <blockquote cite="mid:7E75A3AD-3358-404F-BA78-CCEBB39C327A@unibo.it"
      type="cite">
      <div>Hello,</div>
      <div>I'm probably missing something.</div>
      <div>Adding this widget to the Application Definition file
        produces an error:&nbsp;404 Not Found - <a moz-do-not-send="true"
          href="http://localhost/gis/fusion/widgets/SelectAttribute.js">http://localhost/gis/fusion/widgets/SelectAttribute.js</a>"</div>
      <div>That's because &nbsp;the widget is not available in my
        installation. Did I download on old fusion version or should I
        implement the widget by myself?</div>
      <div>In this second case I'm afraid I'm not able to build it and
        I'm looking for a (almost)ready-to-use example :)</div>
      <div>Maybe this is one:&nbsp;<a moz-do-not-send="true"
          href="http://trac.osgeo.org/fusion/wiki/HowToCreateWidget">http://trac.osgeo.org/fusion/wiki/HowToCreateWidget</a>
        ?</div>
      <div><br>
      </div>
      <div>Julian</div>
      <div>
        <div style="word-wrap: break-word; -webkit-nbsp-mode: space;
          -webkit-line-break: after-white-space; "><span
            class="Apple-style-span" style="border-collapse: separate;
            color: rgb(0, 0, 0); font-family: Helvetica; font-style:
            normal; font-variant: normal; font-weight: normal;
            letter-spacing: normal; line-height: normal; orphans: 2;
            text-indent: 0px; text-transform: none; white-space: normal;
            widows: 2; word-spacing: 0px;
            -webkit-border-horizontal-spacing: 0px;
            -webkit-border-vertical-spacing: 0px;
            -webkit-text-decorations-in-effect: none;
            -webkit-text-size-adjust: auto; -webkit-text-stroke-width:
            0px; font-size: medium; ">
            <div style="word-wrap: break-word; -webkit-nbsp-mode: space;
              -webkit-line-break: after-white-space; "><span
                class="Apple-style-span" style="border-collapse:
                separate; color: rgb(0, 0, 0); font-family: Helvetica;
                font-style: normal; font-variant: normal; font-weight:
                normal; letter-spacing: normal; line-height: normal;
                orphans: 2; text-indent: 0px; text-transform: none;
                white-space: normal; widows: 2; word-spacing: 0px;
                -webkit-border-horizontal-spacing: 0px;
                -webkit-border-vertical-spacing: 0px;
                -webkit-text-decorations-in-effect: none;
                -webkit-text-size-adjust: auto;
                -webkit-text-stroke-width: 0px; font-size: medium; ">
                <div style="word-wrap: break-word; -webkit-nbsp-mode:
                  space; -webkit-line-break: after-white-space; ">
                  <div><br class="Apple-interchange-newline">
                    <br>
                  </div>
                  <div><br>
                  </div>
                </div>
              </span></div>
          </span></div>
      </div>
      <div><br>
        <div>Begin forwarded message:</div>
        <br class="Apple-interchange-newline">
        <blockquote type="cite">
          <div style="margin-top: 0px; margin-right: 0px; margin-bottom:
            0px; margin-left: 0px;"><span
              style="font-family:'Helvetica'; font-size:medium;
              color:rgba(0, 0, 0, 1);"><b>From: </b></span><span
              style="font-family:'Helvetica'; font-size:medium;">Michael
              Adair &lt;<a moz-do-not-send="true"
                href="mailto:madair@dmsolutions.ca">madair@dmsolutions.ca</a>&gt;<br>
            </span></div>
          <div style="margin-top: 0px; margin-right: 0px; margin-bottom:
            0px; margin-left: 0px;"><span
              style="font-family:'Helvetica'; font-size:medium;
              color:rgba(0, 0, 0, 1);"><b>Date: </b></span><span
              style="font-family:'Helvetica'; font-size:medium;">November
              16, 2011 10:36:07 PM GMT+01:00<br>
            </span></div>
          <div style="margin-top: 0px; margin-right: 0px; margin-bottom:
            0px; margin-left: 0px;"><span
              style="font-family:'Helvetica'; font-size:medium;
              color:rgba(0, 0, 0, 1);"><b>To: </b></span><span
              style="font-family:'Helvetica'; font-size:medium;"><a
                moz-do-not-send="true"
                href="mailto:fusion-users@lists.osgeo.org">fusion-users@lists.osgeo.org</a><br>
            </span></div>
          <div style="margin-top: 0px; margin-right: 0px; margin-bottom:
            0px; margin-left: 0px;"><span
              style="font-family:'Helvetica'; font-size:medium;
              color:rgba(0, 0, 0, 1);"><b>Subject: </b></span><span
              style="font-family:'Helvetica'; font-size:medium;"><b>Re:
                [fusion-users] Query by attributes</b><br>
            </span></div>
          <br>
          <div>You can use the SelectAttribute widget. &nbsp;The config is
            like so:<br>
            <br>
            &lt;Widget&gt;<br>
            &lt;Name&gt;QueryByAttribute&lt;/Name&gt;<br>
            &lt;Type&gt;SelectAttribute&lt;/Type&gt;<br>
            &lt;ImageUrl&gt;images/icons.png&lt;/ImageUrl&gt;<br>
            &lt;ImageClass&gt;select-attribute&lt;/ImageClass&gt;<br>
            &lt;Label&gt;Select by Attribute&lt;/Label&gt;<br>
            &lt;Tooltip&gt;Query features by attributes&lt;/Tooltip&gt;<br>
            &lt;Extension&gt;<br>
            &lt;Container&gt;QueryParams&lt;/Container&gt;<br>
            &lt;/Extension&gt;<br>
            &lt;/Widget&gt;<br>
            <br>
            where &lt;Container&gt; is an element in the HTML to contain
            the drop downs and form elements for the widget.<br>
            <br>
            Mike<br>
            <br>
            <br>
            <br>
            On 16/11/2011 4:30 PM, jbogdani wrote:<br>
            <blockquote type="cite">Hello all,<br>
            </blockquote>
            <blockquote type="cite">my question is: is there any
              configurable widget available in fusion that I<br>
            </blockquote>
            <blockquote type="cite">can use to make queries (selects) on
              features using their attributes?<br>
            </blockquote>
            <blockquote type="cite">Eventually anybody has documentation
              / case studies to share about this?<br>
            </blockquote>
            <blockquote type="cite"><br>
            </blockquote>
            <blockquote type="cite">Thank you<br>
            </blockquote>
            <blockquote type="cite"><br>
            </blockquote>
            <blockquote type="cite"><br>
            </blockquote>
            <blockquote type="cite">--<br>
            </blockquote>
            <blockquote type="cite">View this message in context: <a
                moz-do-not-send="true"
href="http://osgeo-org.1803224.n2.nabble.com/Query-by-attributes-tp7001936p7001936.html">http://osgeo-org.1803224.n2.nabble.com/Query-by-attributes-tp7001936p7001936.html</a><br>
            </blockquote>
            <blockquote type="cite">Sent from the Fusion Users mailing
              list archive at <a moz-do-not-send="true"
                href="http://Nabble.com">Nabble.com</a>.<br>
            </blockquote>
            <blockquote type="cite">_______________________________________________<br>
            </blockquote>
            <blockquote type="cite">fusion-users mailing list<br>
            </blockquote>
            <blockquote type="cite"><a moz-do-not-send="true"
                href="mailto:fusion-users@lists.osgeo.org">fusion-users@lists.osgeo.org</a><br>
            </blockquote>
            <blockquote type="cite"><a moz-do-not-send="true"
                href="http://lists.osgeo.org/mailman/listinfo/fusion-users">http://lists.osgeo.org/mailman/listinfo/fusion-users</a><br>
            </blockquote>
            _______________________________________________<br>
            fusion-users mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:fusion-users@lists.osgeo.org">fusion-users@lists.osgeo.org</a><br>
            <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/fusion-users">http://lists.osgeo.org/mailman/listinfo/fusion-users</a><br>
          </div>
        </blockquote>
      </div>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
fusion-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:fusion-users@lists.osgeo.org">fusion-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/fusion-users">http://lists.osgeo.org/mailman/listinfo/fusion-users</a>
</pre>
    </blockquote>
  </body>
</html>