Results 1 to 11 of 11

Thread: VB.NET: Hiding ID using XML [Unsolved]

  1. #1

    Thread Starter
    Addicted Member toytoy's Avatar
    Join Date
    Jul 2004
    Posts
    230

    Question VB.NET: Hiding ID using XML [Unsolved]

    Say i have these Xml tag:
    Code:
    <place eat=”food centre”>
        <set id=”123”>
          <country state=”ABC”/> 
          <location>north</location>
        </set>
        <set>
            …
        </set>
    </place>
    Does anyone know to extract the ID attributes and use other numbers or words to represent that ID into the combobox....

    and when sending that piece of "set data", the representation words or numbers will link to that actual ID and extract into textbox..

    It is something like using the representation ID to display in the foreground...
    and hiding the actual ID in the background of the form..

    Thanks
    Last edited by toytoy; Dec 28th, 2004 at 08:50 PM.

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359

    Re: VB.NET: Hiding ID using XML

    I'm utterly confused...
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  3. #3

    Thread Starter
    Addicted Member toytoy's Avatar
    Join Date
    Jul 2004
    Posts
    230

    Re: VB.NET: Hiding ID using XML

    the main thing is to create a name associated to that set of ID so that i can referred to.....instead of using the actual one..

    thanks

  4. #4
    Hyperactive Member Lil Ms Squirrel's Avatar
    Join Date
    Nov 2004
    Location
    planet squirrel
    Posts
    494

    Re: VB.NET: Hiding ID using XML

    So am I right in thinking you don't want to store 123 as the look up and display ABC in the drop down?

    If so, what do you want to display and what do you want to store?
    Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind.
    Dr. Seuss

  5. #5

    Thread Starter
    Addicted Member toytoy's Avatar
    Join Date
    Jul 2004
    Posts
    230

    Re: VB.NET: Hiding ID using XML

    yeah....something like that..

    actual ID = "123"
    Displaying ID in the combobox= "Item 1"

    say in this example the id is "123"... i want ""Item 1" to be create and display it in the combobox...thus i know "Item 1" is actually link to the content of "123"..

    after changing some attriubte from "north" to "south" , "Item 1" id will link back to the associate tag which is "123" and sent back all the changed tag..
    after i click send button...
    Say:
    Code:
    <place eat=”food centre”>
        <set id=”123”>
          <country state=”ABC”/> 
          <location>south</location>
        </set>
        <set>
            …
        </set>
    </place>
    Notice i have change the "north" attribute to "south" attribute....all this change is under "123" made after i refer it to "Item 1" instead of the actual ID in the combobox......
    Last edited by toytoy; Dec 16th, 2004 at 03:51 AM.

  6. #6
    Hyperactive Member Lil Ms Squirrel's Avatar
    Join Date
    Nov 2004
    Location
    planet squirrel
    Posts
    494

    Re: VB.NET: Hiding ID using XML

    So 'Item 1' is in the look up value?

    And 'North' would be the display value at first?
    Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind.
    Dr. Seuss

  7. #7

    Thread Starter
    Addicted Member toytoy's Avatar
    Join Date
    Jul 2004
    Posts
    230

    Re: VB.NET: Hiding ID using XML

    yeah...

    'Item 1' is in the look up....

    and 'North' is in the display value at certain textbox at first..

    It is the value that before the user have made changes to the field...

    the main thing is the user will come to this textbox field when the user selected the "Item 1 from the combobox instead of the actual ID = "123"....
    Last edited by toytoy; Dec 16th, 2004 at 05:51 AM.

  8. #8
    Hyperactive Member Lil Ms Squirrel's Avatar
    Join Date
    Nov 2004
    Location
    planet squirrel
    Posts
    494

    Re: VB.NET: Hiding ID using XML

    Before I try and get my head round this one....why do you want "Item 1" for the look up??? As it makes no difference to the user (because they can't see it) are you not overcomplicating things?
    Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind.
    Dr. Seuss

  9. #9

    Thread Starter
    Addicted Member toytoy's Avatar
    Join Date
    Jul 2004
    Posts
    230

    Re: VB.NET: Hiding ID using XML

    for my case, all the actual ID can be seem when i load into the combo box....this make it ugly to the user so i want to hide it..

    i have tried not to use the actual ID in the lookup but use all the location attributes in the combox box but it cannot link up to that entire ID content...

    as there are more than one set of "set xml tags" in the place xml tag...

    if i use location attributes, it cannot refer to ID "123", "124","125" etc as location tags will be common to all set of Xml...

    only the actual ID can link up to that specific content..
    Last edited by toytoy; Dec 28th, 2004 at 08:59 PM.

  10. #10

    Thread Starter
    Addicted Member toytoy's Avatar
    Join Date
    Jul 2004
    Posts
    230

    Re: VB.NET: Hiding ID using XML

    anyone have idea how to go about...

    I have some suggestion that to use Hashtable..

    Will it works ?

    How to go about doing it...

    Thanks

  11. #11

    Thread Starter
    Addicted Member toytoy's Avatar
    Join Date
    Jul 2004
    Posts
    230

    Re: VB.NET: Hiding ID using XML

    Anyone got any idea....


Posting Permissions

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



Click Here to Expand Forum to Full Width