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.

M-Bus/Ultralite question

5 posts in General Discussion Last posting was on 2007-11-30 15:58:26.0Z
"Paul Horan[TeamSybase]" Posted on 2007-11-29 19:16:26.0Z
From: "Paul Horan[TeamSybase]" <phoran AT sybase DOT com>
Newsgroups: ianywhere.public.mbusinessanywhere.general
Subject: M-Bus/Ultralite question
Lines: 17
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
NNTP-Posting-Host: horanpxp.sybase.com
X-Original-NNTP-Posting-Host: horanpxp.sybase.com
Message-ID: <474f100a$1@forums-1-dub>
Date: 29 Nov 2007 11:16:26 -0800
X-Trace: forums-1-dub 1196363786 10.24.50.249 (29 Nov 2007 11:16:26 -0800)
X-Original-Trace: 29 Nov 2007 11:16:26 -0800, horanpxp.sybase.com
X-Authenticated-User: teamsybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:1143
Article PK: 17894

I don't understand this line in the sample app:

DatabaseMgr = CreateObject
( "iAnywhere.Data.UltraLite.DatabaseManager.Tutorial" );

I've also seen it referenced as this:
DatabaseMgr = CreateObject
( "iAnywhere.Data.UltraLite.DatabaseManager.CustDB" );


What is the significance of the ".Tutorial" or ".CustDB" at the end of the
string parameter to the CreateObject() call? I can't find any
documentation on the CreateObject() function.

Paul Horan[TeamSybase]


"Nick Elson" < Posted on 2007-11-30 15:26:21.0Z
From: "Nick Elson" <@@@nick@@@.@@@elson@sybase@@@.@@@com@@@>
Newsgroups: ianywhere.public.mbusinessanywhere.general
References: <474f100a$1@forums-1-dub>
Subject: Re: M-Bus/Ultralite question
Lines: 68
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962
NNTP-Posting-Host: nicelson-d620.sybase.com
X-Original-NNTP-Posting-Host: nicelson-d620.sybase.com
Message-ID: <47502b9d@forums-1-dub>
Date: 30 Nov 2007 07:26:21 -0800
X-Trace: forums-1-dub 1196436381 10.25.98.247 (30 Nov 2007 07:26:21 -0800)
X-Original-Trace: 30 Nov 2007 07:26:21 -0800, nicelson-d620.sybase.com
X-Authenticated-User: techsupp
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:1146
Article PK: 9268

The question is actually a subtle one ...

On the one hand the use of CreateObject( ) is common
practice in many ecma-/java-script environs to simulate
an object factory [that part alone goes a long way of
explaining the .udb part of the question ....]. CreateObject
is used in m-bus. anywhere to load Pods and expose them
for manipulation from JavaScript.

On the other hand there is machinery within that usage
that is not at all clearly spelled out. [I am going to mention
that to the documentation team.]

The loading of PODS part is documented in the 'old' Dev Guide
(called API Reference for M-Business Anywhere 6.5 in the
current release) available at
http://www.ianywhere.com/developer/product_manuals/mbusiness_anywhere/65/en/html/contents.htm
as
http://www.ianywhere.com/developer/product_manuals/mbusiness_anywhere/65/en/html/mba_apirefen65/mba_apirefen65.html

in Chap. 3 Section "Introduction to exporting a POD to M-Business JavaScript
engine"
amoung other references.

Under the covers, that simply calls the
"...PODSObjectMgr's objectForName()..."
which simply asks of each registered POD (via the
objectForName function) for an object instance associated
to that name. The PODSObjectMgr( ) role in this is
documented in the 2nd section of the same (above mentioned)
chapter.

Basically when the UL-pod recieves the call on it's objectForName()
function, it just identifies it's naming convention via the prefix
'iAnywhere.Data.UltraLite.DatabaseManager' and the extension is
simply used to identify which ULDB to instantiate with.

But ... you are correct the reason and convention for this name
is not at all clearly documented anywhere.

While it is obvious UL-pod is a standard M-Bus. Anywhere POD
in that regard, the name prefix and the '.<udb-name/>' part is
only indicated through examples ... as in the section Suchitt
noted.

I'll mention that to the documentation team.

"Paul Horan[TeamSybase]" <phoran AT sybase DOT com> wrote in message
news:474f100a$1@forums-1-dub...
>I don't understand this line in the sample app:
>
> DatabaseMgr = CreateObject
> ( "iAnywhere.Data.UltraLite.DatabaseManager.Tutorial" );
>
> I've also seen it referenced as this:
> DatabaseMgr = CreateObject
> ( "iAnywhere.Data.UltraLite.DatabaseManager.CustDB" );
>
>
> What is the significance of the ".Tutorial" or ".CustDB" at the end of the
> string parameter to the CreateObject() call? I can't find any
> documentation on the CreateObject() function.
>
> Paul Horan[TeamSybase]
>
>


"Nick Elson" < Posted on 2007-11-30 15:58:26.0Z
From: "Nick Elson" <@@@nick@@@.@@@elson@sybase@@@.@@@com@@@>
Newsgroups: ianywhere.public.mbusinessanywhere.general
References: <474f100a$1@forums-1-dub> <47502b9d@forums-1-dub>
Subject: Re: M-Bus/Ultralite question
Lines: 78
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962
NNTP-Posting-Host: nicelson-d620.sybase.com
X-Original-NNTP-Posting-Host: nicelson-d620.sybase.com
Message-ID: <47503322@forums-1-dub>
Date: 30 Nov 2007 07:58:26 -0800
X-Trace: forums-1-dub 1196438306 10.25.98.247 (30 Nov 2007 07:58:26 -0800)
X-Original-Trace: 30 Nov 2007 07:58:26 -0800, nicelson-d620.sybase.com
X-Authenticated-User: techsupp
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:1147
Article PK: 9269

Please disregard ... the Persistent name reference Suchit
pointed to is the correct information after all.

"Nick Elson" <@@@nick@@@.@@@elson@sybase@@@.@@@com@@@> wrote in message
news:47502b9d@forums-1-dub...
> The question is actually a subtle one ...
>
> On the one hand the use of CreateObject( ) is common
> practice in many ecma-/java-script environs to simulate
> an object factory [that part alone goes a long way of
> explaining the .udb part of the question ....]. CreateObject
> is used in m-bus. anywhere to load Pods and expose them
> for manipulation from JavaScript.
>
> On the other hand there is machinery within that usage
> that is not at all clearly spelled out. [I am going to mention
> that to the documentation team.]
>
> The loading of PODS part is documented in the 'old' Dev Guide
> (called API Reference for M-Business Anywhere 6.5 in the
> current release) available at
>
> http://www.ianywhere.com/developer/product_manuals/mbusiness_anywhere/65/en/html/contents.htm
> as
>
> http://www.ianywhere.com/developer/product_manuals/mbusiness_anywhere/65/en/html/mba_apirefen65/mba_apirefen65.html
>
> in Chap. 3 Section "Introduction to exporting a POD to M-Business
> JavaScript engine"
> amoung other references.
>
> Under the covers, that simply calls the
> "...PODSObjectMgr's objectForName()..."
> which simply asks of each registered POD (via the
> objectForName function) for an object instance associated
> to that name. The PODSObjectMgr( ) role in this is
> documented in the 2nd section of the same (above mentioned)
> chapter.
>
> Basically when the UL-pod recieves the call on it's objectForName()
> function, it just identifies it's naming convention via the prefix
> 'iAnywhere.Data.UltraLite.DatabaseManager' and the extension is
> simply used to identify which ULDB to instantiate with.
>
> But ... you are correct the reason and convention for this name
> is not at all clearly documented anywhere.
>
> While it is obvious UL-pod is a standard M-Bus. Anywhere POD
> in that regard, the name prefix and the '.<udb-name/>' part is
> only indicated through examples ... as in the section Suchitt
> noted.
>
> I'll mention that to the documentation team.
>
> "Paul Horan[TeamSybase]" <phoran AT sybase DOT com> wrote in message
> news:474f100a$1@forums-1-dub...
>>I don't understand this line in the sample app:
>>
>> DatabaseMgr = CreateObject
>> ( "iAnywhere.Data.UltraLite.DatabaseManager.Tutorial" );
>>
>> I've also seen it referenced as this:
>> DatabaseMgr = CreateObject
>> ( "iAnywhere.Data.UltraLite.DatabaseManager.CustDB" );
>>
>>
>> What is the significance of the ".Tutorial" or ".CustDB" at the end of
>> the string parameter to the CreateObject() call? I can't find any
>> documentation on the CreateObject() function.
>>
>> Paul Horan[TeamSybase]
>>
>>
>
>


tiny program Posted on 2007-11-30 10:33:58.0Z
From: tiny program <tony.pigram@ianywhere.com>
User-Agent: Thunderbird 1.5.0.13 (Windows/20070809)
MIME-Version: 1.0
Newsgroups: ianywhere.public.mbusinessanywhere.general
Subject: Re: M-Bus/Ultralite question
References: <474f100a$1@forums-1-dub>
In-Reply-To: <474f100a$1@forums-1-dub>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: surfwc054.sybase.com
X-Original-NNTP-Posting-Host: surfwc054.sybase.com
Message-ID: <474fe716@forums-1-dub>
Date: 30 Nov 2007 02:33:58 -0800
X-Trace: forums-1-dub 1196418838 192.138.150.54 (30 Nov 2007 02:33:58 -0800)
X-Original-Trace: 30 Nov 2007 02:33:58 -0800, surfwc054.sybase.com
Lines: 30
X-Authenticated-User: techsupp
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:1144
Article PK: 9270

Hi Paul,

can you tell us:

what programming language? (location of sample app you are referring to)

Ultralite / SQL Anywhere version?

thanks

tony

Paul Horan[TeamSybase] wrote:
> I don't understand this line in the sample app:
>
> DatabaseMgr = CreateObject
> ( "iAnywhere.Data.UltraLite.DatabaseManager.Tutorial" );
>
> I've also seen it referenced as this:
> DatabaseMgr = CreateObject
> ( "iAnywhere.Data.UltraLite.DatabaseManager.CustDB" );
>
>
> What is the significance of the ".Tutorial" or ".CustDB" at the end of the
> string parameter to the CreateObject() call? I can't find any
> documentation on the CreateObject() function.
>
> Paul Horan[TeamSybase]
>
>


Shuchit Posted on 2007-11-30 14:53:42.0Z
Newsgroups: ianywhere.public.mbusinessanywhere.general
Subject: Re: M-Bus/Ultralite question
From: Shuchit <me@privacy.net>
References: <474f100a$1@forums-1-dub>
Message-ID: <Xns99F7C88181019svelkarprivacynet@127.0.0.1>
User-Agent: Xnews/2006.08.24 Hamster/2.1.0.11
NNTP-Posting-Host: 10.25.98.215
X-Original-NNTP-Posting-Host: 10.25.98.215
Date: 30 Nov 2007 06:53:42 -0800
X-Trace: forums-1-dub 1196434422 10.25.98.215 (30 Nov 2007 06:53:42 -0800)
X-Original-Trace: 30 Nov 2007 06:53:42 -0800, 10.25.98.215
Lines: 16
X-Authenticated-User: techsupp
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:1145
Article PK: 17895


> DatabaseMgr = CreateObject
> ( "iAnywhere.Data.UltraLite.DatabaseManager.Tutorial" );
>
> I've also seen it referenced as this:
> DatabaseMgr = CreateObject
> ( "iAnywhere.Data.UltraLite.DatabaseManager.CustDB" );
>
>
> What is the significance of the ".Tutorial" or ".CustDB" at the end of the
> string parameter to the CreateObject() call? I can't find any
> documentation on the CreateObject() function.
>

It is explained here <http://preview.tinyurl.com/yusan9> which points to
<http://www.ianywhere.com/developer/product_manuals/sqlanywhere/1001/en/html/
ulagen10/ag-ag-development-s-5819630.html>