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
Re: VB.NET: Hiding ID using XML
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
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?
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......
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?
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"....
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?
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..
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
Re: VB.NET: Hiding ID using XML
Anyone got any idea....
:wave: