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.
16
Web Server - Ask For Help / Media field type question, part 3
« on: August 19, 2024, 10:46:57 AM »
Hello all,
I have the Media field type working pretty well now. However, I would like to be able to hide or disable certain functions on the Media field menu/tool bar. For example, I don't want the user to be able to print or save the viewed PDF. Is it possible to control these menu/tool bar options?
Thanks,
Jeff King
I have the Media field type working pretty well now. However, I would like to be able to hide or disable certain functions on the Media field menu/tool bar. For example, I don't want the user to be able to print or save the viewed PDF. Is it possible to control these menu/tool bar options?
Thanks,
Jeff King
17
Web Server - Ask For Help / Solved - Re: Media field type on tabbed form, questions, part 2
« on: August 18, 2024, 04:20:45 PM »
Hello all,
The memory form I created had the Form Source field set to Memory instead of Table. Changing this to Table and setting the actual target file, solved this issue. I can now do Insert, Change and Delete when calling the update procedure.
Thanks,
Jeff King
The memory form I created had the Form Source field set to Memory instead of Table. Changing this to Table and setting the actual target file, solved this issue. I can now do Insert, Change and Delete when calling the update procedure.
Thanks,
Jeff King
18
Web Server - Ask For Help / Solved - Re: Media field type on tabbed form, questions, part 1
« on: August 18, 2024, 04:16:29 PM »
Hello everyone,
After reading page 189 in the 4th ed. of the NetTalk book, it was revealed that the upload folder will always serve files for download (save). So, I created a reports folder and serve my PDF documents from there. They now display in the Media filed as expected.
Thanks,
Jeff King
After reading page 189 in the 4th ed. of the NetTalk book, it was revealed that the upload folder will always serve files for download (save). So, I created a reports folder and serve my PDF documents from there. They now display in the Media filed as expected.
Thanks,
Jeff King
19
Web Server - Ask For Help / Media field type on tabbed form, questions, part 2
« on: August 17, 2024, 05:12:44 PM »
Hello,
In part 1 of this topic, I mentioned I had the Media field type on a tab, of a multi-tab form, to display a PDF document. This works but is a bit cumbersome, moving between the PDF tab and other tabs where data is to be entered. Instead, I would like the Media field to display the PDF document to the right of the tabs on the form.
The only way I can think to do this, is to create a memory form, and place two procedures on it. One for the actual tabbed update form and one for the display of the PDF in a Media field. I have this memory form called by the corresponding browse and it does look good. However, the update form on this memory form, does not do Inserts, Changes, or Deletes. Is there a way to code this to properly update my target file from the memory form? I'm looking at the "Browseless Form" section in the NetTalk book, but so far I have not made this work.
Thank you,
Jeff King
In part 1 of this topic, I mentioned I had the Media field type on a tab, of a multi-tab form, to display a PDF document. This works but is a bit cumbersome, moving between the PDF tab and other tabs where data is to be entered. Instead, I would like the Media field to display the PDF document to the right of the tabs on the form.
The only way I can think to do this, is to create a memory form, and place two procedures on it. One for the actual tabbed update form and one for the display of the PDF in a Media field. I have this memory form called by the corresponding browse and it does look good. However, the update form on this memory form, does not do Inserts, Changes, or Deletes. Is there a way to code this to properly update my target file from the memory form? I'm looking at the "Browseless Form" section in the NetTalk book, but so far I have not made this work.
Thank you,
Jeff King
20
Web Server - Ask For Help / Media field type on tabbed form, questions, part 1
« on: August 17, 2024, 04:57:54 PM »
Hello everyone,
I have placed a Media field type on the last tab of a multi tab form. The idea is to allow the user to view a PDF of a report, from which they will do manual data entry. The source of the PDF documents is in the uploads folder under the web folder. The Media control will only download the PDF document and not display it. However, if I place the PDF documents directly in the web folder, they do display as expected. On the Media field's Media tab, I set the URL to the following:
'\uploads\'&p_web.GSV('InvPHI:Patient_ID')&'.pdf'
When I put the PDF's in the web folder, I use the following:
p_web.GSV('InvPHI:Patient_ID')&'.pdf'
The same thing happens in the example app web74. Can anyone offer a solution? I really want the PDF's to be in the uploads folder, or some other custom folder, not in the web folder.
Thank you,
Jeff King
I have placed a Media field type on the last tab of a multi tab form. The idea is to allow the user to view a PDF of a report, from which they will do manual data entry. The source of the PDF documents is in the uploads folder under the web folder. The Media control will only download the PDF document and not display it. However, if I place the PDF documents directly in the web folder, they do display as expected. On the Media field's Media tab, I set the URL to the following:
'\uploads\'&p_web.GSV('InvPHI:Patient_ID')&'.pdf'
When I put the PDF's in the web folder, I use the following:
p_web.GSV('InvPHI:Patient_ID')&'.pdf'
The same thing happens in the example app web74. Can anyone offer a solution? I really want the PDF's to be in the uploads folder, or some other custom folder, not in the web folder.
Thank you,
Jeff King
21
Web Server - Ask For Help / Re: File Upload button on MemForm
« on: May 28, 2024, 12:05:43 PM »
Hi Bruce,
In preparing the example app web26, I found a solution. I simply created a local variable (string) and used this in the Field name on the field tab of the File Upload button. It now uploads the selected file to the uploads folder.
Thanks,
Jeff
In preparing the example app web26, I found a solution. I simply created a local variable (string) and used this in the Field name on the field tab of the File Upload button. It now uploads the selected file to the uploads folder.
Thanks,
Jeff
22
Web Server - Ask For Help / File Upload button on MemForm
« on: May 23, 2024, 04:12:36 PM »
Hi Bruce,
I'm trying to use a MemForm, with a single FileUpload button on it, to upload files to the web\uploads folder. The web log does show the POST /dataupload event but the actual file is not in the uploads folder. I have tried this running a local exe and also from a server using a dll with the multi-site host.
I have run the example app, which uses a normal NetWebForm, and the file does get uploaded properly. Is it possible it won't work with a MemForm?
Thanks,
Jeff King
I'm trying to use a MemForm, with a single FileUpload button on it, to upload files to the web\uploads folder. The web log does show the POST /dataupload event but the actual file is not in the uploads folder. I have tried this running a local exe and also from a server using a dll with the multi-site host.
I have run the example app, which uses a normal NetWebForm, and the file does get uploaded properly. Is it possible it won't work with a MemForm?
Thanks,
Jeff King
23
Web Server - Ask For Help / Re: mac version of chrome gives snap error 11 with drop down lists (NT 14.20)
« on: April 27, 2024, 09:55:25 AM »
Hello all,
My co-worker received a message about a new version of Chrome and he updated. This seems to have fixed his issue.
Jeff
My co-worker received a message about a new version of Chrome and he updated. This seems to have fixed his issue.
Jeff
24
Web Server - Ask For Help / Re: mac version of chrome gives snap error 11 with drop down lists (NT 14.20)
« on: April 25, 2024, 08:47:04 AM »
Hi Bruce,
My co-worker did go through the steps outlined in the Learn More link, but still has the issue. I asked him to check the Java Script console for error messages but have not heard back. Stay Tuned!
Jeff
My co-worker did go through the steps outlined in the Learn More link, but still has the issue. I asked him to check the Java Script console for error messages but have not heard back. Stay Tuned!
Jeff
25
Web Server - Ask For Help / mac version of chrome gives snap error 11 with drop down lists (NT 14.20)
« on: April 24, 2024, 12:45:04 PM »
Hello all,
I have a co-worker who is running NetTalk 14.20 web apps from his MAC with the latest Chrome browser. When he clicks on a drop list he gets the Chrome "Aw Snap" error 11 message. See attached image. The app does work as expected with Safari on this same MAC. In addition, the app works as expected on his Windows 11 machine. Anyone have any thoughts on the cause and a fix?
Thanks,
Jeff King
I have a co-worker who is running NetTalk 14.20 web apps from his MAC with the latest Chrome browser. When he clicks on a drop list he gets the Chrome "Aw Snap" error 11 message. See attached image. The app does work as expected with Safari on this same MAC. In addition, the app works as expected on his Windows 11 machine. Anyone have any thoughts on the cause and a fix?
Thanks,
Jeff King
26
Web Server - Ask For Help / Re: API problem, NT 14.20
« on: April 11, 2024, 11:02:58 AM »
Bruce,
After looking at the source, I have come up with this: set jsonParameter.SetMaxPrefixLength(1) in the Before Loading Parameter embed:
! Start of "Json Setup"
! [Priority 5000]
! End of "Json Setup"
if json.LoadString(strjson) = jf:ok
json.SetTagCase(jf:CaseAsIs)
do FreeQueue:PatientEnrollment
Clear(q:PatientEnrollment)
jsonParameter &= json.GetByName('PatientEnrollment')
if not jsonParameter &= Null
jsonParameter.SetRemovePrefix(true)
jsonParameter.SetMaxPrefixLength(Len('Enr') + 1)
jsonParameter.SetPrefixChars('_')
jsonParameter.SetTagCase(jf:CaseAsIs)
jsonParameter.SetGroupName('PatientEnrollment')
! Start of "Before Loading Parameter"
! [Priority 5000]
jsonParameter.SetMaxPrefixLength(1) !my code here, set to either 1, 2 or 3
! End of "Before Loading Parameter"
jsonParameter.Load(q:PatientEnrollment)
! Start of "After Loading Parameter"
! [Priority 5000]
! End of "After Loading Parameter"
Should this fix my prefix issue?
Thanks,
Jeff
After looking at the source, I have come up with this: set jsonParameter.SetMaxPrefixLength(1) in the Before Loading Parameter embed:
! Start of "Json Setup"
! [Priority 5000]
! End of "Json Setup"
if json.LoadString(strjson) = jf:ok
json.SetTagCase(jf:CaseAsIs)
do FreeQueue:PatientEnrollment
Clear(q:PatientEnrollment)
jsonParameter &= json.GetByName('PatientEnrollment')
if not jsonParameter &= Null
jsonParameter.SetRemovePrefix(true)
jsonParameter.SetMaxPrefixLength(Len('Enr') + 1)
jsonParameter.SetPrefixChars('_')
jsonParameter.SetTagCase(jf:CaseAsIs)
jsonParameter.SetGroupName('PatientEnrollment')
! Start of "Before Loading Parameter"
! [Priority 5000]
jsonParameter.SetMaxPrefixLength(1) !my code here, set to either 1, 2 or 3
! End of "Before Loading Parameter"
jsonParameter.Load(q:PatientEnrollment)
! Start of "After Loading Parameter"
! [Priority 5000]
! End of "After Loading Parameter"
Should this fix my prefix issue?
Thanks,
Jeff
27
Web Server - Ask For Help / Re: API problem, NT 14.20
« on: April 11, 2024, 08:44:43 AM »
Bruce,
Could you explain how to do this and where? I have tried numerous embeds. Also, in the API, what is the name of the JSON object. I'm not sure how to proceed here.
Also, there are other fields in the table that use an underscore character, but they get assigned properly. However, they all have more than 3 or 4 characters before the underscore character. Is the problem here because BCS_Status has only three characters before the underscore?
Thanks,
Jeff
Could you explain how to do this and where? I have tried numerous embeds. Also, in the API, what is the name of the JSON object. I'm not sure how to proceed here.
Also, there are other fields in the table that use an underscore character, but they get assigned properly. However, they all have more than 3 or 4 characters before the underscore character. Is the problem here because BCS_Status has only three characters before the underscore?
Thanks,
Jeff
28
Web Server - Ask For Help / API problem, NT 14.20
« on: April 10, 2024, 12:18:47 PM »
Hi Bruce,
I have an API set up. An app in California is the client, sending data to a target tps file called Enrollment.tps on a remote server. Numerous fields are loaded with data but one is not. It is called BCS_Status. In looking at the log in the Multi-site host (this app is a dll app) I do see the JSON, which shows the data is there. See the attached image. It shows: "BCS_Status":"DRTBeforeSurgery", circled in blue.
Using TPSSCAN I view the Enrollment table and see the BCS_Status field is blank. All other fields contain data as expected. I don't understand why this field is not assigned. My API is set up with the Parameters tab with just the Enrollment table added. The Returns tab just has two fields inserted. I'm only allowing this API to do an Insert action.
I can use Postman to send data to this API and all fields are filled in.
Any thoughts as to why just one field is not filled when it does show in the JSON?
Thanks,
Jeff King
I have an API set up. An app in California is the client, sending data to a target tps file called Enrollment.tps on a remote server. Numerous fields are loaded with data but one is not. It is called BCS_Status. In looking at the log in the Multi-site host (this app is a dll app) I do see the JSON, which shows the data is there. See the attached image. It shows: "BCS_Status":"DRTBeforeSurgery", circled in blue.
Using TPSSCAN I view the Enrollment table and see the BCS_Status field is blank. All other fields contain data as expected. I don't understand why this field is not assigned. My API is set up with the Parameters tab with just the Enrollment table added. The Returns tab just has two fields inserted. I'm only allowing this API to do an Insert action.
I can use Postman to send data to this API and all fields are filled in.
Any thoughts as to why just one field is not filled when it does show in the JSON?
Thanks,
Jeff King
29
Web Server - Ask For Help / Re: Login window not centered
« on: March 29, 2024, 08:00:24 AM »
Richard,
Yes, that is correct...I have mine set the same. However, post a screen shot of the CSS Classes tab so we can see where you have called your custom class. See the screen shot from my previous post as a sample.
Jeff
Yes, that is correct...I have mine set the same. However, post a screen shot of the CSS Classes tab so we can see where you have called your custom class. See the screen shot from my previous post as a sample.
Jeff
30
Web Server - Ask For Help / Re: Multi-Site host question
« on: March 29, 2024, 07:52:11 AM »
Hi Bruce,
Thanks, not a big problem for me as I only update NT versions periodically or if there is something new I need...like the partial save button fix in NT 14.20.
Thanks,
Jeff
Thanks, not a big problem for me as I only update NT versions periodically or if there is something new I need...like the partial save button fix in NT 14.20.
Thanks,
Jeff