Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 4 of 4

displaying custom data on Pushpins when linked

This is a discussion on displaying custom data on Pushpins when linked within the MapPoint Desktop Discussion forums, part of the Map Forums category; hi all, im using a local text file as a data source file for my pushpins. i link to the ...

  1. #1
    TheJudge is offline Junior Member Yellow Belt
    Join Date
    Mar 2004
    Posts
    15

    displaying custom data on Pushpins when linked

    hi all,

    im using a local text file as a data source file for my pushpins. i link to the file and retrieve all my pushpins but each pushpin only display the name of the person and the address. i would like to display the telephone number along side the above details. is there any type of setting or property that can be used to do so?

    any help, support, examples would be very much appreciated ...

    thank you all

  2. #2
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4
    Judge -- when you link the data, you will get to a place in the Wizards where you can set this, exactly what you're looking for...

    When you get to Map Type, I assume you go to Pushpin. Then you can "Select which fields to display in the balloon for this set".

    Finally make sure "Display selected field names in balloons" is checked.

    hope this helps,
    Eric
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

  3. #3
    TheJudge is offline Junior Member Yellow Belt
    Join Date
    Mar 2004
    Posts
    15
    doin in MapPoint 2004 is easy. i don't have any problem, i was talkin about MapPoint control when developing in C#.

  4. #4
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4
    Oh sorry.. did you try this method? from the help file... (below). I don't know the syntax for C#, but there are some C#-related code samples in this forum and articles that may have some pointers, this one comes to mind:
    http://www.mp2kmag.com/a103--chandu.....mappoint.html

    SetFieldsVisibleInBalloon method
    Sets which fields are visible in Pushpin balloons for the specified data set.

    Applies to
    Objects: DataSet

    Syntax
    object.SetFieldsVisibleInBalloon(ArrayOfFields)

    Parameters
    Part Description
    object Required. An expression that returns a DataSet object.
    ArrayOfFields Required Variant. An array that contains the Field objects to display in the Pushpin balloons.

    Example
    Sub ShowOnlySomeFields()
    Dim objApp As New MapPoint.Application
    Dim objDataSet As MapPoint.DataSet
    objApp.Visible = True
    objApp.UserControl = True

    Set objDataSet = objApp.OpenMap(objApp.Path & "\Samples\Clients.ptm").DataSets(1)
    arArray = Array(objDataSet.Fields(1), objDataSet.Fields(2), objDataSet.Fields(3))

    'Set which fields will be visible in the Pushpin balloon
    objDataSet.SetFieldsVisibleInBalloon arArray

    'Show the balloon for the first record
    objDataSet.QueryAllRecords.Pushpin.BalloonState = geoDisplayBalloon
    End Sub
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. problem with hyperlinks in linked data
    By hpaul in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 11-26-2009, 01:57 AM
  2. Matched Zipcode Not Displaying in Custom Territory
    By csharpdeveloper in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 10-06-2005, 10:39 PM
  3. Push Pins not showing up on linked data?
    By chucker in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 01-13-2005, 04:15 PM
  4. Updating an embedded map in Excel from linked data
    By Matt in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 05-13-2003, 10:27 AM
  5. Using the shaded circle map and linked data, can I....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 10-10-2001, 08:28 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36