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.
10696
Web Server - Ask For Help / Re: Form Tabs - Tab Condition
« on: September 04, 2008, 06:57:30 AM »
unfortunately it's not easy to do this at the moment Kevin.
Cheers
Bruce
Cheers
Bruce
10697
Web Server - Ask For Help / Re: Determine if user is logged in when customizing 404 error
« on: September 04, 2008, 06:56:49 AM »
Hang on, there's already a NetWebServerWorker.MakeErrorPacket method.
Although it's probably a fairly recent addition.
So in WebHandler you can override that (look at the code in netweb.clw for the sort of things you should put in there.
Cheers
Bruce
Although it's probably a fairly recent addition.
So in WebHandler you can override that (look at the code in netweb.clw for the sort of things you should put in there.
Cheers
Bruce
10698
Web Server - Ask For Help / Re: Determine if user is logged in when customizing 404 error
« on: September 04, 2008, 06:54:29 AM »
Hi Vince,
I think the worker class needs a MakeErrorPage method, that usually just calls the Server class. Then you can override this method in the WebHandler (and there you will have the session ID).
I'll try and squeeze this into the next build (which is coming out tomorrow).
Cheers
Bruce
I think the worker class needs a MakeErrorPage method, that usually just calls the Server class. Then you can override this method in the WebHandler (and there you will have the session ID).
I'll try and squeeze this into the next build (which is coming out tomorrow).
Cheers
Bruce
10699
Web Server - Ask For Help / Re: Disabling Multiple Starts in Report Template on Webserver
« on: August 25, 2008, 09:40:46 PM »
Hi Charl,
well done. This could be simplified to
if not p_web &= NULL
self.cancelled = 1
end
right before the
IF ~SELF.Cancelled
line
I'll tweak the template to support this.
Thanks
Bruce
well done. This could be simplified to
if not p_web &= NULL
self.cancelled = 1
end
right before the
IF ~SELF.Cancelled
line
I'll tweak the template to support this.
Thanks
Bruce
10700
The Rest - Ask For Help / Re: Anyone done an RSS feed?
« on: August 21, 2008, 10:11:52 PM »
Oh, and of course, what I didn't say is that there's no need for you to actually save the XML file. You could generate it, and send it from memory every time it is requested.
This would allow for some really interesting things. For example, say you had a software release RSS feed. So when you add something to this all the RSS readers alert their users, and the program is downloaded. By generating the XML file on the fly, you could "stagger" the information release.
For example, if 5 people are already downloading the release, then don't the release in any RSS requests. When the downloads are complete, then go back to announcing the release. In this way the "notification of the release" is balanced against the people downloading it, thus not overloading your server all in one go.
cheers
Bruce
This would allow for some really interesting things. For example, say you had a software release RSS feed. So when you add something to this all the RSS readers alert their users, and the program is downloaded. By generating the XML file on the fly, you could "stagger" the information release.
For example, if 5 people are already downloading the release, then don't the release in any RSS requests. When the downloads are complete, then go back to announcing the release. In this way the "notification of the release" is balanced against the people downloading it, thus not overloading your server all in one go.
cheers
Bruce
10701
The Rest - Ask For Help / Re: Anyone done an RSS feed?
« on: August 21, 2008, 10:08:20 PM »
Hi Mike,
Yep, that's pretty much all there is to it.
Incidentally you don't mention how often records will be changed, and this would determine how often a user sets his RSS reader to Poll. What you don't want is some RSS reader (or worse yet 100 of them) polling every minute. Unless bandwidth is very cheap for you.
xFiles has some docs on making RSS-style XML files. Which means you can turn a file (like an In-Memory file for example) into an RSS XML file with 1 line of code. (well may be a handful depending on what you want.) It's a lot easier to manipulate the length etc of the IM table so this is the approach I'd take.
Cheers
Bruce
Yep, that's pretty much all there is to it.
Incidentally you don't mention how often records will be changed, and this would determine how often a user sets his RSS reader to Poll. What you don't want is some RSS reader (or worse yet 100 of them) polling every minute. Unless bandwidth is very cheap for you.
xFiles has some docs on making RSS-style XML files. Which means you can turn a file (like an In-Memory file for example) into an RSS XML file with 1 line of code. (well may be a handful depending on what you want.) It's a lot easier to manipulate the length etc of the IM table so this is the approach I'd take.
Cheers
Bruce
10702
Web Server - Ask For Help / Re: Calendar not working in my app
« on: August 21, 2008, 12:32:20 AM »
p_web.GetValue('loc:date')
Cheers
Bruce
Cheers
Bruce
10703
Web Server - Ask For Help / Re: PayPal Integration?
« on: August 20, 2008, 01:11:25 AM »
Hi Mike,
as far as I know Brian did get it all working, but unfortunately it's not the easiest example to share because it contains passwords etc which are unique to him. However I will try and strip that out, and then make the example available as a "non working" example - ie you'd need to add your own access information to make it work.
regarding the URL, yes, definitely I would include the session value. However since you are generating the URL directly, you can include the sessionID as-is in the generation. ie
p_web.SetSessionValue('ppreturnpage','http://216.218.174.155:89/listorders?SessionID='&p_web.SessionID&'&msg=Thank&%20you%20for%20your%20order!')
Cheers
Bruce
as far as I know Brian did get it all working, but unfortunately it's not the easiest example to share because it contains passwords etc which are unique to him. However I will try and strip that out, and then make the example available as a "non working" example - ie you'd need to add your own access information to make it work.
regarding the URL, yes, definitely I would include the session value. However since you are generating the URL directly, you can include the sessionID as-is in the generation. ie
p_web.SetSessionValue('ppreturnpage','http://216.218.174.155:89/listorders?SessionID='&p_web.SessionID&'&msg=Thank&%20you%20for%20your%20order!')
Cheers
Bruce
10704
Web Server - Ask For Help / Re: Calendar not working in my app
« on: August 20, 2008, 12:44:05 AM »
Hi Ray,
Your calendar problem is being caused by the Date field being in the Unique key for the form.
As you know, fields in the unique key cannot be changed on the form (although they can be displayed on the form).
In your case, make a local field to get the date from the user, and then assign that date to the field just before the record is saved (ie ValidateRecord routine).
Cheers
Bruce
Your calendar problem is being caused by the Date field being in the Unique key for the form.
As you know, fields in the unique key cannot be changed on the form (although they can be displayed on the form).
In your case, make a local field to get the date from the user, and then assign that date to the field just before the record is saved (ie ValidateRecord routine).
Cheers
Bruce
10705
Web Server - Ask For Help / Re: Disabling Multiple Starts in Report Template on Webserver
« on: August 17, 2008, 12:41:42 PM »
Hi Charl,
By Clarion app do you mean Clarion template app?
I haven't looked into the Legacy statement yet - but I'll have a squiz in the morning.
Cheers
Bruce
By Clarion app do you mean Clarion template app?
I haven't looked into the Legacy statement yet - but I'll have a squiz in the morning.
Cheers
Bruce
10706
Web Server - Share Knowledge / Re: A little app to get a handle on XHTML embed points
« on: August 17, 2008, 12:39:25 PM »
Hi Mike,
Now that's a really useful idea... I think I might play around with it a bit...
Thanks
Cheers
Bruce
Now that's a really useful idea... I think I might play around with it a bit...
Thanks
Cheers
Bruce
10707
Web Server - Ask For Help / Re: Disabling Multiple Starts in Report Template on Webserver
« on: August 15, 2008, 11:42:43 PM »
Hi Charl,
In the embed point
"Prime Report Options when run in Web mode"
put
self.cancelled = 1
I will add this to the template for the next build.
Cheers
Bruce
In the embed point
"Prime Report Options when run in Web mode"
put
self.cancelled = 1
I will add this to the template for the next build.
Cheers
Bruce
10708
Web Server - Ask For Help / Re: Calendar not working in my app
« on: August 15, 2008, 11:18:43 PM »
Hi Ray,
perhaps post an example - it's hard to say for sure.
I know you're working in a mix of static & dynamic pages so maybe that has something to do with it as well?
Cheers
Bruce
perhaps post an example - it's hard to say for sure.
I know you're working in a mix of static & dynamic pages so maybe that has something to do with it as well?
Cheers
Bruce
10709
News And Views / Re: NetTalk Pre-Release version 4.31 PR 11 available
« on: August 14, 2008, 09:20:29 AM »
Well after my boast for PR10, PR11 had a number of regressions. I've had to undo the SQL-Insert feature for now, and I've fixed all the other (known) regressions. If you're using PR10 I strongly recommend this update.
Cheers
Bruce
Cheers
Bruce
10710
Web Server - Ask For Help / Re: 4.31pre10 fails to remember current tab
« on: August 13, 2008, 05:59:39 AM »
Hi Alan,
Well good news, and bad news.
The good news is that I think the tab selection thing is fixed in PR11. At least in my testing here it seems to remember ok now.
The bad news is that the INSERT feature has been un-done, at least for this release. It breaks the "return from an update form called in "CHANGE" mode" - in many SQL sort orders. (Although not _all_ SQL sort orders.) I'm investigating to see if the underlying bug can be fixed, or if I need to take an alternate approach.
Cheers
Bruce
Well good news, and bad news.
The good news is that I think the tab selection thing is fixed in PR11. At least in my testing here it seems to remember ok now.
The bad news is that the INSERT feature has been un-done, at least for this release. It breaks the "return from an update form called in "CHANGE" mode" - in many SQL sort orders. (Although not _all_ SQL sort orders.) I'm investigating to see if the underlying bug can be fixed, or if I need to take an alternate approach.
Cheers
Bruce