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

Pages: [1] 2 3 ... 8
1
Web Server - Ask For Help / NetWebForm- Change Password
« on: March 10, 2023, 03:15:13 PM »
NT12.55

I have a memory form with 3 string fields: Old Password, New Password1, New Password2.  Using a password generator a user tried to change their password to fx^i*q-tXP3DM,rur}W&#t

When leaving the NewPassword1 and NewPassword2 field NetTalk removes the &#t from the end of the password.

I seem to remember that there was a template setting to allow HTML and unsafe HTML but can't find it anywhere for a string field.  The Wizard generated LoginForm does allow for that password to be used.  I'm just stuck trying to see what is different on the LoginForm and my form.  Any suggestions?

2
Web Server - Ask For Help / NT12.55 NetDemo Compile Error
« on: March 03, 2023, 07:27:39 AM »
unmodified app compile error: ThisSendEmail.AuthToken = pEmail.pToken


3
In a NetWebForm, if I set a blob field to be required the generated code causes a compile error.

Generated Code
---------------------------------------------
ValidateValue::MyBlobField  Routine
          If MyBlobField = ''
            loc:Invalid = 'MyBlobField'
            MyBlobField:IsInvalid = true
            if not loc:alert then loc:alert = p_web.translate('Message to Send:') & ' ' & p_web.site.RequiredText.
          End
          do OpenFiles
          If loc:invalid = '' then p_web.SetSessionValue('MyBlobField',MyBlobField).

4
Thank you all for your responses.  I've added code to the server side that loads the additional field into a session value, which triggers when a drop option is selected, as recommended in this thread.

5
NetWebForm

for the DROP field there is the Value field, description field, and you can add additional fields to the view.  I have added an additional field to the view and want to use that value to then hide/unhide other fields on the form.  From my testing it does not appear that NT is writing the DROP record fields to Session values.  Would it be possible to add a DROP template option to write the selected DROP record fields to Session values?

David
NT12

6
Web Server - Ask For Help / NT12.52 - opening file error in DebugView
« on: December 21, 2022, 07:16:02 PM »
Since upgrading from NT12.50 to NT12.52 I am seeing the following errors in DebugView.  They don't appear to be causing any issues... but.  I added the 3 dots in in the path to reduce length.

[7484] [st] [netTalk][thread=4] Error [-1:2] opening file: C:\...\web\-browsemsglogcontainer_value
[7484] [st] [netTalk][thread=4] Error [-1:2] opening file: C:\...\web\browsemsglogcontainer-browsemsglogcontainer_value
[7484] [st] [netTalk][thread=4] Error [-1:2] opening file: C:\...\web\-updateservice_value

7
Thank you.  I will give this a try.

8
Web Server - Ask For Help / NT12 - Copy-To-Clipboard Button for Fields
« on: April 10, 2022, 07:28:50 AM »
Is there a built-in copy field to clipboard button in NT12?  If not, what code would I need to make this work in both browses and on forms?

Thank you,
David


9
When setting a conditional display for a field in a browse it appears that applying the css for the color is increasing the column width on either side.  This has the affect of shifting the columns on either side of the colored column.  This then makes the browse grid wavy.  Attached screenshot of effect and the conditional display screen.

Also, the Wizarded default footer doesn't handle more than about 10 browse rows.  This can also be seen in the screenshot.

10
NT 11.30

The documentation says that "token" is automatically included in the client app ServerSync procedure when sending the data to the server.   When I look at the logs on the server I see that "token" is indeed included without any value.   How do I set the value of Token?  I do not see it as a local variable in the ServerSync procedure and I don't see it as a template option.  I can add "token" to the Custom Fields but then "token" is included twice.

Thank you.
David

11
Thank you.

Does .Start() also include .SetAllHeadersDefault() ?

12
Using the WebClient .SetValue() I add several parameters and then fetch the URL.  How do I clear the internal list of parameters that were added with SetValue()? 

I tried:
MyWebClient.Start()


If I first run this
MyWebClient.SetValue('parm1', 'my text')
MyWebClient.Fetch('http://someurl')

Then after the PageReceived I run this
MyWebClient.Start()
MyWebClient.SetAllHeadersDefault()
MyWebClient.Fetch('http://someotherurl')

I can see in the logs that parm1 was added to the fetched URL.  I can probably solve this with MyWebClient.DeleteValue('Parm1') but was wondering then what .Start() was for.  And if I do a .Start() do I still need to do .SetAllHeadersDefault()?

13
Thank you.  Once I linked the Parameters to the local variables everything compiled.

14
Bruce, any suggestions on where to look?

15
NT11.04, Clarion 11

After reading the docs :-) I added a Sync procedure, using the Wizard, and then tried adding a SyncAccounts procedure using ServerWebServiceMethodWizard.  The generated code for CheckForToken is missing information.  I went through the wizard a few times to make sure I wasn't missing anything and then went trough the "Actions" tab to see if anything obvious was missing.  Below is the generated code.  You can see that the ExistsValue('') and GetValue('') are missing information.  There is a line where the left side of the = is missing.  Is there something I need to add to a setting or is this a bug?

CheckForToken  routine
! Start of "Start of CheckForToken Routine"
! [Priority 5000]

! End of "Start of CheckForToken Routine"
    ! before getting started check to see if there is a token for the session ID
    If p_web.xml = 0 and p_web.json = 0 ! incoming parameters are just url encoded, either in the URL, or as post data, or as a cookie.
      If p_web.IfExistsValue('') then  = p_web.GetValue('').
    ElsIf p_web.xml = 1
      Clear()
       = strxml.between(p_web.Nocolon(lower('<token>'),Net:SingleUnderscore+Net:NoSpaces),p_web.Nocolon(lower('</token>'),Net:SingleUnderscore+Net:NoSpaces))
    ElsIf p_web.json = 1
      json.Start()
      json.RemovePrefix      = false  ! token field won't be in a structure, so no concept of prefix, so no need to remove it.
      json.ReplaceColons      = true
      json.ReplacementChars  = '_'
      strjson.SetValue(p_web.GetValue('_json_'))
      json.SetTagCase(jf:CaseLower)
      if json.LoadString(strjson) = jf:ok
        Clear()
         = json.GetPropertyValue('token',1)
      Else ! jf:error
        p_web.AddServiceError(Error:InvalidJson,'SyncAccounts', '', json.error,'Review JSON data and correct it.')
      End
    End
    if
      p_web.SessionID =
      p_web.TouchSession()
    end

Pages: [1] 2 3 ... 8