Hello @Romain_Devillez,
Thanks for reaching out and welcome to our community
Could you please tell me:
- whatâs your problem exactly?
- what agent name and version are you using?
- what is your project name?
- if you did check this documentation page?
Thanks.
Problem :
I canât sort the data in the smart segment.
Agent name:
app.dailyn.forest-admin-backend
âforest-expressâ: â^9.4.4â,
âforest-express-sequelizeâ: â^8.5.3â,
I check the documation:
The documentation does not mention using segment smarts with just smart collections.
The documentation uses models, I donât. I just have data which transit they are not stored on forest.
Thanks for your help.
Hey
As visible in our smart fields documentation, youâll need to add the isSortable
property to the fields you want to sort by, as well as handling the sort feature manually in the data retrieval route.
Let me know if that helps
Ok, I added the option but I still donât see the email field appear in the smart segment.
I want my email to appear when I click on the smart segment.
Thx for your help.
Ok, I missed that in the first screen.
Iâm pretty sure the fields
option is not available for segments definition.
If you want to show this field on the UI only for your segment, you should be able to do so by enabled the âIndependent layout configurationâ on your segment, and move this email field as a smart field of your collection (Allowing you to display it in the segment but not in the collection view).
Let me know if that helps.
Hello
I activated the option but the data is still not displayed correctly.
thank you for your help
Romain
Youâll still need to remove the âfieldsâ section of the segments
definition.
In order to check why the field âemailâ has not value, Iâll need the response request and payload of the matching HTTP call done by your browser (Accessible in the Network tabs in your browser development tools).
Thanks in advance.