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 - kingja

Pages: [1] 2 3 ... 18
1
Web Server - Ask For Help / Re: File Upload NT 9.27
« on: May 20, 2017, 07:51:49 PM »
I'm still struggling with BLOBS.  Basically, when on the update form, the BLOB contents cannot be changed.  I can only fill the BLOB, via file upload, when doing an insert.  I need to be able to enter a partial record, without loading any data into the BLOB.  Then later, I want to upload to the BLOB.  This does not work after the initial insert.  Anyone have any ideas?

By the way, I sent an example app to Bruce and I'm awaiting a reply.  Thought I would ask here as well.

Thanks,

Jeff King

2
Web Server - Ask For Help / File Upload NT 9.27
« on: May 19, 2017, 08:25:18 AM »
I sometimes need to upload a revised version of a PDF document to a BLOB.  I can successfully upload the first version, but if I click on change and upload the revised version, the file name is changed but the actual contents of the BLOB are still the old version.  Note the file name usually is the same for the first and second version, but can sometimes change.  Any thoughts on how to get the BLOB to update properly?

Thanks,

Jeff

3
Web Server - Ask For Help / Re: Text Fields disapearing
« on: March 23, 2016, 11:58:14 AM »
Bruce,

     This seems to be fixed now, after I did a recompile.  I made a change to the text on the Change buttons, and maybe this forced a specific module recompile.  At this point it does seem to work in IE.  I'll follow up if it happens again.

Thanks,

Jeff

4
Web Server - Ask For Help / Re: Text Fields disapearing
« on: March 23, 2016, 11:31:31 AM »
Bruce,

     I'm using NT 9.06 and it does not seem to be fixed for me.  Specifically, this behavior is only in IE 11.  It works as expected with the latest Chrome and FireFox browsers.  Can you look into this again?

Thanks,

Jeff

5
Bruce,

    Thanks for the help so far.  I have accepted that we will not be able to print directly to a printer on the local machine.  Opening the PDF in a browser is a good solution and I have that working now.
    I still can't get the "ServeDocument" technique to work for me, so for now I'm using Javascript to open a new browser tab with the PDF.  Here is a sample of my code:

 Do CreatePDF  !!runs routine to fill pdf with data
 myURL = 'https://tumoroid.breasthealthcrisp.org/reports/'&Clip(myFileName)&''''
 myURL = ''''&myURL
 myScript = 'window.open('&Clip(myURL)&', ''_blank'');'
 p_web.script(myScript, 1)

    This works very well.  However, I would still like to get the ServeDocument method to work.  I think I have all the pieces of the puzzle, but not sure how to put it all together just yet.

    Now on to the Seiko Label printer.  Writing directly to it will not work.  The SDK does have a method for a "virtual printer driver", which creates an image of the label and copies this to the clipboard.  I think I might be able to grab this locally and print to the label printer.
    Another thought is to create a locally running app that contains a web service.  The web service could poll the data and download info for the label printer.  I want to print the labels just after a PDF form is printed.  I think this is going to be a challenge!  Anyone have any other suggestions for this phase of the project?

Thanks,

Jeff King

6
Bruce,

     I see what you mean now.  I am Ok with displaying the PDF in a browser first, and then letting the user print from there.  So, I have a method I think should work.  I have populated a variable with the full path to the PDF that is created in my reports folder.  I placed this variable in the URL field of the On Click tab for a button on my browse.
     I have a procedure routine created to  open a blank PDF and fill it in using QuickPDF.  The resulting PDF is sent to the reports folder.  The problem I have at this point is the page referred to in the URL is called and opened before my procedure routine code is run.  I have not been able to find the appropriate embed to call this routine from, before the URL page is opened.  Can you suggest how I might accomplish this? 

Thanks,

Jeff

7
Bruce,

     Thanks for the response.  When I say locally attached, I mean attached to the workstation.  I guess that can also mean attached to the browser running on the workstation as well.  My need is the following:  I want to print a PDF and associated labels, preferably without the user having to click "print" for each, but I would be OK with this approach.  The PDF is filled using QuickPDF and I have prototypes for the label printer SDK.  Some of the same data filled on the PDF will be printed on the labels.  I don't know if the SDK will work with JavaScript...I'll look into this.
     I'm looking at various articles on NetTalk Central about downloading files, and some of the example apps that also deal with downloads.  I'm struggling a bit to bring all this together.

Thanks,

Jeff

8
Thanks guys....turns out by placing the original blank PDF in the host.exe folder, it is now able to find it.  The filled PDF does indeed get sent to the web\reports folder of the Host.exe.

Now for a second question, if I label the newly created PDF with leading $$$, will it get removed automatically?

Thanks,

Jeff

9
I have  a new app added to my many dll apps hosted by the Host.exe app.  It runs fine but I have an issue.  In code I have added the QuickPDF library.  The idea is to use it to fill in a pdf before printing.  See the attachment for a sample of my code.

At the top of the code, I attempt copy a blank pdf to the web\reports folder, after renaming the pdf.  This does not seem to work...no pdf is copied to the reports folder.  This does work when I run the dll app as a local exe webserver.  Thus, I get an error from the QuickPDF.LoadFromFile method.  Is there a trick to writing to the web\reports folder?  I'm on C10.0.11987 and NT 9.06.

Thanks,

Jeff King


10
Web Server - Ask For Help / Re: NT 9.04 app, login/logout problems
« on: March 05, 2016, 01:55:44 PM »
Vinnie,

     Thanks, I went to version 9.06 and things seem to be correct now.

Jeff

11
Web Server - Ask For Help / NT 9.04 app, login/logout problems
« on: March 05, 2016, 11:07:24 AM »
     I created a new template generated NT 9 app.  I find that there is a problem with the login and logout procedures.  When I hover the cursor over the Login button on the menu, it does not change to the "finger pointer".  If I click this button, the login form does appear.  I enter demo/demo and I seem to be logged in.  However, the Logout button does not appear, it is still the Login button.  If I next click the home button, then the Logout button appears and the countdown counter shows in the lower right.  However, the Logout button does not do anything and the "finger pointer" cursor still does not show. 
     I have tried this app in IE 11 and the latest Chrome browser.  I have attached a zip with the app and dct files should anyone want to test this.  Can anyone tell me where the problem is?

Thanks,

Jeff King

12
Web Server - Ask For Help / NT 9 app, print to Seiko label printer?
« on: March 05, 2016, 08:42:38 AM »
I'm getting ready to try this but thought I would post to see if anyone has any thoughts...is this possible or not possible.  I have prototyped the functions for the Seiko SLP SDK and all works well in a standard desktop app.   I now want to see if a NT 9 app will be able to print to a locally attached Seiko SLP.  Anyone have any experience or thoughts on this?

Thanks,

Jeff King

13
Web Server - Ask For Help / NT 8 with NT 9
« on: December 07, 2015, 09:14:49 AM »
Bruce,

     I saw the ClarionLive webinar last Friday.  I have a copy of NT 9 but before installing, wanted to know if NT 8 and NT 9 can co-exist in my C10 installation.  I want to continue developing NT 8 apps, and ease on into NT 9.

Thanks,

Jeff

14
Web Server - Ask For Help / Re: Problem with Nettalk Central?
« on: June 29, 2015, 03:38:25 AM »
Thanks Bruce.  I mentioned redirect because the vendor of PacsOne indicated that the home.php script will redirect the user to login.php to get user credentials.  Their theory is this is not happening when running with NT.

Jeff


15
Web Server - Ask For Help / Re: Apache web server and Host.exe
« on: June 29, 2015, 03:34:09 AM »
Kevin,

The login.php file is in c:/pacsone/php.  All the php and js files for this app are in this folder.  I have made this folder the "web" folder in the templates, added it to my path and have full rights.  The app does run as expected when using Apache.  Still struggling to get it to work with NT.

The main reason I want to get it working in NT is so I can then compile it as a dll and the run it in the host.exe app.

Thanks,

Jeff

Pages: [1] 2 3 ... 18