NetTalk Central

Recent Posts

Pages: 1 ... 5 6 [7] 8 9 10
61
Web Server - Ask For Help / Search field in the header
« Last post by wasatchconsulting on April 15, 2024, 08:50:01 AM »
How can I place a search field in the header area of the site with the menus. I would like the search always available to the user.

NetTalk 14.18

Ken Watts
62
Web Server - Ask For Help / Re: API problem, NT 14.20
« Last post by jking 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
63
Web Server - Ask For Help / Re: API problem, NT 14.20
« Last post by jking 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
64
Web Server - Ask For Help / Re: Different menu if they log on from mobile phone.
« Last post by rjolda on April 11, 2024, 08:26:13 AM »
HI Osquiabro,
That is exactly my intent.  From mobile phone, I have 3 activities that they will do.  Going to create a separate MemForm with those three buttons.  Thanks for the info.
BTW, I sent you a message through Net Talk messaging on site to see if you do any consulting.  I am going to need a little help with getting the mobile version of my web app going.
Thanks,
Ron
65
Web Server - Ask For Help / Re: Download file from menu
« Last post by Bruce on April 10, 2024, 09:50:16 PM »
I'm away for a few days Sean, but will investigate on my return.
66
Web Server - Ask For Help / Re: API problem, NT 14.20
« Last post by Bruce on April 10, 2024, 09:49:04 PM »
I bet it's the only field in the table that uses an underscore?

What's happening is that the engine is seeing the BCS_ part as a prefix, and removing it.
The solution is either to work with that, or tell it to stop.

The easiest way to tell it to stop is to set the MaxPrefixLength property for the JSON object to be 1,2 or 3. It defaults to 4, (including the separator) which is why it's seeing this. You could also change the separator character (which is being set to _ as I recall).

Bruce
67
Web Server - Ask For Help / Re: Download file from menu
« Last post by seanh on April 10, 2024, 03:38:58 PM »
Hi Alberto,
I give it the full path name, and yes it's in the web folder.

It look like there is indeed a size problem that I'll try and pinpoint.  It all works with smaller files.
68
Web Server - Ask For Help / API problem, NT 14.20
« Last post by jking 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
69
Web Server - Ask For Help / Re: Different menu if they log on from mobile phone.
« Last post by osquiabro on April 10, 2024, 04:58:20 AM »
for mobile or web is more simple create a buttons in memory form and in custom.css for responsive button

.NavigateMenu {
  background-color: whitesmoke;
  color: black;
  padding: 14px 20px;
  margin: 8px 0;
  cursor: pointer;
  width: 100%;
  opacity: 0.9;
  border-radius: inherit;
  display: block;
  font-size: x-large;
  height: auto;
  background-image: none;
  --bs-border-opacity: 1;
  border-color: black;
  border-radius: unset;
}
70
Web Server - Ask For Help / Re: Download file from menu
« Last post by Alberto on April 10, 2024, 04:16:34 AM »
Hi, in what path are the file you want to be downloaded?
It MUST be under the web folder.
Pages: 1 ... 5 6 [7] 8 9 10