Hi! I’m trying to avoid the pitfalls of different kinds of class inheritance models, and since Knack can’t do true polymorphic relationships as far as I can tell, I’m wondering if it’s possible to pass context in other ways.
I believe this is possible using the knackpy Python library, as it can do view/scene work rather than just records like Make, but is there any way that Knack can “tell” Make or a receiving webhook which page, scene, view… a page/form was originally opened/rendered from and submitted from?
Basically, I want to have one form to insert “Notes” for multiple different contexts (and for different linking tables, as these Notes can have complicated N:N relationships to other tables). I don’t want multiple “Notes” table, and I don’t want a single “Notes” table with a ton of nullable Connection fields for those individual “Notes” table.
For example, I have the tables “Properties” and “Companies” I want to take notes for. If I’m on a “Property” Details page (the “Property” context), I want it to be able to insert a record into the correct “Properties←→Notes” linking table without having to use a dropdown, using a single “Add Notes” form that isn’t duplicated for different tables. The primary “Notes” table does not need to be directly connected to any of the other tables, as they are connected through linking tables.
If I could get Knack to tell Make what page the “Add Notes” button was pressed, I could set up a simple switch table in Make so that it automatically sorts “Notes” into the correct bin based on the scene/view/page the “Add Notes” button was pressed.
Is this possible at all without using extra JavaScript?
Edit: I found this and am trying to use it. However, it doesn’t seem to work at all… the documentation seems to be based on the old URL styles. Is this still a feature with “Next-Gen” or whatever?