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

Pages: 1 ... 3 4 [5] 6 7 ... 48
62
Web Server - Ask For Help / Re: ViewOnly but not all fields
« on: June 24, 2020, 02:26:59 PM »
I don't have an idea for your form but for the browse refresh you could play around with the GotFocusBack routine.

For example on one of my browse procedures I use this:

if p_web.GetValue('_from_') = 'payrolldeleteareyousureform'
    loc:stage = net:web:GenerateTable + net:web:UpdateNav + net:web:UpdateUpdates + net:web:UpdateHeadings + net:web:UpdateLocator + net:web:GenerateUpdates
    do GenerateBrowse
End

The payrolldeleteareyousureform (yes, long name LOL) form is a custom "delete" form but it is a memory form.

If you watch your browser's console log, you'll see the value for "_from_" being passed in the request.

It can get tricky doing stuff outside the realm of normal processes.  Just have to pay close attention to the values being passed and when the receiving procedure is expecting those values.  The timing is important.

To be honest, I avoid it if possible.

Good luck!

Don

63
Web Server - Ask For Help / Re: OT: Secwin 7??
« on: June 10, 2020, 05:42:51 AM »
It's coming. I know it is receiving Bruce's attention based on his comments in the webinars.  I'm also anxiously waiting for the NT supported release of SecWin 7.  I never used SecWin 6 despite owning it for several years because my focus has been web apps. 

Take care,

Don

64
According to the DocuSign docs at:

https://developers.docusign.com/overview

"The DocuSign eSignature API lets you eSign documents, request signatures, automate your forms and data, and much more. You can integrate the eSignature REST and SOAP APIs into any app, website, or embedded system that can make https requests."

Don

65
Web Server - Ask For Help / Re: Facial Recognition template
« on: April 28, 2020, 07:59:41 PM »
Here's a Javascript based library:

https://github.com/justadudewhohacks/face-api.js

66
Web Server - Ask For Help / Re: Memory issue - Solved?
« on: April 27, 2020, 04:21:59 AM »
Some feedback on this topic...

I had been observing some weird memory use issues for quite a while.  My multi-site host apps would steadily use more and more memory until I would have to restart the apps.  I usually had to do this every 2 or 3 days.   Went through the app and optimized everything I thought could contribute to the issue.

I added Jeff's code and the memory issue has disappeared.  I tested the app with the web strain app and the memory was actually LESS than before the strain test!! 

After several days of continuous use, my apps have maintained a consistent and expected memory use.

Thank you Graham for finding this!!  It has been a thorn in my side for quite a while!

Don

67
Web Server - Ask For Help / Re: Redactor icons missing 11.31
« on: March 30, 2020, 10:19:26 AM »
It's not in Clarion code.

It's in Redactor.js.  Around line 1569.

See attached text file.



68
Web Server - Ask For Help / Re: Redactor icons missing 11.31
« on: March 30, 2020, 07:14:24 AM »
I think those are controlled by options in the Redactor script itself.  No icons involved per say.

Don

69
Web Server - Ask For Help / Re: NetBrowse with fixed column widths
« on: March 30, 2020, 01:40:33 AM »
It could be over-ridden due to invalid CSS or because a parent element already sets that property.

You can use your browser's inspection tool to inspect the elements.

I would highly suggest you watch a few NetTalk user group webinars.  It's hard to describe with text.

https://www.capesoft.com/accessories/NetTalkUserGroup.htm

Don

70
Web Server - Ask For Help / Re: NetBrowse with fixed column widths
« on: March 27, 2020, 08:18:19 PM »
Hello Heinz,

I think you're on the right track by looking at your CSS.

You can right click on your browse's cells and experiment with the CSS to determine what works for your particular situation.  I like Firefox for insecting DOM elements but Chrome works great as well.  Personally, I would avoid Internet Explorer like the plague.  Haven't tried Edge.

Anyway, once you figure out your CSS, you have a lot of control over your CSS in NetTalk.

In the browse field's CSS tab, there's the option to set custom CSS.  You have the ability to have the CSS apply to the whole cell, the cell contents, or both.

You may set a name and a value.

It would be entered in the template like:

Name:  'width'
Value: '5em' 

NetTalk will add a style attribute to the cell like: style="width: 5em;"

Just remember an element's width is connected to its "display" property.  So an element set as "display: flex;" may display its width differently than an element with "display: block;"  Also, the downside to setting a style attribute is that the element is "locked in" to that setting until you recompile your app.  Whereas, if you use a CSS class name, you can modify a "custom.css" file "on the fly" so to speak, refresh your page, and the new CSS is applied.

You could also play around with "max-width" and "min-width."

Also, another cool NT feature for "div" layout browses, is the "relative" with option.  It is set to 1 by default.  You can increase or decrease that number to increase that column's width relative to the other columns. 

In summary, you really have a lot of options in NetTalk.  Just experiment with the various template options until you get your browse to display as you want.  There are many NetTalk user group webinars where Bruce demonstrates how to modify CSS. 

Good luck!

Don

71
Web Server - Ask For Help / Re: Progress and Start button
« on: March 09, 2020, 05:31:05 PM »
The concept for the progress field is the same for processing your import as procesing records for a report.

In your import procedure, just set the progress value per the docs as usual.

Then, in the form where your progress field is located, find where the progress is updated.  You should find a variable called Loc:Progress.  If I remember correctly, you should find a condition like:

If Loc:Progress = 100 ...

Add your code based on that condition to call a popup message or inform the user with the generated "hyperlink." 

Good luck,

Don

72
Hello John,

As Jane alluded to, for your scripts, css, images, etc., you just have to ensure your link headers point to the correct location.  Here's an excerpt from one of my apps:

<link rel="manifest" href="/manifest.json" />
<link href="/themes/base/theme.css?c=1" rel="stylesheet" />
<link href="/redactor/redactor.min.css?c=1" rel="stylesheet" />
<link href="/styles/firefox.css?c=1" rel="stylesheet"/>
<script src="/scripts/all.js?c=1" type="text/javascript"></script>
<script src="/serviceworker.js" type="text/javascript"></script>
<script src="/scripts/pwa.js" type="text/javascript"></script>
<script src="/redactor/redactor.min.js?c=1" type="text/javascript"></script>
<script src="/scripts/custom.js?c=1" type="text/javascript"></script>
<script src="/scripts/jquery.timepicker.min.js?c=1" type="text/javascript"></script>

For a static site, I simply use the existing defeult NetTalk folders and adjust the static pages' headers to point to the NetTalk folders.

As Jane mentioned, by adding the tag <!-- Net:WebServer --> at the top of your static pages' html you can embed dynamically generated NetTalk pages, forms, and browses into your static content.

Come to think of it, there's liitle you cannot do with a NetTalk webserver.  It's a very powerful platform and you get the added benifit of consistant security upgrades as long as you keep your NetTalk up to date.  I guess that's why so many of us have committed to NetTalk and never looked back.

Best of luck on your project and feel free to ask for help. 


Don

73
Web Server - Ask For Help / Re: Best way of show a big note
« on: February 29, 2020, 06:57:12 AM »
Sure you can. 

From the docs for On Click Button:

Quote
Parameters
Parameters to pass to the URL or procedure. This is a & separated list of the form parameter=value&parameter=value and so on.

You're using a button to call your "note" form.  Pass the note form a "NetTalk" parameter.

Don

74
Web Server - Ask For Help / Re: Best way of show a big note
« on: February 28, 2020, 02:55:43 AM »
You could use a popup memory form with only one field.

Open the popup NoteMemForm with your button passing the note string as a parameter of the button's OnClick.

That will place the "note" in the NoteMemForm's URL string as a parameter https://wwwwww.xxx?thenote=xxxxxx

Under the NoteMemForm's priming tab, On Change, NoteField primed with p_web.GetValue('thenote')

Display the NoteField with a text control.

Choose a close button instead of save under the NoteMemForm's buttons tab.

Resize the NoteMemForm to taste.

Done.


Don

Pages: 1 ... 3 4 [5] 6 7 ... 48