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 - Alan Cochran

Pages: 1 [2] 3 4
16
Hi Folks,

Sorry about that....  Please use this zip file instead.  I also replaced the previous zip file with the correct one as well.

Alan

[attachment deleted by admin]

17
Hi All,

I have attached an updated version of the BasicWithLogin(3) app that shows "Currently Logged In" users on the WebServer procedure.  There are 3 additional tables in the "Settings" dictionary that I use to accomplish this.  (WebUser, WebLog and WebLogOL).  The WebLogOL table is used as a temporary file that is created when the WebServer opens.  There is only one user created in the WebUser table  as "demo" and password is "demo.  

The 3 procedures to look are WebServer, WebHandler and LoginForm.  In the WebServer procedure, the timer is set to 1000 (10 seconds).  

I hope this is helpful and if you have any comments, questions or any recommendations, please let me know.  I used Clarion8 to generate this app.

Regards...
Alan



[attachment deleted by admin]

18
I have expanded the WebServer procedure with a tab "Currently Logged In" in a couple of my projects. It wasn't much work to do.

When the user logs in, I use a TPS file to keep a history of users with their logged in / out date and time info.  And I use an In-Memory table to show Logged in Users in the "Currently Logged In" tab. So if I ever need to restart the program, I don't have to handled the management of records in the table.  I am using a timer on the WebServer procedure to refresh the window.

I will upload a scaled down version of one of my apps by next week to show what I have done.  I also plan to add a NetWebBrowse procedure to show "Currently Logged In" users so anyone with administrator rights can view this on the web instead of having to go the server. 

Alan

[attachment deleted by admin]

19
Don,

I have that code in as well but it doesn't work for machines running XP with IE8 when running a report from an other button on a netwebbrowse.

Alan

20
Don,

It seems the majority of our customers are using XP/IE8.  I hope there will be a fix soon as it will be hard to require them to use some other browser as they have to get permission from their upline folks.  Plus it looks bad on us.

After looking at this app using NT4 and NT5 back from 2010, the report worked fine with IE8.  So it is definitely a NT6 issue.

Alan

21
Hi folks...
My customers are still reporting issues when generating a PDF and viewing it on IE8 from a browse.  They get a blank page.

What I have found is when they click the Print button, the URL displays
http://www.watersystems.com:4025/RptFinalBill?__Referer__=http%3A//www.watersystems.com%3A4025/SelectFBCustomer&_bidv_=NI6NkwKp&PressedButton=print_btn

but...

if I run it under IE9, I get in the URL http://www.watersystems:4025/RptFinalBill?_bidv_=NI6NkwKp&PressedButton=print_btn which displays the report correctly.

The way this process works, is they select a resident to process a final bill from the browse, the select button calls a NetWebForm procedure to verify the amounts are correct.  Once they click the Generate button, it runs a source procedure to generate the transactions and then returns back to the NetWebBrowse procedure.  Base on a condition, the Select button is hidden and a Print button appears.  When they press the Print button, it runs the Report (using PDFTools 4.1) procedure  to generate the report, create the saved PDF file and places it under FinalBill folder under the Web folder. 

If anyone has any suggestion, I would appreciate it.  I didn't have this issue with NT5.
Alan

22
Web Server - Ask For Help / Re: IE8 Printing to pdf
« on: March 07, 2012, 04:48:53 AM »
I didn't have this problem in NT5 but once I converted my app to NT6, I was having the same issue that you came across.  I have placed the following in the Target Frame under the On-Click tab to resolve the issue:

CHOOSE(p_web.UserAgent='msie8','_self','_blank')

HTH...
Alan

23
Web Server - Ask For Help / Re: IE8 Not displaying pdf reports revisited
« on: February 24, 2012, 01:04:27 AM »
Hi Kevin,

Thanks for the suggestion on running a trace on the embed of the CHOOSE.  It showed that IE8 was being used when my test XP/IE8 machine accessed it.  Just to be safe, I went ahead and did a recompile of the app and rebooted the server.   Now a report that is called from a button on a Browse will open on the same window if using IE8 and other browsers will open a new window/tab.  So for the time being, this will work.  But I would like to have a new window/tab open when a IE8 browser if used.  As I mentioned before, this worked using NT5.

Maybe Capesoft can do an internal test.

Again, thanks...
Alan

24
Web Server - Ask For Help / Re: IE8 Not displaying pdf reports revisited
« on: February 23, 2012, 12:32:49 PM »
Just an update...

1) I have set target to CHOOSE(p_web.UserAgent='msie8','_self','_blank') but it still runs the report in another window if the browser is IE 8.  I even tried replacing 'msie8' to 'msie 8' but get the same result.

2)  Once the report runs, I get a blank window. But if I highlight the URL line and press enter, then the report displays in the window.  This only happens on machines running XP and IE8.   This report is being called from a button on a browse.  On the General tab, the action is set to "Other" and on the Properties tab, I have set type to "Button" but have also tried it as a "Submit" button as well.  Also, the "Include Row ID field" is checked and "Include Action" is unchecked.

3) I am only seeing this problem if I run the report from a browse.

I still would like the reports to run in their own tab or window using '_blank'.

Any suggestions to resolve this is greatly appreciated.

25
Web Server - Ask For Help / Re: IE8 Not displaying pdf reports revisited
« on: February 23, 2012, 11:00:15 AM »
Hi Bruce,

Is there a fix that will allow IE8 to use _blank as a target.  I am having multiple clients calling about this problem after upgrading from NT5 to NT6.21.  For the time being, I will use what you mention previous with the CHOOSE option.

Regards...
Alan

26
Web Server - Ask For Help / Re: Button as menu item
« on: March 06, 2011, 07:37:32 AM »
Jorge,
Take a look at Web Server FAQ #4 in the documents, this might be what you are wanting. Of course, you will need to do a conditional based on status of button.  Also, on the form, you can go to the Advanced Tab since you are going from Button (Menu) to form without a browse to set the default action with a key value.

Alan

27
Web Server - Ask For Help / Re: Template error 5.17
« on: March 03, 2011, 03:35:23 PM »
Niels,

I was able to compile and run example 1.  Using C7.3 v 7995 and NT 5.17 

Alan

28
Web Server - Ask For Help / Auto-Lookup on Insert on Form Problem
« on: January 27, 2011, 11:09:02 PM »
Hi Bruce,

I am having an issue when I have the Auto-Lookup on Insert checked for a field where after it brings over the value from the Lookup Table and  after completing the other fields, the record is never inserted into the table.  But if I uncheck the Auto-Lookup on Insert option, and recompile, then the record is inserted into the table once they manually click on the select button.  Currently I am running Clarion 7.2 and NT 5.12.  This is an app that I converted from Clarion 6.3 and NT 4.55. 

One thing that I noticed in the source code was there is nothing in the AutoLookup Routine.  Have you ran into this before or a fix for this option?  I would like my customers to not have to manually press the lookup button to call the SelectLocation procedure.

TIA,
Alan

29
Web Server - Ask For Help / JQuery Calendar Feature in NTWS Needed
« on: November 18, 2010, 08:22:55 AM »
Hello All,

Since HotDates is not NTWS compatible as of yet, is there a JQuery Calendar feature that is recommended for use?  I need to ability to display events in a calendar format in NTWS.  Any recommendations is appreciated.

Thanks...
Alan

30
Web Server - Ask For Help / Re: pr35 and access error
« on: November 10, 2010, 12:34:54 PM »
I had copied the web folder into my website prior to getting that error but will do it again. If I continue to get the same error then I will zip up the information and email it to you later today or tomorrow.

Thanks...
Alan

Pages: 1 [2] 3 4