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

Pages: 1 2 [3] 4 5 6
31
Web Server - Ask For Help / Web Services and Javascript
« on: October 18, 2014, 10:09:22 AM »
     I have successfully created a simple web service (NT 8.23, C9.1.11242) to return two dates, after sending an ID Number parameter.  Here is an example call:

http://127.0.0.1:88/GetExpirationDate?IRBNumber=Pro999999
http://127.0.0.1:88/GetApprovalDate?IRBNumber=Pro999999

I now want to access the service from JavaScript code embedded in a PDF document.  I want to get each of the returned dates (stings formatted @D02) into a variable that can be used in the remaining JS code.  I am currently searching for HTTP requests using JS but thought someone with JS experience could provide some example code to do this.

Thanks,

Jeff

32
Web Server - Ask For Help / StringTheory FromBlob
« on: October 11, 2014, 04:49:47 PM »
I have tried to use ST to get the contents of a Blob into a sting.  I use:

st.FromBlob(XYZ:BlobField)

I have tried many different embeds with no luck.  Specifically, after uploading a PDF to a target Blob, which works as expected,
I want to load it into a string so I can do further processing.  The string object is blank...I try looking at it using message(st.GetValue()).  I have tried in Post Insert embed.  Does the file need to be explicitly opened in order to access the Blob?  I have tried Access:myFileOpen() and Access:myFile.UseFile() but still no luck.

Thanks,

Jeff

33
I'm trying to do some post processing on files sent to the upload folder.  I can't figure out how to refer to them.  Here is a sample of my code in the Post Insert embed:

st2.LoadFile(p_web.site.WebFolderPath&'\ExpirationJS.txt')
Message(st2.getvalue())

L# = QuickPDF.LoadFromFile('\web\Uploads\'&Clip(Con:Consent_Name), '')
Message(L#, 'Load File')

E# = QuickPDF.LastErrorCode()
Message(E#, 'Error')

O# = QuickPDF.PageJavaScriptAction('O', st2.GetValue())
Message(O#, 'Insert Script')

QuickPDF.SaveToFile('\web\Uploads\'&Clip(Con:Consent_Name))
st3.LoadFile('\web\Uploads\'&Clip(Con:Consent_Name))
st3.ToBlob(Con:Consent_File)

This has not worked for me.  Where have I gone wrong?

Thanks

34
Web Server - Ask For Help / Process PDF file after upload
« on: October 09, 2014, 08:01:22 AM »
I would like to do some post-processing of a PDF file after uploading to a BLOB.  I want to add some JavaScript to the PDF using the QuickPDF library and the PageJavaScriptAction method.  Currently, uploading to the BLOB works very well. 

I wonder if there is a way to intercept the PDF before it is put into the BLOB.  Or perhaps I need to re-create the PDF file from the BLOB, process it with QuickPDF and then put it back into the BLOB.  I need to do this on both the initial insert or on an update, if a new version of the PDF is available.  I'm on NT 8.23, C9.1.11242.

Thanks,

Jeff

35
Web Server - Ask For Help / intermittent update when returning to browse
« on: September 30, 2014, 07:11:04 PM »
I have a small NT 8.23 app (C9.1.11242) that seems to update intermittently.  That is, when I go to the form, make a change and then save, sometimes the change is made when retuning to the browse, other times it is not.  I can click on a header field to cause the browse to update or click on close.  I expect the browse to reflect the updated data when I return to it.  Any thoughts?

Thanks,

Jeff

36
Web Server - Ask For Help / Multi-site host issue
« on: September 25, 2014, 08:02:20 PM »
Bruce,

I have multi-site host working well with 10 apps.  I'm trying to add a new one and it causes the host.exe to crash with no specific error message.  I have the prototypes set correctly as per your Multi-Site host docs.  I have set the tables in the WebHandler ProcessLink embed.   I'm using C9.1.11139 with NT 8.23.  All dll apps and the host are compiled using NT 8.23.  Still, I can't determine what the problem is.  I have attached a zip of the app and dct.  Hopefully you can tell me where I went wrong.

Thanks,

Jeff

[attachment deleted by admin]

37
Web Server - Ask For Help / Select button issue
« on: August 28, 2014, 09:30:30 PM »
Bruce,

     In a NT 8.23 app I have a browse with the select button set.  When I call it from a menu, the select button is correctly hidden.  When I next call it from a look up button, the select button is correctly displayed.  Now, with all subsequent calls to the same browse from a menu, it retains the select button.
     I have tried using the loc:act variable and the condition on the select button, but so far have had no success.  How can I get the Select button to only display when the browse is used as a lookup?

Thanks,

Jeff

38
Web Server - Ask For Help / Pop-up browse issue
« on: August 25, 2014, 04:54:03 PM »
Bruce,

     I like to create what I call a "secondary menu" and display it to the right of a browse.  The secondary menu is a NetWebSource procedure with the menu template added.  The secondary menu is set as a child of the parent browse in the browse template settings.  This works, as long as I don't call the browse as a pop-up.  If I do call the browse as a pop-up, then the child secondary menu does not display.  Can you think of a work-around for this?

Thanks,

Jeff

39
Web Server - Ask For Help / Log date incorrect on running server
« on: August 12, 2014, 05:46:00 PM »
Bruce,

     I have a C9.1.11139 NT 8.23 app running on an external server.  Looking at the log I see incorrect dates.  Please see the attached image "server.png".  I also see the same symptom on the app running locally (local.png).
     I have changed the date format of the log browse and have the Date Picture field in the settings tab set to @D02B.  Thoughts?

[attachment deleted by admin]

40
Web Server - Ask For Help / NT 8.23 C9.1.11139 SSL issue
« on: August 10, 2014, 03:52:47 PM »
I converted a C9 NT 7 app to C9.1, NT 8.  This is a standalone exe using SSL.  The app compiles and runs fine on my server.  However, when trying to connect using IE 11, I get the following error:

"...online but isn't responding to connection attempts."

I have the 4 SSL files in the app folder, all version 1.0.1.7, with msvcr90.dll.
I can ping the server.
Version 9 of the app runs on this server.
All dll's seem to be installed, including those in the ship list.
The new 9.1 app runs on my development machine and I can connect via 127.0.0.1.

I don't know what else to check.  Can anyone help?

Thanks,

Jeff

41
Web Server - Ask For Help / file upload
« on: August 05, 2014, 08:16:36 PM »
I'm just starting with the file upload control, C9.1.11139, NT 7.39.  I'm finding nothing in the web uploads folder, although the control indicates a successful upload. 

My C9.1 environment is in a VM running Windows 7 pro.  I run the server in this same VM along with IE 11 to test the app, using 127.0.0.1:88.  I suspect a firewall issue but so far have not found the problem.  Any thoughts?

Thanks,

Jeff

42
Web Server - Ask For Help / menu items remain after logout
« on: August 04, 2014, 12:02:52 PM »
I have a NT 7.39 app (C9.1.11129) with two drop down menu items that are set "user must be logged in".  Upon logging out these menu items remain.  I would like these to go away immediately upon log out.  Pressing F5 (refresh) causes then to go away but I would think this should be automatic.  I have also tried using the condition:  p_web.GetSessionLoggedIn() = 1 but this does not solve the issue.  Have I missed something here?

Jeff

43
Web Server - Ask For Help / iPad screen size
« on: July 01, 2014, 09:03:19 AM »
     I have a NT app the user will run primarily on an iPad.  Based on a bit of searching I found the following recommended "safari safe" sizes:  Portrait: 750x920,  Landscape: 1010x660. 
     Any one have experience here?  What would you recommend me to set my NT app screen sizes to?  In addition, is it possible to dynamically change from portrait to landscape mode?  In my limited experience, if the NT screen fits nicely in landscape, when switched to portrait there will be "white-space" at the bottom.

Thanks,

Jeff

44
Web Server - Ask For Help / conditionally set width of form
« on: June 21, 2014, 09:50:41 PM »
Bruce,
     I have three tabs on a form.  The second tab has fields and an image to the right.  This is the app you helped me with on the newsgroup.  The form width is set at 950 px, so the fields and image display on tab 2.  However, this leaves significant white space to the right on tabs 1 and 3.  Is there a way to set the width to say 500 when tab 1 or 3 is selected but then set the width to 950 when tab 2 is selected?

Thanks

45
Web Server - Ask For Help / Change text of Insert button on browse
« on: January 21, 2014, 12:59:50 PM »
I have tried the following:

p_web.site.InsertButton.textvalue = 'something new'.

I have tried many embeds with no luck.  How can I change the text of the Insert button on a specific browse (without affecting other browses)?

Thanks,

Jeff

Pages: 1 2 [3] 4 5 6