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

Pages: [1] 2 3 ... 27
1
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

2
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

3
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

4
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

5
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

6
Web Server - Ask For Help / Re: Login window not centered
« on: March 28, 2024, 04:08:50 PM »
Richard,

     Jane is correct, see the attached image to see where I added my custom class in the login form template.

Jeff

7
Web Server - Ask For Help / Re: Login window not centered
« on: March 28, 2024, 09:46:18 AM »
Hi Richard,

     I'm working on some NT 14.20 apps today and noticed the same.  Try pressing CTRL-F5, this clears the browser cache and resets things.  Working here to center the login screen.

Jeff

8
Web Server - Ask For Help / Multi-Site host question
« on: March 26, 2024, 05:30:14 AM »
Hi Bruce,

     I have the multi-site host running on two servers.  One host has 8 dll apps running, the other has two dll apps running.  All this runs great.  However, when there is a new version of NetTalk posted, I must recompile the multi-site host and all individual apps with the same version of NetTalk.  Then, copy the dll's and web folders to each server.  This is becoming very time consuming.  Will it ever be possible to mix NT versions of apps in the future?  Or, is there a way to do this now?

Thanks,

Jeff King

9
Hi Bruce,

     Just a quick note that 14.20 has solved the issue with the Partial Save button.  Thanks!

10
Bruce,

     Thanks!  I'll try 14.20 as soon as it is released.

Jeff

11
Hi Bruce,

     I was able to duplicate the issue in the Web1 example app.  I have attached a zip file with the app, dct and tps files needed.

I added a GUID field to the mailbox.tps file and set it as unique.  In the Validate Insert, 2Inside embed I coded to set the GUID.  I added a Partial Save button to the MailboxesFormControl.

To duplicate the error message, Insert a new record with the Mailbox form, and click the Partial Save button twice. 

That should do it.

Thanks for looking at this.

Jeff

12
Hi Bruce,

     I have been experimenting with the Partial Save button added with NT 14.17.  I have a GUID field in my tables, which is set as unique.  This causes a problem: 

     When adding a new record the form is in insert mode.  Clicking the Partial Save button saves the record, including the GUID field and sets the form to change mode.  Upon clicking the Partial Save button again (while in change mode), an error pops up about a duplicate key on the GUID field. 

    Maybe I can add code to change the GUID when using the Partial Save button, but this does not seem to be a good idea.  For now, I have set the Partial Save button to be disabled when in insert mode.  Any thoughts on how to handle this issue better?

Thanks,

Jeff

13
Osquiabro,

     I have this working now.  I am doing the refresh in the GotFocusBack/End embed as follows:

      do refresh::Enr:BCS_Status
      do refresh::Enr:BCS_Upstaging
      do refresh::Enr:DCISionRT_Upstaging

For some reason, this embed was not "firing" earlier in my testing.  Works as expected now.

Thanks,

Jeff



14
Hi Ron,

     Thanks for your input.  I have tried both the regular table based form and the memory form.  Still, I don't see how to refresh the two fields on the main form, after closing the pop-up form.  I'll keep working on this.

Jeff

15
Hello all,

     Using NT 14.19.  I have a form that displays many fields from a table called surgery.  Two fields are also displayed at the bottom, from another table (enrollment), in view only mode, as seen in the attached image.  The custom button on this form calls a "browse less" form as a pop-up, on the enrollment file.  On this form, the two fields can be edited.  Upon returning to the calling form, the fields are not updated.  I would like them to update as soon as returning from the pop-up.  I have tried calling a Do refresh::My:Field from the GotFocusBack embed without success.  How can I refresh the two fields or the entire form when retuning from the pop-up?

Thanks,

Jeff King

Pages: [1] 2 3 ... 27