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: GUID Question
« on: June 26, 2024, 11:14:03 AM »
In the same table, that is.
2
Web Server - Ask For Help / Re: Using String Theory "StartsWith" in a report
« on: March 17, 2024, 11:40:02 PM »
Hi,
I think you should assign the value of PRO: name to the StringTheory object, like: st.setvalue(PRO:name)
Then do:
if st.startswith(loc:value) then cyle end , or
if st.startswith(p_web.gsv('loc:value')) then cycle end , (depending on the fact if loc:value is a sessionqueue value or not).
I do not understand your loop construction but i guess you can figure that out. (All I see is a SET with no NEXT ).
I also have doubts on whether the server side code is the right place for your filter but as far as the "startswith" is concerned, I think that is the way to do it.
Kind regards,
Ren?
I think you should assign the value of PRO: name to the StringTheory object, like: st.setvalue(PRO:name)
Then do:
if st.startswith(loc:value) then cyle end , or
if st.startswith(p_web.gsv('loc:value')) then cycle end , (depending on the fact if loc:value is a sessionqueue value or not).
I do not understand your loop construction but i guess you can figure that out. (All I see is a SET with no NEXT ).
I also have doubts on whether the server side code is the right place for your filter but as far as the "startswith" is concerned, I think that is the way to do it.
Kind regards,
Ren?
3
Web Server - Share Knowledge / Re: Chrome ERR_INVALID_HTTP_RESPONSE
« on: February 14, 2024, 10:59:58 PM »
Hi Jane,
In my quest for a solution why my HTML page did not show in the browser, your work-around provided me with a solution.
I.e. a solution that made it possible to move forward without using packet.savefile(file) to inspect the result of my operations.
Thanks again.
Ren? Simons
In my quest for a solution why my HTML page did not show in the browser, your work-around provided me with a solution.
I.e. a solution that made it possible to move forward without using packet.savefile(file) to inspect the result of my operations.
Thanks again.
Ren? Simons
4
Web Server - Ask For Help / Apple appears to no longer support PWAs on iOS in iOS 17.4 for EU users
« on: February 08, 2024, 11:10:19 PM »
Hi,
On feb 8, 2024, tweakers.net published the following article (translated using Google Translate):
This might be of interest for anyone creating PWA's for use in the EU.
Apple appears to no longer support PWAs on iOS in iOS 17.4 for EU users
It appears that Apple no longer fully supports progressive web apps, or PWAs, within iOS. The problems only seem to affect users within the European Union.
PWAs are apps built with technologies for the web, but provide a similar experience to a platform-specific app. This means, for example, that apps get their own icon on the home screen, often open in full screen, can offer their own UI and can be distributed via the App Store.
However, in a beta of iOS 17.4, which was released earlier this month, that process has changed considerably. Already in the first beta version of the operating system, it was noticed that PWAs no longer open at the top level, but in Safari. In fact, they are a kind of shortcuts, said James Moore of the Open Web Advocacy last week.
Initially it was suspected that it was a bug, but there was no solution from Apple. There is now a second beta of iOS 17.4, in which the problem still occurs. Mysk, a company that specializes in app development for iOS, also notes that a pop-up has even been added, stating that the app will now open in the default browser. This does not seem to be a mistake, but a conscious choice on Apple's part. The company has not yet said anything publicly about this.
Mysk further emphasizes that only users within the European Union are affected. This may have to do with the European legislation Digital Markets Act (DMA), which Apple must comply with from March 7, Mysk researchers told The Register. Until now, only Safari supported PWAs on iOS, but under the upcoming law that is not allowed. Then PWAs must be able to run in all browsers, or in no browser at all.
"The browser had to create a component called 'service worker' to run PWAs," the Mysk researchers said. According to them, it appears that Apple has not been able to find a way for other browsers to create their own service workers. "The only way to comply with the DMA before the deadline is to disable PWAs in all browsers. Now all browsers are equal." Apple has not yet responded and was not immediately available for comment.
Cheers,
Rene Simons
On feb 8, 2024, tweakers.net published the following article (translated using Google Translate):
This might be of interest for anyone creating PWA's for use in the EU.
Apple appears to no longer support PWAs on iOS in iOS 17.4 for EU users
It appears that Apple no longer fully supports progressive web apps, or PWAs, within iOS. The problems only seem to affect users within the European Union.
PWAs are apps built with technologies for the web, but provide a similar experience to a platform-specific app. This means, for example, that apps get their own icon on the home screen, often open in full screen, can offer their own UI and can be distributed via the App Store.
However, in a beta of iOS 17.4, which was released earlier this month, that process has changed considerably. Already in the first beta version of the operating system, it was noticed that PWAs no longer open at the top level, but in Safari. In fact, they are a kind of shortcuts, said James Moore of the Open Web Advocacy last week.
Initially it was suspected that it was a bug, but there was no solution from Apple. There is now a second beta of iOS 17.4, in which the problem still occurs. Mysk, a company that specializes in app development for iOS, also notes that a pop-up has even been added, stating that the app will now open in the default browser. This does not seem to be a mistake, but a conscious choice on Apple's part. The company has not yet said anything publicly about this.
Mysk further emphasizes that only users within the European Union are affected. This may have to do with the European legislation Digital Markets Act (DMA), which Apple must comply with from March 7, Mysk researchers told The Register. Until now, only Safari supported PWAs on iOS, but under the upcoming law that is not allowed. Then PWAs must be able to run in all browsers, or in no browser at all.
"The browser had to create a component called 'service worker' to run PWAs," the Mysk researchers said. According to them, it appears that Apple has not been able to find a way for other browsers to create their own service workers. "The only way to comply with the DMA before the deadline is to disable PWAs in all browsers. Now all browsers are equal." Apple has not yet responded and was not immediately available for comment.
Cheers,
Rene Simons
5
Web Server - Ask For Help / Re: Static index.html and parameters
« on: February 03, 2024, 10:28:15 AM »
Hi Bruce,
As I was struggeling along with my web-solution, I decided to follow your advice and create an example app.
During that process I had to trace back my steps and as a result I have a proper working example now.
So no further questions about this. Problem solved.
Thanks for your encouragement.
Cheers,
Ren?
As I was struggeling along with my web-solution, I decided to follow your advice and create an example app.
During that process I had to trace back my steps and as a result I have a proper working example now.
So no further questions about this. Problem solved.
Thanks for your encouragement.
Cheers,
Ren?
6
Web Server - Ask For Help / Re: HTML text not displaying in view form
« on: January 31, 2024, 01:18:07 AM »
Ok Bruce,
I will prepare an example first.
Ren?
I will prepare an example first.
Ren?
7
Web Server - Ask For Help / Re: HTML text not displaying in view form
« on: January 30, 2024, 08:03:37 AM »
Hi,
I think I have similar issue.
In the end I used the NetTalk Demo App (Web Client) and noticed that the server returned a 10061 errorcode.
Not to sure what to do about that though.
Regards,
Rene
I think I have similar issue.
In the end I used the NetTalk Demo App (Web Client) and noticed that the server returned a 10061 errorcode.
Not to sure what to do about that though.
Regards,
Rene
8
Web Server - Ask For Help / Static page with dynamic content redirect problem.
« on: January 03, 2024, 03:46:19 AM »
Hello everybody,
I have a static page with dynamic content.
The page name is index.html and initially it is called without any parameters.
One menu-option (not NT) has an option which "calls" the page itself, this time WITH parameters.
Like: /index.html?a=lng&b=en
I do not use the NT menu, because that would interfere too much with the "staticness" of the page.
As Bruce pointed out, I can retrieve the parameters in webhandler in the _sendfile method, and do some
processing.
Retrieving the parameters and the processing are successful. I checked that using trace.
After that I am a bit lost, because the index.html page is not refreshed after that. It is not even shown in the browser.
I have tried to use p_web.redirect(<with the link>) after the processing, but that did not work.
I hope someone can help me here.
Kind regards,
Ren? Simons
I have a static page with dynamic content.
The page name is index.html and initially it is called without any parameters.
One menu-option (not NT) has an option which "calls" the page itself, this time WITH parameters.
Like: /index.html?a=lng&b=en
I do not use the NT menu, because that would interfere too much with the "staticness" of the page.
As Bruce pointed out, I can retrieve the parameters in webhandler in the _sendfile method, and do some
processing.
Retrieving the parameters and the processing are successful. I checked that using trace.
After that I am a bit lost, because the index.html page is not refreshed after that. It is not even shown in the browser.
I have tried to use p_web.redirect(<with the link>) after the processing, but that did not work.
I hope someone can help me here.
Kind regards,
Ren? Simons
9
Web Server - Ask For Help / Re: Static index.html and parameters
« on: December 11, 2023, 10:44:28 PM »
Hi Bruce,
Thanks for the info.
Actually, it s a static html with some <!-- Net:xxx --> thingies in it.
Some menu options refer to the same page. The parameters are used to change some session values and execute some functions in the page.
Ren?
Thanks for the info.
Actually, it s a static html with some <!-- Net:xxx --> thingies in it.
Some menu options refer to the same page. The parameters are used to change some session values and execute some functions in the page.
Ren?
10
Web Server - Ask For Help / Static index.html and parameters
« on: December 10, 2023, 01:26:42 PM »
Hi,
I have a static page (index.htm)
When I call for the page and send some parameters along, like /index.html?a=1&b=2,
what is the best place to "receive" the data for these parameters?
Would that be the webhandler procedure, right after the code statement?
Cheers,
Ren?
I have a static page (index.htm)
When I call for the page and send some parameters along, like /index.html?a=1&b=2,
what is the best place to "receive" the data for these parameters?
Would that be the webhandler procedure, right after the code statement?
Cheers,
Ren?
11
Web Server - Ask For Help / json list
« on: November 21, 2023, 04:02:57 AM »
Hi,
Does anyone have experience using the Json list field type in a small example?
Cheers,
Ren?
Does anyone have experience using the Json list field type in a small example?
Cheers,
Ren?
12
Web Server - Ask For Help / Re: s_web._SitesQueue.Defaults.ThemeColor = white
« on: September 18, 2023, 02:20:40 AM »
Yep, that was it.
Thanks Niels
Thanks Niels
13
Web Server - Ask For Help / s_web._SitesQueue.Defaults.ThemeColor = white
« on: September 14, 2023, 09:39:34 AM »
Hi,
Compiling an app gives only one error:
Unknown identifier: WHITE - C:\Users\Rene\CLARION\myText\myText\myText003.clw:1041,44
I have no idea where to set this value. I think the value must be quoted.
I looked it up in the NETTALK.TPL - NT14.02
The line where the value is set is 3219, which reads:
s_web._SitesQueue.Defaults.ThemeColor = %ThemeColor
For the time being I commented the line out and changed it to:
s_web._SitesQueue.Defaults.ThemeColor = 'white'
Now it compiles and runs.
Looking forward to a permanent solution.
Cheers,
Ren?
Compiling an app gives only one error:
Unknown identifier: WHITE - C:\Users\Rene\CLARION\myText\myText\myText003.clw:1041,44
I have no idea where to set this value. I think the value must be quoted.
I looked it up in the NETTALK.TPL - NT14.02
The line where the value is set is 3219, which reads:
s_web._SitesQueue.Defaults.ThemeColor = %ThemeColor
For the time being I commented the line out and changed it to:
s_web._SitesQueue.Defaults.ThemeColor = 'white'
Now it compiles and runs.
Looking forward to a permanent solution.
Cheers,
Ren?
14
Web Server - Ask For Help / Re: Error ASSERT Unique/primary mey required on table F_Fdlr:F_Dealer_Type Field as
« on: August 22, 2023, 02:09:06 AM »
Hi Ron,
When you use a field for lookup, and you want to show the description i.s.o. the code,
there must be a unique key on the description in order for the program to use the description to do a successful lookup in the table.
Cheers,
Ren?
When you use a field for lookup, and you want to show the description i.s.o. the code,
there must be a unique key on the description in order for the program to use the description to do a successful lookup in the table.
Cheers,
Ren?
15
Web Server - Ask For Help / Re: NT14Labels and routines "Duplicated" Gamma-test
« on: August 17, 2023, 02:43:39 AM »
Hi,
I understand.
I was a little hasty complaining about things that I did wrong.
Sorry for that.
Ren?
I understand.
I was a little hasty complaining about things that I did wrong.
Sorry for that.
Ren?