User (Legacy) Posted December 19, 2005 Report Share Posted December 19, 2005 According to the documentation, I can update the DataText portion of a labellink with this command: Map1.LabelLinks[i].DataText = "string" where [i] is the index of the LabelLink I want to update. How do I get this updated information to be reflected in the Map? Link to comment Share on other sites More sharing options...
Software FX Posted December 19, 2005 Report Share Posted December 19, 2005 Changing the DataText will not neccesarily show in your map. The DisplayText will be used. If the DisplayText is not set then the SvgText will be used. As an overview, DataText matches the name from your DataBase/Legend Array (Mandatory) SvgText matches the entry in the Svg (Mandatory) and DisplayText is the way you want the Label to show up in your Region (Optional) I am guessing you want to use DisplayText. Then you will need to call a method on the map to have the information updated map.Recalculate(); If this doesn't work I will need a repro case or snippet. -c "John Nelson" <jnelson@innovasi.com> wrote in message news:zb3J7OLBGHA.564@webserver3.softwarefx.com... > According to the documentation, I can update the DataText portion of a > labellink with this command: > > Map1.LabelLinks[i].DataText = "string" > > where [i] is the index of the LabelLink I want to update. > > How do I get this updated information to be reflected in the Map? > Link to comment Share on other sites More sharing options...
User (Legacy) Posted December 20, 2005 Author Report Share Posted December 20, 2005 Actually, I am aware of the difference. The DataText is being used in the Link.URL to provide a code to the next step in the navigation. This code differs from both the DisplayText and the SVGText. What I would like to do is read the DataText out of the LabelLinks[i].DataText, encrypt the value, and place the encrypted value back into the control. This works fine as long as the DataText matches the SVGText prior to modification. However if the DataText does not match the SVGText, the control ignores the modification. Is there a solution to this behavior? "Software FX Support" <support@softwarefx.com> wrote in message news:EqHffxMBGHA.564@webserver3.softwarefx.com... > Changing the DataText will not neccesarily show in your map. The > DisplayText will be used. > If the DisplayText is not set then the SvgText will be used. > As an overview, DataText matches the name from your DataBase/Legend Array > (Mandatory) > SvgText matches the entry in the Svg (Mandatory) > and DisplayText is the way you want the Label to show up in your Region > (Optional) > > I am guessing you want to use DisplayText. > Then you will need to call a method on the map to have the information > updated > map.Recalculate(); > > If this doesn't work I will need a repro case or snippet. > > -c > > > "John Nelson" <jnelson@innovasi.com> wrote in message > news:zb3J7OLBGHA.564@webserver3.softwarefx.com... >> According to the documentation, I can update the DataText portion of a >> labellink with this command: >> >> Map1.LabelLinks[i].DataText = "string" >> >> where [i] is the index of the LabelLink I want to update. >> >> How do I get this updated information to be reflected in the Map? >> > > Link to comment Share on other sites More sharing options...
Software FX Posted December 20, 2005 Report Share Posted December 20, 2005 Dear John, As I understand it you want to use the Link.Url to register a click from region A. The way you are doing this is like so map.Link.Url = "/myWebApp/test.aspx?Name=$DataText"; And since you don't neccesarily want the $DataText to be readible by a human you want to encrypt the $DataText result so "FL" would be "Region0400" As I see it "This works fine as long as the DataText matches the SVGText prior to modification. However if the DataText does not match the SVGText, the control ignores the modification." The part that works fine is a bug and the "ignoring the modification" is expected behaviour. Please contact support AT softwarefx dot com and open a case. Put it to attention Charles and it would help greatly if you can attach a small program showing this behaviour. Once I really see what you are doing I should be able to provide a workaround and maybe even a hotfix for you. charles; "John Nelson" <jnelson@innovasi.com> wrote in message news:lc3$ZlYBGHA.280@webserver3.softwarefx.com... > Actually, I am aware of the difference. > > The DataText is being used in the Link.URL to provide a code to the next > step in the navigation. This code differs from both the DisplayText and > the SVGText. > What I would like to do is read the DataText out of the > LabelLinks[i].DataText, encrypt the value, and place the encrypted value > back into the control. > This works fine as long as the DataText matches the SVGText prior to > modification. However if the DataText does not match the SVGText, the > control ignores the modification. > > Is there a solution to this behavior? > > > "Software FX Support" <support@softwarefx.com> wrote in message > news:EqHffxMBGHA.564@webserver3.softwarefx.com... >> Changing the DataText will not neccesarily show in your map. The >> DisplayText will be used. >> If the DisplayText is not set then the SvgText will be used. >> As an overview, DataText matches the name from your DataBase/Legend Array >> (Mandatory) >> SvgText matches the entry in the Svg (Mandatory) >> and DisplayText is the way you want the Label to show up in your Region >> (Optional) >> >> I am guessing you want to use DisplayText. >> Then you will need to call a method on the map to have the information >> updated >> map.Recalculate(); >> >> If this doesn't work I will need a repro case or snippet. >> >> -c >> >> >> "John Nelson" <jnelson@innovasi.com> wrote in message >> news:zb3J7OLBGHA.564@webserver3.softwarefx.com... >>> According to the documentation, I can update the DataText portion of a >>> labellink with this command: >>> >>> Map1.LabelLinks[i].DataText = "string" >>> >>> where [i] is the index of the LabelLink I want to update. >>> >>> How do I get this updated information to be reflected in the Map? >>> >> >> > > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.