At 05:30 PM 2/26/2005, you wrote:
Saturday, February 26, 2005

Hi,

Sorry I'm late on the reply to this thread, but haven't had a chance to get
back until now.

> So if you are using Client as a web server, you need to create a user
> that is used for web serving, and set the Generic Web User to that
> user.

OK, tried this, but did not seem to work. (Actually, had tried this
previously and didn't work in the series of things I had tried flailing
about in search for a solution.)

This is the setup we've got:

4D 2003 Application server (note--can only run compiled database)

4D Client as web server

compiled database

It appears, no matter what (or how) you set in the Preferences for the Web
Settings, the 4D Client web server does _not_ respect these settings.

Remember, for this particular setup, you _cannot_ access the Preferences
dialog from the 4D Client (which is only accessible once you get to the
Design environment). So you only have two ways of setting it (that I know
of), with the _hope_ that it gets passed to the Client:

1) change the Preferences settings in the uncompiled structure, compile, and
install on the 4D Application server

2) change the Preferences settings on the 4D Application server

Neither of these methods appear to work in transferring settings to the 4D
Client web server.

If I look on the 4D Server computer, I can see the Preferences set to
whatever values I set them at (either before compiling, or directly on the
server). However, these do not transfer to the client web server.

For instance, the Client web server creates a "WebFolder" as the root (the
default 4D root), which I'd like to change to "web_decoy". No matter what
you change it to on the Server (of course, restarting to make sure changes
would take affect), "WebFolder" remains the active folder that serves the
web pages for the 4D Client web server (ie, if I stick in an HTML page and
enter it's URL, 4D Client happily serves it up bypassing Active4D).

Now, for using Active4D on the 4D Client, fortunately it starts in
non-contextual mode (the default), and I can live with the folder called
"WebFolder" (rather than "web_decoy"), remembering that I should never stick
anything in there that should be going through Active4D.

But I'm at a complete loss on how to change the Default Web User so that
this applies to the 4D Client web server (again, using the 4D Application
Server version of server). Logging in as anything other than Designer
results in no data served from the database, no matter what user or "Generic
Web User" I set or log in as.

The next thing I guess would be to look at hacking into the 4D Prefs file on
the 4D Client machine to see if there's something I can set there directly?

Or does anybody else have any idea how this can be set?

See below...


Or is this a 4D issue where they're going to have to address adding some
method of accessing the Preferences for the web server on 4D Client when
running compiled?

Thanks for any assistance anybody can provide!

Michael Larue

p.s. I've sort of gotten around the Designer password issue by creating a
path document that logs as the Designer for starting up the web server on
the client; it's not obvious by looking at this that the log-in is as the
Designer, so hopefully for this situation it'll be good enough. At least it
works and I can move on to more interesting things, such as programming with
Active4D...!

Michael,

Because you are using 4D Application Server (admittedly, no experience there), maybe you need to create or set the web user in your 4D structure prior to compiling? That way the setting might carry to the deployed client?

-- Brad Perkins

_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to