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 ... 716 717 [718] 719 720 ... 736
10756
FTP - Ask For Help / Re: FTP Server
« on: March 04, 2008, 07:25:56 AM »
Hi Ian,

You could do it in Clarion, using NetTalk, but it would be a fair bit of work.
Basically you'd need to implement the FTP protocol (server side) using the NetTalk NetSimple class.

Cheers
Bruce


10757
Web Server - Ask For Help / Re: call login form on error condition
« on: March 02, 2008, 11:56:50 PM »
Hi Paul,

Example 7 has an example of the "standard" login, which does what you seem to be wanting... But I'm guessing you moved away from that approach for a reason?

Cheers
Bruce

10758
Web Server - Ask For Help / Re: Memory Form Time Display (V4.29)
« on: February 26, 2008, 10:39:30 PM »
Hi Rob,

I think I need to see an example of what you're doing. Without it, it's hard to say exactly where you're going wrong.

Cheers
Bruce

10759
Web Server - Ask For Help / Re: GAAA I've broken it!!!!
« on: February 25, 2008, 10:36:08 PM »
Hi Ian,

Go to the NetWeb source in question.
Tick on "Declare Globally".

Cheers
Bruce

10760
Hi John,

This could certainly be done using a well-formed url, ad web page, but I've not done an example of it yet. I'll put it on the list but my plate is getting very full at the moment. Perhaps someone else would care to step in with an example?

Cheers
Bruce


10761
Web Server - Ask For Help / Re: Returning Multiple Packets
« on: February 24, 2008, 10:43:09 PM »
Hi Devan,

I think the limit at the moment for a single "packet" is 16K. (This number doesn't actually mean anything - windows, routers, whatever, can all break packets apart and put others together. So 1 packet out does not necessarily mean 1 packet in the other side).

However you page can have as many packets as you like in it.
So all you need to do, is every so often, do a send.

In a NetWebPage this will most likely be
do SendPacket

ie your code can become

Loop recordptr = 1 to Records(somefilename)
  Get(somefilename, recordptr)
  packet = clip(packet) & '<tr>' & rec:somefieldsinhtmlformat & '</tr>'
  do SendPacket
End

cheers
Bruce

10762
Web Server - Ask For Help / Re: Noob Question how do I write CGI?
« on: February 21, 2008, 11:08:36 PM »
Hi Ian,

CGI is a technique used to generate dynamic pages when the server is "dumb". ie where the server has no dynamic-processing of it's own.

Certainly I could see the benefit in using existing CGI programs to create pages (although I've not done it myself yet, so the details would need to be worked out.)

However for "new" stuff you'd be much better off just using a NetWebPage template, hand-coding the HTML where necessary. This would be a lot faster on the server, and would also give you access to things like the SessionQueue.

Let me know what you have in mind for CGI and perhaps we can be a bit more specific.

Cheers
Bruce


10763
Web Server - Ask For Help / Re: Browse on a form with child browses
« on: February 21, 2008, 11:03:37 PM »
I think I'd need to see it to comment Ian.
Can you email me an example?

cheers
Bruce


10764
Web Server - Ask For Help / Re: update a related file
« on: February 19, 2008, 08:59:17 AM »
Hi Edvard,

Forgive me, but I'm still not 100% sure of exactly what you are trying to do. However some hints...

See FAQ, specifically number W4. This covers calling a form directly "without a browse". I'm not sure if it applies.

Regarding "which record has been highlighted". If the Browse is a Form field (on a form) then you can add some "server side code" just as you can with any form field. This code will get triggered with each selection on the browse. At this point the "unique identifier" for the browse is updated in the session Queue. In this sense this is the same as a Window Event:NewSelection.

Cheers
Bruce




10765
Hi John,

by "pop up" do you mean like say the Calendar lookup window? In other words it's a separate little window.

Or do you mean it'll "replace the browse" ? In the same way that a form replaces the browse when you click on say the Insert or Change button?

Cheers
Bruce

10766
Web Server - Ask For Help / Re: Child browses on tabs
« on: February 19, 2008, 08:49:13 AM »
Hi Mike,

I'm not sure what John's system is, but on any NetWebForm you can add a browse control. It's a kind of "form field".

So clearly, since all form fields are on a tab, the child browse will also be on a tab.

To filter the browse, use the Filters tab. But rather than add the default filter, add a Conditional Filter. One of the conditions is "Child of Procedure" - and in this case it'd be the Child of the NetWebForm

Cheers
Bruce

10767
Hi Terry,

I just tested here with a "clean" install of NetTalk 4.30 (pr6).
I deleted the TPS files from the example 13 folder.

Then I compiled, and run the app.

But I don't seem to see the problem you are seeing.
Which is a bit of a pity. For me a popup appears saying "bummer No Records".

Perhaps someone else can jump in here to confirm or deny the same behavior?

Cheers
Bruce

10768
Web Server - Ask For Help / Re: How do I get out of Frames
« on: February 12, 2008, 07:49:56 AM »
Ok, I've made a change for you. This will apply to version 4.30, Pre-Release 7 and later.
(Which isn't yet uploaded - I'll do that later this week.)

I've attached a small example app, based on example number 4. I'm not gonna add another example to the shipping set for 4.30 so you'll probably want to use this.

a) If you go to the MailBoxesBrowseControl procedure, to the Form tab, click on the Advanced button. Here you can set the name of the Form, and the Target. In this example, the URL is set to
'MailboxesFormControl'
and the Target is set to
'_top'

b) In the MailBoxesFormControl the URL-on-save (and URL-on-Cancel) is set to 'FramePage'. The Target in both cases is set to '_top'.

c) In the Embeds of the MailBoxesformControl, In the PostInsert and PostUpdate routines, I've added a line of code;
  p_web.SetSessionValue('GoToBrowse','MailboxesBrowseControl')

d) In the FrameSet procedure there was already code to dynamically set the URL for the "Right_Frame". I extended this code to use the SessionValue, so it's now...

  if p_web.GetSessionLoggedIn()
    loc:RightURL = p_web.GetSessionValue('GoToBrowse')
    if loc:rightURL = ''
      loc:rightURL = 'IndexPage'
    end
  else
    loc:RightURL = 'HintPage'
  End

I'm not sure I really _like_ this approach, but I can see that in some cases it would work well.

Cheers
Bruce



[attachment deleted by admin]

10769
Web Server - Ask For Help / Re: update a related file
« on: February 10, 2008, 09:54:06 AM »
The answer to this is buried in the question:

"How would you do this with a normal browse & form?"

There are a number of approaches you can take - but obviously you should approach it the same way that you would do this in a Windows program.

In essence the mechanism would be the same - you just need to think very carefully about what file the browse is browsing, and on which file the form is.

Plus the embed point "Validate Record" (which happens when the save is pressed) is probably also gonna come in very handy.

Cheers
Bruce


10770
News And Views / Re: NetTalk Version 4.30 pre-release 6 available
« on: February 08, 2008, 07:48:09 AM »
Pre-Release 6 of 4.30 is now up at
http://www.capesoft.com/ftp/public/prerelease/index.htm

Consider this a "candidate release" for a final 4.30.

I'm keen to start building in, and releasing, the features planned for 4.31, so unless there are real show-stoppers this is it.

Cheers
Bruce

Pages: 1 ... 716 717 [718] 719 720 ... 736