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.


Topics - ianburgess

Pages: [1] 2 3
1
Web Server - Ask For Help / Customize error messages
« on: December 27, 2012, 01:54:44 AM »
In Nettalk web app (Nettalk 5) how can I customize the error messages that users get, eg. Creates Duplicate Key type messages?

2
Web Server - Ask For Help / Error in Site Javascript
« on: October 04, 2012, 12:42:43 AM »
I am using Nettalk V.5.32 and quite often a form or browse displays a red band at the top with "Error in Site Javascript" for a second prior to opening the page and working without problem. Is there any way of changing the wording or disabling this altogether?

3
After updating from NT5 to 6.44, I have a script that is called to display a message box in ValiodateAll of a form which previously worked ok:

embed:
p_web.Script('alert("Warning: You have not entered a Time at Patient - this entry will be treated as CANCELLED")')

Now, the message is displayed but on returning to the browse, the browse style is incorrect and the following text is displayed at the top:
HTTP/1.1 200 OK Date: Tue, 11 Sep 2012 17:16:03 GMT Server: NetTalk-WebServer/6.44 Expires: Mon, 12 Sep 2011 17:16:03 GMT Content-Type: text/html Cache-Control: no-store, no-cache, must-revalidate, private,post-check=0, pre-check=0, max-age=0 Pragma: no-cache Connection: close

What has gone wrong?

4
Web Server - Ask For Help / Problem with UK pound sign £ in PDF reports
« on: September 10, 2012, 07:54:28 AM »
If a user enters a UK pound sign £ into an entry field or text box, it displays fine on forms and browses, but when those fields are printed as part of a PDF report (using PDF Tools), the pound signs show as  Â£. I am using Arial in report and form.

Any thoughts?

5
Web Server - Ask For Help / Duration (in hh:mm) entry field
« on: September 09, 2012, 11:50:00 PM »
I need users to complete a "duration" field in the formatt of hh:mm, allowing up to 999 hours and I am wondering how best to do this.

The only two ideas I have come up with are:
1. Have separate hours and minutes fields - then duration needs to be calculated from them
2. Enter as a decimal and trap any decimal value over .59 and have a function that converts, eg. 1.30 to 1.50. I would also need to reverse the process to display durations.

Neither of the above is ideal - any suggestions welcomed.

Thanks

6
E-Mail - Ask For Help / Problem sending embedded images
« on: September 03, 2012, 01:57:51 AM »
I am forwarding an email by receiving it in NT and then sending it. It all works except for embedded images.

In the receive procedure I have ThisEmailReceive.OptionsDontSaveEmbeds = 0 which results in the embedded image being saved in the attachments folder as, for example, image001.png@01CD85C0.0BEE6400. However, this image is not being attached in the sending procedure as it is not listed in the attachment file list that is being passed from the receive procedure to the send procedure.

What do I need to do on the send side re this embedded image?

7
Web Server - Ask For Help / Scroll to top of form
« on: August 24, 2012, 04:36:49 AM »
I have a memory form which contains several browse procedures such that the form is always longer than the browser window. The problem is that it opens partly scrolled down and the user always has to scroll to the top.

I have determined that the following code (on a button) will scroll the form to the top: p_web.Script('window.scrollTo(0,0);')

What I want to do is embed this code somewhere so the form automatically scrolls to the top on opening (having populated the browses), but I cannot find an embed that works.

Anyone got any suggestions as to where to embed?

8
Web Server - Ask For Help / Interacting with a javascript "confirm" box
« on: August 23, 2012, 01:39:24 AM »
I can display a javascript confirm box using following:
p_web.Script('var r=confirm("Press a button"); if (r==true) {{x="You pressed OK!";} else {{x="You pressed Cancel!";}')

However, I am not sure how I could then act on the selection in my Clarion code?

9
Web Server - Ask For Help / Browse not displaying from top
« on: August 21, 2012, 07:13:46 AM »
I have a long browse (about 100 lines). When it  displays in the browser, the browser quite correctly uses a scroll bar to allow you to scroll up and down however, when the browse first displays, the view is about midway between the top and bottom and the user has to always scroll up to the top. How can I make it start at the top?

10
Web Server - Ask For Help / SendEmail on a new thread
« on: August 20, 2012, 04:30:20 AM »
I am using sendemail based on Nettalk example. In the example it says that the SendEmail procedure can be STARTed as the parameters are passed as a group. However I get compile errors when I compile if I try and STArt it.

SendEmail(email)  works fine

But, START(SendEmail, 25000, email) gives compile errors

11
Web Server - Ask For Help / Go to new page when when report run
« on: August 17, 2012, 06:19:20 AM »
I have a memory form which collects date range for a report and is set so the actions of the form run the Report procedure in a new tab (when the user clicks "Save" which is renamed as "Go").

This all works fine but I would like the memory form to close and for the HomePage to open when the user clicks Go (as well as opening the report in a new tab). I have tried embedding   p_web.Script(p_web.WindowOpen('HomePage')) but cannot find a place where it will not stop the report being run - effectively I need the report to run and then open the Homepage.

Any suggestions?

12
I want to be able to open a generated PDF report as a "file" so the browser gives option of saving or opening, but at present they all open in a new tab in the browser.

By contrast, if I open a URL of a static file (including PDFs) it opens as I want with the option to save or open.

How can I make a genearated PDF report open the way I want?

Thanks

Ian

13
Web Server - Ask For Help / File Upload - limit file size
« on: August 15, 2012, 07:22:12 AM »
How can I limit the filesize of a file upload in a webform, preferably before the file is uploaded, if it is larger than x bytes?

Thanks

Ian

14
Web Server - Ask For Help / Change font of text entry box
« on: August 15, 2012, 05:42:45 AM »
I have a text entry box which is being displayed in the browser in a fixed font (Courier maybe?). How can I change the font to something else? I see a CSS tab but what would I put in which field?

Thanks

Ian

15
Web Server - Ask For Help / "Are You Sure" message box
« on: August 14, 2012, 09:04:06 AM »
I want to pop up a message box with a YES and a NO button to get user response before processing continues. Is there an easy way of doing this or do I need to create a popup "Form"?

Thanks

Ian

Pages: [1] 2 3