Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: RE: [LF7.4GA112] Objects filters and relationship field
Hello,
i'm doing some experiment with the new Object system in Liferay 7.4, at moment i have some questions:
- I don't see an option to create filter based on custom standard fields, i can create filters only for create/modified date, picklist or relationship field, i'm missing something or it's not possible to create such filters?
- It's possible to use the default searchbar to search on multiple field with some kind of query syntax?
- It's there a way to select wich field to show on the autocomplete relationship field? Actually the autocomplete results are the ids of the object but that's not very useful to understand if i'm picking the right record.
Thanks.
Hi,
for the last Question: You can select the displayed field in the Object settings here (EntryTitle Field):
Hi Tinfo,
Filters in Object Views: As documented, you can filter by Workflow Status, Creation Date, Modified Date, picklist fields, or relationship fields.
Search in the Object View: I don't believe you can configure this or use any special syntax.
Relationship field label: Adrian's answer has you covered in that one.
There is any plan in the future to add filter for every object's field? Wich is the reason for this limitation?
Also it's possibile to return a file as a result of a custom object action? Usually we would use the resource request, but in the "execute(long companyId, long objectActionId, UnicodeProperties parametersUnicodeProperties, JSONObject payloadJSONObject, long userId)" method there isn't any request as parameter.
There is any plan in the future to add filter for every object's field? Which is the reason for this limitation
I am not sure what the original reason was, but I do know object views (and layouts, for that matter) aren't being evolved, so don't expect to get new behaviors added there. Instead look at using the collection provider or manual/dynamic collections with your object. Even if the filtering of collections has the same limitation (I am not sure how that works), you should get more traction with a feature request on collections than on object views.
Also it's possible to return a file as a result of a custom object action?
I recommend opening a new thread for this new question. It's not very
discoverable buries in a comment here.
Powered by Liferay™