Select to view content in your preferred language

Flex Viewer QueryBuilder Proxy

1760
3
04-28-2010 12:35 PM
ManuelCorrea
New Contributor
Hi,

I added into the Flex Viewer the ability to add a custom proxy per Live layer. The idea behind this, is to use secure services, generating the token and integrate the Flex Viewer into the security of the Web application that contains the Flex viewer.

I have modified successfully all the different tasks (like Identify) to work with the specific proxy in the configuration. The layer configuration looks like:

<mapservice label="Mylayer" type="dynamic" visible="false" alpha="0.8" proxy="../proxy.do" >http://theurl/MapServer</mapservice>

Everything is working fine except for the query builder(ESA additions).

I need to modify the QueryBuilder such as when the user click in the layer to work with, the QBFactory creates a new instance of IQueryBuilder with the proxy of the layer. The newInstance method does not look like having a way to tell it what proxy to use. And it is failing when trying to construct the layers.


Any ideas on this?

Thanks,
Manuel Correa
Tags (2)
0 Kudos
3 Replies
weeyeo
by
Emerging Contributor
Manuel,
Do you figure out this?  I try to secure the map services and only QueryBuilderWidget is not working.  Please let me know how do you solve the problem.

Thank you.
0 Kudos
ErvyGalvez
Deactivated User
yeah, the Query Builder Widget from Sample Flex Viewer 1.3 is much more useful than the new Query Widget in Flex Viewer 2.1.

I am also migrating the widget from previous version but no luck.
The widget needs the ESA package (Querybuilder.swc).
0 Kudos
by Anonymous User
Not applicable
0 Kudos