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.

Powerdynamo, multiple mappings and site.GetDocument

6 posts in General Discussion (old) Last posting was on 2000-03-08 15:49:32.0Z
Reine Larsson Posted on 2000-03-07 16:27:56.0Z
Newsgroups: sybase.public.easerver
From: "Reine Larsson" <reine.larsson@wallenius.se>
Subject: Powerdynamo, multiple mappings and site.GetDocument
Date: Tue, 7 Mar 2000 17:27:56 +0100
Lines: 95
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: 193.12.198.71
Message-ID: <347_LGLHnIFi$GA.201@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:26979
Article PK: 157925

An administration WEB-GUI takes care of updating articles
and to these articles a picture is normaly shown. The WEB-GUI
has to import these pictures.

After adding a new mapping so the WEB-GUI can import pictures
to a another Powerdynamo database it is partly unable to find
the new mapping. I say partly because I can acces the new
database through the new mapping using a web-browser but
the following Dynascript code site.GetDocument("/new_mapping");
FAILS.

Setup:
-------
Dynamo 3.0.1
Netscape Enterprise Server 3.6
dyn_extranet = Dynamo database for homepage. The NEW one.
extranet = Dynamo mapping of dyn_extranet
intranet = Dynamo database for intranet. The OLD one.
intranet = Dynamo mapping of intranet

The setup that works today is.
1. A picture is uploaded to a Jaguar-servlet from a webpage
in this manner.

<FORM ENCTYPE="multipart/form-data" METHOD=POST
ACTION="http://10.94.0.200:8080/servlet/exNewsUploadEng">
<INPUT TYPE=FILE NAME=picture SIZE=40><BR><BR>
<INPUT TYPE=SUBMIT VALUE="Save">

2. The servlet decodes the message and puts the picture in
/opt/sybase/jaguar/bin.
3. The servlet then redirects the client to a dynamo script which does a

myfolder = site.GetDocument("/intranet/images");

so the dynamo knows where to import the uploaded file.

var result = myfolder.ImportFrom ("/opt/sybase/jaguar/bin/" +
document.value.file, 'all' );

Well, sofar so good.

The customer then decided to develop a homepage (extranet). The extranet
recides
on a separate database than intranet is, but the WEB-GUI is run by the
intranet
Dynamo.

The problem:
-------------
I added a mapping (extranet) to the pdynamo.ini file so the "old" Dynamo
would find the "new" Dynamo database.

This works OK meaning I can access the new Dynamo database by
"surfing" (using a web-browser) to http://intranet/extranet instead of
http://intranet/intranet

But when I try to duplicate the behaviour of GetDocument and ImportFrom
Dynamo is unable to find the new mapping which it just recently found
when I was using a web-browser.

The Code:
-----------
<!--SCRIPT
var myfolder = site.GetDocument("/extranet");
if(myfolder != null)
{
document.writeln("success");
document.writeln(site.GetErrorInfo());
}
else
{
document.writeln("Non-successful");
document.writeln(site.GetErrorInfo());
}
-->
The result:
----------
Non-successful
Unable to load "/extranet"

If I intead use this code it works:
----------
var myfolder = site.GetDocument("/intranet");

Finally the question:
---------------------
Why is Dynamo doing this? Using a single mapping works fine but
adding a mapping fails...
Is there a workaround?

Reine Larsson


Larry Cermak[Team Sybase] Posted on 2000-03-07 21:51:27.0Z
Newsgroups: sybase.public.easerver
From: "Larry Cermak[Team Sybase]" <lcermak@ctpartners.com>
Subject: Re: Powerdynamo, multiple mappings and site.GetDocument
Date: Tue, 7 Mar 2000 15:51:27 -0600
Lines: 111
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: node6.dhcpchi.dslspeed.zyan.com 208.41.199.6
Message-ID: <347_hrV5DCIi$GA.285@forums.sybase.com>
References: <347_LGLHnIFi$GA.201@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:26944
Article PK: 154466

Did you restart the web server after you added the mapping? That is
necessary.

--

Larry Cermak [Team Sybase]
Corporate Technology Partners, Inc.
www.ctpartners.com
Web DataWindow Articles
(http://sdn.sybase.com/sdn/appdev/get_doc.stm?loc=1001708)

"Reine Larsson" <reine.larsson@wallenius.se> wrote in message
news:LGLHnIFi$GA.201@forums.sybase.com...
> An administration WEB-GUI takes care of updating articles
> and to these articles a picture is normaly shown. The WEB-GUI
> has to import these pictures.
>
> After adding a new mapping so the WEB-GUI can import pictures
> to a another Powerdynamo database it is partly unable to find
> the new mapping. I say partly because I can acces the new
> database through the new mapping using a web-browser but
> the following Dynascript code site.GetDocument("/new_mapping");
> FAILS.
>
> Setup:
> -------
> Dynamo 3.0.1
> Netscape Enterprise Server 3.6
> dyn_extranet = Dynamo database for homepage. The NEW one.
> extranet = Dynamo mapping of dyn_extranet
> intranet = Dynamo database for intranet. The OLD one.
> intranet = Dynamo mapping of intranet
>
> The setup that works today is.
> 1. A picture is uploaded to a Jaguar-servlet from a webpage
> in this manner.
>
> <FORM ENCTYPE="multipart/form-data" METHOD=POST
> ACTION="http://10.94.0.200:8080/servlet/exNewsUploadEng">
> <INPUT TYPE=FILE NAME=picture SIZE=40><BR><BR>
> <INPUT TYPE=SUBMIT VALUE="Save">
>
> 2. The servlet decodes the message and puts the picture in
> /opt/sybase/jaguar/bin.
> 3. The servlet then redirects the client to a dynamo script which does a
>
> myfolder = site.GetDocument("/intranet/images");
>
> so the dynamo knows where to import the uploaded file.
>
> var result = myfolder.ImportFrom ("/opt/sybase/jaguar/bin/" +
> document.value.file, 'all' );
>
> Well, sofar so good.
>
> The customer then decided to develop a homepage (extranet). The extranet
> recides
> on a separate database than intranet is, but the WEB-GUI is run by the
> intranet
> Dynamo.
>
> The problem:
> -------------
> I added a mapping (extranet) to the pdynamo.ini file so the "old" Dynamo
> would find the "new" Dynamo database.
>
> This works OK meaning I can access the new Dynamo database by
> "surfing" (using a web-browser) to http://intranet/extranet instead of
> http://intranet/intranet
>
> But when I try to duplicate the behaviour of GetDocument and ImportFrom
> Dynamo is unable to find the new mapping which it just recently found
> when I was using a web-browser.
>
> The Code:
> -----------
> <!--SCRIPT
> var myfolder = site.GetDocument("/extranet");
> if(myfolder != null)
> {
> document.writeln("success");
> document.writeln(site.GetErrorInfo());
> }
> else
> {
> document.writeln("Non-successful");
> document.writeln(site.GetErrorInfo());
> }
> -->
> The result:
> ----------
> Non-successful
> Unable to load "/extranet"
>
> If I intead use this code it works:
> ----------
> var myfolder = site.GetDocument("/intranet");
>
> Finally the question:
> ---------------------
> Why is Dynamo doing this? Using a single mapping works fine but
> adding a mapping fails...
> Is there a workaround?
>
> Reine Larsson
>
>
>


Reine Larsson Posted on 2000-03-08 10:13:53.0Z
Newsgroups: sybase.public.easerver
From: "Reine Larsson" <reine.larsson@wallenius.se>
Subject: Re: Powerdynamo, multiple mappings and site.GetDocument
Date: Wed, 8 Mar 2000 11:13:53 +0100
Lines: 146
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: 193.12.198.71
Message-ID: <347_qcd6ScOi$GA.251@forums.sybase.com>
References: <347_LGLHnIFi$GA.201@forums.sybase.com> <347_hrV5DCIi$GA.285@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:26905
Article PK: 154458

It seems to me that site.GetDocument() can only get a handle for the same
database where the script recides in (executes)

/extranet/getdoctest.stm.
myfolder = site.GetDocument("/intranet/images"); /*FAIL*/
myfolder = site.GetDocument("/extranet/images"); /*OK*/


intranet/getdoctest.stm.
myfolder = site.GetDocument("/intranet/images"); /*OK*/
myfolder = site.GetDocument("/extranet/images"); /*FAIL*/


Can you duplicate this behaviour?


Yes, I restarted the web server .

If I could access the new mapping using a web-browser I would say the
new mapping is recognized by Dynamo. But using
site.GetDocument("/new_mapping"); fails.

By the way OS information:
SunOS XXXXX 5.6 Generic_105181-10 sun4u sparc SUNW,Ultra-250

/Reine

Larry Cermak[Team Sybase] <lcermak@ctpartners.com> wrote in message
news:hrV5DCIi$GA.285@forums.sybase.com...
> Did you restart the web server after you added the mapping? That is
> necessary.
>
> --
>
> Larry Cermak [Team Sybase]
> Corporate Technology Partners, Inc.
> www.ctpartners.com
> Web DataWindow Articles
> (http://sdn.sybase.com/sdn/appdev/get_doc.stm?loc=1001708)
>
>
> "Reine Larsson" <reine.larsson@wallenius.se> wrote in message
> news:LGLHnIFi$GA.201@forums.sybase.com...
> > An administration WEB-GUI takes care of updating articles
> > and to these articles a picture is normaly shown. The WEB-GUI
> > has to import these pictures.
> >
> > After adding a new mapping so the WEB-GUI can import pictures
> > to a another Powerdynamo database it is partly unable to find
> > the new mapping. I say partly because I can acces the new
> > database through the new mapping using a web-browser but
> > the following Dynascript code site.GetDocument("/new_mapping");
> > FAILS.
> >
> > Setup:
> > -------
> > Dynamo 3.0.1
> > Netscape Enterprise Server 3.6
> > dyn_extranet = Dynamo database for homepage. The NEW one.
> > extranet = Dynamo mapping of dyn_extranet
> > intranet = Dynamo database for intranet. The OLD one.
> > intranet = Dynamo mapping of intranet
> >
> > The setup that works today is.
> > 1. A picture is uploaded to a Jaguar-servlet from a webpage
> > in this manner.
> >
> > <FORM ENCTYPE="multipart/form-data" METHOD=POST
> > ACTION="http://10.94.0.200:8080/servlet/exNewsUploadEng">
> > <INPUT TYPE=FILE NAME=picture SIZE=40><BR><BR>
> > <INPUT TYPE=SUBMIT VALUE="Save">
> >
> > 2. The servlet decodes the message and puts the picture in
> > /opt/sybase/jaguar/bin.
> > 3. The servlet then redirects the client to a dynamo script which does a
> >
> > myfolder = site.GetDocument("/intranet/images");
> >
> > so the dynamo knows where to import the uploaded file.
> >
> > var result = myfolder.ImportFrom ("/opt/sybase/jaguar/bin/" +
> > document.value.file, 'all' );
> >
> > Well, sofar so good.
> >
> > The customer then decided to develop a homepage (extranet). The extranet
> > recides
> > on a separate database than intranet is, but the WEB-GUI is run by the
> > intranet
> > Dynamo.
> >
> > The problem:
> > -------------
> > I added a mapping (extranet) to the pdynamo.ini file so the "old" Dynamo
> > would find the "new" Dynamo database.
> >
> > This works OK meaning I can access the new Dynamo database by
> > "surfing" (using a web-browser) to http://intranet/extranet instead of
> > http://intranet/intranet
> >
> > But when I try to duplicate the behaviour of GetDocument and ImportFrom
> > Dynamo is unable to find the new mapping which it just recently found
> > when I was using a web-browser.
> >
> > The Code:
> > -----------
> > <!--SCRIPT
> > var myfolder = site.GetDocument("/extranet");
> > if(myfolder != null)
> > {
> > document.writeln("success");
> > document.writeln(site.GetErrorInfo());
> > }
> > else
> > {
> > document.writeln("Non-successful");
> > document.writeln(site.GetErrorInfo());
> > }
> > -->
> > The result:
> > ----------
> > Non-successful
> > Unable to load "/extranet"
> >
> > If I intead use this code it works:
> > ----------
> > var myfolder = site.GetDocument("/intranet");
> >
> > Finally the question:
> > ---------------------
> > Why is Dynamo doing this? Using a single mapping works fine but
> > adding a mapping fails...
> > Is there a workaround?
> >
> > Reine Larsson
> >
> >
> >
>
>


Lance Andersen Posted on 2000-03-08 14:42:48.0Z
Newsgroups: sybase.public.easerver
Date: Wed, 08 Mar 2000 09:42:48 -0500
From: Lance Andersen <lancea@sybase.com>
X-Mailer: Mozilla 4.7 [en] (X11; I; SunOS 5.7 sun4u)
X-Accept-Language: en
MIME-Version: 1.0
Subject: Re: Powerdynamo, multiple mappings and site.GetDocument
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 130
NNTP-Posting-Host: alder.sybase.com 157.133.125.15
Message-ID: <347_38C666E8.6165DBB3@sybase.com>
References: <347_LGLHnIFi$GA.201@forums.sybase.com> <347_hrV5DCIi$GA.285@forums.sybase.com> <347_qcd6ScOi$GA.251@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:26897
Article PK: 157856

Yes, that is correct.

Reine Larsson wrote:
>
> It seems to me that site.GetDocument() can only get a handle for the same
> database where the script recides in (executes)
>
> /extranet/getdoctest.stm.
> myfolder = site.GetDocument("/intranet/images"); /*FAIL*/
> myfolder = site.GetDocument("/extranet/images"); /*OK*/
>
> intranet/getdoctest.stm.
> myfolder = site.GetDocument("/intranet/images"); /*OK*/
> myfolder = site.GetDocument("/extranet/images"); /*FAIL*/
>
> Can you duplicate this behaviour?
>
> Yes, I restarted the web server .
>
> If I could access the new mapping using a web-browser I would say the
> new mapping is recognized by Dynamo. But using
> site.GetDocument("/new_mapping"); fails.
>
> By the way OS information:
> SunOS XXXXX 5.6 Generic_105181-10 sun4u sparc SUNW,Ultra-250
>
> /Reine
>
> Larry Cermak[Team Sybase] <lcermak@ctpartners.com> wrote in message
> news:hrV5DCIi$GA.285@forums.sybase.com...
> > Did you restart the web server after you added the mapping? That is
> > necessary.
> >
> > --
> >
> > Larry Cermak [Team Sybase]
> > Corporate Technology Partners, Inc.
> > www.ctpartners.com
> > Web DataWindow Articles
> > (http://sdn.sybase.com/sdn/appdev/get_doc.stm?loc=1001708)
> >
> >
> > "Reine Larsson" <reine.larsson@wallenius.se> wrote in message
> > news:LGLHnIFi$GA.201@forums.sybase.com...
> > > An administration WEB-GUI takes care of updating articles
> > > and to these articles a picture is normaly shown. The WEB-GUI
> > > has to import these pictures.
> > >
> > > After adding a new mapping so the WEB-GUI can import pictures
> > > to a another Powerdynamo database it is partly unable to find
> > > the new mapping. I say partly because I can acces the new
> > > database through the new mapping using a web-browser but
> > > the following Dynascript code site.GetDocument("/new_mapping");
> > > FAILS.
> > >
> > > Setup:
> > > -------
> > > Dynamo 3.0.1
> > > Netscape Enterprise Server 3.6
> > > dyn_extranet = Dynamo database for homepage. The NEW one.
> > > extranet = Dynamo mapping of dyn_extranet
> > > intranet = Dynamo database for intranet. The OLD one.
> > > intranet = Dynamo mapping of intranet
> > >
> > > The setup that works today is.
> > > 1. A picture is uploaded to a Jaguar-servlet from a webpage
> > > in this manner.
> > >
> > > <FORM ENCTYPE="multipart/form-data" METHOD=POST
> > > ACTION="http://10.94.0.200:8080/servlet/exNewsUploadEng">
> > > <INPUT TYPE=FILE NAME=picture SIZE=40><BR><BR>
> > > <INPUT TYPE=SUBMIT VALUE="Save">
> > >
> > > 2. The servlet decodes the message and puts the picture in
> > > /opt/sybase/jaguar/bin.
> > > 3. The servlet then redirects the client to a dynamo script which does a
> > >
> > > myfolder = site.GetDocument("/intranet/images");
> > >
> > > so the dynamo knows where to import the uploaded file.
> > >
> > > var result = myfolder.ImportFrom ("/opt/sybase/jaguar/bin/" +
> > > document.value.file, 'all' );
> > >
> > > Well, sofar so good.
> > >
> > > The customer then decided to develop a homepage (extranet). The extranet
> > > recides
> > > on a separate database than intranet is, but the WEB-GUI is run by the
> > > intranet
> > > Dynamo.
> > >
> > > The problem:
> > > -------------
> > > I added a mapping (extranet) to the pdynamo.ini file so the "old" Dynamo
> > > would find the "new" Dynamo database.
> > >
> > > This works OK meaning I can access the new Dynamo database by
> > > "surfing" (using a web-browser) to http://intranet/extranet instead of
> > > http://intranet/intranet
> > >
> > > But when I try to duplicate the behaviour of GetDocument and ImportFrom
> > > Dynamo is unable to find the new mapping which it just recently found
> > > when I was using a web-browser.
> > >
> > > The Code:
> > > -----------
> > > <!--SCRIPT
> > > var myfolder = site.GetDocument("/extranet");
> > > if(myfolder != null)
> > > {
> > > document.writeln("success");
> > > document.writeln(site.GetErrorInfo());
> > > }
> > > else
> > > {
> > > document.writeln("Non-successful");
> > > document.writeln(site.GetErrorInfo());
> > > }
> > > -->
> > > The result:
> > > ----------
> > > Non-successful
> > > Unable to load "/extranet"
> > >
> > > If I intead use this code it works:
> > > ----------
> > > var myfolder = site.GetDocument("/intranet");
> > >
> > > Finally the question:
> > > ---------------------
> > > Why is Dynamo doing this? Using a single mapping works fine but
> > > adding a mapping fails...
> > > Is there a workaround?
> > >
> > > Reine Larsson
> > >
> > >
> > >
> >
> >

--
===============================================================================
Lance J. Andersen Email: lancea@sybase.com
Sybase Product Support Engineering Phone:(781) 564-6336
77 South Bedford Street Fax: (781) 564-7001
Burlington, MA 01803

The Dark Knight Returns!!! Let's Go Penguins!!!
===============================================================================


Reine Larsson Posted on 2000-03-08 15:49:32.0Z
Newsgroups: sybase.public.easerver
From: "Reine Larsson" <reine.larsson@wallenius.se>
Subject: Re: Powerdynamo, multiple mappings and site.GetDocument
Date: Wed, 8 Mar 2000 16:49:32 +0100
Lines: 173
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: 193.12.198.71
Message-ID: <347_Y#8I3XRi$GA.201@forums.sybase.com>
References: <347_LGLHnIFi$GA.201@forums.sybase.com> <347_hrV5DCIi$GA.285@forums.sybase.com> <347_qcd6ScOi$GA.251@forums.sybase.com> <347_38C666E8.6165DBB3@sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:26891
Article PK: 154457

So that is a feature one has to live with? So whats the point in supplying a
name to getDocument when '~' is the only thing that works?

/Reine

Lance Andersen <lancea@sybase.com> wrote in message
news:38C666E8.6165DBB3@sybase.com...
> Yes, that is correct.
>
> Reine Larsson wrote:
> >
> > It seems to me that site.GetDocument() can only get a handle for the
same
> > database where the script recides in (executes)
> >
> > /extranet/getdoctest.stm.
> > myfolder = site.GetDocument("/intranet/images"); /*FAIL*/
> > myfolder = site.GetDocument("/extranet/images"); /*OK*/
> >
> > intranet/getdoctest.stm.
> > myfolder = site.GetDocument("/intranet/images"); /*OK*/
> > myfolder = site.GetDocument("/extranet/images"); /*FAIL*/
> >
> > Can you duplicate this behaviour?
> >
> > Yes, I restarted the web server .
> >
> > If I could access the new mapping using a web-browser I would say the
> > new mapping is recognized by Dynamo. But using
> > site.GetDocument("/new_mapping"); fails.
> >
> > By the way OS information:
> > SunOS XXXXX 5.6 Generic_105181-10 sun4u sparc SUNW,Ultra-250
> >
> > /Reine
> >
> > Larry Cermak[Team Sybase] <lcermak@ctpartners.com> wrote in message
> > news:hrV5DCIi$GA.285@forums.sybase.com...
> > > Did you restart the web server after you added the mapping? That is
> > > necessary.
> > >
> > > --
> > >
> > > Larry Cermak [Team Sybase]
> > > Corporate Technology Partners, Inc.
> > > www.ctpartners.com
> > > Web DataWindow Articles
> > > (http://sdn.sybase.com/sdn/appdev/get_doc.stm?loc=1001708)
> > >
> > >
> > > "Reine Larsson" <reine.larsson@wallenius.se> wrote in message
> > > news:LGLHnIFi$GA.201@forums.sybase.com...
> > > > An administration WEB-GUI takes care of updating articles
> > > > and to these articles a picture is normaly shown. The WEB-GUI
> > > > has to import these pictures.
> > > >
> > > > After adding a new mapping so the WEB-GUI can import pictures
> > > > to a another Powerdynamo database it is partly unable to find
> > > > the new mapping. I say partly because I can acces the new
> > > > database through the new mapping using a web-browser but
> > > > the following Dynascript code site.GetDocument("/new_mapping");
> > > > FAILS.
> > > >
> > > > Setup:
> > > > -------
> > > > Dynamo 3.0.1
> > > > Netscape Enterprise Server 3.6
> > > > dyn_extranet = Dynamo database for homepage. The NEW one.
> > > > extranet = Dynamo mapping of dyn_extranet
> > > > intranet = Dynamo database for intranet. The OLD one.
> > > > intranet = Dynamo mapping of intranet
> > > >
> > > > The setup that works today is.
> > > > 1. A picture is uploaded to a Jaguar-servlet from a webpage
> > > > in this manner.
> > > >
> > > > <FORM ENCTYPE="multipart/form-data" METHOD=POST
> > > > ACTION="http://10.94.0.200:8080/servlet/exNewsUploadEng">
> > > > <INPUT TYPE=FILE NAME=picture SIZE=40><BR><BR>
> > > > <INPUT TYPE=SUBMIT VALUE="Save">
> > > >
> > > > 2. The servlet decodes the message and puts the picture in
> > > > /opt/sybase/jaguar/bin.
> > > > 3. The servlet then redirects the client to a dynamo script which
does a
> > > >
> > > > myfolder = site.GetDocument("/intranet/images");
> > > >
> > > > so the dynamo knows where to import the uploaded file.
> > > >
> > > > var result = myfolder.ImportFrom ("/opt/sybase/jaguar/bin/" +
> > > > document.value.file, 'all' );
> > > >
> > > > Well, sofar so good.
> > > >
> > > > The customer then decided to develop a homepage (extranet). The
extranet
> > > > recides
> > > > on a separate database than intranet is, but the WEB-GUI is run by
the
> > > > intranet
> > > > Dynamo.
> > > >
> > > > The problem:
> > > > -------------
> > > > I added a mapping (extranet) to the pdynamo.ini file so the "old"
Dynamo
> > > > would find the "new" Dynamo database.
> > > >
> > > > This works OK meaning I can access the new Dynamo database by
> > > > "surfing" (using a web-browser) to http://intranet/extranet instead
of
> > > > http://intranet/intranet
> > > >
> > > > But when I try to duplicate the behaviour of GetDocument and
ImportFrom
> > > > Dynamo is unable to find the new mapping which it just recently
found
> > > > when I was using a web-browser.
> > > >
> > > > The Code:
> > > > -----------
> > > > <!--SCRIPT
> > > > var myfolder = site.GetDocument("/extranet");
> > > > if(myfolder != null)
> > > > {
> > > > document.writeln("success");
> > > > document.writeln(site.GetErrorInfo());
> > > > }
> > > > else
> > > > {
> > > > document.writeln("Non-successful");
> > > > document.writeln(site.GetErrorInfo());
> > > > }
> > > > -->
> > > > The result:
> > > > ----------
> > > > Non-successful
> > > > Unable to load "/extranet"
> > > >
> > > > If I intead use this code it works:
> > > > ----------
> > > > var myfolder = site.GetDocument("/intranet");
> > > >
> > > > Finally the question:
> > > > ---------------------
> > > > Why is Dynamo doing this? Using a single mapping works fine but
> > > > adding a mapping fails...
> > > > Is there a workaround?
> > > >
> > > > Reine Larsson
> > > >
> > > >
> > > >
> > >
> > >
>
> --
>

============================================================================
===
> Lance J. Andersen Email: lancea@sybase.com
> Sybase Product Support Engineering Phone:(781) 564-6336
> 77 South Bedford Street Fax: (781) 564-7001
> Burlington, MA 01803
>
> The Dark Knight Returns!!! Let's Go Penguins!!!
>
============================================================================
===


Reine Larsson Posted on 2000-03-08 08:11:23.0Z
Newsgroups: sybase.public.easerver
From: "Reine Larsson" <reine.larsson@wallenius.se>
Subject: Re: Powerdynamo, multiple mappings and site.GetDocument
Date: Wed, 8 Mar 2000 09:11:23 +0100
Lines: 127
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: 193.12.198.71
Message-ID: <347_Gj3T1XNi$GA.285@forums.sybase.com>
References: <347_LGLHnIFi$GA.201@forums.sybase.com> <347_hrV5DCIi$GA.285@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:26909
Article PK: 157866

Yes, I restarted the web server .

If I could access the new mapping using a web-browser I would say the
new mapping is recognized by Dynamo. But using
site.GetDocument("/new_mapping"); fails.

By the way OS information:
SunOS XXXXX 5.6 Generic_105181-10 sun4u sparc SUNW,Ultra-250

/Reine

Larry Cermak[Team Sybase] <lcermak@ctpartners.com> wrote in message
news:hrV5DCIi$GA.285@forums.sybase.com...
> Did you restart the web server after you added the mapping? That is
> necessary.
>
> --
>
> Larry Cermak [Team Sybase]
> Corporate Technology Partners, Inc.
> www.ctpartners.com
> Web DataWindow Articles
> (http://sdn.sybase.com/sdn/appdev/get_doc.stm?loc=1001708)
>
>
> "Reine Larsson" <reine.larsson@wallenius.se> wrote in message
> news:LGLHnIFi$GA.201@forums.sybase.com...
> > An administration WEB-GUI takes care of updating articles
> > and to these articles a picture is normaly shown. The WEB-GUI
> > has to import these pictures.
> >
> > After adding a new mapping so the WEB-GUI can import pictures
> > to a another Powerdynamo database it is partly unable to find
> > the new mapping. I say partly because I can acces the new
> > database through the new mapping using a web-browser but
> > the following Dynascript code site.GetDocument("/new_mapping");
> > FAILS.
> >
> > Setup:
> > -------
> > Dynamo 3.0.1
> > Netscape Enterprise Server 3.6
> > dyn_extranet = Dynamo database for homepage. The NEW one.
> > extranet = Dynamo mapping of dyn_extranet
> > intranet = Dynamo database for intranet. The OLD one.
> > intranet = Dynamo mapping of intranet
> >
> > The setup that works today is.
> > 1. A picture is uploaded to a Jaguar-servlet from a webpage
> > in this manner.
> >
> > <FORM ENCTYPE="multipart/form-data" METHOD=POST
> > ACTION="http://10.94.0.200:8080/servlet/exNewsUploadEng">
> > <INPUT TYPE=FILE NAME=picture SIZE=40><BR><BR>
> > <INPUT TYPE=SUBMIT VALUE="Save">
> >
> > 2. The servlet decodes the message and puts the picture in
> > /opt/sybase/jaguar/bin.
> > 3. The servlet then redirects the client to a dynamo script which does a
> >
> > myfolder = site.GetDocument("/intranet/images");
> >
> > so the dynamo knows where to import the uploaded file.
> >
> > var result = myfolder.ImportFrom ("/opt/sybase/jaguar/bin/" +
> > document.value.file, 'all' );
> >
> > Well, sofar so good.
> >
> > The customer then decided to develop a homepage (extranet). The extranet
> > recides
> > on a separate database than intranet is, but the WEB-GUI is run by the
> > intranet
> > Dynamo.
> >
> > The problem:
> > -------------
> > I added a mapping (extranet) to the pdynamo.ini file so the "old" Dynamo
> > would find the "new" Dynamo database.
> >
> > This works OK meaning I can access the new Dynamo database by
> > "surfing" (using a web-browser) to http://intranet/extranet instead of
> > http://intranet/intranet
> >
> > But when I try to duplicate the behaviour of GetDocument and ImportFrom
> > Dynamo is unable to find the new mapping which it just recently found
> > when I was using a web-browser.
> >
> > The Code:
> > -----------
> > <!--SCRIPT
> > var myfolder = site.GetDocument("/extranet");
> > if(myfolder != null)
> > {
> > document.writeln("success");
> > document.writeln(site.GetErrorInfo());
> > }
> > else
> > {
> > document.writeln("Non-successful");
> > document.writeln(site.GetErrorInfo());
> > }
> > -->
> > The result:
> > ----------
> > Non-successful
> > Unable to load "/extranet"
> >
> > If I intead use this code it works:
> > ----------
> > var myfolder = site.GetDocument("/intranet");
> >
> > Finally the question:
> > ---------------------
> > Why is Dynamo doing this? Using a single mapping works fine but
> > adding a mapping fails...
> > Is there a workaround?
> >
> > Reine Larsson
> >
> >
> >
>
>