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.
10741
Web Server - Ask For Help / Re: Problem displaying data on an htm page
« on: July 16, 2008, 03:49:29 AM »
Hi Ray,
I think your problem may be in the URL in the browse.
ie the problem is not in the Form itself, but in the way you are calling the form.
If you check out FAQ W4, you'll see how the URL for a form needs to be constructed. It needs to know records id, action (in this case ChangeRecord) and so on.
Cheers
Bruce
I think your problem may be in the URL in the browse.
ie the problem is not in the Form itself, but in the way you are calling the form.
If you check out FAQ W4, you'll see how the URL for a form needs to be constructed. It needs to know records id, action (in this case ChangeRecord) and so on.
Cheers
Bruce
10742
News And Views / Re: NetTalk Pre-Release 7 version 4.31 available
« on: July 14, 2008, 11:44:54 PM »
There was a (human) bug in the build process meaning that the PR6 build was incomplete. PR7 has been uploaded. So if you have PR5 or PR6 please rather use PR7.
Cheers
Bruce
Cheers
Bruce
10743
The Rest - Ask For Help / Re: Web Services - Obtaining List of Functions and Parameters
« on: July 14, 2008, 11:35:02 PM »
Hi Rob,
I'm not a SOAP expert, but I believe this is possible yes, with certain services. Diego showed something similar in Oz recently using Clarion#. From what I understand it's a "default" behavior for .Net based services, although not necessarily a standard.
The most obvious way to do something like this with NetTalk is to make a function that returns the information about your service. However if your approach was "the same" then obviously things are compatible, which is good.
Sean has offered to whip up a .Net service for me to try, so I'll post back some results here in a day or so. Obviously if it's nice an consistent then the template could generate this list automatically, which would be quite cool.
Cheers
Bruce
I'm not a SOAP expert, but I believe this is possible yes, with certain services. Diego showed something similar in Oz recently using Clarion#. From what I understand it's a "default" behavior for .Net based services, although not necessarily a standard.
The most obvious way to do something like this with NetTalk is to make a function that returns the information about your service. However if your approach was "the same" then obviously things are compatible, which is good.
Sean has offered to whip up a .Net service for me to try, so I'll post back some results here in a day or so. Obviously if it's nice an consistent then the template could generate this list automatically, which would be quite cool.
Cheers
Bruce
10744
Web Server - Ask For Help / Re: Browse Refresh, Build 6
« on: July 11, 2008, 11:19:56 PM »
Hi Anthony,
I'm glad to hear it's improved, although I confess I don't know why it has. One of the reasons this build (well build 5) was delayed was because I wanted to check & fix that issue, but unfortunately I got press-ganged into some other stuff for a week, so the build eventually just had to go out.
I'm glad to hear it's improved though. I'll be doing more mssql testing next week though to see if I can duplicate your effect.
Incidentally: tip of the week: If you're using MsSql 2005 then the best combination of settings is to use Clarion 9058 (or later presumably) with MARS on and BUSYHANDLING set to 2. Do this for all files in the dict to be sure, and also for the FM3 file (if you are using FM3). Users have reported that this combination works best, especially if you have multiple page requests at the same time.
Cheers
Bruce
I'm glad to hear it's improved, although I confess I don't know why it has. One of the reasons this build (well build 5) was delayed was because I wanted to check & fix that issue, but unfortunately I got press-ganged into some other stuff for a week, so the build eventually just had to go out.
I'm glad to hear it's improved though. I'll be doing more mssql testing next week though to see if I can duplicate your effect.
Incidentally: tip of the week: If you're using MsSql 2005 then the best combination of settings is to use Clarion 9058 (or later presumably) with MARS on and BUSYHANDLING set to 2. Do this for all files in the dict to be sure, and also for the FM3 file (if you are using FM3). Users have reported that this combination works best, especially if you have multiple page requests at the same time.
Cheers
Bruce
10745
Web Server - Share Knowledge / Changing the names of downloaded files
« on: July 11, 2008, 07:15:06 AM »
One question that has come up a couple times on this forum is how to change the name, prompted by the browser, when the user is saving a file to disk.
Take Example 40, as an example. This example shows you how to download a document, where the document name is passed as a parameter to a generic page. For example;
GET /ServeDocument?name=test.xls
In version 4.30 and earlier, the prompted name to save the file would be "ServeDocument". Most people would prefer for it to prompt as "test.xls".
Previously I've stated that it wasn't possible to do this, and I'm happy to say, I was wrong. It is possible. It's done by setting the content-disposition header field.
So with Version 4.31, PR6 or later, see example 40 (in the embed code in the ServeDocument procedure) for an example of how this is done.
Thanks to Robert De Jager who first showed me the technique.
Cheers
Bruce
Take Example 40, as an example. This example shows you how to download a document, where the document name is passed as a parameter to a generic page. For example;
GET /ServeDocument?name=test.xls
In version 4.30 and earlier, the prompted name to save the file would be "ServeDocument". Most people would prefer for it to prompt as "test.xls".
Previously I've stated that it wasn't possible to do this, and I'm happy to say, I was wrong. It is possible. It's done by setting the content-disposition header field.
So with Version 4.31, PR6 or later, see example 40 (in the embed code in the ServeDocument procedure) for an example of how this is done.
Thanks to Robert De Jager who first showed me the technique.
Cheers
Bruce
10746
News And Views / Re: NetTalk Pre-Release version 4.31 PR 6 available
« on: July 11, 2008, 07:08:27 AM »
A quick update on yesterday's build. There was quite a serious regression, which evidenced itself as the "lookup button not working." The actual problem extended beyond that. This build fixes that issue, and also tidies up a couple of loose ends.
10747
Web Server - Share Knowledge / Starting Threads inside the Web Server
« on: July 11, 2008, 03:03:44 AM »
Hi All,
As you know, each incoming request spawns a new thread to handle the request.
However, you may not know, but this thread typically doesn't have a Window structure, has no ACCEPT loop, and simply runs from start to finish. This matters not, except in the case where you spawn your own thread from this thread.
If you wish to start a thread (to perform some task in the background) then typically you would call something like;
START(MyProc,25000)
Which normally would be sufficient. However because this thread has no ACCEPT loop, a slight variation to the START call is required. Your call to start the thread should look like this;
RESUME(START(MyProc,25000))
This allows the current thread to continue running, as well as giving some time to the newly started thread.
Cheers
Bruce
PS This tip applies on to Clarion 6 and later, RESUME is not in the language in Clarion 5.5.
As you know, each incoming request spawns a new thread to handle the request.
However, you may not know, but this thread typically doesn't have a Window structure, has no ACCEPT loop, and simply runs from start to finish. This matters not, except in the case where you spawn your own thread from this thread.
If you wish to start a thread (to perform some task in the background) then typically you would call something like;
START(MyProc,25000)
Which normally would be sufficient. However because this thread has no ACCEPT loop, a slight variation to the START call is required. Your call to start the thread should look like this;
RESUME(START(MyProc,25000))
This allows the current thread to continue running, as well as giving some time to the newly started thread.
Cheers
Bruce
PS This tip applies on to Clarion 6 and later, RESUME is not in the language in Clarion 5.5.
10748
Web Server - Ask For Help / Re: Conditionally serving pages with or without SSL
« on: July 11, 2008, 02:55:29 AM »
Hi Casey,
While offering 3 options is good, it's not actually an ideal situation.
The main problem is that the secure site, and the unsecure site, are effectivly 2 different Servers.
In other words, you have a server listening on port 80 (the unsecure on) and another server listening on 443.
While swapping between the servers is fine, it needs to be remembered that each server will have it's own session Queue. So every time the user moves from one to another the SessionQ changes. With the latest 4.31 pre-release it at least uses the same Session number when this happens (if you do the URL right) but you still can't get values from one queue in the other.
That said, moving from one site to another is a matter of the URL. If you set the URL completely - including the https:// (when moving to secure) or http:// (when moving to non-secure).
Cheers
Bruce
While offering 3 options is good, it's not actually an ideal situation.
The main problem is that the secure site, and the unsecure site, are effectivly 2 different Servers.
In other words, you have a server listening on port 80 (the unsecure on) and another server listening on 443.
While swapping between the servers is fine, it needs to be remembered that each server will have it's own session Queue. So every time the user moves from one to another the SessionQ changes. With the latest 4.31 pre-release it at least uses the same Session number when this happens (if you do the URL right) but you still can't get values from one queue in the other.
That said, moving from one site to another is a matter of the URL. If you set the URL completely - including the https:// (when moving to secure) or http:// (when moving to non-secure).
Cheers
Bruce
10749
News And Views / Re: NetTalk Pre-Release version 4.31 available
« on: July 09, 2008, 07:18:11 AM »
build 5 is now available.
Lots of bug fixes in this one. Also a new example "Validation" which demonstrated Immediate Field Validation (which by default is now ON).
Lots of bug fixes in this one. Also a new example "Validation" which demonstrated Immediate Field Validation (which by default is now ON).
10750
Web Server - Ask For Help / Re: SSL record too long error
« on: July 09, 2008, 12:04:38 AM »
Hi Greg,
What exactly does the error message say?
cheers
Bruce
What exactly does the error message say?
cheers
Bruce
10751
Web Server - Ask For Help / Re: Multiple sites - one server
« on: July 02, 2008, 04:26:52 AM »
Hi Majodi,
Although a couple folk have done this, it is not a trivial thing to do (at least not yet.) It's been on my list for a while, and is rapidly getting towards the top I think.
There are a couple things you can do in the meantime, which may help:
a) obviously the 2 servers can run on different ports. It works, but it's not ideal.
b) A server can be assigned multiple IP addresses. If you can get the addresses, then you can "bind" each server to a different ip address (all running on port 80.)
Cheers
Bruce
Although a couple folk have done this, it is not a trivial thing to do (at least not yet.) It's been on my list for a while, and is rapidly getting towards the top I think.
There are a couple things you can do in the meantime, which may help:
a) obviously the 2 servers can run on different ports. It works, but it's not ideal.
b) A server can be assigned multiple IP addresses. If you can get the addresses, then you can "bind" each server to a different ip address (all running on port 80.)
Cheers
Bruce
10752
Web Server - Ask For Help / Re: Struggling with drop downs used as a filter
« on: July 02, 2008, 04:21:35 AM »
>> When a new selection is chosen from a drop down list, can I capture the value of the drop down right away, and if so, what embed would I use?
For the drop down-
Client-Side tab
Tick on "send new value to server"
Enter the code you want in under the "Server Code" embed.
Remember here that you want to update _session values_ not "file fields".
Also remember here you will to open, and close, and files you may need to read.
then, back on the client side tab, add any fields to the "reset fields" list that need to be updated when the drop is chosen.
Cheers
Bruce
For the drop down-
Client-Side tab
Tick on "send new value to server"
Enter the code you want in under the "Server Code" embed.
Remember here that you want to update _session values_ not "file fields".
Also remember here you will to open, and close, and files you may need to read.
then, back on the client side tab, add any fields to the "reset fields" list that need to be updated when the drop is chosen.
Cheers
Bruce
10753
Web Server - Ask For Help / Re: Cyrillic
« on: July 02, 2008, 04:08:33 AM »
Hi Murray,
Alas C6 doesn't really support unicode, so there may be an issue there.
I believe C7 has unicode support.
There may be other ways of doing Cyrillic though. There are plenty clarion programmers in Russia, which seems to imply there are many possibilities. I'm guessing the place to start is to set the pages (via CSS) to use a font that supports Cyrillic.
You can also change the HTML Charset that the server uses by setting it in
the p_web.site.HtmlCharset property.
To change it on a site-wide basis set this property in the WebHandler, in the ProcessRequest method, before the parent call.
For Cyrillic you could try setting it to
ISO-8859-5
Cheers
Bruce
Alas C6 doesn't really support unicode, so there may be an issue there.
I believe C7 has unicode support.
There may be other ways of doing Cyrillic though. There are plenty clarion programmers in Russia, which seems to imply there are many possibilities. I'm guessing the place to start is to set the pages (via CSS) to use a font that supports Cyrillic.
You can also change the HTML Charset that the server uses by setting it in
the p_web.site.HtmlCharset property.
To change it on a site-wide basis set this property in the WebHandler, in the ProcessRequest method, before the parent call.
For Cyrillic you could try setting it to
ISO-8859-5
Cheers
Bruce
10754
Web Server - Share Knowledge / Re: Got NetTalk Web and Office Inside working
« on: June 30, 2008, 01:17:42 AM »
Hi Mike,
Nice example Mike. As you know I've been planning to do an Excel example for some time now, and this is a good place to start. Do you mind if I take this example and expand it a bit, and then ship it as an official example?
Cheers
Bruce
Nice example Mike. As you know I've been planning to do an Excel example for some time now, and this is a good place to start. Do you mind if I take this example and expand it a bit, and then ship it as an official example?
Cheers
Bruce
10755
Web Server - Ask For Help / Re: Strange Firefox 3 Behaviour
« on: June 27, 2008, 07:32:08 AM »
Hi Devan,
Did you see the earlier thread on an incompatibility with FF3? I've fixed that for the next build but the thread contains details on how to fix the problem in the short term.
cheers
Bruce
Did you see the earlier thread on an incompatibility with FF3? I've fixed that for the next build but the thread contains details on how to fix the problem in the short term.
cheers
Bruce