Introducing the Knack Toolkit Library (KTL) in pre-release - by Cortex R&D Inc

Hi Normand,

Thank you so much for your amazing work - I’ve got almost everything working that I would like to use -

I have a question though, I can’t figure this out

When using the _uvc with a field that has more one paramater (e.g. Name field, Address, email)

How do we pull these sub-values into a search? I just get blank values for these fields tried heaps of stuff, square brackets - can’t figure it out

Help me out?

e.g. _uvc=Name, ’ - ', Email

produces this: -

in the search value - experimented using just text values and can pull this in no problem - so it seem s to be any field that has a sub-field structure

Hi Michael,

I will have a look at this tomorrow, and get back to you.
Also, may I ask you to create an issue on GitHub here please?

Lastly, I strongly recommend that you subscribe to this discussion to get all the KTL updates information.
KTL Changelog

Norm

Amazing thank you!

Will do RE: Github

Hi Michael,

I’ve added _uvc support for several additional fields.
See here: _uvc Keyword not working with non-text fields · Issue #64 · cortexrd/Knack-Toolkit-Library (github.com)

Thanks for your improvement request :slight_smile:
Norm

Thank you so much - I hate to come back about this but I have to!

I tried so hard to work around - but heres the issue - I need to include a Parent value in the _uvc

In my example this is

Company Name - Contact Name - Email Address (you have resolved the issues with the last two thank you)

You add the contact to the company and I want to check the uniqueness of this contact by including the name of the company

There does not seem to be a way to draw the company name into the Add Contact form - you could add the company connector - this will display as blank rather than the company you have added the contact to

I use that methodolgy you mention on You tube where I connect everything to a universal connector so the search will work

I tried using some custom Java to resolve, however from what I understand the only way to do this would be to do an object based request which would expose your app keys

If its view based you wont be able to reflect the Record ID as this is not a field and this is the only way to prefill the parent connected record

I want you to l know I work really hard on workarounds and will absolutely not keep bothering you - I just cannot resolve this issue!

One thought I had was if the _uvc could draw values from more than one view - a details as well as an add form then that would work - after all I dont need the Record ID - I just need the company name

1 Like

also wanted to say I did experiment with going to a new child page where you could pull all the data you needed there and then do the search - only issue with that is you have already created the record at that point so it could be a duplicate …

I could prevent the user continuing on and have some other process to delete that contact so at least it get used - but all seems messy it would be best to prevent creation of the contact

1 Like

Hi Michael,

First, I just want to tell you how much I appreciate you trying so much to make this work. And don’t worry, we’ll find a solution. It doesn’t sound too hard to do, it’s just a matter of finding the best and simplest way to achieve your goal.

I will send you a private msg so we can plan a meeting with our shared screens, and do a few tests.

Cheers,
Norm

I was lucky to have a meeting with Normand on the KTL tool that he built. It is truely powerful and amazing, Knack + KTL, I can only say that “sky is the limit”!

3 Likes

Is KTL working with the new builder look? Mine stopped and now the key words are showing.
Thanks

@Brian1,

The KTL is not related to the Builder per say. Only to the Live App, running.

You should check your console logs of your browser to see if there are no errors. Usually, this is related to a simple syntax error.

If not sure, send us a screen grab of the logs, so we can inspect them.

To see the console read this simple post: javascript - How can I see the output of console.log()? - Stack Overflow

Norm

Hi Norman,

Something has happened with address fields within a form. I have a form that has an origination and destination address and for whatever reason since the last hour our users are unable to input in the second address field as it jumps back to the first. When we remove KTL it works fine.

Jay

Do you follow cortexrd/Knack-Toolkit-Library · Discussions · GitHub ?

Please see latest announcement KTL Changelog - please subscribe to see all updates! · cortexrd/Knack-Toolkit-Library · Discussion #47 · GitHub which might be of relevance.

Dean

1 Like

Hi @Jay1,

Thanks for reporting this issue. I’ve just fixed it in v0.22.10.

Sorry for the inconvenience,
Norm

1 Like

Hi Norman,

Thank you so much! Works perfect.

1 Like

Hi @NormandDefayette_CortexRD - thanks so much for offering KTL as open source!

I really appreciate the bulk edit function. When using it, however, the CSS code I enter for freezing a column (copied and pasted from other knack community posts) doesn’t seem to work with a table that uses the bulk edit feature. Can you please help?

Here’s the code I found in the forum:

#view_635 th:first-child,
#view_635 td:first-child {
position: sticky;
left: 0;
z-index: 6; /* Increase z-index to be higher than the header */
background-color: #f9f9f9;
border-right: 1px solid #ddd;
}

1 Like

Hi @Kait and welcome to the forum… and the KTL !!!

Thanks for the nice comments, it’s appreciated.

I found the post you’re referring to. So you want to freeze a column and use the Bulk Edit feature, both at same time, right?

Well, you’re lucky because the KTL supports all of this in a perfectly intergrated solution.

Remove the CSS above and add the _stc keyword (for Sticky Table Column).

All documentation can be found here: KTL Wiki - Sticky Table Columns

This should do the job.

BTW, I’ve improved the Bulk Edit again. It’s much easier to use now.

Cheers,
Norm

2 Likes

amazing, thanks for the quick response!

I have one more question - how can I apply the KTL features to just one view? for example, #view_635 in my last post?

1 Like

@Kait,

It all depends on which feature or keyword. Most keywords are applied to the view it’s been added to.

But in your case, I need more information. Can you give us a precise use case, with view IDs, field IDs and their types.

Maybe a screen grab would help, app or builder. I use ShareX for that. It’s great and free.

You should also use the GitHub’s page and create an issue or a discussion, so all can see it and benefit from your question. Other may have good answers also.

Norm

@NormandDefayette_CortexRD is a real star :star:
I highly recommend checking out KTL.
As a no coder, it’s a great way to add additional functionality to your applications.

2 Likes

ok, I’ill try to create an issue via GitHub, thanks!