SQL Field - List View Data #15
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: joomla/Component-Builder#15
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hey there, this is a question, not high priority right now.
With my countries custom SQL field - in list view of the all contacts, the id of the country is displayed, rather than the name of the country. Can you please point me in the right direction here, to get the country displaying in the list view.
Thanks!
Paola
Sure, take a closer look at the following tutorial, and let me know if you still have questions.
Hey there, aha... So this was helpful. I used a 'SQL' field for countries because the 'Custom' feel, in the section Field Information lists 'view' and 'views' as mandatory.
On exploring the dropbox custom fields, they are not. So I changed the type for from SQL to Custom, adding in the sql and removed the view & views attributes, and vwala, it works!
I'm wondering if any of the other attributes listed as 'mandatory' in the custom field type are not mandatory?
thanks again for quick response Llewellyn!
Paola
Well if it is marked as mandatory in the description, sure then it will use the default if you leave it out.
Remember even if you pull data from another component, it still has a single-view called view (check url) and a list-view called views (check url) . It will also have a table and a component name. Well that is if it is build like the core components.
You can still use the SQL field type, have a look at this also: https://docs.joomla.org/SQL_form_field_type
Yet I recommend using the Custom fields instead, it just seems more stable.
Check URL means in the back end it you open that view then the name that equals to
option=
is the view name.Also note that many of the details is used when you add this custom field to display in the list view and be sortable and part of filtering of this admin-view's (list view). If you do not add the field to the list view you can leave out many of the mandatory values and it will still work. So I marked all as mandatory so to insure everything is in place when needed for the various tasks.