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
I updated the NetTalk BasicBrowseAndForm example DCT to user SQLite2 file driver and am getting the error.  Attached is a zip file of the APP, DICT, and SQLite DB.  Try to update either record to see the error.

NT 14.36
DriverKit 1.06

2
I've got a NT14 webserver with a netwebbrowse / form based on a SQLite table using the new Driver Kit.  When I attempt to update a record, the form save returns an error message "creates duplicate record...."  I've attached a screenshot.  The browse and form both use a GUID field as their unique key.  Any suggestions on where to troubleshoot this?  Thank you.

I've done some additional testing....

Change the database driver to TopSpeed, recompile, netwebform functions fine
Change the database driver to SQLite (Softvelocity), recompile, netwebform funtions fine
Change the database driver to SQLite2 (DriverKit), recompile, netwebform presents "creates duplicate record" error

3
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?

4
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


5
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).

6
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.

7
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

8
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

9
Thank you.  I will give this a try.

10
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


11
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.

12
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

13
Thank you.

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

14
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()?

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

Pages: [1] 2 3 ... 8