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.
1
Web Server - Ask For Help / Re: NetWebServiceMethod
« on: May 04, 2026, 08:22:05 AM »
Thanks Jane, that makes sense regarding using the client.
At the moment I'm testing directly in the browser just to validate the behaviour of the template.
I'm using the TestFileParameter method from Example 77 with:
Return Type = View
View Table = Customer
However, even with data in the Customer table, the response is empty:
<TestFileParameter_response></TestFileParameter_response>
So I'm trying to confirm:
Should this example return Customer records without additional parameters?
Does the VIEW require specific parameters or filters to trigger data retrieval?
Also, even when I add _json_=1 to the URL, the response remains XML ? so I'm trying to understand whether that's expected when using a browser, or if something in my configuration is missing.
I'll test with a client as suggested, but I'd like to first confirm the expected behaviour of the example itself.
At the moment I'm testing directly in the browser just to validate the behaviour of the template.
I'm using the TestFileParameter method from Example 77 with:
Return Type = View
View Table = Customer
However, even with data in the Customer table, the response is empty:
<TestFileParameter_response></TestFileParameter_response>
So I'm trying to confirm:
Should this example return Customer records without additional parameters?
Does the VIEW require specific parameters or filters to trigger data retrieval?
Also, even when I add _json_=1 to the URL, the response remains XML ? so I'm trying to understand whether that's expected when using a browser, or if something in my configuration is missing.
I'll test with a client as suggested, but I'd like to first confirm the expected behaviour of the example itself.
2
Web Server - Ask For Help / Re: NetWebServiceMethod
« on: May 04, 2026, 08:20:40 AM »
Thanks for the suggestion Sean,
I did try to force JSON via ContentType, but I ran into compile issues ? it seems like setting ContentType directly (e.g. net.ContentType or p_web.ContentType) is not available in a NetWebServiceMethod.
From what I understand, NetTalk should handle the response format via template settings or request negotiation.
I also tested:
http://127.0.0.1:88/TestFileParameter?_json_=1
But the response still comes back as XML.
Is setting ContentType manually actually supported in this context, or should JSON output be controlled purely via the template and request?
I did try to force JSON via ContentType, but I ran into compile issues ? it seems like setting ContentType directly (e.g. net.ContentType or p_web.ContentType) is not available in a NetWebServiceMethod.
From what I understand, NetTalk should handle the response format via template settings or request negotiation.
I also tested:
http://127.0.0.1:88/TestFileParameter?_json_=1
But the response still comes back as XML.
Is setting ContentType manually actually supported in this context, or should JSON output be controlled purely via the template and request?
3
Web Server - Ask For Help / NetWebServiceMethod
« on: April 30, 2026, 01:09:47 PM »
Hi Guys,
I'm working with NetTalk WebServer and using a NetWebServiceMethod procedure.
I can successfully call the endpoint and the procedure executes, but I'm struggling to get a JSON response to return in the browser. Currently, the request runs, but the response is blank when JSON is selected.
I have:
A queue defined for return (Q)
JSON enabled in the template
ServiceMethod populating the queue
However, it seems like the JSON branch in BuildResult / BuildResultFields is not being generated or executed.
My questions:
Is there a recommended example app or webinar showing a working NetWebServiceMethod returning JSON?
Should JSON responses for queues be handled purely via template, or is manual handling (e.g. AddJSONFromQueue) expected?
Is there a standard pattern for returning simple JSON (without queues)?
Any guidance or working example would be appreciated.
I'm working with NetTalk WebServer and using a NetWebServiceMethod procedure.
I can successfully call the endpoint and the procedure executes, but I'm struggling to get a JSON response to return in the browser. Currently, the request runs, but the response is blank when JSON is selected.
I have:
A queue defined for return (Q)
JSON enabled in the template
ServiceMethod populating the queue
However, it seems like the JSON branch in BuildResult / BuildResultFields is not being generated or executed.
My questions:
Is there a recommended example app or webinar showing a working NetWebServiceMethod returning JSON?
Should JSON responses for queues be handled purely via template, or is manual handling (e.g. AddJSONFromQueue) expected?
Is there a standard pattern for returning simple JSON (without queues)?
Any guidance or working example would be appreciated.
4
Web Server - Ask For Help / Re: Refresh Browse after Post Update
« on: April 16, 2026, 11:14:55 PM »
Thank you Jane ;-)
5
Web Server - Ask For Help / Refresh Browse after Post Update
« on: April 15, 2026, 12:23:07 AM »
Hi Everyone,
Is there an option / way to refresh records in a NWB after applying some code (record changes) in the "Post Update" of the NWF updating the browse.
Is there an option / way to refresh records in a NWB after applying some code (record changes) in the "Post Update" of the NWF updating the browse.
6
Web Server - Ask For Help / AI / machine learning
« on: August 08, 2025, 12:15:57 AM »
Hi Everyone,
More and more clients are asking for AI adoption in the Clarion.
Whether this will be possible, and up to which extent.
Any previous discussions perhaps on this topic?
More and more clients are asking for AI adoption in the Clarion.
Whether this will be possible, and up to which extent.
Any previous discussions perhaps on this topic?
7
Web Server - Ask For Help / Re: Refresh NWB Header
« on: May 22, 2025, 01:22:22 PM »
Thank you Osquiabro,
I've tried what you've suggested, but the memory-form does not seem to get focus - after a record is added in the NWB under the memory-form.
Thus GotFocusBack embed is not firing. Any ideas?
I've tried what you've suggested, but the memory-form does not seem to get focus - after a record is added in the NWB under the memory-form.
Thus GotFocusBack embed is not firing. Any ideas?
8
Web Server - Ask For Help / Re: Refresh NWB Header
« on: April 30, 2025, 04:25:03 AM »
Thank you Alberto, Osquiabro,
I tried this approach also, putting the NWB inside a memory form.
But I can't get the value on the memory form to refresh with the latest record added to the NWB.
How do you refresh the value? As the control-name does not show up to refresh from the NWB side.
Maybe I am missing something?
I tried this approach also, putting the NWB inside a memory form.
But I can't get the value on the memory form to refresh with the latest record added to the NWB.
How do you refresh the value? As the control-name does not show up to refresh from the NWB side.
Maybe I am missing something?
9
Web Server - Ask For Help / Re: Refresh NWB Header
« on: April 28, 2025, 08:32:47 AM »
Thank you Bruce,
I will make an example app,
It is however very simple, for every record inserted into the NWB by the user, the total no of records (or quantities captured by the user) must show in the NWB HTML "header".
I need to show the total in the top (header) section, thus cannot use column totalling.
I will make an example app,
It is however very simple, for every record inserted into the NWB by the user, the total no of records (or quantities captured by the user) must show in the NWB HTML "header".
I need to show the total in the top (header) section, thus cannot use column totalling.
10
Web Server - Ask For Help / Re: Refresh NWB Header
« on: April 25, 2025, 01:19:17 AM »
Hi Bruce,
Kindly see attached for the HTML section for the NWB.
Regards
Rupert
Kindly see attached for the HTML section for the NWB.
Regards
Rupert
11
Web Server - Ask For Help / Re: Refresh NWB Header
« on: April 22, 2025, 02:30:54 AM »
Thank you Niels,
I have not yet updated hostvalues via WebSocket.
Are you able to give me a little direction?
I have not yet updated hostvalues via WebSocket.
Are you able to give me a little direction?
12
Web Server - Ask For Help / Refresh NWB Header
« on: April 21, 2025, 09:39:41 AM »
Hi All,
I have a value in the NWB header.
I would like to "refresh" this value, every time a new record is added via the NWF.
I tried enabling the option "Refresh Header on Save", but the NWF hangs when this option is selected.
Is there another way to refresh the value in the NWB header?
I have a value in the NWB header.
I would like to "refresh" this value, every time a new record is added via the NWF.
I tried enabling the option "Refresh Header on Save", but the NWF hangs when this option is selected.
Is there another way to refresh the value in the NWB header?
13
Web Server - Ask For Help / Re: Google picking up documents from web folder
« on: November 11, 2024, 11:43:26 PM »
Hi Bruce,
Thank you, it is files which the users upload as supporting documents which we are storing in a documents sub-folder contained in the web folder.
When I try to browse those files, I am not able to. Thus a malicious user would need to know the full file-name of the file to get to it? Or is there another way?
I maybe wrong, but would imagine that Google indexed the file whilst it was being opened / viewed by a user in Chrome.
Is there a way to project files in the web folder?
Or if the web folder is always publicly accessible, should I put the files outside the web folder, and change my user-procedure that it opens from local disk and not via URL?
Thank you, it is files which the users upload as supporting documents which we are storing in a documents sub-folder contained in the web folder.
When I try to browse those files, I am not able to. Thus a malicious user would need to know the full file-name of the file to get to it? Or is there another way?
I maybe wrong, but would imagine that Google indexed the file whilst it was being opened / viewed by a user in Chrome.
Is there a way to project files in the web folder?
Or if the web folder is always publicly accessible, should I put the files outside the web folder, and change my user-procedure that it opens from local disk and not via URL?
14
Web Server - Ask For Help / Re: Google picking up documents from web folder
« on: November 10, 2024, 09:21:02 AM »
Hi Guys,
Google suggests to add a META tag to the HTTP header of the page which calls the PDF's
"X-Robots-Tag: noindex"
Is the correct place to add this META tag under the xHTML tab of the NWB
After heading ?
Google suggests to add a META tag to the HTTP header of the page which calls the PDF's
"X-Robots-Tag: noindex"
Is the correct place to add this META tag under the xHTML tab of the NWB
After heading ?
15
Web Server - Ask For Help / Google picking up documents from web folder
« on: November 08, 2024, 12:24:09 AM »
Hi Guys,
We have a NT web server with SSL, site security, and users must be logged on to access the web server.
Google somehow managed to access documents from the "web" folder, and published links to these online.
Is there a way to block / stop this, as it is a serious security concern for the customer.
We have a NT web server with SSL, site security, and users must be logged on to access the web server.
Google somehow managed to access documents from the "web" folder, and published links to these online.
Is there a way to block / stop this, as it is a serious security concern for the customer.