Select to view content in your preferred language

long list of results

2420
3
10-06-2011 06:27 AM
LefterisKoumis
Frequent Contributor
The project that I am working it is a requirement to display all the fields in the popup during a search or a query. The problem is that there are 40 fields and it makes it a very long infowindow or popup window when you  view the results. So, does anyone know how to limit the results, to let's say 20 fields, and there will be a link at the bottom of the popup window saying "for more click here" where users can click and view the rest of the results in a separate popup. I know that this is not simple, so any other suggestions of how to deal with the display of a  long list of fields after a click on the map or a query will be appreciated. Thanks.
Tags (2)
0 Kudos
3 Replies
FaizanTayyab
Deactivated User
The project that I am working it is a requirement to display all the fields in the popup during a search or a query. The problem is that there are 40 fields and it makes it a very long infowindow or popup window when you  view the results. So, does anyone know how to limit the results, to let's say 20 fields, and there will be a link at the bottom of the popup window saying "for more click here" where users can click and view the rest of the results in a separate popup. I know that this is not simple, so any other suggestions of how to deal with the display of a  long list of fields after a click on the map or a query will be appreciated. Thanks.


You can show the results in a draggable canvas. The way i had to do it was to show popup through code and deciding which items to show in the pop-up.
0 Kudos
MGSethe
Deactivated User
You can show the results in a draggable canvas. The way i had to do it was to show popup through code and deciding which items to show in the pop-up.


Hello, are you able to share the code for this solution?
0 Kudos
FaizanTayyab
Deactivated User
Hi,

i am unable to provide the entire code as it is fully integrated with different parts of the whole application but the below might help.

For example if you got your results in an arrayCollection, you can say

FlexGlobals.topLevelApplication.resultsPanel.createDatagrid( fName + " (" + fRecAC.length + " selected)", fRecAC, false );



Where resultsPanel is a canvas based compoent, where you can place a createDatagrid method to place the arraycollection content in a datagrid.
0 Kudos