hede wrote: Dont know if I understand your problem but as far as the field names are concerned you can find those in the field setup at the the label "Name", e.g. to retreive the field name of the core field "Document type" you would do $field->name and get document_type.
Hi, Hede:
I was in a hurry and didn't express the problem correctly, sorry.
My problem was: How to make an SQL query that uses the content of a previously filled custom field (in the "back-end" interface). This feature is usually referenced as "chained select" but, in my case, I wanted to profit from the database, without using XML or JSON.
For example, given the following custom fields:
Text select 1 - country: [ select id as value, country as text from countries ]
Text select 2 - state: [ select state from states where country = {?} ]
How can the select1 field be scoped from field2 SQL query? I think it's not implemented yet, am I right?
Well, since then, I created a module with chained combos but, so far, they require a navigation through category levels, in order to update themselves. It's working fine but it's not applicable to the back-end where the comboboxes should operate in the same view/page, I mean, without web requests.
Anyway, thank you so much for your quickly sent helpful information!
Cheers!