Related Records

4 posts by 2 authors in: Forums > CMS Builder
Last Post: May 9, 2014   (RSS)

By Toledoh - April 29, 2014

Hi Guys,

I have a table of "individuals", and within that table I have a relatedRecords field called "notes" that allows me to view and create notes on that person with "individual ='<?php echo mysql_escape(@$RECORD['num']) ?>'"

However, when I create a new record, and that record has not been saved as yet, this relatedRecords field shows a bunch of notes - I guess because that current record in NULL and it's displaying all notes that have no individual associated to them.

Is there any way to not show all those notes unless they match correctly?

Cheers,

Tim (toledoh.com.au)

By Toledoh - April 30, 2014

Hey Chris - that (2nd option) works perfectly!

Regarding your side note.  I don't quite understand - do you see a need to action it straight away?  Otherwise I will flag it for next time you guys are working on this project.  

Cheers,

Tim (toledoh.com.au)

By Chris - May 9, 2014

Hi Tim,

No, if there's no problem, it's not important. Setting field names up like that is only useful for automatically filling in the field responsible for joining when creating a new record from a related records list. Just so you don't have to select the Individual from the dropdown, for example.

Hope this helps clear things up! :)

All the best,
Chris