Forums

How to create a detail view in CC5 and CF5

MaestroC 03 Feb, 2015
I found the old CC2 tutorials had a pdf on "View the details of a record" (http://greyhead.net/how-to-docs/chronoconnectivity-view-details) to let a person link from a list view to a detail view and back again. Is there an updated tutorial on this topic for CC5 anywhere? The setup of CF5 seems totally different as there is no Profile Page Plug-in that I can see (or maybe I am just looking in the wrong place?)
GreyHead 03 Feb, 2015
Hi MaestroC,

Please see this FAQ. There's now a 'View' function built in IIRC.

Bob
MaestroC 04 Feb, 2015
Got it! One further question on this topic. I followed the steps and created the report and edit forms and have a few fields in them just to start. Question 1 is how to make the edit form pull in the same dropdown lists that I have in the original form? Am I going to have to go through and add each item in the dropdown manually to the form in the Front List > Actions > Edit > Code box?
GreyHead 05 Feb, 2015
Hi Maestro,

If you want the same option list in more than one form there are a couple of ways to do it using the Dynamic Data settings for the dropdown.

a. You can build the list in a database table and use a DB Read action to load it, this can be convenient if the list changes fairly often as you can use a CC list and CF edit form to manage it.

b. Put the list into a file and load it into the $form->data array using a Custom Code action. It has to end up as a sub-array of the $form->data array like this:
['options'] = array (
  [0] => array(
    ['value'] => 'some value',
    ['text'] => 'some text'
  )
  [1] => array(
    . . .

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