RE: [U2] ReadListAsStringArray Returns Nothing

2007-10-19 Thread Wally Terhune
bugs are reported thru your U2 software support provider - which may be IBM
or may be a Partner or reseller.

   
 Wally Terhune 
 SWG Client Support - Information  
 Management Software   
 U2 Support Architect b IBM U2 
 Client Support Team   
 4700 S. Syracuse St., Denver, CO  
 80237 
 Tel: (303) 773-7969   T/L 
 656-7969  
 Mobile: (303) 807-6222
 [EMAIL PROTECTED] 
   
   
   
   
 Register today for the premier
 U2 technical event!   
   








   
 [EMAIL PROTECTED] 
 tn-bower.com  
 Sent by:   To 
 [EMAIL PROTECTED] u2-users@listserver.u2ug.org
 stserver.u2ug.org  cc 
   
   Subject 
 10/19/2007 10:33  RE: [U2] ReadListAsStringArray  
 AMReturns Nothing 
   
   
 Please respond to 
 [EMAIL PROTECTED] 
er.u2ug.org
   
   




David,

Using list 1 didn't help.  However, saving the list and then doing a
getlist into slAP did!  This is kind of a work around, but it will work
for this situation.  Thanks for your help.

The application I am working on is saving document images into a Lotus
Domino Document Library.  I am just grabbing a few data items from our MRP
system (on Unidata) to fill in some of the Notes document fields.  The XML
capabilities are exciting, but more than I need for this application.

Your suggestion has solved my immediate problem, but I am still curious.
Is there a way to report bugs to IBM?  There definitely seems to be
something wrong with the ReadListAsStringArray function.

Charles Shaffer
Senior Analyst
NTN-Bower Corporation
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

[demime 1.01d removed an attachment of type image/jpeg which had a name of 
19788751.jpg]

[demime 1.01d removed an attachment of type image/jpeg which had a name of 
19356012.jpg]

[demime 1.01d removed an attachment of type image/gif which had a name of 
graycol.gif]

[demime 1.01d removed an attachment of type image/gif which had a name of 
pic16403.gif]

[demime 1.01d removed an attachment of type image/gif which had a name of 
ecblank.gif]
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] ReadListAsStringArray Returns Nothing

2007-10-19 Thread Charles_Shaffer
ReadListAsStringArray is a method in the UniSelectList class in Uniobjects 
for .NET.  I am using it in a VB.NET application.  The function works fine 
as long as there are 2 or more items in the Select List.  If there is only 
one item in the Select List, it returns Nothing.  The only documentation I 
have found is in the Help for Uniobjects for .NET which is installed with 
the Unidk found on the Unidata clent CD.

Charles Shaffer
Senior Analyst
NTN-Bower Corporation




Jerry Banker [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
10/19/2007 11:55 AM
Please respond to u2-users

 
To: u2-users@listserver.u2ug.org
cc: 
Subject:RE: [U2] ReadListAsStringArray Returns Nothing


I couldn't find this function in any of the docs, is it a Unidata
function?


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Friday, October 19, 2007 11:34 AM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] ReadListAsStringArray Returns Nothing
---
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] ReadListAsStringArray Returns Nothing

2007-10-19 Thread Jerry Banker
I couldn't find this function in any of the docs, is it a Unidata
function?


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Friday, October 19, 2007 11:34 AM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] ReadListAsStringArray Returns Nothing
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] ReadListAsStringArray Returns Nothing

2007-10-19 Thread Charles_Shaffer
David,

Using list 1 didn't help.  However, saving the list and then doing a 
getlist into slAP did!  This is kind of a work around, but it will work 
for this situation.  Thanks for your help.

The application I am working on is saving document images into a Lotus 
Domino Document Library.  I am just grabbing a few data items from our MRP 
system (on Unidata) to fill in some of the Notes document fields.  The XML 
capabilities are exciting, but more than I need for this application.

Your suggestion has solved my immediate problem, but I am still curious. 
Is there a way to report bugs to IBM?  There definitely seems to be 
something wrong with the ReadListAsStringArray function.

Charles Shaffer
Senior Analyst
NTN-Bower Corporation
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] ReadListAsStringArray Returns Nothing

2007-10-19 Thread David Jordan
Hi Charles

I suspect the select you created is cleared at the end of the command or
beginning of the select initiation.  Try the following options.

- Select to 1 instead of the default 0.  The default may be cleared as part
of the initiation process for the select method.

- Try saving the select list and using the get list option.


Returning xml from unibasic through a subroutine
There are 2 options
1 use U2 xml routines to build the xml string.
2 load the data into a .Net dataset and use the dataset xml facilities (.Net
2.0)


You could also consider the UniDataset class.


I suspect that most are doing this sort of stuff within subroutines for
reasons of best practice in a client server environment.

Regards

David Jordan

 Subject: RE: [U2] ReadListAsStringArray Returns Nothing
 
 Is there anyway to report bugs to IBM?  There appears to be a problem with
 ReadListAsStringArray, or possibly CreateUniSelectList.
 
 Charles Shaffer
 Senior Analyst
 NTN-Bower Corporation
 ---
 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] ReadListAsStringArray Returns Nothing

2007-10-17 Thread Symeon Breen
Hi Charles - yes I have had this very same problem in the past - TBH I donbt 
usually use select lists or other file operations in my VB.NET I tend to more 
often call a unibasic subroutine and get it to do all the work, returning xml. 
Anyway, sorry  - I never did find a solution as I included the workload in my 
basic program ...

Rgds
Symeon.




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: 16 October 2007 22:26
To: u2-users@listserver.u2ug.org
Subject: [U2] ReadListAsStringArray Returns Nothing

Using VB.NET (VS2005) with Uniobjects (IBMU2.UODOTNET)

The following code works fine, except when the select returns a list with 
ONE item.

*
Public Function T4mGetSelectList(ByVal strCommand As String) As String()

Dim ECMD As UniCommand = Nothing
Dim slAP As UniSelectList = Nothing

Try 
' Select list
ECMD = sess.CreateUniCommand()
  ECMD.Command = strCommand   TO 0
  ECMD.Execute()
  slAP = sess.CreateUniSelectList(0)  --  This is where the 
problem occurs
  T4mGetSelectList = slAP.ReadListAsStringArray
*

When the select finds one item, the ReadListAsStringArray returns Nothing. 
 When the select finds more than one item, the correct number of items is 
returned.  This has been verified by comparing to ECL selects.  Does 
ReadListAsStringArray have a problem with arrays of one?

Charles Shaffer
Senior Analyst
NTN-Bower Corporation
---
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] ReadListAsStringArray Returns Nothing

2007-10-17 Thread Charles_Shaffer
Hi Symeon,

I am familiar with UniBasic, but I am not sure how to get it to return XML
to a VB program.  Would you have any code examples you could share?

Thanks.

Charles Shaffer
Senior Analyst
NTN-Bower Corporation




Symeon Breen [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
10/17/2007 08:04 AM
Please respond to u2-users


To: u2-users@listserver.u2ug.org
cc:
Subject:RE: [U2] ReadListAsStringArray Returns Nothing


Hi Charles - yes I have had this very same problem in the past - TBH I
donbt usually use select lists or other file operations in my VB.NET I
tend to more often call a unibasic subroutine and get it to do all the
work, returning xml. Anyway, sorry  - I never did find a solution as I
included the workload in my basic program ...

Rgds
Symeon.




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: 16 October 2007 22:26
To: u2-users@listserver.u2ug.org
Subject: [U2] ReadListAsStringArray Returns Nothing

Using VB.NET (VS2005) with Uniobjects (IBMU2.UODOTNET)

The following code works fine, except when the select returns a list with
ONE item.

*
Public Function T4mGetSelectList(ByVal strCommand As String) As String()

Dim ECMD As UniCommand = Nothing
Dim slAP As UniSelectList = Nothing

Try
' Select list
ECMD = sess.CreateUniCommand()
  ECMD.Command = strCommand   TO 0
  ECMD.Execute()
  slAP = sess.CreateUniSelectList(0)  --  This is where the
problem occurs
  T4mGetSelectList = slAP.ReadListAsStringArray
*


When the select finds one item, the ReadListAsStringArray returns Nothing.

 When the select finds more than one item, the correct number of items is
returned.  This has been verified by comparing to ECL selects.  Does
ReadListAsStringArray have a problem with arrays of one?

Charles Shaffer
Senior Analyst
NTN-Bower Corporation
---
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/