Select to view content in your preferred language

Remove Shape_lenght item in Search widget

805
5
09-06-2010 03:58 AM
Stefanobruscoli
Emerging Contributor
How can i do it?

And I've see that not work link item if there's else condition in this block of code:

if (fld.toUpperCase() == queryTitleField.toUpperCase())
      {
       title = featureSet.fieldAliases[fld] + ":" + value;
       if (!title)
        title = widgetTitle;
      }
      // eliminato l'ele altrimenti non funzionava il link items
  //  here i've remove else condition...............

      if (fld.toUpperCase() == queryLinkField.toUpperCase())
      {
       link = value;
      
      }
      else
      {
       if (fld.toUpperCase() != queryTitleField.toUpperCase())
       {
        content += featureSet.fieldAliases[fld] + ": " + value + "\n";
       }
      }
Tags (2)
0 Kudos
5 Replies
RobertScheitlin__GISP
MVP Emeritus
Stefano,

   Change to this:

if (fld.toUpperCase() == queryTitleField.toUpperCase())
     {
      title = featureSet.fieldAliases[fld] + ":" + value;
      if (!title)
       title = widgetTitle;
     }
     // eliminato l'ele altrimenti non funzionava il link items
     // here i've remove else condition...............
     
     if (fld.toUpperCase() == queryLinkField.toUpperCase())
     {
      link = value;
      
     }
     else
     {
      if ((fld.toUpperCase() != queryTitleField.toUpperCase()) &&
       (fld.toUpperCase() != "SHAPE_LENGTH")&& (fld.toUpperCase() != "SHAPE_AREA"))
      {
       content += featureSet.fieldAliases[fld] + ": " + value + "\n";
      }
     } 
0 Kudos
Stefanobruscoli
Emerging Contributor
Robert
thanx for reply.
0 Kudos
Stefanobruscoli
Emerging Contributor
Robert, please another questions on SearchWidget:
I use link item, and when I move mouse over SearchResult string i see an InfoWindow with a link and I can open a .asp page, for example. But, Can I open another widget for read other data (from other tables, numeric no features classe) of my object?
Thanx
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Stefano,

   
Can I open another widget for read other data (from other tables, numeric no features classe) of my object?
This is possible but, it will take A LOT of custom code on your part.
0 Kudos
Stefanobruscoli
Emerging Contributor
Thanx Robert
I'll try to write a lot of code:(
0 Kudos