I'm confused about using Models between ChornoConnectivity and Chronoforms.
A connection must have a model defined and whenever database fields are used in it they must have the model prefix.
If that connection loads a form, does the form need to refer to the record fields using the same model prefix?
For example, say I have a connection with a model called Stuff. In Columns list are:
Stuff.cf_id:ID
Stuff.name:Name
Stuff.email:Email
In Edit linkable is Stuff.cf_id
The connection loads a form when the record ID is clicked.
In the form, do I have to include Stuff[field] in the Designer and use {Stuff.field} in the Setup?
Or does the Stuff model only exist for the connection?
A connection must have a model defined and whenever database fields are used in it they must have the model prefix.
If that connection loads a form, does the form need to refer to the record fields using the same model prefix?
For example, say I have a connection with a model called Stuff. In Columns list are:
Stuff.cf_id:ID
Stuff.name:Name
Stuff.email:Email
In Edit linkable is Stuff.cf_id
The connection loads a form when the record ID is clicked.
In the form, do I have to include Stuff[field] in the Designer and use {Stuff.field} in the Setup?
Or does the Stuff model only exist for the connection?
Hi Jmahun,
Max's tutorial here says: All of the input names should be array names using the Model ID, e.g. Article[title]
Bob
PS Technically I think that you only *need* the Model ID if you are using the Connection action. If you are just using a CC link to open the form and using a DB Save to save edited data then you could probably set the form up without using Model IDs at all.
Max's tutorial here says: All of the input names should be array names using the Model ID, e.g. Article[title]
Bob
PS Technically I think that you only *need* the Model ID if you are using the Connection action. If you are just using a CC link to open the form and using a DB Save to save edited data then you could probably set the form up without using Model IDs at all.
This topic is locked and no more replies can be posted.