Select to view content in your preferred language

Floating DataGrid Widget question

1347
10
08-04-2010 06:38 AM
MarkCastenson
Emerging Contributor
I have an SFV application that I would like to have the floating datagrid (that Robert Scheitlin created) show when a user searches for data.  I guess, I would like to to eliminate the user clicking on the button to show the floating grid.  Any help?


Thanks,
Mark
Tags (2)
0 Kudos
10 Replies
RobertScheitlin__GISP
MVP Emeritus
Mark,

   Just add showGridResults(null); right after the onFault function inside the queryFeaturesText function and queryFeaturesGraphical function.
0 Kudos
MarkCastenson
Emerging Contributor
It didn't work.  I added that line in the SearchWidget.mxml in both spots and the grid did not show up. Am I still missing something?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Mark,

   Attach you SearchWidget.mxml. I test this and it worked for me.
0 Kudos
MarkCastenson
Emerging Contributor
Thanks for looking into this.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Mark,

   What was meaning when I said after the onFault function was after the closing curly brace for the function like this:

//on fault
     function onFault(info:Object, token:Object = null) : void
     {                    
      showMessage(info.toString(), false);         
     }
                                        showGridResults(null);
0 Kudos
MarkCastenson
Emerging Contributor
Perfect!!  That is exactly what I wanted to do!

My colleague and friend Cory Hines has great respect for you as do I.

Thanks a bunch!


Best Regards!
Mark
0 Kudos
FrankTrevino
Emerging Contributor
Hello...

I was wondering if there is a way to change the Column heading fields in the floating data grid? I have it working just fine, but I would like to change lables for the columns to be a bit more descriptive.

Thanks.
Frank
0 Kudos
JoshuaKalov
Occasional Contributor
Hello...

I was wondering if there is a way to change the Column heading fields in the floating data grid? I have it working just fine, but I would like to change lables for the columns to be a bit more descriptive.

Thanks.
Frank


If you use the property showalias="true" in the xml, it should show the field alias' on the columns.
0 Kudos
FrankTrevino
Emerging Contributor
Joshua,

I went ahead used the showalias="true", as seen below. But I still get the original column heading displayed in the floating grid. Or is there another way to apply this property.

<gridfields showalias="true">field1,field2,field3</gridfields>
0 Kudos