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.

Golbal variables or passing parameters from one page to another using JavaScript

2 posts in General Discussion Last posting was on 2004-07-13 21:46:55.0Z
Andreas Bruckner Posted on 2004-07-12 15:51:19.0Z
From: "Andreas Bruckner" <abruckne@sybase.com>
Newsgroups: ianywhere.public.mbusinessanywhere.general
Subject: Golbal variables or passing parameters from one page to another using JavaScript
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
X-Original-NNTP-Posting-Host: chello080108002014.34.11.vie.surfer.at
Message-ID: <40f2b444$1@forums-2-dub>
X-Original-Trace: 12 Jul 2004 08:54:44 -0700, chello080108002014.34.11.vie.surfer.at
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 12 Jul 2004 08:45:29 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 12 Jul 2004 08:51:19 -0700
X-Trace: forums-1-dub 1089647479 10.22.108.75 (12 Jul 2004 08:51:19 -0700)
X-Original-Trace: 12 Jul 2004 08:51:19 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:102
Article PK: 17576

How can I pass a value (parameter) from one page to another using
JavaScript?

Think of a simple example of administrating customers offline, using the
XML-Database of the M-Business Server Application Edition.

The page "cust_list.htm" contains a list of all customers read from the
XML-Database.
Using the page "cust_edit.htm" you can add a new or edit an existing
customer.

Telling the page "cust_edit.htm" to edit the customer with the ID 101 could
be done creating the following link "cust_edit.htm?ID=101" but this means
that the this page must have been valid at the time of synchronizing. This
is not the case of this customer has been added offline and is only stored
in the XML-Database.

I think this is a general issue when using M-Business Server with the
XML-Database and I hope anyone has already found a solution for this.

One solution I found, or I would better call it a workaround, is to store
"global variables" in a separate XML-Database table. But I think there must
be a better solution.

Thanks in advance.


Christopher Grim Posted on 2004-07-13 21:46:55.0Z
User-Agent: Microsoft-Entourage/10.1.4.030702.0
Subject: Re: Golbal variables or passing parameters from one page to another using JavaScript
From: Christopher Grim <Chris.Grim@ianywhere.com>
Newsgroups: ianywhere.public.mbusinessanywhere.general
Message-ID: <BD19A4FA.1D2A%Chris.Grim@ianywhere.com>
References: <40f2b444$1@forums-2-dub>
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
X-Original-NNTP-Posting-Host: macgrimreaper.sybase.com
X-Original-Trace: 13 Jul 2004 14:50:27 -0700, macgrimreaper.sybase.com
Lines: 46
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 13 Jul 2004 14:41:00 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 13 Jul 2004 14:46:55 -0700
X-Trace: forums-1-dub 1089755215 10.22.108.75 (13 Jul 2004 14:46:55 -0700)
X-Original-Trace: 13 Jul 2004 14:46:55 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:103
Article PK: 17578

Andreas,

There are three ways that users typically accomplish this. First, is the
one you identified of using a local scratch database - this is the method we
use in our Mobile Sales applications. Second, you can use the AvantGo
preferences object, which allows applications to store their own typed
key-value pairs. One thing about this is that the preferences are
persistent between instances of the client. This is a good thing, but can
get you when you are looking for temporary session storage. Third, we have
a pod called session, which allows you to do similar key-value pairs in
memory. They are not persistent across instances of the client.

Chris...

On 7/12/04 8:51 AM, in article 40f2b444$1@forums-2-dub, "Andreas Bruckner"

<abruckne@sybase.com> wrote:

> How can I pass a value (parameter) from one page to another using
> JavaScript?
>
> Think of a simple example of administrating customers offline, using the
> XML-Database of the M-Business Server Application Edition.
>
> The page "cust_list.htm" contains a list of all customers read from the
> XML-Database.
> Using the page "cust_edit.htm" you can add a new or edit an existing
> customer.
>
> Telling the page "cust_edit.htm" to edit the customer with the ID 101 could
> be done creating the following link "cust_edit.htm?ID=101" but this means
> that the this page must have been valid at the time of synchronizing. This
> is not the case of this customer has been added offline and is only stored
> in the XML-Database.
>
> I think this is a general issue when using M-Business Server with the
> XML-Database and I hope anyone has already found a solution for this.
>
> One solution I found, or I would better call it a workaround, is to store
> "global variables" in a separate XML-Database table. But I think there must
> be a better solution.
>
> Thanks in advance.
>
>