Problem with labels and query layer

Discussion created by iooliani on Jun 13, 2011
I have a map with 2 feature class layers and a query layer. Then I created a join betwen one of the feature layer and the query layer and I set the label of the feature to reference a field in the join, that comes from the query layer. Everything works fine in ArcMap the labels will render correctly and when using the identify functionality all the fields in the join will be displayed; the problem starts when trying to load the map in a browser window using the javascript api. The labels won't render and when executing an identify task the fields in the join that come from the querylayer won't show up.
Any idea about what the problem might be?
Thanks in advance!