RE: RE: [LF7.4GA112] Objects filters and relationship field

Olaf Kock, modified 1 Year ago. New Member Posts: 6 Join Date: 8/8/23 Recent Posts

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.

thumbnail
Adrian Häussler, modified 1 Year ago. New Member Posts: 18 Join Date: 8/3/22 Recent Posts

Hi,

 

for the last Question: You can select the displayed field in the Object settings here (EntryTitle Field):

thumbnail
Russell Bohl, modified 1 Year ago. Expert Posts: 308 Join Date: 2/13/13 Recent Posts

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.

Olaf Kock, modified 1 Year ago. New Member Posts: 6 Join Date: 8/8/23 Recent Posts

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.

thumbnail
Russell Bohl, modified 1 Year ago. Expert Posts: 308 Join Date: 2/13/13 Recent Posts

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.