NetTalk Central

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Bruce

Pages: 1 ... 730 731 [732] 733 734 ... 744
10966
Web Server - Ask For Help / Re: SSL on NetTalk server
« on: October 31, 2007, 12:28:52 AM »
Hi Zoltan,

Start by reading the doc on creating Secure web servers.
http://www.capesoft.com/docs/NetTalk/NetTalkWebSecure.Htm

Cheers
Bruce

10967
The Rest - Ask For Help / Re: connecting to multiple servers
« on: October 31, 2007, 12:22:06 AM »
Hi Paul,

you can either create multiple objects (which might be easier for you from a conceptual point of view) or you can use the NetSimpleMultiClient class.
There is an example of this in the NetDemo app (3rdparty\examples\nettalk\demo\netdemo.app) in a procedure called TestNetSimpleMultiClient

Cheers
Bruce

10968
News And Views / NetTalk Version 4.30 pre-release 1 available
« on: October 29, 2007, 06:58:09 AM »
Hi All,

A pre-release build of NetTalk 4.30 has been uploaded here
http://www.capesoft.com/ftp/public/prerelease/index.htm

(Note this is NOT the regular NetTalk downloads page which still contains version 4.29 - Use the link above to get to the 4.30 files.)

The goal of this release is for regression testing before the official 4.30 release.
If you see any regressions, or show-stoppers, please let me know.

Cheers
Bruce

10969
Hi Random,

Thanks for this. I didn't spot this in time to put it in the 4.30 pre-release, but I'll make sure it's in the 4.30 final release (or indeed in the next pre-release if there is one.)

Cheers
Bruce

10970
Hi Mike,

To answer this it's worth recapping a bit on how Auto-numbering works.

In Clarion the record is added when the form is opened, then the record is either updated (on save) or deleted (on cancel). This creates the potential for small holes in the numbering to exist, but for most situations this is acceptable.

Of course on the web the user may not Save, or Cancel. They may close the browser. Or go to some other page and so on. So if NetTalk does the same as a Windows program then there's a lot more risk of "abandoned" records. So, where possible, it prefers NOT to do the Insert / Update or Delete approach, but rather does the Insert when the Save is pressed.

If you want to enforce the Win32 approach then go to the Advanced tab on the form and tick on "Prime Auto Inc".

But then why does Example 21 work? No it doesn't have the option ticked on. what happens is that NetTalk is aware that in some cases we need the ID in order to add child records to the form. So IF you have a browse on your form, then the Win32 approach is done (or to put it another way, If you have a Browse on your Form, then it's the same as ticking the Prin Auto-Inc option ON).

Cheers
Bruce

10971
Hi Mike,

Insight is clearly supported - no problem there. ABC and Legacy examples are included.

Secwin 4 includes a lot of support for the Web Server, but it's still waiting the completion of the EIP stuff to be 100% ready. Scheduled for 4.31.

SelfService, Message Box and WinEvent are all good to have in the server program (although of course your users won't see these.)

It's the same for Fm2 / Fm3. It works fine in the program, although the user doesn't see anything.

xFiles is a recent "helpmate". With version 4.30 I've included some SOAP server examples which use xFiles. Xfiles also has some example of making a SOAP client.

Reports made with RightReports can be "run" through the web interface (example still to be done) but you can't (currently) edit reports via the web browser.

I've probably forgotten some but these are all worthy of consideration.

Cheers
Bruce



10972
Web Server - Ask For Help / Re: Restrict Access to certain pages
« on: October 26, 2007, 03:50:38 AM »
Version 4.30 has support for Access Levels.

Cheers
Bruce

10973
Web Server - Ask For Help / Re: Button on each row of a Browse
« on: October 25, 2007, 10:35:24 PM »
Hi David,

At this point the button needs a URL before it will show up.
I'm working on async behavior for the button, but that's not finished yet.
Should be in 4.31

Cheers
Bruce

10974
Web Server - Ask For Help / Re: Logout wont logout.
« on: October 24, 2007, 10:27:28 PM »
Hi Chris,

your code is accurate yes - and the person would be "logged out".

Pressing back will trigger a GET or POST to the server, and this GET/POST will obviously have a sessionId (since the original did). So at this point a _new_ session is started, albeit one with the same numebr as before.

At this point the user is still logged out - and a new session is underway.

This is why it's so important to make sure that every window that _requires_ the person to be logged in actually has the "must be logged in" switch set.

It's of course, not just the "back" button that creates the risk here - the user can type in the URL at any time they like, and the same issue applies.

Cheers
Bruce


10975
Web Server - Ask For Help / Re: Nettalk app And Linux Server
« on: October 24, 2007, 10:23:44 PM »
hmm - no real ideas.
the best place to start I guess is use Firefox for a browser and try and determine (via the errors if any) why the browser crashes.

Cheers
Bruce

10976
Web Server - Ask For Help / Re: File upload
« on: October 24, 2007, 05:07:15 AM »
WebHandler procedure
.renameFile method.

if you look at the renameFile method in the netweb.clw you'll get a good adea as to what you should be doing here.


Cheers
Bruce

10977
good question - but alas I don't have an exact answer for you as I've not tried this myself.

Basically you'd need to capture the "starting" parameters, and then push these on to the second form. It's kinda hard to explain.

I think the problem breaks down into a couple of parts.
a) the "change" button needs to be "inline" in the browse. This way you can have different URL's for different change buttons. You'd calculate the URL (based on the criteria) as the _browse_ generates.

b) in the "first form" you'd store the incoming row ID, and also configure the form so it's in "Insert" mode. Or make it a memory form and do the Insert "manually" in the ValidateRecord embed point.

c) The "save" URL would be set to call the real form, see FAQ #4 for help on getting this URL right.

Good luck.

Cheers
Bruce

10978
Web Server - Ask For Help / Re: Tree function
« on: October 24, 2007, 03:07:56 AM »
Hi Bram,

1) There are a number of javascript tree controls floating around on the web, but I've not had an opportunity yet to incorporate one of them into the NetTlak package. It's on my list though.

2) I've played with this on and off, it's also been on my list, but I've not made a solution yet that I like, that works the way I want it to. It's also still on my list though.

Cheers
Bruce

10979
Web Server - Ask For Help / Re: Nettalk app And Linux Server
« on: October 23, 2007, 10:54:44 PM »
Hi Edy,

I've not tried this myself - but it's interesting that it was the _browser_ that crashed. Try using Firefox, it has better error reporting. All.js is javascript that the "client side" uses, and if anything is "safe" from the server then this should be.

you could also try turning off "use pre-compressed files" (see web server extension, advanced tab) and see if that makes any difference.

Cheers
Bruce

10980
Web Server - Ask For Help / Re: Another use for Browse record validation
« on: October 21, 2007, 11:30:06 PM »
Hi Chris,

There is, alas, a reason I don't support queues. In this example of your code, you'll get very strange happenings if multiple people request this page at the same time, because Queues are not thread safe.

Of course I mention this as a warning, not a prohibition. I'd recommend a memory-file instead of a queue though, as that _is_ thread safe.

cheers
Bruce

Pages: 1 ... 730 731 [732] 733 734 ... 744