Page 1 of 1

Just a question - 'related records'

PostPosted: Tue Sep 13, 2011 10:16 am
by jonbfl
Hello all,

I'm working on an implementation plan for my research database.. I have an idea we will be able to jump start some things if I do the 'right thing' with some table driven fields whose data isn't ready -- using 'dummy records'.

which brings me to my terminology question - when I'm reading the Xataface Wiki and docs - should I take the term 'related records' to mean those records specifically supported by entries in a relationships.ini file???

I'm thinking, I'll create or assign a role that doesn't allow editing related records, and supply a default 'placeholder instead' for secondary tables that aren't ready.

Any ideas are welcome.

Thanks again.
8)

Re: Just a question - 'related records'

PostPosted: Tue Sep 13, 2011 6:41 pm
by shannah
Yes. Related records are almost like regular records except that they are always dealt with in the context of a relationship. This allows you to disallow direct access to a table while still allowing users to add records to the table via a relationship from another table. Notice that there are some permissions that are specifically there for relationships. (e.g. add new related record, add existing related record, remove related record, etc...). You can define different permissions for different relationships also via the rel_relationshipname__permissions() delegate class method.

Big topic... but that's just a quick overview...