Multi record elements - listing in separate columns

4 posts by 2 authors in: Forums > CMS Builder
Last Post: February 22, 2012   (RSS)

Re: [Kittybiccy] Multi record elements - listing in separate columns

By Jason - February 20, 2012

Hi,

Where are "Incoming Jobs" records being stored? If there are coming from the same table as the records in the left hand column, how are these records distinguished from others?

If you could provide some extra detail and attach a copy of your .php page, I can take a closer look for you .

Thanks,
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Multi record elements - listing in separate columns

Hi Jason,

'Incoming jobs' are just the name of a field. Php page attached.
Attachments:

index_043.php 6K

Re: [Kittybiccy] Multi record elements - listing in separate columns

By Jason - February 22, 2012

Hi,

Okay, I see. What you can do is create a variable that will store all of the incoming_job field values. You can then output this list using a separate foreach loop.

First, we need to get all of the incoming job values:

// load records
list($work_listRecords, $work_listMetaData) = getRecords(array(
'tableName' => 'work_list',
));

$incomingJobs = array_filter(array_pluck($work_listRecords, 'incoming_jobs'));


After that, we just need to output the values stored in $incomingJobs:

<strong>Incoming Jobs:</strong> <br />
<?php foreach ($incomingJobs as $job): ?>
<?php echo $job; ?> <br /?>
<?php endforeach ?>

<hr />


You can use this same technique for your other fields as well.

Hope this helps get you started.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/