Knack Toolkit Library

Thanks Norm, I’ve managed to suss this out… Thanks for quick responce

Vin

1 Like

I’ve installed KTL and I’m looking forward to putting it to use immediately, but I was hoping for a specific feature that I don’t see. I would like some way to auto-dupe specific fields during “heads down” data entry. In Access, this is done with the ctrl-apostrophe key combination, which fills the current field with the same value as found in the previous record. Any tips greatly appreciated!

Hi Richard,

There are two KTL features that may help you with repetitive data entry:

_rlv (Reload Last Values):
Keywords · cortexrd/Knack-Toolkit-Library Wiki

and

_ac (Auto Complete):
Keywords · cortexrd/Knack-Toolkit-Library Wiki

Besides that, it would require some custom coding.

Hope it helps,
Norm

With a little help from my “Expert” Carl Holmes, I’ve been able to implement the _rlv feature on 2 different forms, and it does EXACTLY what I needed! We also implemented some custom JavaScript code to automatically refresh the parent table when exiting the Add form so the new records would show immediately without requiring the user to refresh. Not sure if that was KTL code or something Carl had in his toolbox, but it works great. I’m beginning to feel like this utility billing project may actually work, afterall!

$(document).on(‘knack-form-submit.view_30’, function (event, view, record) {
Knack.views[“view_29”].model.fetch();
});

2 Likes

Thanks @BajaRic - interesting to use the _rlv (Reload Last Values) keyword from @NormandDefayette_CortexRD amazing KTL library.

The refreshing of the table after form submit is just a little bit of JavaScript. With a bit more patience I’m sure I could have found a KTL method. :wink:

1 Like

Yes indeed, to refresh any view in a page after a Form has been submitted, you can use the keyword

_rvs: Refresh View after Submit (click to see documentation)

There’s also its companion keyword
_rvr: Refresh View after Refresh

That can be used to create a daisy-chain of view refreshes in sequence.

Both support multiple views to be refreshed, not just one.

Have fun,
Norm

Thanks @NormandDefayette_CortexRD - I have updated @BajaRic views with RVS and removed the snippets of JavaScript - much easier - works great :+1:

1 Like