Using Chronoconnectivity with an API

tshirley 07 Sep, 2016
Hi,

I have been successfully using an API with CF5 to manipulate data in an external (not MySQL) database. Making API calls in Custom Code works well in CF5.

I have also created html tables in CF5 to display data that I have read into $form->data arrays through the API. This is good for a small number of rows, say up to 20.

However in some cases the arrays are large (> 100 rows), and I would like to use the functionality of Chronoconnectivity to get features like pagination, search etc. Is there a way that I can place the necessary API code to import the data into an array that CC5 can use?


Cheers

Tim
GreyHead 13 Sep, 2016
Hi Tim,

Sorry but I have no idea :-( I've not seen this request before and I'm not familiar enough with the CC code to start to know how you might implement it.

Bob
tshirley 13 Sep, 2016
Hi Bob,

No worries - I can get around the problem, though the solution would be more functional in CC.

It's frustrating though - all that's needed is the ability to add a CF style "Custom Code" element at the start so I can populate the model!

Thanks as always for your good advice.

Cheers

Tim
GreyHead 14 Sep, 2016
Hi Tim,

There is a box for running PHP before the listing - I guess that you could load data there and add it to the appropriate place in the CC data structure somewhere in $this so that it appears in $row when needed (but be warned that the CC data structure is large and complex!)

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