RE: [U2] UniObjects.NET: populating ListBox from XML

2008-05-14 Thread Laura Hirsh
Clif, thanks for thinking about adding that information to the U2UG
knowledge base. The more contributions, the more useful the communities
knowledge base will be!

For those not familiar, check it out at www.u2ug.org. 

Laura Hirsh
U2UG President
(Hmmm, I wonder if this is an ad... now that I read it, it's feeling kinda
ad-ish. If so, apologies!)

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Clifton Oliver
Sent: Wednesday, May 14, 2008 4:05 PM
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] UniObjects.NET: populating ListBox from XML

I deleted the line

  ListBox1.DataSource = DS

I got the error "Cannot bind to the new value member" thrown on the line

  .ValueMember = "CUSTOMER"

I deleted that line, and now things work as expected.

Thank you very much for the help, David. Now I need to hit the books  
about data bindings and figure out what I just did .

If anyone has the title of a favorite "must have" VB.NET book, I'd  
like hearing about it. If folks want to chime in with  
recommendations, I'll compile a list and submit it as a item in the  
U2UG knowledge-base.


Regards,

Clif




On May 13, 2008, at 10:58 PM, Hona, David S wrote:

>  Oh, delete the line with 'ListBox1.DataSource = DS' in it, I  
> forgot to!
>
>
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Hona, David S
> Sent: Wednesday, May 14, 2008 2:32 PM
> To: u2-users@listserver.u2ug.org
> Subject: RE: [U2] UniObjects.NET: populating ListBox from XML
>
> Clif,
>
> Try something like this...
>
>  Cmd = uvSession.CreateUniXML
>  Cmd.GenerateXML("SORT CUSTOMER COMPANY ID.SUP")
>  DS = Cmd.GetDataSet
>  ListBox1.DataSource = DS
>
> With ListBox1
> .DataSource = DS.Tables(0)
> .DisplayMember = "COMPANY"
> .ValueMember = "CUSTOMER"
> End With
>
> Regards,
> David
>
> -Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Clifton  
> Oliver
> Sent: Wednesday, May 14, 2008 9:05 AM
> To: u2-users@listserver.u2ug.org
> Subject: [U2] UniObjects.NET: populating ListBox from XML
>
> Having been successful last week at populating a GridDataView control
> using .GenerateXML, we naively thought using XML to populate a ListBox
> would be just as straightforward. Using the same code pattern, we've
> tried
>
>  Cmd = uvSession.CreateUniXML
>  Cmd.GenerateXML("SORT CUSTOMER COMPANY ID.SUP")
>  DS = Cmd.GetDataSet
>  ListBox1.DataSource = DS
>  ListBox1.DisplayMember = "CUSTOMER"
>  ListBox1.Refresh()
>
> gives us one line in the ListBox that reads
>
>   System.Data.DataViewManagerListItemTypeDescriptor
>
> Are we missing something from this incantation, or is this not a valid
> way to try to populate a ListBox? (Yeah, I guess ComboBoxes are
> next.)
>
> Thanks in advance for any help, examples, or RTM references!
>
>
> Regards,
>
> Clif
> ---
> u2-users mailing list
> u2-users@listserver.u2ug.org
> To unsubscribe please visit http://listserver.u2ug.org/
> ---
> u2-users mailing list
> u2-users@listserver.u2ug.org
> To unsubscribe please visit http://listserver.u2ug.org/
> ---
> u2-users mailing list
> u2-users@listserver.u2ug.org
> To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

No virus found in this incoming message.
Checked by AVG. 
Version: 7.5.524 / Virus Database: 269.23.16/1431 - Release Date: 5/13/2008
7:55 PM
 

No virus found in this outgoing message.
Checked by AVG. 
Version: 7.5.524 / Virus Database: 269.23.16/1431 - Release Date: 5/13/2008
7:55 PM
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] UniObjects.NET: populating ListBox from XML

2008-05-14 Thread Eric Armstrong
Clif,
"Visual Basic 2005" from O'Reily has been very helpful to me.

Eric Armstrong
Lobel Financial
714-816-1207



-Original Message-
From: Clifton Oliver [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 14, 2008 1:05 PM
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] UniObjects.NET: populating ListBox from XML


I deleted the line

  ListBox1.DataSource = DS

I got the error "Cannot bind to the new value member" thrown on the line

  .ValueMember = "CUSTOMER"

I deleted that line, and now things work as expected.

Thank you very much for the help, David. Now I need to hit the books  
about data bindings and figure out what I just did .

If anyone has the title of a favorite "must have" VB.NET book, I'd  
like hearing about it. If folks want to chime in with  
recommendations, I'll compile a list and submit it as a item in the  
U2UG knowledge-base.


Regards,

Clif




On May 13, 2008, at 10:58 PM, Hona, David S wrote:

>  Oh, delete the line with 'ListBox1.DataSource = DS' in it, I  
> forgot to!
>
>
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Hona, David S
> Sent: Wednesday, May 14, 2008 2:32 PM
> To: u2-users@listserver.u2ug.org
> Subject: RE: [U2] UniObjects.NET: populating ListBox from XML
>
> Clif,
>
> Try something like this...
>
>  Cmd = uvSession.CreateUniXML
>  Cmd.GenerateXML("SORT CUSTOMER COMPANY ID.SUP")
>  DS = Cmd.GetDataSet
>  ListBox1.DataSource = DS
>
> With ListBox1
> .DataSource = DS.Tables(0)
> .DisplayMember = "COMPANY"
> .ValueMember = "CUSTOMER"
> End With
>
> Regards,
> David
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Clifton  
> Oliver
> Sent: Wednesday, May 14, 2008 9:05 AM
> To: u2-users@listserver.u2ug.org
> Subject: [U2] UniObjects.NET: populating ListBox from XML
>
> Having been successful last week at populating a GridDataView control
> using .GenerateXML, we naively thought using XML to populate a ListBox
> would be just as straightforward. Using the same code pattern, we've
> tried
>
>  Cmd = uvSession.CreateUniXML
>  Cmd.GenerateXML("SORT CUSTOMER COMPANY ID.SUP")
>  DS = Cmd.GetDataSet
>  ListBox1.DataSource = DS
>  ListBox1.DisplayMember = "CUSTOMER"
>  ListBox1.Refresh()
>
> gives us one line in the ListBox that reads
>
>   System.Data.DataViewManagerListItemTypeDescriptor
>
> Are we missing something from this incantation, or is this not a valid
> way to try to populate a ListBox? (Yeah, I guess ComboBoxes are
> next.)
>
> Thanks in advance for any help, examples, or RTM references!
>
>
> Regards,
>
> Clif
> ---
> u2-users mailing list
> u2-users@listserver.u2ug.org
> To unsubscribe please visit http://listserver.u2ug.org/
> ---
> u2-users mailing list
> u2-users@listserver.u2ug.org
> To unsubscribe please visit http://listserver.u2ug.org/
> ---
> u2-users mailing list
> u2-users@listserver.u2ug.org
> To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/





LOBEL FINANCIAL PRIVACY NOTICE: 
This communication may contain confidential company information that is 
protected by federal law. Federal regulations prohibit the disclosure (or 
re-disclosure) of confidential information without the written consent of the 
person(s) to whom it pertains. Additionally, the views or opinions presented in 
this email are solely those of the author and do not necessarily represent 
those of the company.
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] UniObjects.NET: populating ListBox from XML

2008-05-14 Thread Clifton Oliver

I deleted the line

 ListBox1.DataSource = DS

I got the error "Cannot bind to the new value member" thrown on the line

 .ValueMember = "CUSTOMER"

I deleted that line, and now things work as expected.

Thank you very much for the help, David. Now I need to hit the books  
about data bindings and figure out what I just did .


If anyone has the title of a favorite "must have" VB.NET book, I'd  
like hearing about it. If folks want to chime in with  
recommendations, I'll compile a list and submit it as a item in the  
U2UG knowledge-base.



Regards,

Clif




On May 13, 2008, at 10:58 PM, Hona, David S wrote:

 Oh, delete the line with 'ListBox1.DataSource = DS' in it, I  
forgot to!





-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Hona, David S
Sent: Wednesday, May 14, 2008 2:32 PM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] UniObjects.NET: populating ListBox from XML

Clif,

Try something like this...

 Cmd = uvSession.CreateUniXML
 Cmd.GenerateXML("SORT CUSTOMER COMPANY ID.SUP")
 DS = Cmd.GetDataSet
 ListBox1.DataSource = DS

With ListBox1
.DataSource = DS.Tables(0)
.DisplayMember = "COMPANY"
.ValueMember = "CUSTOMER"
End With

Regards,
David

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Clifton  
Oliver

Sent: Wednesday, May 14, 2008 9:05 AM
To: u2-users@listserver.u2ug.org
Subject: [U2] UniObjects.NET: populating ListBox from XML

Having been successful last week at populating a GridDataView control
using .GenerateXML, we naively thought using XML to populate a ListBox
would be just as straightforward. Using the same code pattern, we've
tried

 Cmd = uvSession.CreateUniXML
 Cmd.GenerateXML("SORT CUSTOMER COMPANY ID.SUP")
 DS = Cmd.GetDataSet
 ListBox1.DataSource = DS
 ListBox1.DisplayMember = "CUSTOMER"
 ListBox1.Refresh()

gives us one line in the ListBox that reads

  System.Data.DataViewManagerListItemTypeDescriptor

Are we missing something from this incantation, or is this not a valid
way to try to populate a ListBox? (Yeah, I guess ComboBoxes are
next.)

Thanks in advance for any help, examples, or RTM references!


Regards,

Clif
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] UniObjects.NET: populating ListBox from XML

2008-05-13 Thread Hona, David S
 Oh, delete the line with 'ListBox1.DataSource = DS' in it, I forgot to!




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Hona, David S
Sent: Wednesday, May 14, 2008 2:32 PM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] UniObjects.NET: populating ListBox from XML

Clif,

Try something like this... 

 Cmd = uvSession.CreateUniXML
 Cmd.GenerateXML("SORT CUSTOMER COMPANY ID.SUP")
 DS = Cmd.GetDataSet
 ListBox1.DataSource = DS

With ListBox1
.DataSource = DS.Tables(0)
.DisplayMember = "COMPANY"
.ValueMember = "CUSTOMER"
End With

Regards,
David

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Clifton Oliver
Sent: Wednesday, May 14, 2008 9:05 AM
To: u2-users@listserver.u2ug.org
Subject: [U2] UniObjects.NET: populating ListBox from XML

Having been successful last week at populating a GridDataView control
using .GenerateXML, we naively thought using XML to populate a ListBox
would be just as straightforward. Using the same code pattern, we've
tried

 Cmd = uvSession.CreateUniXML
 Cmd.GenerateXML("SORT CUSTOMER COMPANY ID.SUP")
 DS = Cmd.GetDataSet
 ListBox1.DataSource = DS
 ListBox1.DisplayMember = "CUSTOMER"
 ListBox1.Refresh()

gives us one line in the ListBox that reads

  System.Data.DataViewManagerListItemTypeDescriptor

Are we missing something from this incantation, or is this not a valid
way to try to populate a ListBox? (Yeah, I guess ComboBoxes are
next.)

Thanks in advance for any help, examples, or RTM references!


Regards,

Clif
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] UniObjects.NET: populating ListBox from XML

2008-05-13 Thread Hona, David S
Clif,

Try something like this... 

 Cmd = uvSession.CreateUniXML
 Cmd.GenerateXML("SORT CUSTOMER COMPANY ID.SUP")
 DS = Cmd.GetDataSet
 ListBox1.DataSource = DS

With ListBox1
.DataSource = DS.Tables(0)
.DisplayMember = "COMPANY"
.ValueMember = "CUSTOMER"
End With

Regards,
David

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Clifton Oliver
Sent: Wednesday, May 14, 2008 9:05 AM
To: u2-users@listserver.u2ug.org
Subject: [U2] UniObjects.NET: populating ListBox from XML

Having been successful last week at populating a GridDataView control
using .GenerateXML, we naively thought using XML to populate a ListBox
would be just as straightforward. Using the same code pattern, we've
tried

 Cmd = uvSession.CreateUniXML
 Cmd.GenerateXML("SORT CUSTOMER COMPANY ID.SUP")
 DS = Cmd.GetDataSet
 ListBox1.DataSource = DS
 ListBox1.DisplayMember = "CUSTOMER"
 ListBox1.Refresh()

gives us one line in the ListBox that reads

  System.Data.DataViewManagerListItemTypeDescriptor

Are we missing something from this incantation, or is this not a valid
way to try to populate a ListBox? (Yeah, I guess ComboBoxes are
next.)

Thanks in advance for any help, examples, or RTM references!


Regards,

Clif
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


[U2] UniObjects.NET: populating ListBox from XML

2008-05-13 Thread Clifton Oliver
Having been successful last week at populating a GridDataView control  
using .GenerateXML, we naively thought using XML to populate a  
ListBox would be just as straightforward. Using the same code  
pattern, we've tried


Cmd = uvSession.CreateUniXML
Cmd.GenerateXML("SORT CUSTOMER COMPANY ID.SUP")
DS = Cmd.GetDataSet
ListBox1.DataSource = DS
ListBox1.DisplayMember = "CUSTOMER"
ListBox1.Refresh()

gives us one line in the ListBox that reads

 System.Data.DataViewManagerListItemTypeDescriptor

Are we missing something from this incantation, or is this not a  
valid way to try to populate a ListBox? (Yeah, I guess ComboBoxes are  
next.)


Thanks in advance for any help, examples, or RTM references!


Regards,

Clif
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/