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

@NormandDefayette_CortexRD

Hello Normand,

I’ve got the Dev mode working on my Mac! Took a bit of figuring out, turns out Macs don’t like spaces in a folder or file name.

We followed the same process you talked us through on Windows, but hit an issue where the folder named after our app couldn’t be found on the server when we tried to enter Dev mode.

Screen Shot 2023-04-03 at 22.19.23

We fixed this issue by creating a new copy of our app without spaces in the name and setting up the folder structure: code/KnackApps/ourAppName/ourAppName.js. Hey presto it worked!

We’ve run out of time to experiment tonight but will be taking it for a spin tomorrow. As our live app has spaces in the name we could really we’d really appreciate any ideas about how to fix this file not found error.

In the meantime we’re really looking forward to trying out the dev mode as it could really streamline our development process.

Thanks
Amanda

2 Likes

Hi Amanda,

Congrats! You’re the first person to get the Dev mode working on a Mac.

I agree that spaces must be allowed in any app’s name. I had the same problem initially, and I fixed the NodeJS_FileServer.js script. Now, I’ll have to revisit this again, but I may need your assistance to test it.

Norm

Hi Norm,

Once I figured out the issue was with the files name the setup process was incredibly straight forward.

I’ve been testing the process of coding in Dev mode, storing our appName.js in a Git repository so me and my partner can share it, and so far so good, everything has worked as it should and we’re both really impressed.

Thanks again for your time and I’d be more than happy to test any fixes you have for the spaces issue.

Amanda

2 Likes

Hi Norm

The dev mode works brilliantly. It is going to make our work quicker and easier as coding in Vs code with all its bells and whistles is so much better.

Thanks again for all your help getting this far. We are still testing but it appears that your code doesn’t interfere with anything else. We will let you know if we find anything.

Thanks again

Craig

1 Like

Hi Norm

I’m like Cameron, and others I believe, and wondering if it’s possible to leverage your Bulk Edit code to have a Bulk Create page.

In the scenario I’m currently contemplating I’m looking for a way to quickly copy the items selected, using a checkbox, from a “standard quote” template (parent and child) to a new quote. Or, “File Save As” for want of a better description/action and then delete/hide the items not required.

I look forward to your reply.

Dean

2 Likes

Amanda,

Would it be possible for you to copy/paste that link as text instead of as an image so I can debug it?

Norm

Hi Dean,

Thanks for your feature request.

Now, to be very honest, I’ve read your message a dozen times and I still don’t fully grasp what’s your typical use case. I get the general idea of bulk copying selected records, but with the quote, template, parent/child, save as stuff there… you lost me a bit.

Can you provide a super simple (even minimalistic) example of what you currently have - that you don’t like, and then, the same thing but as that ideal version of yours. Screen grabs or even hand-made sketches are great for that.

Concentrate more on explaining your needs, and less on “how to do it” for now. We can discuss that in another phase.

I will ask you to use GitHub’s Issues page for your request please, as it’s optimized for that and allows all others to follow the development and add some ideas. Use the enhancement label at right.

Here’s the link: KTL - add Issues

Normand

Hi Norm

Reply and image posted on the GitHub page.

Regards
Dean

1 Like

Hi Norm,

Looks like you may have fixed the spaces in app names on Mac issue?

Using KTL version: 0.10.19, I set up the KTL on an app with spaces in the name (to get you the error message):

ARC Beta 1.0 MEDS SANDBOX

Switched to Dev mode and no problems, no errors.

Amazing, means we can start using the full KTL on our live production app.

Cheers
Amanda

Amanda,

This is great news indeed. But to be honest, I didn’t change anything related to that!

Just for fun, I tried using an online OCR to extract the text (too lazy (or busy) to type it manually). I used this free service which worked beautifully compared to a few others: Free Online OCR - Convert JPEG, PNG, GIF, BMP, TIFF, PDF, DjVu to Text (newocr.com)

And I ended up with this text:

http://localhost:3000/KnackApps/ARC%2520Beta%25201.0%2520Testing%2520KTL%252003-04-23/ARC%2520Beta%25201.0%2520Testing%2520KTL%252003-04-23.js

Then in this site that I use a lot to Encode/Decode URIs:
URL Decoder/Encoder (meyerweb.com)

I pasted the text and clicked Decode. This revealed a string that seemed normal, with still a few encoded path elements.

When I clicked Decode once again, I got the local URL which had the proper format!

http://localhost:3000/KnackApps/ARC Beta 1.0 Testing KTL 03-04-23/ARC Beta 1.0 Testing KTL 03-04-23.js

So I’m not sure what happened, but if you encounter this problem again, you can through these steps to analyze a bit more.

Normand

1 Like

Thanks Dean, I’ll have a look at this.

Norm

Hi Norm,

We have recently started using your KTL on our app and are very impressed so far with it’s features. We did run into what seems to be a bug in our currency field where it now seems the comma formatted in the currency field becomes unvalidated somehow and we can’t save the changes until we edit this without the comma in the field(or less than 4 digits after the decimal). Is this intentional and if so is there a way we can bypass this?

Thank you.
Mike

1 Like

Hi Michael,

Thanks for your interest in the KTL :slight_smile:
I agree, this numeric validation issue must be fixed. I will look into this today and keep you informed as soon as I have a fix.

Normand

Hi Michael,

I’ve fixed the numeric validation. Please refresh your pages and give it a try.

Normand

Hi Normand,

Thank you very much for attending to this issue so quickly!

1 Like

Hi Cameron, Dean and all others who are interested in being able to copy (create) records in batches, based on a source record.

I’ve just finished the code to allow the KTL to do just that, and it’s called Bulk Copy.
The documentation is not yet updated.

You can try it now, see this link for a briefing on the way it works:
Bulk Copy in KTL

Normand D.

1 Like

You’re amazing! I can’t wait to check it out soon.

Dean2
Had a similar copy parent and child records requirement. Got some great help from Fine Mountain Consulting. No code needed, but uses API connection to Make scenarios.
let me know if you want more info.

Hi to all,

If you’ve been using the KTL, I invite you to go read this important update information:

KTL - Important KTL structural changes · cortexrd/Knack-Toolkit-Library · Discussion #35 (github.com)

It solves an important challenge we had when some KTL customization has been done by the developer, namely the synchronization of new features, with those in your own copy of the KTL_KnackApp.js file.

It also reduces the code in your application, by using only what is needed instead of the whole file.

If you have questions, I’ll be happy to answer them,
Normand

1 Like

I have been using the toolkit for several feature enhancements in some of my apps, and I have to say it is simple to use and works really well. Norm has gone to great lengths to simplify integration and using features. Having spent some time working with Norm on some ideas and enhancements, I can tell you he is extremely knowledgeable, as he uses Knack to power some significant business operations for clients. In addition, he has been overly generous with his time despite the fact he is very busy with client projects. I would like to see a better eco-system inside the Knack community for add-on modules like this but users need to be willing to pay to get talent like Norm to produce great tools and consistently feature enhance them. It takes resources to develop apps, which should be paid for which would help ensure long-term growth in our database tools and collective businesses. Supporting a healthy eco-system expands everyone’s potential market and abilities. These are business investments with ROI that every other successful platform deploys. Looking forward to one day seeing a Premium Version of the Toolkit that I can pay for and support!

1 Like