Dundas Data Visualization SupportYour Partner In Creating Digital Dashboard Solutions
Phone: 416.467.9100  |  support@dundas.com Dundas Support Site Home  |  Dundas Corporate Site  |  Contact Us

How to bind a dataset to map control dynamically?

 
Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [Dundas Map] >> [Support] >> Dundas Map for Reporting Services >> How to bind a dataset to map control dynamically? Page: [1]
Login
Message << Older Topic   Newer Topic >>
How to bind a dataset to map control dynamically? - 11/4/2009 2:34:39 AM   
zero0328

 

Posts: 2
Score: 0
Joined: 11/4/2009
Status: offline
Hi ,
   I want to dynamically load an XML file to the Map Control.But I have some problem.
   After I have loaded the XML file using mapObj.LoadXML(),I don't know how to retrive data from my existing DataSet1.
   I have added fields,DataBindingRules,ShapeRules,but the shape labels remain "(No data)".It seems that I have not bind the dataset to the map.
   Would you please help me?Thank you.
Post #: 1
RE: How to bind a dataset to map control dynamically? - 11/6/2009 3:22:37 PM   
ryanm

 

Posts: 444
Score: 0
Joined: 6/2/2008
Status: offline
Hi,

Are you following this article, to set up fields and a binding field?
http://support2.dundas.com/Default.aspx?article=1023

_____________________________

Ryan Marotta
- - - - - - - - - - - -
Dundas Data Visualization, Inc.
Microsoft Gold Partner - Data Management Solutions
500-250 Ferrand Drive • Toronto, ON • M3C 3G8
http://support.dundas.com | http://www.dundas.com

(in reply to zero0328)
Post #: 2
RE: How to bind a dataset to map control dynamically? - 11/9/2009 3:37:34 AM   
zero0328

 

Posts: 2
Score: 0
Joined: 11/4/2009
Status: offline
Thanks very much.But the text still shows "No data".Here is my code:

string fullPath="D:\\BI Maps\\"+codeParams["ProvName"].ToString()+".xml";
mapObj.LoadXML(fullPath);
Field field=mapObj.ShapeFields.Add("CityName");
field.Type=typeof(string);
field=mapObj.ShapeFields.Add("Amt");
field.Type=typeof(Int32);
mapObj.ShapeFields["CityName"].UniqueIdentifier=true;
mapObj.FieldType=FieldType.Shape;
mapObj.BindingField="CityName";
mapObj.ShapeRules.Add("ShapeRule1");
mapObj.ShapeRules["ShapeRule1"].Text="#AMT";

(in reply to ryanm)
Post #: 3
Page:   [1]
All Forums >> [Dundas Map] >> [Support] >> Dundas Map for Reporting Services >> How to bind a dataset to map control dynamically? Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts