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.

Measuring the time required to perform an M-Business Application Sync

3 posts in General Discussion Last posting was on 2006-11-07 09:06:06.0Z
Shao Chan Posted on 2006-11-06 15:52:52.0Z
From: "Shao Chan" <noemail@noemail.com>
Newsgroups: ianywhere.public.mbusinessanywhere.general
Subject: Measuring the time required to perform an M-Business Application Sync
Lines: 34
Organization: VT Software
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962
NNTP-Posting-Host: i-83-67-79-206.freedom2surf.net
X-Original-NNTP-Posting-Host: i-83-67-79-206.freedom2surf.net
Message-ID: <454f6864@forums-1-dub>
Date: 6 Nov 2006 08:52:52 -0700
X-Trace: forums-1-dub 1162831972 83.67.79.206 (6 Nov 2006 08:52:52 -0700)
X-Original-Trace: 6 Nov 2006 08:52:52 -0700, i-83-67-79-206.freedom2surf.net
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:976
Article PK: 9172

We currently use M-Business Client in conjunction with an Ultralite database
and Mobilink.

When we wish for the M-Business Client application to be synced within the
application, we call the following code:

function syncApp() {
window.showBusy = true;
if (!avantgo.isOnline()) {
avantgo.connect(); // If an active net connection is not available,
go online
window.location.href="pods://avantgo/sync"; // Begin a sync of the MBiz
channel
avantgo.disconnect(); // Go offline
} else {
window.location.href="pods://avantgo/sync"; // Begin a sync of the MBiz
channel
}
window.showBusy = false;
}

Upon completion of a sync, the user is returned to the first page (that you
get with the M-Business channel info when you log on for the first time).

What is the best way to capture the duration of the application sync?
Obviously, we can trap the start of the sync, but we have no control over
when the sync completes and process accordingly.

Cheers,

Shao


Peter Gibbons Posted on 2006-11-06 19:55:19.0Z
Reply-To: "Peter Gibbons" <pgibbons@initech.com>
From: "Peter Gibbons" <pgibbons@initech.com>
Newsgroups: ianywhere.public.mbusinessanywhere.general
References: <454f6864@forums-1-dub>
Subject: Re: Measuring the time required to perform an M-Business Application Sync
Lines: 71
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: surfwc054.sybase.com
X-Original-NNTP-Posting-Host: surfwc054.sybase.com
Message-ID: <454fa137$1@forums-1-dub>
Date: 6 Nov 2006 12:55:19 -0700
X-Trace: forums-1-dub 1162846519 192.138.150.54 (6 Nov 2006 12:55:19 -0700)
X-Original-Trace: 6 Nov 2006 12:55:19 -0700, surfwc054.sybase.com
X-Authenticated-User: techsupp
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:977
Article PK: 17847

Just off hand, I might try something like:

function syncApp() {

//set a global pref value to indicate we are initiating a sync and time
var now = new Date();
avantgo.preferences.setBooleanValueForKey("syncinit", true);
avantgo.preferences.setStringValueForKey("curpage",
"my.current.page/here.html");
avantgo.preferences.setInt32ValueForKey("synctime", now.getTime());

//your go online and sync code
//btw, you could also use
avantgo.beginSync(); //instead of location="pods://avantgo/sync"

}

Then add some customization code to the client homepage that checks for
these values and if they exist then do what you need to do.

function customIndexOnLoad() {
if (avantgo.preferences.getBooleanValueForKey("syncinit")) {
//get the prefs values and do blah blah blah
//set them to null and false when done
}
}

--
Peter

"Yeah. The coversheet. I know, I know."

"Shao Chan" <noemail@noemail.com> wrote in message
news:454f6864@forums-1-dub...
> We currently use M-Business Client in conjunction with an Ultralite
> database and Mobilink.
>
> When we wish for the M-Business Client application to be synced within the
> application, we call the following code:
>
> function syncApp() {
> window.showBusy = true;
> if (!avantgo.isOnline()) {
> avantgo.connect(); // If an active net connection is not available,
> go online
> window.location.href="pods://avantgo/sync"; // Begin a sync of the MBiz
> channel
> avantgo.disconnect(); // Go offline
> } else {
> window.location.href="pods://avantgo/sync"; // Begin a sync of the MBiz
> channel
> }
> window.showBusy = false;
> }
>
> Upon completion of a sync, the user is returned to the first page (that
> you get with the M-Business channel info when you log on for the first
> time).
>
> What is the best way to capture the duration of the application sync?
> Obviously, we can trap the start of the sync, but we have no control over
> when the sync completes and process accordingly.
>
> Cheers,
>
> Shao
>
>
>


Shao Chan Posted on 2006-11-07 09:06:06.0Z
From: "Shao Chan" <noemail@noemail.com>
Newsgroups: ianywhere.public.mbusinessanywhere.general
References: <454f6864@forums-1-dub> <454fa137$1@forums-1-dub>
Subject: Re: Measuring the time required to perform an M-Business Application Sync
Lines: 93
Organization: VT Software
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: i-83-67-79-206.freedom2surf.net
X-Original-NNTP-Posting-Host: i-83-67-79-206.freedom2surf.net
Message-ID: <45505a8e$1@forums-1-dub>
Date: 7 Nov 2006 02:06:06 -0700
X-Trace: forums-1-dub 1162893966 83.67.79.206 (7 Nov 2006 02:06:06 -0700)
X-Original-Trace: 7 Nov 2006 02:06:06 -0700, i-83-67-79-206.freedom2surf.net
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:978
Article PK: 9171

Hi Peter,

Thanks for that. Is there anyway I can do this without modifying the client
homepage?

Is there anyway I can call the application sync manually without it
restarting M-Business client which I do manually myself with a seperate call
or something.

Otherwise, I will need to heavily customise the homepage with each release
of M-Business Client and import the database access libraries, add/update a
record to denote the time, disconnect, etc.

Cheers,

Shao

"Peter Gibbons" <pgibbons@initech.com> wrote in message
news:454fa137$1@forums-1-dub...
> Just off hand, I might try something like:
>
> function syncApp() {
>
> //set a global pref value to indicate we are initiating a sync and time
> var now = new Date();
> avantgo.preferences.setBooleanValueForKey("syncinit", true);
> avantgo.preferences.setStringValueForKey("curpage",
> "my.current.page/here.html");
> avantgo.preferences.setInt32ValueForKey("synctime", now.getTime());
>
> //your go online and sync code
> //btw, you could also use
> avantgo.beginSync(); //instead of location="pods://avantgo/sync"
>
> }
>
> Then add some customization code to the client homepage that checks for
> these values and if they exist then do what you need to do.
>
> function customIndexOnLoad() {
> if (avantgo.preferences.getBooleanValueForKey("syncinit")) {
> //get the prefs values and do blah blah blah
> //set them to null and false when done
> }
> }
>
> --
> Peter
>
> "Yeah. The coversheet. I know, I know."
>
> "Shao Chan" <noemail@noemail.com> wrote in message
> news:454f6864@forums-1-dub...
>> We currently use M-Business Client in conjunction with an Ultralite
>> database and Mobilink.
>>
>> When we wish for the M-Business Client application to be synced within
>> the application, we call the following code:
>>
>> function syncApp() {
>> window.showBusy = true;
>> if (!avantgo.isOnline()) {
>> avantgo.connect(); // If an active net connection is not
>> available, go online
>> window.location.href="pods://avantgo/sync"; // Begin a sync of the MBiz
>> channel
>> avantgo.disconnect(); // Go offline
>> } else {
>> window.location.href="pods://avantgo/sync"; // Begin a sync of the MBiz
>> channel
>> }
>> window.showBusy = false;
>> }
>>
>> Upon completion of a sync, the user is returned to the first page (that
>> you get with the M-Business channel info when you log on for the first
>> time).
>>
>> What is the best way to capture the duration of the application sync?
>> Obviously, we can trap the start of the sync, but we have no control over
>> when the sync completes and process accordingly.
>>
>> Cheers,
>>
>> Shao
>>
>>
>>
>
>