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 ... 693 694 [695] 696 697 ... 736
10411
Hi Terry,

Firstly, I suspect the source procedure should be based on a normal Source, not a NetWebSource. A NetWebSource is specifically designed to send html to the browser, and in this case I don't think the Source will be doing any XML.

The correct embed point to call it would be the top of the GenerateBrowse routine.

However you don't really mention what Driver you are using. If you are using the In-Memory driver, with unique contents per thread, then bear in mind that the file will disappear when the thread ends, which is really the instant the user sees it. So it won't be there for subsequent browse actions.

If you are using a TPS file, or In-Memory file in "normal" mode, then you will want to add the session value to the file, and don't "clear" it at the start of every thread - or one user will interfere with another user.

Cheers
Bruce

10412
Hi Terry,

the docs are installed into
\clarion6\3rdparty\docs\nettalk

you'll notice some of the web htm files have a later date than the other docs.

Cheers
Bruce


10413
Web Server - Ask For Help / Re: Embed point for all fields
« on: November 28, 2008, 09:53:45 PM »
Hi Michelis,

I recommend you make a new routine containing the code, and then just add a call to that routine to the various form fields "validate" routines.

cheers
Bruce

10414
Web Server - Ask For Help / Re: Field validation and static pages
« on: November 28, 2008, 09:52:07 PM »
thanks Espen, I'll look into it.

Cheers
Bruce

10415
Web Server - Ask For Help / Re: Adding new NetWebServerWorker method
« on: November 28, 2008, 09:51:08 PM »
Hi John,

The parameter being passed into the browse or form or whatever, p_web, is prototyped as an object besed on NetWebServerWorker. So the compiler doesn't know about your extension - because you didn't pass the "derived class".

To do what you want you would need to create a new, derived, NetWebServerWorker in a clw and inc file, and then use that as the base class in the WebHandler, and also use that in the parameter list of the browses etc.

Or perhaps you can describe a bit more about _when_ you're planning to call this method. for example, it sounds like maybe it's just before, or just after the regular call to .SetView, in which case you could add the call, in the WebHandler, in the Setview call that is there.

Cheers
Bruce


10416
Web Server - Ask For Help / Re: Global, really? yikes
« on: November 28, 2008, 09:46:54 PM »
Hi Poul,

>> See bruce, your documentation does get read <g>

miracles...

Seriously though - there's no implication if you leave it off, and the app compiles ok. (Which it quite probably does.) If you get a compile error in the WebHandler about unknown functions then turn Generate Globally on.

so as long as it compiles you're ok.

Cheers
Bruce

10417
Web Server - Ask For Help / Re: Incorrect behavior on hide condtion
« on: November 28, 2008, 09:44:44 PM »
Hi John,

The trick is to make sure that the checkbox resets the hidden field.
But not _just_ resetting the VALUE but the PROMPT and COMMENT as well.
(If you go to the reset list, and click on the hidden field there you'll see what I mean).

Cheers
Bruce


10418
Web Server - Ask For Help / Re: Trying to use BUFFERS
« on: November 27, 2008, 11:22:26 PM »
Hi Michelis,

As of PR20 I've removed the BUFFERS setting completely as it caused really weird effects with SQL. I might experiment with it a bit and bring it back in later on.

Cheers
Bruce

10419
Web Server - Ask For Help / Re: SOAP Server: Empty xmlString string
« on: November 27, 2008, 11:19:40 PM »
Hi Greg,

Parameters passed via the request are automatically parsed out and stored in the Value queue.
A parameter can arrive in one of 3 ways;
a) as a cookie
b) as part of the URL - for example  www.capesoft.com?id=4 would result in p_web.GetValue('id') returning '4'.
c) as the "data" part of the Post - when it is in the format x=1&y=2&z=3 and so on.

As you can see your XML packet is really none of these. The data is clearly in the data pasrt of the post, but it's not using the HTML format. Rather it's just a big XML packet.
So clearly the above won't really help you.

But there are 2 approaches you can take.

a) the whole request is stored in p_web.RequestData.DataString. So you can parse that out by hand easily enough. typically you can find the start of the "data part" by searching for CR/LF/CR/LF. eg

x = instring('<13,10,13,10>', self.RequestData.DataString, 1, 1)

b) there is a special case handled as well. If the incoming request has the Content-Type item in the header set to 'text/xml' then the engine will automatically parse out the xml packet and place it in a special value (called 'xml').
In that case the big xml string is in p_web.GetValue('xml')

note that your packet below does _not_ include this header though so you would not be able to use this technique (unless you changed the request to include the content-type: header.)

One last thing worth mentioning :
GetValue does not look "inside" the xml packet at all - that job is for the XML class.

Cheers
Bruce

10420
Thanks.
Fixed PR 22.

Cheers
Bruce

10421
Web Server - Ask For Help / Re: PR20 Release Noi matching procedure error
« on: November 27, 2008, 10:32:51 PM »
please send me the app Terry.

Cheers
Bruce

10422
Web Server - Ask For Help / Re: Busy.gif position
« on: November 27, 2008, 10:30:47 PM »
Hi Michelis

I've just tested in the current build and the graphic seems to "stick" in the corner now.

Cheers
Bruce

10423
Web Server - Ask For Help / Re: Deleting problem
« on: November 27, 2008, 09:52:23 PM »
Hi Casey,

>> What is the best method for deleting the last selected record from a browse? 

to delete one record, yo can put either an inline delete button, or a button under the browse. Then the highlighted record is deleted.

>> Where is the browse selection saved

it's in the session value, of the component, of the unique key for the browse.
eg, if the browse is on Invoices, and the Unique key is Inv:IdKey, and the component is Inv:Id, then the "last selected record" is the current session value of
p_web.GSV('Inv:id')

Cheers
Bruce

10424
Web Server - Ask For Help / Re: Busy.gif position
« on: November 27, 2008, 07:57:41 AM »
It's set using CSS properties, so it'd be fiddly to bind it to a specific item on the window.

Yes, if you resize the browser window then it appears to move a bit - I might play with that to try and get it to bind itself to the bottom right corner.

Cheers
Bruce

10425
News And Views / Re: Version 4.31 PR 21 uploaded
« on: November 27, 2008, 12:20:58 AM »
PR21 is up. Fixed a bug in PR20 that affected IE users.
http://www.capesoft.com/ftp/public/prerelease/index.htm

Pages: 1 ... 693 694 [695] 696 697 ... 736