Forums

array id record

agostino87 20 Oct, 2016
I am reading this guide

http://www.chronoengine.com/faqs/72-ccv5/5208-connectivity-edit-with-chronoforms.html

I have created a data change form, but at the beginning of the form I need to enter an array to retrieve the id of the record, how can I do ??

thank you
GreyHead 20 Oct, 2016
Hi agostino87,

What array do you need to enter? Normally you would pass a record identifier in the URL to open the form?

Bob
agostino87 20 Oct, 2016
the primary key of the table is the "ID" field, the guide explains to load the field with an array
GreyHead 20 Oct, 2016
Hi agostino87,

I don't think so - as I read it, it says that the form element names should be array names using the Model ID

Bob
agostino87 21 Oct, 2016
Do you think you have to use the array for all fields?
I'm seeing that it works well, the problem is that it does not save the same id but creates another record, perhaps by entering the id with the array can save it properly. I'm no expert.
How would you the array to display the id?
GreyHead 21 Oct, 2016
Hi agostino87,

Normally the record ID is passed in the link. If you are using the ChronoConnectivity save as Max described in the FAQ then the same record should be updated.

Bob
This topic is locked and no more replies can be posted.