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

Pages: 1 [2] 3 4 ... 20
16
Web Server - Ask For Help / Re: How to refresh a page when triggered
« on: February 23, 2021, 01:18:52 AM »
Thanks Bruce, it works.

Where can I read about p_web.script('location.reload();')?

Thys

17
Web Server - Ask For Help / Re: How to refresh a page when triggered
« on: February 22, 2021, 09:08:34 PM »
Hi Bruce.

  • A model selection at the top (in page header) governs everything displayed thereafter - like a master filter over all browse controls.
  • After a user has logged in, a dashboard is displayed with stats etc. related to the selected model.
  • Every browse control opened now uses this model selection as a primary filter.
  • What I need, is when the user selects another model, the dashboard needs to be opened with the stats of the new selection.

Attached is a screen shot to give you an idea.

Thanks Bruce.

18
Web Server - Ask For Help / How to refresh a page when triggered
« on: February 22, 2021, 02:20:24 AM »
Hi,

I have an always-present drop list in a header control. When the user changes its selection, I would like to reload the IndexPage using the selection as a filter.

It's easy to detect the new selection in the drop list control. But I'm not sure how to refresh the IndexPage from there. Any help please?

Thanks
Thys

19
Thanks Burce, found it. I'm not sure why it changed, must have been by accident..

20
Hi,

I got this problem in NT 11.11, but after installing 11.18, the problem is still there. So I guess it's something in the app that causes the problem.

When compiling the app, I get the error Unknown Variable "%nIncludeMethod". I tried to find the spot in the template where this variable is defined, but could only get it in NETWEB.TPW where it is used. No other file in that folder contains any reference to the variable.

Is there a setting in the app or IDE to define the variable?

Thys

21
Thanks Don. I confirmed yesterday that it works correctly this way to add multiple header values.

22
Hi,

Just to make sure, when I setup multiple headers in a NetWebClient object, is the following correct?

net.CustomHeader = 'Content-Type: application/json<13><10>Authorization=1234'

Content-Type and Authorization being the two headers to set up.

Thys

23
Hi Bruce.

I expect the value of ORG_GUID to be displayed, which currently it's not as shown in red in the response.

My question about extra code, was maybe to change something that the guid is shown. I think that p_web.RecordIdentifier(Organisation) is the call to get the guid. Maybe additional code would help to get the correct value and not a blank?

Thys

24
Hi,

I remember that some time ago I reported that by adding an attribute to a DCT column in the External Name, caused problems. The templates used the full external name that includes the attribute, which is wrong.

Attached is a screenshot of such a setup, where the "guid" column in the Organisation table has an External Name value of "guid |READONLY" to instruct the Clarion db driver not to attempt to add a new guid, but let the db do the work. It now seems as if the NetTalk code doesn't return the guid (a PK value) for a newly inserted record in the response:

{
    "dbOrganisation_response": {
        "ServiceResults": [
            {
                "RESULTACTION": "insert",
                "RESULTTABLE": "Organisation",
                "RESULTRECORDID": "ORG_GUID=",
                "RESULTDESCRIPTION": "success"
            }
        ]
    }
}


Is there another way to get the new guid value? I know Clarion has a way by using PROP:ServerAutoInc. But this also needs additional code which the NetTalk template probably does not have. I really can't remember that it was necessary to do all of this just to get the newly insert guid back, so for now I assume it has to do with the columm attribute in the DCT.

Thanks
Thys

25
Hi,

We send out emails in HTML format with images embedded as base64 within the HTML body. In some email client apps (like Outlook) it works fine, but not in Windows Mail - where the image is simply not shown. Here is a sample of the code I use:

ntSMTP.from = smtp:From
ntSMTP.replyTo = smtp:ReplyTo
ntSMTP.toList = grp.RecipientList
ntSMTP.subject = grp.Subject
ntSMTP.attachmentList = LocProc.SetupAttachmentList (grp.AttachmentList)
ntSMTP.messageHtmlST.SetValue (grp.Body)
ntSMTP.ProcessHTMLForImages (GLO:UploadsPath)
ntSMTP.messageTextST.SetValue ('')
ntSMTP.SendMail (NET:EMailMadeFromPartsMode)


Is there maybe some tweak needed for all mail client apps to show the images?

I'm using C11 with NT11.

Thys

26
Ok, I see that the value comes from the data variable description - I missed that.

Thanks Bruce.

27
Hi,

I get errors in the code that a NetWebServiceMethod generates. In the first attached image, it shows the settings for an input parameter. In the second attached image, it shows where a compile error happens.

Firstly, the text in the generated code is different from the text I have in the parameter. The text used to be 'Last ID (exclusive) from where response is read.' and it is now 'Last Vehicle ID from where response is read.' - which looks like the template "saves" old value in some way or another.

Secondly, the code has two single quotes on each side which shouldn't be like that.

I've tried all of the normal things - like deleting CLW, OBJ etc. - with no improvement. Any suggestions?

Thanks
Thys

28
Web Server - Ask For Help / Re: NetTalk 11 template variables?
« on: May 23, 2019, 12:09:58 AM »
Thanks Bruce.

Yes, there was ONE method that had another procedure listed as the web service - it was marked as the next one in the list which was another method procedure.

Some other problems now occur, which I'll address in another post.

Thys

29
Web Server - Ask For Help / Re: NetTalk 11 template variables?
« on: May 22, 2019, 02:16:52 AM »
There is no syncing done from this app.

The options are presented in the Documentation tab of the NetWebService template dialog box. But there is no way to "switch it off" - the errors are generated for any combination of values that are chosen. So it seems to be something inherently missing in the template.

Thys

30
Web Server - Ask For Help / Re: NetTalk 11 template variables?
« on: May 21, 2019, 09:38:25 PM »
I found the variables in NETWEB.TPW and they seem to be part of the NetWebService template.

Any idea how I can get my app compiled without these errors, please?

Pages: 1 [2] 3 4 ... 20