NetTalk Central

Recent Posts

Pages: 1 ... 6 7 [8] 9 10
71
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
72
Web Server - Ask For Help / Re: NetWebServiceMethod as REST - HOW?
« Last post by Jane on May 03, 2025, 12:03:39 PM »
You can do a REST API without relying on a single REST ID to call it, Niels.

There are plenty of REST APIs I call with multiple parameters, such as
api.whatever.com/v2/appointments/booked?showpatientdetail=false&patientid=1&showcancelled=true&providerid=162
73
Web Server - Ask For Help / Re: How to adjust font size NT Variable
« Last post by Jane on May 03, 2025, 11:57:50 AM »
1. Generally easier to make and verify changes when not in "performance" mode, i.e. when each css and js file is loaded singly into the browser.
2. When you make a change, either do Ctrl+F5 in the browser or increment the Resource version on the Performance tab of the ThisWebServer extension. (I normally set that to my own LOC:ResourceVersion variable, and read that variable from an INI file when the server starts. That way, I can bump the version without recompiling).  That appends a different whatever.css?c=blahblah which forces the browser to refresh its cache.
3. Note that the resourceVersion only works when the "Auto-check cached files" on the webServer template Performance tab is set to TRUE. By default, Development mode sets that to FALSE, so I always remember to change it back to TRUE.
 
4. Leaving aside the above fluff, where are you making the change? (You mention seeing the size setting in two files.)
I normally do that in my own custom CSS file (which I also do not include in the gzip stuff - untick the "Is included in THEME.CSS checkbox.)

In my custom CSS file will be a :root section to either override some of Bruce's defaults and/or to add any of my own variables that I'll use in my custom CSS.  Something like:

Code: [Select]
:root{
--softFontColor:#707070;
--leftBarColor:#FF5A87;
--leftBar:var(--leftBarColor) 6px solid ;
--darkTitleFont:"DarkTitle"; /* "DarkTitle" */
--normalTitleFont:"RegularTitle";
--font-family:"Open Sans","Segoe UI",Tahoma, Verdana, Arial, Helvetica, sans-serif;
--label-floating-top:calc(var(--entry-height)*.24);
--font-size:10pt;
}

My own trial-and-error.  HTH.

Jane
74
Web Server - Ask For Help / How to adjust font size NT Variable
« Last post by rjolda on May 03, 2025, 02:45:13 AM »
Hi All,
NT 14.21  and C11
I am using base theme for my app.  The base theme has the line: --font-size: 12pt;
base.css has this value for variable  --font-size: 12pt;  :

root {
  --icon-size: 32px;
  --icons-light: url("/icons/nt-icons-light.svg");
.....
  --icons-error-scale: 1.75;
  --icons-error-transform: scale(var(--icons-error-scale));
  --font-family: "Open Sans","Segoe UI",Tahoma, Verdana, Arial, Helvetica, sans-serif;
  --font-size: 12pt;     <<<<<<<<<<=================  If I change it here, it still does not affect the font - I change it to 8 pt but when I look in inspector, the value is still 12.

How can I change the overall font size for the entire app?
Am I in the right place?
I did gzipall after changing it to 8 pt but the inspector still says 12 pt.
Do I need to clear the cache?
TIA,
Ron
75
Web Server - Ask For Help / NetWebServiceMethod as REST - HOW?
« Last post by Niels Larsen on May 02, 2025, 02:00:10 AM »
Hi

I have a swagger that describes how to create my endpoint.
But I can't quite figure out how to receive values ​​as REST, for example like this:

http://127.0.0.1/WasteInvoice/InvoiceOverview/account/{accountId}/customer/{customerId}

Both variables are marked as "ID parameter for REST"

Regards Niels
76
Web Server - Ask For Help / Re: Refresh NWB Header
« Last post by osquiabro on April 30, 2025, 08:20:44 AM »
in GotFocusBack refresh your value or send to a routine that recalculate and then refresh,

other options in Reset other fields in your browse inside the memory form reset yor values
77
Web Server - Ask For Help / Re: Refresh NWB Header
« Last post by rupertvz 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?
78
Web Server - Share Knowledge / reCAPTCHA v3 with NT
« Last post by osquiabro on April 29, 2025, 05:42:09 AM »
Hello, this is a small example to add reCAPTCHA v3 on NT, the .ini files must be copied to the web folder. And remeber change in the ini file with your secret key provide by reCAPTCHA, and only work with https
79
Web Server - Ask For Help / Re: Refresh NWB Header
« Last post by osquiabro on April 29, 2025, 04:37:26 AM »
I always use that approach that mention Alberto
80
Web Server - Ask For Help / Re: Refresh NWB Header
« Last post by Alberto on April 28, 2025, 10:12:40 AM »
Hi rupertvz,
Why dont add the Browse inside a memory form, then add a field for the total above the browse?
this way this field will be easily refreshed.
Regards
Pages: 1 ... 6 7 [8] 9 10