Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Mbusiness 5.5, symbolScanner POD with Pocket PC

10 posts in General Discussion Last posting was on 2005-01-21 19:23:25.0Z
PL Posted on 2005-01-19 09:05:37.0Z
From: PL <nospam@p.l>
Reply-To: nospam@p.l
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: fr, en
MIME-Version: 1.0
Newsgroups: ianywhere.public.mbusinessanywhere.general
Subject: Mbusiness 5.5, symbolScanner POD with Pocket PC
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: ip-86.net-80-236-16.asnieres.rev.numericable.fr
X-Original-NNTP-Posting-Host: ip-86.net-80-236-16.asnieres.rev.numericable.fr
Message-ID: <41ee22e1@forums-1-dub>
Date: 19 Jan 2005 01:05:37 -0800
X-Trace: forums-1-dub 1106125537 80.236.16.86 (19 Jan 2005 01:05:37 -0800)
X-Original-Trace: 19 Jan 2005 01:05:37 -0800, ip-86.net-80-236-16.asnieres.rev.numericable.fr
Lines: 51
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:227
Article PK: 17621

Hello,

I'd like to use a barcode scanner in my application, I have a Symbol
device (PPT8800 with Pocket PC). My application works already fine with
MBusiness 5.5, Ultralite and Mobilink but I am not able to find how to
use the barcode scanner.

Mbusiness Client 5.5 build 113 (I have also tested with MBiz 5.7)
AvantGo Symbol Scanner pod v2.0 (55scanner.dll)

If I follow MBusiness Developer guide (p368):
scanobject=CreateObject("avantgo.symbolScanner");
but scanobject is always null

if I follow the example provided by Avantgo :
avantgo.symbolScanner.enabled = true;
avantgo.symbolScanner.ScanEnabled = true;
but in this case avantgo.symbolScanner is undefined.

I do not understand what is the correct way to define symbolScanner.

Thanks,

Pierre LAVIGNE

ps : you will find below the piece of code I tested to check if the
scanner is available:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<META name="HandheldFriendly" content="True">
<script language="JavaScript" type="text/javascript">
function check() {
alert(avantgo.symbolScanner); //undefined !!!!
var scanobjet = CreateObject("avantgo.symbolScanner");
alert(scanobjet); // null !!!
}
</script>
</head>

<body>
<table>
<tr>
<td align="left" width="80"><b>Check Symbol Scanner</b></td>
<td align="left">
<input type="button" onclick="check();" value="Check">
</td>
</tr>
</table>
</body>
</html>


tony pigram Posted on 2005-01-19 12:30:21.0Z
Reply-To: "tony pigram" <tony.pigram@nospam.com>
From: "tony pigram" <tony.pigram@nospam.com>
Newsgroups: ianywhere.public.mbusinessanywhere.general
References: <41ee22e1@forums-1-dub>
Subject: Re: Mbusiness 5.5, symbolScanner POD with Pocket PC
Lines: 164
Organization: iAnywhere Solutions
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
X-Original-NNTP-Posting-Host: host81-130-96-152.in-addr.btopenworld.com
Message-ID: <41ee52d9@forums-2-dub>
X-Original-Trace: 19 Jan 2005 04:30:17 -0800, host81-130-96-152.in-addr.btopenworld.com
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 19 Jan 2005 04:30:18 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 19 Jan 2005 04:30:21 -0800
X-Trace: forums-1-dub 1106137821 10.22.108.75 (19 Jan 2005 04:30:21 -0800)
X-Original-Trace: 19 Jan 2005 04:30:21 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:228
Article PK: 8783

Hi Pierre,

You need to access the properties of the scanner object to be able to use
the scanner. ie. avantgo.symbolScanner.ScanData;

The following code snippet shold give you an idea of what you need to do:

<HTML>
<HEAD>
<META NAME="HandheldFriendly" content="True">
<TITLE>Scan2a Test page</TITLE>

<SCRIPT language="JavaScript">

var docform = document.scan;

function scannerOn()
{
// alert("scannerOn");
avantgo.symbolScanner.enabled = true;
avantgo.symbolScanner.ScanEnabled = true;
}

function scannerOff()
{
// alert("scannerOff");
avantgo.symbolScanner.enabled = false;
avantgo.symbolScanner.ScanEnabled = false;
}

function scanit()
{
// allocates the barcode value to the HTML field
docform.barcode.value= avantgo.symbolScanner.ScanData;
//Handle the rare chance that 'nothing' was scanned
if (avantgo.symbolScanner.ScanData == null) {
docform.codedesc.value = "Please scan a valid barcode.";
return false;
}
lookupvalue = docform.barcode.value;
ProductArray = new Array(
["AKF7111B","description one"],
["AKF7112B","description two"],
["AKF7123B","description three"]);
docform.codedesc.value = "Product not in profile";
var i = 0;
while(ProductArray.length--)
{
if (ProductArray[i][0] == lookupvalue)
docform.codedesc.value = ProductArray[i][1];
i++;
};
//Set the focus to be on the Quantity field
docform.Quantity.focus();
}

function QtyAdd(Action){
var i=0;
i = docform.Quantity.value;
if (Action == '1') { i++; }
else if (i > '1') { i--;}
docform.Quantity.value = i;
docform.Quantity.focus();
}

function ClearVars(){
//need to reset the values of all objects
docform.Quantity.value = '';
docform.codedesc.value = '';
docform.barcode.value = 0;
}

</SCRIPT>
</HEAD>
<BODY onScan="scanit();" onLoad="scannerOn();" onUnload="scannerOff();">
<FORM name="scan" METHOD="POST" ACTION="order.jsp">
<BR>
<STRONG>Warehouse replenishment</STRONG><BR>
Scan product label by pressing left button.<BR>
<BR>
<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=1>
<TR>
<TD>Product code:</TD>
<TD NOWRAP><INPUT NAME="barcode"></TD>
</TR>
</TABLE>
<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=1>
<TR>
<TD NOWRAP><TEXTAREA cols="15" name="codedesc" rows="3"></TEXTAREA></TD>
</TR>
</TABLE>
<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=1>
<TR>
<TD>Enter Quantity:</TD>
<TD NOWRAP><INPUT NAME="Quantity" size="5">
<INPUT TYPE="button" value="+" onClick="QtyAdd(1);">
<INPUT TYPE="button" value="-" onClick="QtyAdd(0);">
</TR>
</TABLE>
</FORM>
</BODY>
</HTML>


hth

many thanks

Tony Pigram

"PL" <nospam@p.l> wrote in message news:41ee22e1@forums-1-dub...
> Hello,
>
> I'd like to use a barcode scanner in my application, I have a Symbol
> device (PPT8800 with Pocket PC). My application works already fine with
> MBusiness 5.5, Ultralite and Mobilink but I am not able to find how to
> use the barcode scanner.
>
> Mbusiness Client 5.5 build 113 (I have also tested with MBiz 5.7)
> AvantGo Symbol Scanner pod v2.0 (55scanner.dll)
>
> If I follow MBusiness Developer guide (p368):
> scanobject=CreateObject("avantgo.symbolScanner");
> but scanobject is always null
>
> if I follow the example provided by Avantgo :
> avantgo.symbolScanner.enabled = true;
> avantgo.symbolScanner.ScanEnabled = true;
> but in this case avantgo.symbolScanner is undefined.
>
> I do not understand what is the correct way to define symbolScanner.
>
> Thanks,
>
> Pierre LAVIGNE
>
> ps : you will find below the piece of code I tested to check if the
> scanner is available:
> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
> <html>
> <head>
> <META name="HandheldFriendly" content="True">
> <script language="JavaScript" type="text/javascript">
> function check() {
> alert(avantgo.symbolScanner); //undefined !!!!
> var scanobjet = CreateObject("avantgo.symbolScanner");
> alert(scanobjet); // null !!!
> }
> </script>
> </head>
>
> <body>
> <table>
> <tr>
> <td align="left" width="80"><b>Check Symbol Scanner</b></td>
> <td align="left">
> <input type="button" onclick="check();" value="Check">
> </td>
> </tr>
> </table>
> </body>
> </html>


PL Posted on 2005-01-19 15:47:37.0Z
From: PL <nospam@p.l>
Reply-To: nospam@p.l
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: fr, en
MIME-Version: 1.0
Newsgroups: ianywhere.public.mbusinessanywhere.general
Subject: Re: Mbusiness 5.5, symbolScanner POD with Pocket PC
References: <41ee22e1@forums-1-dub> <41ee52d9@forums-2-dub>
In-Reply-To: <41ee52d9@forums-2-dub>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Original-NNTP-Posting-Host: 213.56.201.109
Message-ID: <41ee8115@forums-2-dub>
X-Original-Trace: 19 Jan 2005 07:47:33 -0800, 213.56.201.109
Lines: 193
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 19 Jan 2005 07:47:34 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 19 Jan 2005 07:47:37 -0800
X-Trace: forums-1-dub 1106149657 10.22.108.75 (19 Jan 2005 07:47:37 -0800)
X-Original-Trace: 19 Jan 2005 07:47:37 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:229
Article PK: 17622

Hi Tony,

Thanks for your answer, but it doesn't work. I have tested exactly the
code you sent to me.
I add a "try/catch" as following to get the exception message :
"ToObjectError : undefined has no properties"
function scannerOn()
{
// alert("scannerOn");
try {avantgo.symbolScanner.enabled = true;}
catch (ex) {alert(ex)}
avantgo.symbolScanner.ScanEnabled = true;
}

that's why I think the avantgo.symbolScanner object has to be created
first (like
databaseManager=CreateObject("iAnywhere.UltraLite.DatabaseManager");
with the POD Ultralite)
But scanobjet = CreateObject("avantgo.symbolScanner"); gives me a null
object!

Any idea?

Thanks

Pierre

> Hi Pierre,
>
> You need to access the properties of the scanner object to be able to use
> the scanner. ie. avantgo.symbolScanner.ScanData;
>
> The following code snippet shold give you an idea of what you need to do:
>
> <HTML>
> <HEAD>
> <META NAME="HandheldFriendly" content="True">
> <TITLE>Scan2a Test page</TITLE>
>
> <SCRIPT language="JavaScript">
>
> var docform = document.scan;
>
> function scannerOn()
> {
> // alert("scannerOn");
> avantgo.symbolScanner.enabled = true;
> avantgo.symbolScanner.ScanEnabled = true;
> }
>
> function scannerOff()
> {
> // alert("scannerOff");
> avantgo.symbolScanner.enabled = false;
> avantgo.symbolScanner.ScanEnabled = false;
> }
>
> function scanit()
> {
> // allocates the barcode value to the HTML field
> docform.barcode.value= avantgo.symbolScanner.ScanData;
> //Handle the rare chance that 'nothing' was scanned
> if (avantgo.symbolScanner.ScanData == null) {
> docform.codedesc.value = "Please scan a valid barcode.";
> return false;
> }
> lookupvalue = docform.barcode.value;
> ProductArray = new Array(
> ["AKF7111B","description one"],
> ["AKF7112B","description two"],
> ["AKF7123B","description three"]);
> docform.codedesc.value = "Product not in profile";
> var i = 0;
> while(ProductArray.length--)
> {
> if (ProductArray[i][0] == lookupvalue)
> docform.codedesc.value = ProductArray[i][1];
> i++;
> };
> //Set the focus to be on the Quantity field
> docform.Quantity.focus();
> }
>
> function QtyAdd(Action){
> var i=0;
> i = docform.Quantity.value;
> if (Action == '1') { i++; }
> else if (i > '1') { i--;}
> docform.Quantity.value = i;
> docform.Quantity.focus();
> }
>
> function ClearVars(){
> //need to reset the values of all objects
> docform.Quantity.value = '';
> docform.codedesc.value = '';
> docform.barcode.value = 0;
> }
>
> </SCRIPT>
> </HEAD>
> <BODY onScan="scanit();" onLoad="scannerOn();" onUnload="scannerOff();">
> <FORM name="scan" METHOD="POST" ACTION="order.jsp">
> <BR>
> <STRONG>Warehouse replenishment</STRONG><BR>
> Scan product label by pressing left button.<BR>
> <BR>
> <TABLE BORDER=0 CELLSPACING=1 CELLPADDING=1>
> <TR>
> <TD>Product code:</TD>
> <TD NOWRAP><INPUT NAME="barcode"></TD>
> </TR>
> </TABLE>
> <TABLE BORDER=0 CELLSPACING=1 CELLPADDING=1>
> <TR>
> <TD NOWRAP><TEXTAREA cols="15" name="codedesc" rows="3"></TEXTAREA></TD>
> </TR>
> </TABLE>
> <TABLE BORDER=0 CELLSPACING=1 CELLPADDING=1>
> <TR>
> <TD>Enter Quantity:</TD>
> <TD NOWRAP><INPUT NAME="Quantity" size="5">
> <INPUT TYPE="button" value="+" onClick="QtyAdd(1);">
> <INPUT TYPE="button" value="-" onClick="QtyAdd(0);">
> </TR>
> </TABLE>
> </FORM>
> </BODY>
> </HTML>
>
>
> hth
>
> many thanks
>
> Tony Pigram
>
> "PL" <nospam@p.l> wrote in message news:41ee22e1@forums-1-dub...
>
>>Hello,
>>
>>I'd like to use a barcode scanner in my application, I have a Symbol
>>device (PPT8800 with Pocket PC). My application works already fine with
>>MBusiness 5.5, Ultralite and Mobilink but I am not able to find how to
>>use the barcode scanner.
>>
>>Mbusiness Client 5.5 build 113 (I have also tested with MBiz 5.7)
>>AvantGo Symbol Scanner pod v2.0 (55scanner.dll)
>>
>>If I follow MBusiness Developer guide (p368):
>>scanobject=CreateObject("avantgo.symbolScanner");
>>but scanobject is always null
>>
>>if I follow the example provided by Avantgo :
>> avantgo.symbolScanner.enabled = true;
>> avantgo.symbolScanner.ScanEnabled = true;
>>but in this case avantgo.symbolScanner is undefined.
>>
>>I do not understand what is the correct way to define symbolScanner.
>>
>>Thanks,
>>
>>Pierre LAVIGNE
>>
>>ps : you will find below the piece of code I tested to check if the
>>scanner is available:
>><!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
>><html>
>> <head>
>> <META name="HandheldFriendly" content="True">
>> <script language="JavaScript" type="text/javascript">
>> function check() {
>> alert(avantgo.symbolScanner); //undefined !!!!
>> var scanobjet = CreateObject("avantgo.symbolScanner");
>> alert(scanobjet); // null !!!
>> }
>> </script>
>> </head>
>>
>><body>
>><table>
>><tr>
>> <td align="left" width="80"><b>Check Symbol Scanner</b></td>
>> <td align="left">
>> <input type="button" onclick="check();" value="Check">
>> </td>
>></tr>
>></table>
>></body>
>></html>
>
>
>


tony pigram Posted on 2005-01-19 18:45:02.0Z
Reply-To: "tony pigram" <tony.pigram@nospam.com>
From: "tony pigram" <tony.pigram@nospam.com>
Newsgroups: ianywhere.public.mbusinessanywhere.general
References: <41ee22e1@forums-1-dub> <41ee52d9@forums-2-dub> <41ee8115@forums-2-dub>
Subject: Re: Mbusiness 5.5, symbolScanner POD with Pocket PC
Lines: 214
Organization: iAnywhere Solutions
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: vpn-concord-184.sybase.com
X-Original-NNTP-Posting-Host: vpn-concord-184.sybase.com
Message-ID: <41eeaaae@forums-1-dub>
Date: 19 Jan 2005 10:45:02 -0800
X-Trace: forums-1-dub 1106160302 158.159.8.184 (19 Jan 2005 10:45:02 -0800)
X-Original-Trace: 19 Jan 2005 10:45:02 -0800, vpn-concord-184.sybase.com
X-Authenticated-User: techsupp
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:230
Article PK: 8784

Hi Pierre,

Can you check something for me:

Open the MBusiness Client on your PDA, select 'View', 'About M-Business
Client'

If you scroll-down a little, can see a list all the PODS that you have on
your PDA (including version numbers), can you post those details to this
newsgroup.

many thanks

Tony Pigram

"PL" <nospam@p.l> wrote in message news:41ee8115@forums-2-dub...
> Hi Tony,
>
> Thanks for your answer, but it doesn't work. I have tested exactly the
> code you sent to me.
> I add a "try/catch" as following to get the exception message :
> "ToObjectError : undefined has no properties"
> function scannerOn()
> {
> // alert("scannerOn");
> try {avantgo.symbolScanner.enabled = true;}
> catch (ex) {alert(ex)}
> avantgo.symbolScanner.ScanEnabled = true;
> }
>
> that's why I think the avantgo.symbolScanner object has to be created
> first (like
> databaseManager=CreateObject("iAnywhere.UltraLite.DatabaseManager");
> with the POD Ultralite)
> But scanobjet = CreateObject("avantgo.symbolScanner"); gives me a null
> object!
>
> Any idea?
>
> Thanks
>
> Pierre
>
> > Hi Pierre,
> >
> > You need to access the properties of the scanner object to be able to
use
> > the scanner. ie. avantgo.symbolScanner.ScanData;
> >
> > The following code snippet shold give you an idea of what you need to
do:
> >
> > <HTML>
> > <HEAD>
> > <META NAME="HandheldFriendly" content="True">
> > <TITLE>Scan2a Test page</TITLE>
> >
> > <SCRIPT language="JavaScript">
> >
> > var docform = document.scan;
> >
> > function scannerOn()
> > {
> > // alert("scannerOn");
> > avantgo.symbolScanner.enabled = true;
> > avantgo.symbolScanner.ScanEnabled = true;
> > }
> >
> > function scannerOff()
> > {
> > // alert("scannerOff");
> > avantgo.symbolScanner.enabled = false;
> > avantgo.symbolScanner.ScanEnabled = false;
> > }
> >
> > function scanit()
> > {
> > // allocates the barcode value to the HTML field
> > docform.barcode.value= avantgo.symbolScanner.ScanData;
> > //Handle the rare chance that 'nothing' was scanned
> > if (avantgo.symbolScanner.ScanData == null) {
> > docform.codedesc.value = "Please scan a valid barcode.";
> > return false;
> > }
> > lookupvalue = docform.barcode.value;
> > ProductArray = new Array(
> > ["AKF7111B","description one"],
> > ["AKF7112B","description two"],
> > ["AKF7123B","description three"]);
> > docform.codedesc.value = "Product not in profile";
> > var i = 0;
> > while(ProductArray.length--)
> > {
> > if (ProductArray[i][0] == lookupvalue)
> > docform.codedesc.value = ProductArray[i][1];
> > i++;
> > };
> > //Set the focus to be on the Quantity field
> > docform.Quantity.focus();
> > }
> >
> > function QtyAdd(Action){
> > var i=0;
> > i = docform.Quantity.value;
> > if (Action == '1') { i++; }
> > else if (i > '1') { i--;}
> > docform.Quantity.value = i;
> > docform.Quantity.focus();
> > }
> >
> > function ClearVars(){
> > //need to reset the values of all objects
> > docform.Quantity.value = '';
> > docform.codedesc.value = '';
> > docform.barcode.value = 0;
> > }
> >
> > </SCRIPT>
> > </HEAD>
> > <BODY onScan="scanit();" onLoad="scannerOn();" onUnload="scannerOff();">
> > <FORM name="scan" METHOD="POST" ACTION="order.jsp">
> > <BR>
> > <STRONG>Warehouse replenishment</STRONG><BR>
> > Scan product label by pressing left button.<BR>
> > <BR>
> > <TABLE BORDER=0 CELLSPACING=1 CELLPADDING=1>
> > <TR>
> > <TD>Product code:</TD>
> > <TD NOWRAP><INPUT NAME="barcode"></TD>
> > </TR>
> > </TABLE>
> > <TABLE BORDER=0 CELLSPACING=1 CELLPADDING=1>
> > <TR>
> > <TD NOWRAP><TEXTAREA cols="15" name="codedesc"
rows="3"></TEXTAREA></TD>
> > </TR>
> > </TABLE>
> > <TABLE BORDER=0 CELLSPACING=1 CELLPADDING=1>
> > <TR>
> > <TD>Enter Quantity:</TD>
> > <TD NOWRAP><INPUT NAME="Quantity" size="5">
> > <INPUT TYPE="button" value="+" onClick="QtyAdd(1);">
> > <INPUT TYPE="button" value="-" onClick="QtyAdd(0);">
> > </TR>
> > </TABLE>
> > </FORM>
> > </BODY>
> > </HTML>
> >
> >
> > hth
> >
> > many thanks
> >
> > Tony Pigram
> >
> > "PL" <nospam@p.l> wrote in message news:41ee22e1@forums-1-dub...
> >
> >>Hello,
> >>
> >>I'd like to use a barcode scanner in my application, I have a Symbol
> >>device (PPT8800 with Pocket PC). My application works already fine with
> >>MBusiness 5.5, Ultralite and Mobilink but I am not able to find how to
> >>use the barcode scanner.
> >>
> >>Mbusiness Client 5.5 build 113 (I have also tested with MBiz 5.7)
> >>AvantGo Symbol Scanner pod v2.0 (55scanner.dll)
> >>
> >>If I follow MBusiness Developer guide (p368):
> >>scanobject=CreateObject("avantgo.symbolScanner");
> >>but scanobject is always null
> >>
> >>if I follow the example provided by Avantgo :
> >> avantgo.symbolScanner.enabled = true;
> >> avantgo.symbolScanner.ScanEnabled = true;
> >>but in this case avantgo.symbolScanner is undefined.
> >>
> >>I do not understand what is the correct way to define symbolScanner.
> >>
> >>Thanks,
> >>
> >>Pierre LAVIGNE
> >>
> >>ps : you will find below the piece of code I tested to check if the
> >>scanner is available:
> >><!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
> >><html>
> >> <head>
> >> <META name="HandheldFriendly" content="True">
> >> <script language="JavaScript" type="text/javascript">
> >> function check() {
> >> alert(avantgo.symbolScanner); //undefined !!!!
> >> var scanobjet = CreateObject("avantgo.symbolScanner");
> >> alert(scanobjet); // null !!!
> >> }
> >> </script>
> >> </head>
> >>
> >><body>
> >><table>
> >><tr>
> >> <td align="left" width="80"><b>Check Symbol Scanner</b></td>
> >> <td align="left">
> >> <input type="button" onclick="check();" value="Check">
> >> </td>
> >></tr>
> >></table>
> >></body>
> >></html>
> >
> >
> >


PL Posted on 2005-01-19 19:04:13.0Z
From: PL <nospam@p.l>
Reply-To: nospam@p.l
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: fr, en
MIME-Version: 1.0
Newsgroups: ianywhere.public.mbusinessanywhere.general
Subject: Re: Mbusiness 5.5, symbolScanner POD with Pocket PC
References: <41ee22e1@forums-1-dub> <41ee52d9@forums-2-dub> <41ee8115@forums-2-dub> <41eeaaae@forums-1-dub>
In-Reply-To: <41eeaaae@forums-1-dub>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 213.56.201.109
X-Original-NNTP-Posting-Host: 213.56.201.109
Message-ID: <41eeaf2d$1@forums-1-dub>
Date: 19 Jan 2005 11:04:13 -0800
X-Trace: forums-1-dub 1106161453 213.56.201.109 (19 Jan 2005 11:04:13 -0800)
X-Original-Trace: 19 Jan 2005 11:04:13 -0800, 213.56.201.109
Lines: 233
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:231
Article PK: 8786

Hi tony,

Mbusiness 5.5 build 113
AvantGo Symbol Scanner Pod v2.0
Javascript POD v4.0

Thanks for your help

Pierre

> Hi Pierre,
>
> Can you check something for me:
>
> Open the MBusiness Client on your PDA, select 'View', 'About M-Business
> Client'
>
> If you scroll-down a little, can see a list all the PODS that you have on
> your PDA (including version numbers), can you post those details to this
> newsgroup.
>
> many thanks
>
> Tony Pigram
>
> "PL" <nospam@p.l> wrote in message news:41ee8115@forums-2-dub...
>
>>Hi Tony,
>>
>>Thanks for your answer, but it doesn't work. I have tested exactly the
>>code you sent to me.
>>I add a "try/catch" as following to get the exception message :
>>"ToObjectError : undefined has no properties"
>>function scannerOn()
>>{
>>// alert("scannerOn");
>>try {avantgo.symbolScanner.enabled = true;}
>>catch (ex) {alert(ex)}
>>avantgo.symbolScanner.ScanEnabled = true;
>>}
>>
>>that's why I think the avantgo.symbolScanner object has to be created
>>first (like
>>databaseManager=CreateObject("iAnywhere.UltraLite.DatabaseManager");
>>with the POD Ultralite)
>>But scanobjet = CreateObject("avantgo.symbolScanner"); gives me a null
>>object!
>>
>>Any idea?
>>
>>Thanks
>>
>>Pierre
>>
>>
>>>Hi Pierre,
>>>
>>>You need to access the properties of the scanner object to be able to
>
> use
>
>>>the scanner. ie. avantgo.symbolScanner.ScanData;
>>>
>>>The following code snippet shold give you an idea of what you need to
>
> do:
>
>>><HTML>
>>><HEAD>
>>><META NAME="HandheldFriendly" content="True">
>>><TITLE>Scan2a Test page</TITLE>
>>>
>>><SCRIPT language="JavaScript">
>>>
>>>var docform = document.scan;
>>>
>>>function scannerOn()
>>>{
>>>// alert("scannerOn");
>>> avantgo.symbolScanner.enabled = true;
>>> avantgo.symbolScanner.ScanEnabled = true;
>>>}
>>>
>>>function scannerOff()
>>>{
>>>// alert("scannerOff");
>>> avantgo.symbolScanner.enabled = false;
>>> avantgo.symbolScanner.ScanEnabled = false;
>>>}
>>>
>>>function scanit()
>>>{
>>>// allocates the barcode value to the HTML field
>>> docform.barcode.value= avantgo.symbolScanner.ScanData;
>>>//Handle the rare chance that 'nothing' was scanned
>>> if (avantgo.symbolScanner.ScanData == null) {
>>> docform.codedesc.value = "Please scan a valid barcode.";
>>> return false;
>>> }
>>> lookupvalue = docform.barcode.value;
>>> ProductArray = new Array(
>>> ["AKF7111B","description one"],
>>> ["AKF7112B","description two"],
>>> ["AKF7123B","description three"]);
>>> docform.codedesc.value = "Product not in profile";
>>> var i = 0;
>>> while(ProductArray.length--)
>>> {
>>> if (ProductArray[i][0] == lookupvalue)
>>> docform.codedesc.value = ProductArray[i][1];
>>> i++;
>>> };
>>>//Set the focus to be on the Quantity field
>>> docform.Quantity.focus();
>>>}
>>>
>>>function QtyAdd(Action){
>>> var i=0;
>>> i = docform.Quantity.value;
>>> if (Action == '1') { i++; }
>>> else if (i > '1') { i--;}
>>> docform.Quantity.value = i;
>>> docform.Quantity.focus();
>>>}
>>>
>>>function ClearVars(){
>>>//need to reset the values of all objects
>>> docform.Quantity.value = '';
>>> docform.codedesc.value = '';
>>> docform.barcode.value = 0;
>>>}
>>>
>>></SCRIPT>
>>></HEAD>
>>><BODY onScan="scanit();" onLoad="scannerOn();" onUnload="scannerOff();">
>>><FORM name="scan" METHOD="POST" ACTION="order.jsp">
>>> <BR>
>>> <STRONG>Warehouse replenishment</STRONG><BR>
>>> Scan product label by pressing left button.<BR>
>>> <BR>
>>> <TABLE BORDER=0 CELLSPACING=1 CELLPADDING=1>
>>> <TR>
>>> <TD>Product code:</TD>
>>> <TD NOWRAP><INPUT NAME="barcode"></TD>
>>> </TR>
>>> </TABLE>
>>> <TABLE BORDER=0 CELLSPACING=1 CELLPADDING=1>
>>> <TR>
>>> <TD NOWRAP><TEXTAREA cols="15" name="codedesc"
>
> rows="3"></TEXTAREA></TD>
>
>>> </TR>
>>> </TABLE>
>>> <TABLE BORDER=0 CELLSPACING=1 CELLPADDING=1>
>>> <TR>
>>> <TD>Enter Quantity:</TD>
>>> <TD NOWRAP><INPUT NAME="Quantity" size="5">
>>> <INPUT TYPE="button" value="+" onClick="QtyAdd(1);">
>>> <INPUT TYPE="button" value="-" onClick="QtyAdd(0);">
>>> </TR>
>>> </TABLE>
>>></FORM>
>>></BODY>
>>></HTML>
>>>
>>>
>>>hth
>>>
>>>many thanks
>>>
>>>Tony Pigram
>>>
>>>"PL" <nospam@p.l> wrote in message news:41ee22e1@forums-1-dub...
>>>
>>>
>>>>Hello,
>>>>
>>>>I'd like to use a barcode scanner in my application, I have a Symbol
>>>>device (PPT8800 with Pocket PC). My application works already fine with
>>>>MBusiness 5.5, Ultralite and Mobilink but I am not able to find how to
>>>>use the barcode scanner.
>>>>
>>>>Mbusiness Client 5.5 build 113 (I have also tested with MBiz 5.7)
>>>>AvantGo Symbol Scanner pod v2.0 (55scanner.dll)
>>>>
>>>>If I follow MBusiness Developer guide (p368):
>>>>scanobject=CreateObject("avantgo.symbolScanner");
>>>>but scanobject is always null
>>>>
>>>>if I follow the example provided by Avantgo :
>>>> avantgo.symbolScanner.enabled = true;
>>>> avantgo.symbolScanner.ScanEnabled = true;
>>>>but in this case avantgo.symbolScanner is undefined.
>>>>
>>>>I do not understand what is the correct way to define symbolScanner.
>>>>
>>>>Thanks,
>>>>
>>>>Pierre LAVIGNE
>>>>
>>>>ps : you will find below the piece of code I tested to check if the
>>>>scanner is available:
>>>><!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
>>>><html>
>>>> <head>
>>>> <META name="HandheldFriendly" content="True">
>>>> <script language="JavaScript" type="text/javascript">
>>>> function check() {
>>>> alert(avantgo.symbolScanner); //undefined !!!!
>>>> var scanobjet = CreateObject("avantgo.symbolScanner");
>>>> alert(scanobjet); // null !!!
>>>> }
>>>> </script>
>>>> </head>
>>>>
>>>><body>
>>>><table>
>>>><tr>
>>>> <td align="left" width="80"><b>Check Symbol Scanner</b></td>
>>>> <td align="left">
>>>> <input type="button" onclick="check();" value="Check">
>>>> </td>
>>>></tr>
>>>></table>
>>>></body>
>>>></html>
>>>
>>>
>>>
>
>


tony pigram Posted on 2005-01-20 08:33:37.0Z
Reply-To: "tony pigram" <tony.pigram@nospam.com>
From: "tony pigram" <tony.pigram@nospam.com>
Newsgroups: ianywhere.public.mbusinessanywhere.general
References: <41ee22e1@forums-1-dub> <41ee52d9@forums-2-dub> <41ee8115@forums-2-dub> <41eeaaae@forums-1-dub> <41eeaf2d$1@forums-1-dub>
Subject: Re: Mbusiness 5.5, symbolScanner POD with Pocket PC
Lines: 248
Organization: iAnywhere Solutions
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: host81-130-96-152.in-addr.btopenworld.com
X-Original-NNTP-Posting-Host: host81-130-96-152.in-addr.btopenworld.com
Message-ID: <41ef6ce1@forums-1-dub>
Date: 20 Jan 2005 00:33:37 -0800
X-Trace: forums-1-dub 1106210017 81.130.96.152 (20 Jan 2005 00:33:37 -0800)
X-Original-Trace: 20 Jan 2005 00:33:37 -0800, host81-130-96-152.in-addr.btopenworld.com
X-Authenticated-User: techsupp
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:232
Article PK: 8785

Hi Pierre,

Your previous email showed you have a PODS called 55scanner.dll - where did
you get this from?

thanks

tony

"PL" <nospam@p.l> wrote in message news:41eeaf2d$1@forums-1-dub...
>
> Hi tony,
>
> Mbusiness 5.5 build 113
> AvantGo Symbol Scanner Pod v2.0
> Javascript POD v4.0
>
> Thanks for your help
>
> Pierre
>
> > Hi Pierre,
> >
> > Can you check something for me:
> >
> > Open the MBusiness Client on your PDA, select 'View', 'About M-Business
> > Client'
> >
> > If you scroll-down a little, can see a list all the PODS that you have
on
> > your PDA (including version numbers), can you post those details to this
> > newsgroup.
> >
> > many thanks
> >
> > Tony Pigram
> >
> > "PL" <nospam@p.l> wrote in message news:41ee8115@forums-2-dub...
> >
> >>Hi Tony,
> >>
> >>Thanks for your answer, but it doesn't work. I have tested exactly the
> >>code you sent to me.
> >>I add a "try/catch" as following to get the exception message :
> >>"ToObjectError : undefined has no properties"
> >>function scannerOn()
> >>{
> >>// alert("scannerOn");
> >>try {avantgo.symbolScanner.enabled = true;}
> >>catch (ex) {alert(ex)}
> >>avantgo.symbolScanner.ScanEnabled = true;
> >>}
> >>
> >>that's why I think the avantgo.symbolScanner object has to be created
> >>first (like
> >>databaseManager=CreateObject("iAnywhere.UltraLite.DatabaseManager");
> >>with the POD Ultralite)
> >>But scanobjet = CreateObject("avantgo.symbolScanner"); gives me a null
> >>object!
> >>
> >>Any idea?
> >>
> >>Thanks
> >>
> >>Pierre
> >>
> >>
> >>>Hi Pierre,
> >>>
> >>>You need to access the properties of the scanner object to be able to
> >
> > use
> >
> >>>the scanner. ie. avantgo.symbolScanner.ScanData;
> >>>
> >>>The following code snippet shold give you an idea of what you need to
> >
> > do:
> >
> >>><HTML>
> >>><HEAD>
> >>><META NAME="HandheldFriendly" content="True">
> >>><TITLE>Scan2a Test page</TITLE>
> >>>
> >>><SCRIPT language="JavaScript">
> >>>
> >>>var docform = document.scan;
> >>>
> >>>function scannerOn()
> >>>{
> >>>// alert("scannerOn");
> >>> avantgo.symbolScanner.enabled = true;
> >>> avantgo.symbolScanner.ScanEnabled = true;
> >>>}
> >>>
> >>>function scannerOff()
> >>>{
> >>>// alert("scannerOff");
> >>> avantgo.symbolScanner.enabled = false;
> >>> avantgo.symbolScanner.ScanEnabled = false;
> >>>}
> >>>
> >>>function scanit()
> >>>{
> >>>// allocates the barcode value to the HTML field
> >>> docform.barcode.value= avantgo.symbolScanner.ScanData;
> >>>//Handle the rare chance that 'nothing' was scanned
> >>> if (avantgo.symbolScanner.ScanData == null) {
> >>> docform.codedesc.value = "Please scan a valid barcode.";
> >>> return false;
> >>> }
> >>> lookupvalue = docform.barcode.value;
> >>> ProductArray = new Array(
> >>> ["AKF7111B","description one"],
> >>> ["AKF7112B","description two"],
> >>> ["AKF7123B","description three"]);
> >>> docform.codedesc.value = "Product not in profile";
> >>> var i = 0;
> >>> while(ProductArray.length--)
> >>> {
> >>> if (ProductArray[i][0] == lookupvalue)
> >>> docform.codedesc.value = ProductArray[i][1];
> >>> i++;
> >>> };
> >>>//Set the focus to be on the Quantity field
> >>> docform.Quantity.focus();
> >>>}
> >>>
> >>>function QtyAdd(Action){
> >>> var i=0;
> >>> i = docform.Quantity.value;
> >>> if (Action == '1') { i++; }
> >>> else if (i > '1') { i--;}
> >>> docform.Quantity.value = i;
> >>> docform.Quantity.focus();
> >>>}
> >>>
> >>>function ClearVars(){
> >>>//need to reset the values of all objects
> >>> docform.Quantity.value = '';
> >>> docform.codedesc.value = '';
> >>> docform.barcode.value = 0;
> >>>}
> >>>
> >>></SCRIPT>
> >>></HEAD>
> >>><BODY onScan="scanit();" onLoad="scannerOn();"
onUnload="scannerOff();">
> >>><FORM name="scan" METHOD="POST" ACTION="order.jsp">
> >>> <BR>
> >>> <STRONG>Warehouse replenishment</STRONG><BR>
> >>> Scan product label by pressing left button.<BR>
> >>> <BR>
> >>> <TABLE BORDER=0 CELLSPACING=1 CELLPADDING=1>
> >>> <TR>
> >>> <TD>Product code:</TD>
> >>> <TD NOWRAP><INPUT NAME="barcode"></TD>
> >>> </TR>
> >>> </TABLE>
> >>> <TABLE BORDER=0 CELLSPACING=1 CELLPADDING=1>
> >>> <TR>
> >>> <TD NOWRAP><TEXTAREA cols="15" name="codedesc"
> >
> > rows="3"></TEXTAREA></TD>
> >
> >>> </TR>
> >>> </TABLE>
> >>> <TABLE BORDER=0 CELLSPACING=1 CELLPADDING=1>
> >>> <TR>
> >>> <TD>Enter Quantity:</TD>
> >>> <TD NOWRAP><INPUT NAME="Quantity" size="5">
> >>> <INPUT TYPE="button" value="+" onClick="QtyAdd(1);">
> >>> <INPUT TYPE="button" value="-" onClick="QtyAdd(0);">
> >>> </TR>
> >>> </TABLE>
> >>></FORM>
> >>></BODY>
> >>></HTML>
> >>>
> >>>
> >>>hth
> >>>
> >>>many thanks
> >>>
> >>>Tony Pigram
> >>>
> >>>"PL" <nospam@p.l> wrote in message news:41ee22e1@forums-1-dub...
> >>>
> >>>
> >>>>Hello,
> >>>>
> >>>>I'd like to use a barcode scanner in my application, I have a Symbol
> >>>>device (PPT8800 with Pocket PC). My application works already fine
with
> >>>>MBusiness 5.5, Ultralite and Mobilink but I am not able to find how to
> >>>>use the barcode scanner.
> >>>>
> >>>>Mbusiness Client 5.5 build 113 (I have also tested with MBiz 5.7)
> >>>>AvantGo Symbol Scanner pod v2.0 (55scanner.dll)
> >>>>
> >>>>If I follow MBusiness Developer guide (p368):
> >>>>scanobject=CreateObject("avantgo.symbolScanner");
> >>>>but scanobject is always null
> >>>>
> >>>>if I follow the example provided by Avantgo :
> >>>> avantgo.symbolScanner.enabled = true;
> >>>> avantgo.symbolScanner.ScanEnabled = true;
> >>>>but in this case avantgo.symbolScanner is undefined.
> >>>>
> >>>>I do not understand what is the correct way to define symbolScanner.
> >>>>
> >>>>Thanks,
> >>>>
> >>>>Pierre LAVIGNE
> >>>>
> >>>>ps : you will find below the piece of code I tested to check if the
> >>>>scanner is available:
> >>>><!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
> >>>><html>
> >>>> <head>
> >>>> <META name="HandheldFriendly" content="True">
> >>>> <script language="JavaScript" type="text/javascript">
> >>>> function check() {
> >>>> alert(avantgo.symbolScanner); //undefined !!!!
> >>>> var scanobjet = CreateObject("avantgo.symbolScanner");
> >>>> alert(scanobjet); // null !!!
> >>>> }
> >>>> </script>
> >>>> </head>
> >>>>
> >>>><body>
> >>>><table>
> >>>><tr>
> >>>> <td align="left" width="80"><b>Check Symbol Scanner</b></td>
> >>>> <td align="left">
> >>>> <input type="button" onclick="check();" value="Check">
> >>>> </td>
> >>>></tr>
> >>>></table>
> >>>></body>
> >>>></html>
> >>>
> >>>
> >>>
> >
> >


tony pigram Posted on 2005-01-20 08:33:39.0Z
Reply-To: "tony pigram" <tony.pigram@nospam.com>
From: "tony pigram" <tony.pigram@nospam.com>
Newsgroups: ianywhere.public.mbusinessanywhere.general
References: <41ee22e1@forums-1-dub> <41ee52d9@forums-2-dub> <41ee8115@forums-2-dub> <41eeaaae@forums-1-dub> <41eeaf2d$1@forums-1-dub>
Subject: Re: Mbusiness 5.5, symbolScanner POD with Pocket PC
Lines: 675
Organization: iAnywhere Solutions
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: host81-130-96-152.in-addr.btopenworld.com
X-Original-NNTP-Posting-Host: host81-130-96-152.in-addr.btopenworld.com
Message-ID: <41ef6ce3@forums-1-dub>
Date: 20 Jan 2005 00:33:39 -0800
X-Trace: forums-1-dub 1106210019 81.130.96.152 (20 Jan 2005 00:33:39 -0800)
X-Original-Trace: 20 Jan 2005 00:33:39 -0800, host81-130-96-152.in-addr.btopenworld.com
X-Authenticated-User: techsupp
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:233
Article PK: 8788

Hi Pierre,


Try using this POD and the following code:

<html>

<script>

function myOnload()

{

gScanner = CreateObject("symbol.wince_scanner");

if(gScanner)

{

gScanner.scanInit();

}

else

{

alert("Scanner POD needs to be downloaded");

}

}



function loadScanData(thisWidget)

{

if(!gScanner)

return;

if(gScanner.getScanStatus() == 0) {

thisWidget.value = gScanner.getScanData();

}

return false;

}

</script>

<body onLoad="myOnload();">

<form action="http://32768.com/cgi-bin/env" id="scannerForm"
name="scannerForm"

agsubmitDiscardResponse="false" title="Date Time Picker Sample" >

<input onscan="loadScanData(this)" size="18" type="text" id="ScanInfo"
name="Scan info" value="">

<input type=submit value="Click me to send the form" name=submitForm >

</form>

<a href="AGDEVICE_OS/scanner.htm"></a>

</html>



thanks

tony

"PL" <nospam@p.l> wrote in message news:41eeaf2d$1@forums-1-dub...
>
> Hi tony,
>
> Mbusiness 5.5 build 113
> AvantGo Symbol Scanner Pod v2.0
> Javascript POD v4.0
>
> Thanks for your help
>
> Pierre
>
> > Hi Pierre,
> >
> > Can you check something for me:
> >
> > Open the MBusiness Client on your PDA, select 'View', 'About M-Business
> > Client'
> >
> > If you scroll-down a little, can see a list all the PODS that you have
on
> > your PDA (including version numbers), can you post those details to this
> > newsgroup.
> >
> > many thanks
> >
> > Tony Pigram
> >
> > "PL" <nospam@p.l> wrote in message news:41ee8115@forums-2-dub...
> >
> >>Hi Tony,
> >>
> >>Thanks for your answer, but it doesn't work. I have tested exactly the
> >>code you sent to me.
> >>I add a "try/catch" as following to get the exception message :
> >>"ToObjectError : undefined has no properties"
> >>function scannerOn()
> >>{
> >>// alert("scannerOn");
> >>try {avantgo.symbolScanner.enabled = true;}
> >>catch (ex) {alert(ex)}
> >>avantgo.symbolScanner.ScanEnabled = true;
> >>}
> >>
> >>that's why I think the avantgo.symbolScanner object has to be created
> >>first (like
> >>databaseManager=CreateObject("iAnywhere.UltraLite.DatabaseManager");
> >>with the POD Ultralite)
> >>But scanobjet = CreateObject("avantgo.symbolScanner"); gives me a null
> >>object!
> >>
> >>Any idea?
> >>
> >>Thanks
> >>
> >>Pierre
> >>
> >>
> >>>Hi Pierre,
> >>>
> >>>You need to access the properties of the scanner object to be able to
> >
> > use
> >
> >>>the scanner. ie. avantgo.symbolScanner.ScanData;
> >>>
> >>>The following code snippet shold give you an idea of what you need to
> >
> > do:
> >
> >>><HTML>
> >>><HEAD>
> >>><META NAME="HandheldFriendly" content="True">
> >>><TITLE>Scan2a Test page</TITLE>
> >>>
> >>><SCRIPT language="JavaScript">
> >>>
> >>>var docform = document.scan;
> >>>
> >>>function scannerOn()
> >>>{
> >>>// alert("scannerOn");
> >>> avantgo.symbolScanner.enabled = true;
> >>> avantgo.symbolScanner.ScanEnabled = true;
> >>>}
> >>>
> >>>function scannerOff()
> >>>{
> >>>// alert("scannerOff");
> >>> avantgo.symbolScanner.enabled = false;
> >>> avantgo.symbolScanner.ScanEnabled = false;
> >>>}
> >>>
> >>>function scanit()
> >>>{
> >>>// allocates the barcode value to the HTML field
> >>> docform.barcode.value= avantgo.symbolScanner.ScanData;
> >>>//Handle the rare chance that 'nothing' was scanned
> >>> if (avantgo.symbolScanner.ScanData == null) {
> >>> docform.codedesc.value = "Please scan a valid barcode.";
> >>> return false;
> >>> }
> >>> lookupvalue = docform.barcode.value;
> >>> ProductArray = new Array(
> >>> ["AKF7111B","description one"],
> >>> ["AKF7112B","description two"],
> >>> ["AKF7123B","description three"]);
> >>> docform.codedesc.value = "Product not in profile";
> >>> var i = 0;
> >>> while(ProductArray.length--)
> >>> {
> >>> if (ProductArray[i][0] == lookupvalue)
> >>> docform.codedesc.value = ProductArray[i][1];
> >>> i++;
> >>> };
> >>>//Set the focus to be on the Quantity field
> >>> docform.Quantity.focus();
> >>>}
> >>>
> >>>function QtyAdd(Action){
> >>> var i=0;
> >>> i = docform.Quantity.value;
> >>> if (Action == '1') { i++; }
> >>> else if (i > '1') { i--;}
> >>> docform.Quantity.value = i;
> >>> docform.Quantity.focus();
> >>>}
> >>>
> >>>function ClearVars(){
> >>>//need to reset the values of all objects
> >>> docform.Quantity.value = '';
> >>> docform.codedesc.value = '';
> >>> docform.barcode.value = 0;
> >>>}
> >>>
> >>></SCRIPT>
> >>></HEAD>
> >>><BODY onScan="scanit();" onLoad="scannerOn();"
onUnload="scannerOff();">
> >>><FORM name="scan" METHOD="POST" ACTION="order.jsp">
> >>> <BR>
> >>> <STRONG>Warehouse replenishment</STRONG><BR>
> >>> Scan product label by pressing left button.<BR>
> >>> <BR>
> >>> <TABLE BORDER=0 CELLSPACING=1 CELLPADDING=1>
> >>> <TR>
> >>> <TD>Product code:</TD>
> >>> <TD NOWRAP><INPUT NAME="barcode"></TD>
> >>> </TR>
> >>> </TABLE>
> >>> <TABLE BORDER=0 CELLSPACING=1 CELLPADDING=1>
> >>> <TR>
> >>> <TD NOWRAP><TEXTAREA cols="15" name="codedesc"
> >
> > rows="3"></TEXTAREA></TD>
> >
> >>> </TR>
> >>> </TABLE>
> >>> <TABLE BORDER=0 CELLSPACING=1 CELLPADDING=1>
> >>> <TR>
> >>> <TD>Enter Quantity:</TD>
> >>> <TD NOWRAP><INPUT NAME="Quantity" size="5">
> >>> <INPUT TYPE="button" value="+" onClick="QtyAdd(1);">
> >>> <INPUT TYPE="button" value="-" onClick="QtyAdd(0);">
> >>> </TR>
> >>> </TABLE>
> >>></FORM>
> >>></BODY>
> >>></HTML>
> >>>
> >>>
> >>>hth
> >>>
> >>>many thanks
> >>>
> >>>Tony Pigram
> >>>
> >>>"PL" <nospam@p.l> wrote in message news:41ee22e1@forums-1-dub...
> >>>
> >>>
> >>>>Hello,
> >>>>
> >>>>I'd like to use a barcode scanner in my application, I have a Symbol
> >>>>device (PPT8800 with Pocket PC). My application works already fine
with
> >>>>MBusiness 5.5, Ultralite and Mobilink but I am not able to find how to
> >>>>use the barcode scanner.
> >>>>
> >>>>Mbusiness Client 5.5 build 113 (I have also tested with MBiz 5.7)
> >>>>AvantGo Symbol Scanner pod v2.0 (55scanner.dll)
> >>>>
> >>>>If I follow MBusiness Developer guide (p368):
> >>>>scanobject=CreateObject("avantgo.symbolScanner");
> >>>>but scanobject is always null
> >>>>
> >>>>if I follow the example provided by Avantgo :
> >>>> avantgo.symbolScanner.enabled = true;
> >>>> avantgo.symbolScanner.ScanEnabled = true;
> >>>>but in this case avantgo.symbolScanner is undefined.
> >>>>
> >>>>I do not understand what is the correct way to define symbolScanner.
> >>>>
> >>>>Thanks,
> >>>>
> >>>>Pierre LAVIGNE
> >>>>
> >>>>ps : you will find below the piece of code I tested to check if the
> >>>>scanner is available:
> >>>><!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
> >>>><html>
> >>>> <head>
> >>>> <META name="HandheldFriendly" content="True">
> >>>> <script language="JavaScript" type="text/javascript">
> >>>> function check() {
> >>>> alert(avantgo.symbolScanner); //undefined !!!!
> >>>> var scanobjet = CreateObject("avantgo.symbolScanner");
> >>>> alert(scanobjet); // null !!!
> >>>> }
> >>>> </script>
> >>>> </head>
> >>>>
> >>>><body>
> >>>><table>
> >>>><tr>
> >>>> <td align="left" width="80"><b>Check Symbol Scanner</b></td>
> >>>> <td align="left">
> >>>> <input type="button" onclick="check();" value="Check">
> >>>> </td>
> >>>></tr>
> >>>></table>
> >>>></body>
> >>>></html>
> >>>
> >>>
> >>>
> >
> >


PL Posted on 2005-01-20 11:13:39.0Z
From: PL <nospam@p.l>
Reply-To: nospam@p.l
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: fr, en
MIME-Version: 1.0
Newsgroups: ianywhere.public.mbusinessanywhere.general
Subject: Re: Mbusiness 5.5, symbolScanner POD with Pocket PC
References: <41ee22e1@forums-1-dub> <41ee52d9@forums-2-dub> <41ee8115@forums-2-dub> <41eeaaae@forums-1-dub> <41eeaf2d$1@forums-1-dub> <41ef6ce3@forums-1-dub>
In-Reply-To: <41ef6ce3@forums-1-dub>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 213.56.201.109
X-Original-NNTP-Posting-Host: 213.56.201.109
Message-ID: <41ef9263@forums-1-dub>
Date: 20 Jan 2005 03:13:39 -0800
X-Trace: forums-1-dub 1106219619 213.56.201.109 (20 Jan 2005 03:13:39 -0800)
X-Original-Trace: 20 Jan 2005 03:13:39 -0800, 213.56.201.109
Lines: 353
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:234
Article PK: 8787

Hi tony,

It's better!
gScanner = CreateObject("symbol.wince_scanner") gives a non null object
but the application stops after gScanner.scanInit();
with the following message:

ScanSubmitRead
Error A0000014

if I use 55scanner.dll (provided by iAnywhere France), it works fine.

Where can I find a detail documentation on "symbol.wince_scanner"? For
example, the method scanInit() is not in the Mbusiness developer guide
(PODSSymbolScanner calls p469) and if I try to use the calls defined in
this manual, these calls do not work (like gScanner.Beep(),
gScanner.PortDriverVersion).

Thanks for your help.

Pierre

> Hi Pierre,
>
>
> Try using this POD and the following code:
>
> <html>
>
> <script>
>
> function myOnload()
>
> {
>
> gScanner = CreateObject("symbol.wince_scanner");
>
> if(gScanner)
>
> {
>
> gScanner.scanInit();
>
> }
>
> else
>
> {
>
> alert("Scanner POD needs to be downloaded");
>
> }
>
> }
>
>
>
> function loadScanData(thisWidget)
>
> {
>
> if(!gScanner)
>
> return;
>
> if(gScanner.getScanStatus() == 0) {
>
> thisWidget.value = gScanner.getScanData();
>
> }
>
> return false;
>
> }
>
> </script>
>
> <body onLoad="myOnload();">
>
> <form action="http://32768.com/cgi-bin/env" id="scannerForm"
> name="scannerForm"
>
> agsubmitDiscardResponse="false" title="Date Time Picker Sample" >
>
> <input onscan="loadScanData(this)" size="18" type="text" id="ScanInfo"
> name="Scan info" value="">
>
> <input type=submit value="Click me to send the form" name=submitForm >
>
> </form>
>
> <a href="AGDEVICE_OS/scanner.htm"></a>
>
> </html>
>
>
>
> thanks
>
> tony
>
> "PL" <nospam@p.l> wrote in message news:41eeaf2d$1@forums-1-dub...
>
>>Hi tony,
>>
>>Mbusiness 5.5 build 113
>>AvantGo Symbol Scanner Pod v2.0
>>Javascript POD v4.0
>>
>>Thanks for your help
>>
>>Pierre
>>
>>
>>>Hi Pierre,
>>>
>>>Can you check something for me:
>>>
>>>Open the MBusiness Client on your PDA, select 'View', 'About M-Business
>>>Client'
>>>
>>>If you scroll-down a little, can see a list all the PODS that you have
>
> on
>
>>>your PDA (including version numbers), can you post those details to this
>>>newsgroup.
>>>
>>>many thanks
>>>
>>>Tony Pigram
>>>
>>>"PL" <nospam@p.l> wrote in message news:41ee8115@forums-2-dub...
>>>
>>>
>>>>Hi Tony,
>>>>
>>>>Thanks for your answer, but it doesn't work. I have tested exactly the
>>>>code you sent to me.
>>>>I add a "try/catch" as following to get the exception message :
>>>>"ToObjectError : undefined has no properties"
>>>>function scannerOn()
>>>>{
>>>>// alert("scannerOn");
>>>>try {avantgo.symbolScanner.enabled = true;}
>>>>catch (ex) {alert(ex)}
>>>>avantgo.symbolScanner.ScanEnabled = true;
>>>>}
>>>>
>>>>that's why I think the avantgo.symbolScanner object has to be created
>>>>first (like
>>>>databaseManager=CreateObject("iAnywhere.UltraLite.DatabaseManager");
>>>>with the POD Ultralite)
>>>>But scanobjet = CreateObject("avantgo.symbolScanner"); gives me a null
>>>>object!
>>>>
>>>>Any idea?
>>>>
>>>>Thanks
>>>>
>>>>Pierre
>>>>
>>>>
>>>>
>>>>>Hi Pierre,
>>>>>
>>>>>You need to access the properties of the scanner object to be able to
>>>
>>>use
>>>
>>>
>>>>>the scanner. ie. avantgo.symbolScanner.ScanData;
>>>>>
>>>>>The following code snippet shold give you an idea of what you need to
>>>
>>>do:
>>>
>>>
>>>>><HTML>
>>>>><HEAD>
>>>>><META NAME="HandheldFriendly" content="True">
>>>>><TITLE>Scan2a Test page</TITLE>
>>>>>
>>>>><SCRIPT language="JavaScript">
>>>>>
>>>>>var docform = document.scan;
>>>>>
>>>>>function scannerOn()
>>>>>{
>>>>>// alert("scannerOn");
>>>>> avantgo.symbolScanner.enabled = true;
>>>>> avantgo.symbolScanner.ScanEnabled = true;
>>>>>}
>>>>>
>>>>>function scannerOff()
>>>>>{
>>>>>// alert("scannerOff");
>>>>> avantgo.symbolScanner.enabled = false;
>>>>> avantgo.symbolScanner.ScanEnabled = false;
>>>>>}
>>>>>
>>>>>function scanit()
>>>>>{
>>>>>// allocates the barcode value to the HTML field
>>>>> docform.barcode.value= avantgo.symbolScanner.ScanData;
>>>>>//Handle the rare chance that 'nothing' was scanned
>>>>>if (avantgo.symbolScanner.ScanData == null) {
>>>>> docform.codedesc.value = "Please scan a valid barcode.";
>>>>> return false;
>>>>>}
>>>>> lookupvalue = docform.barcode.value;
>>>>> ProductArray = new Array(
>>>>>["AKF7111B","description one"],
>>>>>["AKF7112B","description two"],
>>>>>["AKF7123B","description three"]);
>>>>> docform.codedesc.value = "Product not in profile";
>>>>> var i = 0;
>>>>> while(ProductArray.length--)
>>>>> {
>>>>> if (ProductArray[i][0] == lookupvalue)
>>>>> docform.codedesc.value = ProductArray[i][1];
>>>>> i++;
>>>>> };
>>>>>//Set the focus to be on the Quantity field
>>>>> docform.Quantity.focus();
>>>>>}
>>>>>
>>>>>function QtyAdd(Action){
>>>>> var i=0;
>>>>> i = docform.Quantity.value;
>>>>> if (Action == '1') { i++; }
>>>>> else if (i > '1') { i--;}
>>>>> docform.Quantity.value = i;
>>>>> docform.Quantity.focus();
>>>>>}
>>>>>
>>>>>function ClearVars(){
>>>>>//need to reset the values of all objects
>>>>> docform.Quantity.value = '';
>>>>> docform.codedesc.value = '';
>>>>> docform.barcode.value = 0;
>>>>>}
>>>>>
>>>>></SCRIPT>
>>>>></HEAD>
>>>>><BODY onScan="scanit();" onLoad="scannerOn();"
>
> onUnload="scannerOff();">
>
>>>>><FORM name="scan" METHOD="POST" ACTION="order.jsp">
>>>>> <BR>
>>>>> <STRONG>Warehouse replenishment</STRONG><BR>
>>>>> Scan product label by pressing left button.<BR>
>>>>> <BR>
>>>>> <TABLE BORDER=0 CELLSPACING=1 CELLPADDING=1>
>>>>><TR>
>>>>> <TD>Product code:</TD>
>>>>> <TD NOWRAP><INPUT NAME="barcode"></TD>
>>>>></TR>
>>>>> </TABLE>
>>>>> <TABLE BORDER=0 CELLSPACING=1 CELLPADDING=1>
>>>>><TR>
>>>>> <TD NOWRAP><TEXTAREA cols="15" name="codedesc"
>>>
>>>rows="3"></TEXTAREA></TD>
>>>
>>>>></TR>
>>>>> </TABLE>
>>>>> <TABLE BORDER=0 CELLSPACING=1 CELLPADDING=1>
>>>>><TR>
>>>>> <TD>Enter Quantity:</TD>
>>>>> <TD NOWRAP><INPUT NAME="Quantity" size="5">
>>>>> <INPUT TYPE="button" value="+" onClick="QtyAdd(1);">
>>>>> <INPUT TYPE="button" value="-" onClick="QtyAdd(0);">
>>>>></TR>
>>>>> </TABLE>
>>>>></FORM>
>>>>></BODY>
>>>>></HTML>
>>>>>
>>>>>
>>>>>hth
>>>>>
>>>>>many thanks
>>>>>
>>>>>Tony Pigram
>>>>>
>>>>>"PL" <nospam@p.l> wrote in message news:41ee22e1@forums-1-dub...
>>>>>
>>>>>
>>>>>
>>>>>>Hello,
>>>>>>
>>>>>>I'd like to use a barcode scanner in my application, I have a Symbol
>>>>>>device (PPT8800 with Pocket PC). My application works already fine
>
> with
>
>>>>>>MBusiness 5.5, Ultralite and Mobilink but I am not able to find how to
>>>>>>use the barcode scanner.
>>>>>>
>>>>>>Mbusiness Client 5.5 build 113 (I have also tested with MBiz 5.7)
>>>>>>AvantGo Symbol Scanner pod v2.0 (55scanner.dll)
>>>>>>
>>>>>>If I follow MBusiness Developer guide (p368):
>>>>>>scanobject=CreateObject("avantgo.symbolScanner");
>>>>>>but scanobject is always null
>>>>>>
>>>>>>if I follow the example provided by Avantgo :
>>>>>> avantgo.symbolScanner.enabled = true;
>>>>>> avantgo.symbolScanner.ScanEnabled = true;
>>>>>>but in this case avantgo.symbolScanner is undefined.
>>>>>>
>>>>>>I do not understand what is the correct way to define symbolScanner.
>>>>>>
>>>>>>Thanks,
>>>>>>
>>>>>>Pierre LAVIGNE
>>>>>>
>>>>>>ps : you will find below the piece of code I tested to check if the
>>>>>>scanner is available:
>>>>>><!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
>>>>>><html>
>>>>>> <head>
>>>>>> <META name="HandheldFriendly" content="True">
>>>>>> <script language="JavaScript" type="text/javascript">
>>>>>> function check() {
>>>>>> alert(avantgo.symbolScanner); //undefined !!!!
>>>>>> var scanobjet = CreateObject("avantgo.symbolScanner");
>>>>>> alert(scanobjet); // null !!!
>>>>>> }
>>>>>> </script>
>>>>>> </head>
>>>>>>
>>>>>><body>
>>>>>><table>
>>>>>><tr>
>>>>>> <td align="left" width="80"><b>Check Symbol Scanner</b></td>
>>>>>> <td align="left">
>>>>>> <input type="button" onclick="check();" value="Check">
>>>>>> </td>
>>>>>></tr>
>>>>>></table>
>>>>>></body>
>>>>>></html>
>>>>>
>>>>>
>>>>>
>>>
>
>


tony pigram Posted on 2005-01-21 08:07:49.0Z
Reply-To: "tony pigram" <tony.pigram@nospam.com>
From: "tony pigram" <tony.pigram@nospam.com>
Newsgroups: ianywhere.public.mbusinessanywhere.general
References: <41ee22e1@forums-1-dub> <41ee52d9@forums-2-dub> <41ee8115@forums-2-dub> <41eeaaae@forums-1-dub> <41eeaf2d$1@forums-1-dub> <41ef6ce3@forums-1-dub> <41ef9263@forums-1-dub>
Subject: Re: Mbusiness 5.5, symbolScanner POD with Pocket PC
Lines: 474
Organization: iAnywhere Solutions
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: host81-130-96-152.in-addr.btopenworld.com
X-Original-NNTP-Posting-Host: host81-130-96-152.in-addr.btopenworld.com
Message-ID: <41f0b855@forums-1-dub>
Date: 21 Jan 2005 00:07:49 -0800
X-Trace: forums-1-dub 1106294869 81.130.96.152 (21 Jan 2005 00:07:49 -0800)
X-Original-Trace: 21 Jan 2005 00:07:49 -0800, host81-130-96-152.in-addr.btopenworld.com
X-Authenticated-User: techsupp
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:235
Article PK: 8794


Yadong.Liu Posted on 2005-01-21 19:23:25.0Z
From: Yadong.Liu@ianywhere.com
Subject: Re: Mbusiness 5.5, symbolScanner POD with Pocket PC
Newsgroups: ianywhere.public.mbusinessanywhere.general
MIME-Version: 1.0
References: <41ee22e1@forums-1-dub> <41ee52d9@forums-2-dub> <41ee8115@forums-2-dub> <41eeaaae@forums-1-dub> <41eeaf2d$1@forums-1-dub> <41ef6ce3@forums-1-dub> <41ef9263@forums-1-dub>
X-Newsreader: Lotus Notes Release 6.5 September 26, 2003
X-MIMETrack: Serialize by Notes Client on Yadong Liu/SYBASE(Release 6.5|September 26, 2003) at 01/21/2005 11:23:19 AM, Serialize complete at 01/21/2005 11:23:19 AM
Content-Type: text/plain; charset="US-ASCII"
X-Original-NNTP-Posting-Host: yadongl.sybase.com
Message-ID: <41f156ab$1@forums-2-dub>
X-Original-Trace: 21 Jan 2005 11:23:23 -0800, yadongl.sybase.com
Lines: 26
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 21 Jan 2005 11:23:24 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 21 Jan 2005 11:23:25 -0800
X-Trace: forums-1-dub 1106335405 10.22.108.75 (21 Jan 2005 11:23:25 -0800)
X-Original-Trace: 21 Jan 2005 11:23:25 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:236
Article PK: 8795

Hi Pierre,

Just some clarifications for you. The functions you mentioned from the
manual are for
PalmOS based symbol scanners. PPC symbol PODS does not
implement those functions. In fact, all you need
to work with PPC symbol scanner are the following 4
functions implemented by the PODS. Tony's code already covered three of
them.

scanInit();
getScanStatus();
getScanData();
scanTerm(); (cleanup the scanner obj in memory.
Generally you need to call this when you leave the
current page.)

As for the scanner PODS dll, you should probably use
what's working for you now:-) If you need 5.7
scanner.dll, pls contact support.

http://www.ianywhere.com/company/contact.html

hth,

-Yadong