NetTalk Central

Recent Posts

Pages: 1 ... 5 6 [7] 8 9 10
61
Web Server - Ask For Help / Webclient with certificat
« Last post by Niels Larsen on May 07, 2025, 10:19:40 PM »
Hi

I'm a little rusty with certificates so I need some help.
The task is to connect to an api via an NT webclient.
I have a pfx file and a password.
Works fine in Postman, so now I just need to get it to work in NT.
How do I insert the reference to the certificate and password?

Regards Niels
62
Hi
NT 14.21,  C 11
I am running a NT app on browser and also in browser on mobile device ( Android - chrome).
I can change the font size on browsers EXCEPT FOR MOBILE DEVICES (Phone)
Using:

:root{
   --font-family:"Open Sans","Segoe UI",Tahoma, Verdana, Arial, Helvetica, sans-serif;
   --font-size:8pt;
   }

I can change the font size for apps running on desktop  - I can make the font very small.  HOWEVER,
The font size does not get smaller on Mobile Device (phone).  That is my issue, I want to make it smaller - so that the user can make it bigger if they want.  BUt that is NOT happening.
I don't see any settings for font specific to @media screen and (max-width: 600px).
Indeed, if I put a specific font size in that section like this:
@media screen and (max-width: 600px) {
          body{
         font-size:8px;}
   }
It does not make the font smaller.   Seems like something else is setting font minimum size on mobile phone?  Maybe mobile browser settings?
Any insights?
THanks,
Ron
63
Web Server - Ask For Help / Re: How to adjust font size NT Variable
« Last post by rjolda on May 05, 2025, 07:02:43 AM »
HI Jane,
Yes, I realized that NT used variables to set the overall information for the site.  However, I had no clue how to change the variables.
Your information was very helpful.  I actually got it implemented in my custom.css and got it Working!
Thanks,
ROn
64
Web Server - Ask For Help / Re: NetWebServiceMethod as REST - HOW?
« Last post by Niels Larsen on May 04, 2025, 10:20:59 PM »
Thanks Bruce

That's pretty easy. I just took p_web.UserURL and fixed the rest with StringTheory.
Just glad I didn't miss a template option.

/Niels
65
Web Server - Ask For Help / Re: NetWebServiceMethod as REST - HOW?
« Last post by Bruce on May 04, 2025, 09:50:26 PM »
>> But the customer wants it like this:
http://127.0.0.1/WasteInvoice/InvoiceOverview/account/{accountId}/customer/{customerId}

Have you told him how much extra that pattern will cost? I find that putting a price on it lets you determine how much they "actually want it".

>> Does that make sense?

yes.
To do this though you will need to parse the WholeURL yourself, likely in webHandler, setting the values as you interpret them (ie with a call to SetValue).
It's not terribly hard to do, but obviously is a custom approach to both parsing the values, and then redirecting the request to the correct API.

For example, in this URL I presume WasteInvoice is the name of the NetWebService, and InvoiceOverview is the name of the NetWebSericeMethod.
You *may* find it parses that sufficiently to get the call into the NetWebServiceMethod procedure, or you may need to parse it in webHandler.
Once you are in the method, you can then parse the URL further to find the account and customer ID. That's pretty easy to do with StringTheory etc.

Cheers
Bruce
66
Web Server - Ask For Help / Re: NetWebServiceMethod as REST - HOW?
« Last post by Niels Larsen on May 04, 2025, 09:17:38 PM »
I am the one who makes the server but based on the customer's guidelines.
It's basically quite simple. I need to receive two parameters "accountId" and "customerId".
Normally I do it like this: 127.0.0.1//WasteInvoice/InvoiceOverview?account=12345&customer=6789
But the customer wants it like this:
http://127.0.0.1/WasteInvoice/InvoiceOverview/account/{accountId}/customer/{customerId}

Does that make sense?
67
Web Server - Ask For Help / Re: How to adjust font size NT Variable
« Last post by Jane on May 04, 2025, 03:52:45 PM »
Hi, Ron,
Variables were the heart of themes and the "themer" app that Bruce introduced in (NT12??). 
The idea being that you can set something (a color, font size, button radius, etc.) in one place and have the entire web app use those settings.
68
Web Server - Ask For Help / Re: NetWebServiceMethod as REST - HOW?
« Last post by Jane on May 04, 2025, 03:51:07 PM »
Are you making an API client or API server?
Can you post the exact spec of what you're trying to do?
69
Web Server - Ask For Help / Re: NetWebServiceMethod as REST - HOW?
« Last post by Niels Larsen on May 04, 2025, 12:52:15 PM »
Hi Jane

My challenge is that I have to follow the customer's guidelines and
they describe that I have to construct my methods with this syntax.
What you describe I am familiar with and have used in many projects.

Thanks for the input!!
70
Web Server - Ask For Help / Re: How to adjust font size NT Variable
« Last post by rjolda on May 04, 2025, 02:13:38 AM »
HI Jane,
THANKS for all the useful information.  It is sometimes hard to get information on the nuts and bolts of NT.
Especially, I did not think that you could overwrite the variables and their values ( I still have lots and lots of this css stuff to learn...)
Ron
Pages: 1 ... 5 6 [7] 8 9 10