Replies: 47 comments 110 replies
-
Another suggestion Would it be possible to for any of your keywords like _hc _ni _rc to have a parameter that accepts a user role i.e "object_xxx" (or even better the name of the user role i.e. developer) so that columns could be hidden based on user role? In our use case we often need to hide certain columns/fields from different user roles. Craig |
Beta Was this translation helpful? Give feedback.
-
Actually, I've been thinking about this for a while also. I'm trying to find a unified solution that would apply to any keyword, without conflicting with the existing instances. One option could be for example, to have a "keyword suffix" that would open the door to any additional options. I refer to them as "suffixes" in the sense that they would be placed after the last parameter of the existing keyword. This would introduce a new series of parameters and could be daisy chained at will. The lowercase "ktl token would trigger the parser to interpret this as a sub-keyword and as the start of a new optional parameters sequence. A few examples: _hc=Phone, Address, ktlRolesIncl, Sales Clerk, Store Manager _hc=Phone, Address, ktlRolesExcl, Sales Clerk, Store Manager, ktlNameIncl, Craig Doe, Amanda Smith Food for thoughts... |
Beta Was this translation helpful? Give feedback.
-
Following the same concept of ktlKw suffixes as above, I'd consider this option: ktlOnPrint Norm |
Beta Was this translation helpful? Give feedback.
-
Hi Norm
This would be amazing. I'll definitely give this ago.
Kind regards,
Craig
…On Fri, 9 Jun 2023, 14:31 Cortex R&D Inc., ***@***.***> wrote:
Actually, I've been thinking about this for a while also. I'm trying to
find a unified solution that would apply to any keyword, without
conflicting with the existing instances. One option could be for example,
to have a "keyword suffix" that would open the door to any additional
options.
I refer to them as "suffixes" in the sense that they would be placed
*after* the last parameter of the existing keyword. This would introduce
a new series of parameters and could be daisy chained at will.
The lowercase "*ktl* token would trigger the parser to interpret this as
a sub-keyword and as the start of a new optional parameters sequence.
A few examples:
*_hc=Phone, Address, ktlRolesIncl, Sales Clerk, Store Manager*
This would hide Phone and Address columns, but only if the logged-in user
has the Sales Clerk or Store Manager role.
*_hc=Phone, Address, ktlRolesExcl, Sales Clerk, Store Manager*,
ktlNameIncl, John Doe
This would hide Phone and Address columns, but only if the logged-in user
doesn't have the Sales Clerk nor Store Manager role - AND his name is John
Doe.
Food for thoughts...
Norm
—
Reply to this email directly, view it on GitHub
<#36 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACQQXA5VRXZF6SNECQ7MXJ3XKMQSRANCNFSM6AAAAAAYR5AMY4>
.
You are receiving this because you authored the thread.Message ID:
<cortexrd/Knack-Toolkit-Library/repo-discussions/36/comments/6133146@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
Hi Norm The ktlRoles works perfectly thank you |
Beta Was this translation helpful? Give feedback.
-
Hi Norm, recent improvements are tremendous thank you - I have a suggested enhancement for _hc It would be great if this supported ktlrefval My use case would be to hide a column based on the presence of summary data from a grid eg Total Reports with Changes Requested=0 ? then Hide column Changes made Have been playing around with your more advanced features, its amazing |
Beta Was this translation helpful? Give feedback.
-
Hi Norm Suggestion: For example _style=[font-size: 14px], [ktlScrnWidth, mobile], [ktlTarget, scene] Amanda |
Beta Was this translation helpful? Give feedback.
-
Hey Norm, would be a nice "enhancement" to the keyword _hc if it had the ability to hide the column based on another field's value. We have assigned each of our customers with a unique ID number and I'd like to hide particular columns for certain customers. Example: Customer "1234" logs in, column 5 is hidden. Customer "2468" logs in, all columns including column 5 are visible. Thanks... JON |
Beta Was this translation helpful? Give feedback.
-
Hey Norm, I have an idea for a keyword. _gdv Grid Default Value This keyword would set the value of a grid when initially viewed to an assigned default value even if that default value is blank. When user enters a search parameter (ie "1234"), all data containing "1234" is displayed in grid. User presses "reset", grid shows assigned default value. If the assigned default value is blank or some value that doesn't exists in grid (ie "xyz123"), Knack's empty grid text is displayed (ie No Records Found...) |
Beta Was this translation helpful? Give feedback.
-
Hi Norm Just a suggestion to make the dev popup always in the view-port rather than the page if possible. Craig |
Beta Was this translation helpful? Give feedback.
-
Hi Norm
I'll provide a screen grab tomorrow. All I mean is that if I have scrolled
way down a very long page and I click on the version bar, I have to scroll
all the way back to the top of the page to see the dev pop up.
If I click on the version bar which is sticky. It would be great if the
Dev pop up was also sticky too, so it always appears in the screen where I
am looking.
Sorry it wasn't very clear before. I get these thoughts and I don't always
think them through. Something for me to work on.
Craig
…On Wed, 13 Sept 2023, 19:23 Cortex R&D Inc., ***@***.***> wrote:
Craig,
It's not clear to me what you refer to as a view-port, vs a page...
Why would you need that? Can you provide the mock up of a screen grab?
Norm
—
Reply to this email directly, view it on GitHub
<#36 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACQQXAZ2C3N5XFUJ2B5AWOLX2H22ZANCNFSM6AAAAAAYR5AMY4>
.
You are receiving this because you authored the thread.Message ID:
<cortexrd/Knack-Toolkit-Library/repo-discussions/36/comments/6993663@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
Ok, I see what you mean now. I tried using the Dev Popup with a long page and indeed, it is not ideal. When I scroll down, the popup disappears as it goes up, out of reach. I'll see what I can do. Just applying the sticky position does not work as intended. More work is required. Norm |
Beta Was this translation helpful? Give feedback.
-
Jon,
I think we may have a new feature that does the job. It is not yet
documented, but here are the guidelines:
It's a new option called **ktlCond** (Condition) that currently works with _hc (only).
It works with **Details** and **Form** views.
Syntax is:
**_hc=[Column],[ktlCond, operator, value, field/JQuery selector, view]**
Column will be hidden when the field's value matches the operator's value.
Example:
**_hc=[Sales],[ktlCond, is, Normand, Clerk, Store Sales]**
Will hide column Sales in current view, when the Clerk is Normand in the
Store Sales view (details view type).
Multiple instances and roles are supported.
Enjoy,
Normand Defayette
Cortex R&D Inc.
ctrnd.com
|
Beta Was this translation helpful? Give feedback.
-
Hi Jon, You were right it was something simply, I've made the same mistake myself with the space. There's no keyword for hiding a column header, but you could use _style to set the th span to display none. I've done it here to hide the th that contains Work Flow _style=[display:none], [ktlTarget, $('th span:contains("Work Flow")')] I'm going to have a go at #2 now and get back to you. Amanda |
Beta Was this translation helpful? Give feedback.
-
Hi Jon, I've managed to hide a column in a grid based on value in a details view, using: _hc=[Trigger an action], [ktlCond, field_100, is, Amanda Mower] Field 100 in this case is a user name, if the name is Amanda Mower the Trigger an action column is hidden. Does this help? Amanda |
Beta Was this translation helpful? Give feedback.
-
Hi Norm, I have an idea for a keyword that I would find very useful personally - _sos Submit on Submit in the same vein as your _rvs and _rvr keywords but this will submit more than one form at once You could only apply this to one of the forms a master form if you like otherwise it would be an infinite loop To assist with this it would be wonderful if the other submit buttons were hidden This feature would enable a user to enter data across multiple forms and submit all at once |
Beta Was this translation helpful? Give feedback.
-
Yep I could see some good uses for this as well. |
Beta Was this translation helpful? Give feedback.
-
Suggestion for keyword _dyn Provides a means to set titles to views dynamically based on fields and allowing for construction of view titles from different elements One use case could be to present summary data in the title '30 x Wisconsin Stores' Additionally dynamic fields could be applied to descriptions, button text or Action link text I wouldnt want this level but column titles and field labels could also be dynamic Because of the way ktl is set up, changing field labels and column headers or view titles could trigger other ktl actions Its wheels within wheels |
Beta Was this translation helpful? Give feedback.
-
How about a field-based keyword that would flag duplicate values? It may be interesting to expand this idea and flag potential errors that may occur in specific fields (ie: emails that don't have the proper formatting, phone numbers, etc) |
Beta Was this translation helpful? Give feedback.
-
Requested Enhancement for _ro Hey Norm, would love to be able to use _ro dependent on another field I think there would be many use cases for this it would create a dynamic filtered list, my use case for example limit the Investigators that can be assigned to a Project based on the Investigators Permissions and the Projects Booking Code So Investigators that had not been signed off for a Mould Investigation could not be assigned to a Mould Investigation Project I guess Im asking for support for ktlCond and ktlRefval in _ro |
Beta Was this translation helpful? Give feedback.
-
It would be great if a user could run a task (or series of tasks) from the user interface. A _runtsk keyword could be really useful/powerful. |
Beta Was this translation helpful? Give feedback.
-
That's awesome! Thank you!
…On Mon, May 6, 2024 at 4:33 PM CSWinnall ***@***.***> wrote:
Here are is the Wiki for it
https://github.com/cortexrd/Knack-Toolkit-Library/wiki/Keywords#_reqfield1-field2
—
Reply to this email directly, view it on GitHub
<#36 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANQJOGLJ2PDHXTTJYENNMYTZA7SKBAVCNFSM6AAAAAAYR5AMY6VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TGMZUGAZDO>
.
You are receiving this because you were mentioned.Message ID:
<cortexrd/Knack-Toolkit-Library/repo-discussions/36/comments/9334027@
github.com>
--
Daniel J. Kukuk
Data & Communications: AFT Michigan, AFL-CIO
***@***.***
(248) 894-9899
|
Beta Was this translation helpful? Give feedback.
-
Would it be possible to use the KTL's Keyword Options to trigger a customized URL redirect when a form is submitted? |
Beta Was this translation helpful? Give feedback.
-
Hi Dan
Could you explain how this would be different from Knack's own submit rule
redirect to URL?
Craig
…On Mon, 13 May 2024, 21:34 kukuk52, ***@***.***> wrote:
Would it be possible to use the KTL's Keyword Options to trigger a
customized URL redirect when a form is submitted?
—
Reply to this email directly, view it on GitHub
<#36 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACQQXAZCCV3H4T5BS7YM24TZCEPU7AVCNFSM6AAAAAAYR5AMY6VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TIMRVG43TS>
.
You are receiving this because you were mentioned.Message ID:
<cortexrd/Knack-Toolkit-Library/repo-discussions/36/comments/9425779@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
Hey Craig,
In our case, we have a form that is set up by local administrators and is
customized on the front-end using the KTL. There may eventually be over 100
unique forms set up and would need to redirect to over 100 different URLs.
We could potentially use Knack's submit rules for this but writing that
many different rules would be daunting and would require me to do it on the
back-end. With this option, the front-end administrators could determine
where their specific form redirects by setting that in a field. It would
also allow those users to change the URL whenever they wanted without
editing the form rules.
…On Mon, May 13, 2024 at 4:36 PM CSWinnall ***@***.***> wrote:
Hi Dan
Could you explain how this would be different from Knack's own submit rule
redirect to URL?
Craig
On Mon, 13 May 2024, 21:34 kukuk52, ***@***.***> wrote:
> Would it be possible to use the KTL's Keyword Options to trigger a
> customized URL redirect when a form is submitted?
>
> —
> Reply to this email directly, view it on GitHub
> <
#36 (comment)>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/ACQQXAZCCV3H4T5BS7YM24TZCEPU7AVCNFSM6AAAAAAYR5AMY6VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TIMRVG43TS>
> .
> You are receiving this because you were mentioned.Message ID:
> <cortexrd/Knack-Toolkit-Library/repo-discussions/36/comments/9425779@
> github.com>
>
—
Reply to this email directly, view it on GitHub
<#36 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANQJOGJPNOFPNXDVTJ7KPLTZCEP45AVCNFSM6AAAAAAYR5AMY6VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TIMRVG44TE>
.
You are receiving this because you were mentioned.Message ID:
<cortexrd/Knack-Toolkit-Library/repo-discussions/36/comments/9425792@
github.com>
--
Daniel J. Kukuk
Data & Communications: AFT Michigan, AFL-CIO
***@***.***
(248) 894-9899
|
Beta Was this translation helpful? Give feedback.
-
This is more of an enhancement maybe but it would be amazing if Rich text fields when presented in a grid view woudl support some sort of wrap-text feature - at the moment without line breaks text just dissappears off the edge... It may be that Im missing something with knack settings or such - seems it should operate this way already - please let me know @anyone if Im missing something here |
Beta Was this translation helpful? Give feedback.
-
Just wanted to know about how geofencing might be progressing? I have a really good commercial application in mind... Even a simple radial one could be quite useful |
Beta Was this translation helpful? Give feedback.
-
_trk Enhancement It would be great if this feature could support Rich Text Fields |
Beta Was this translation helpful? Give feedback.
-
Would it be possible to get a keyword to remove/hide the row count shown at the top of a grid, i.e. the "Showing 1-2 of 2" below ... I tried: _style=[display:none], [ktlTarget, $('th span:contains("Showing")')] but that doesn't appear to work |
Beta Was this translation helpful? Give feedback.
-
I have a couple of requests for pivot tables which I'm sure others would love
Eg my use case - to present the status of enquiries in different categories (eg Won, Pending, Actions, Data Issues ..) and then present rows like Today (No,) Now you can achieve something like this with a lot of work in native knack - but - any time you want to adjust anything theres issues - eg knack doesn't allow you to reorder columns But knacks native functions achieve this easily if you're happy with a vertically presented table - and if we could just transpose it, it would take up a lot less real estate -
Alternatively - if someone knows some javascript magic and feels like sharing , please lay it on me
As to the keyword for all this... I don't know - _piv? |
Beta Was this translation helpful? Give feedback.
-
Hi @cortexrd,
Idea for a keyword.
_hcop Hide Column on Print
Will work exactly like your _hc keyword
or
_hfop - Hide Field on Print
Craig
Beta Was this translation helpful? Give feedback.
All reactions