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 ... 711 712 [713] 714 715 ... 736
10681
Web Server - Ask For Help / Re: File Upload
« on: May 02, 2008, 03:18:08 AM »
Hi Wesley,

the generic answer is that the files are probably arriving as a POST, in which case you need to handle the post correctly. Possibly by making a procedure, possibly by tweaking the WebHandler procedure.

To be more specific I'd need to see the script, or at the very least the log entry of the file arriving...

Cheers
Bruce


10682
Web Server - Ask For Help / Re: Filters and locaters using MSSQL
« on: May 01, 2008, 12:01:46 AM »
Hi Anthony,

Ok, it's possible something is wrong with the locator. Try the positional locator and see if that works? (just as a test).

You don't mention what data files you are using - but if TPS I'd be very keen if you could send me the sample app, dict & data...

cheers
Bruce

10683
Web Server - Ask For Help / Re: Filters and locaters using MSSQL
« on: April 30, 2008, 07:24:42 AM »
Hi Anthony,

you can ignore Alan's reply. He posted it to the wrong thread. It was aimed at a different thread. You'll just have to forgive him. He's from, um, well, New Zealand, and they do things differently there  ;)

With regard to your filter, there's nothing wrong with it that I can see. The only recommendation I'm make is to drop the Clip. All NetWeb methods, that return a string, return the string already clipped for you.

'HDH:txCOMID = ''' & p_web.GetSessionValue('SV:CompanyRecID') &''''

Given that the filter looks ok, perhaps tell us more about your locator.What locator type are you using?

cheers
Bruce

10684
Alan Telford posted another answer for you as well (he just got the thread wrong.) See below...

http://www.nettalkcentral.com/index.php?option=com_smf&Itemid=36&topic=288.0;topicseen

Try the above link. It is a slightly different problem, but the solution is the same, in that you need to embed some code in the _SendFile method of the WebHandler procedure.

I have a static link with a name of "datasmart_importsales_sample.csv" which I want to ensure has the option of SAVE AS.
The following is code in my _SendFIle method.

  case SELF.GetPageName(Lower(p_FileName))
  of  'datasmart_importsales_sample.csv'
    p_filename = filepathonly(p_filename) & filenamenoextension(p_filename)
  end

Use the idea and adapt for your needs.
Regards,
Alan
PS Also try a search on _SENDFILE in this forum for other threads on this topic.

10685
Hi Thomas,

The server does not specify the name to the browser. The browser "asks" for a name, and ultimately this is the name it uses, since it thinks it's getting what it asked for. As far as I know there's no way to tell the browser "hey, you asked for page xyz, but I'm sending you abc.exe instead."

That said, I don't know for sure that it's impossible. Maybe there's something in the header which one could use to override the name. I'll do some research with google...

Cheers
Bruce


10686
Web Server - Ask For Help / Re: Having some filter problems
« on: April 28, 2008, 11:32:46 PM »
Hi Mike,

When in doubt always use the session value. The filter should be...

ThisView{prop:Filter} = 'DEA:Category = '''&p_web.GSV('CAT:Category')&''' '

Cheers
Bruce

10687
Web Server - Ask For Help / Re: Default Button on a Form
« on: April 23, 2008, 11:59:01 PM »
Hi Paul,

We creep ever closer to the root of the problem.
Perhaps the issue is not a "Default Button" issue, but a "Focus" issue?

The default button is the button pressed when the user hits Enter - assuming of course they are on an entry field at the time. If a button has focus, then pressing enter will press that button. What does the form look like - perhaps post a screen shot so we can see.

Cheers
Bruce



10688
Web Server - Ask For Help / Re: I'm lost with Logout
« on: April 23, 2008, 10:49:34 PM »
Hi Thomas,

No problem with the questions. Good luck with the demo. Alas I'm on leave on Friday so if you have late-breaking questions hopefully others will answer.

>> 1. I think the user remains after re-login within the same session...
yes, the log-in and logout does not change the session (this is by design.)

>> Can I "FREE" the session queue with one single method call ?
yes. Although theres no real need for you to do this. However if you want to then I'd do;
p_web.DeleteSession();
p_web.NewSession()

The second call might not be necessary, but I'd recommend it if the user is basically gonna carry on using the page.

>> Do I need other kind of housekeeping in this case ?

nope.

Cheers
Bruce

10689
Web Server - Ask For Help / Re: 2 menu bars
« on: April 23, 2008, 05:09:37 AM »
Hi Gregg,

You've got a menu attached to the browse procedure.
Alas that's not supported - at least not yet.
Menus can be attached to a NetWebPage, or NetWebSource procedure.
And the netweb source can then be set as the "header tag" for the browse if you like.

Cheers
Bruce

10690
Web Server - Ask For Help / Re: Default Button on a Form
« on: April 23, 2008, 05:06:09 AM »
Obviously one thing to check is that only one button has the "default button" option ticked.

Cheers
Bruce

10691
Web Server - Ask For Help / Re: I'm lost with Logout
« on: April 23, 2008, 05:04:56 AM »
Login procedure
top of the GenerateForm routine should be a good place.

Cheers
Bruce

10692
Web Server - Ask For Help / Re: Default Button on a Form
« on: April 22, 2008, 10:53:38 PM »
Perhaps send me the app Paul. I'm not sure why you're getting the effect you're seeing. I'm guessing that it's something fairly simple.

cheers
Bruce

10693
Hi John,

Yes, it's fairly straight-forward to do this using a combination of NetTalk and xFiles.
In practice, it's a lot easier than you might think to pull this off.

There are a number of SOAP server, and client, examples in both NetTalk and xFiles.
Once you get the hang of this it's remarkably easy to do - so certainly not worth learning a whole other language for.

If you need specific help just shout.

cheers
Bruce

10694
Web Server - Ask For Help / Re: 2 menu bars
« on: April 22, 2008, 04:57:08 AM »
It's come through Gregg, thanks, I'll keep you posted.

Cheers
Bruce

10695
Web Server - Ask For Help / Re: Default Button on a Form
« on: April 22, 2008, 02:21:48 AM »
Hi Paul,

Are either, or both, of the buttons "submit" buttons?

And, um, how does a default button "show" in the browser? I've not seen a difference (visually) between the default button and any other button. At least I don't think I have...

Cheers
Bruce


Pages: 1 ... 711 712 [713] 714 715 ... 736