How do we access in studio through layoutValue in EL a complex schema which is a list?
personal is the schema prefix. Family is a complex list. DPGJC is attribute of complex list family. #{layoutValue.personal.Family.dpgjc == true ? 'view' : 'edit'}
3 votes
2 answers
2622 views
#{layoutValue.personal.Family.getData().get(INDEX).getValue('dpgjc') == true ? 'view' : 'edit'}
I discover how to get it from the list but i need to take the item of list and i need the right INDEX, I have tried with widgetIndex, rowIndex, LayoutValueRow etc but nothing seemed to work. It always take the value 1. How to pick up from layoutValue the index of a list.
I tried all of this and nothing seemed to work
#{layoutValue.kartelapersonale.Familja.dpgjc == true ? 'view' : 'edit'}
#{layoutValue.data.kartelapersonale.Familja.dpgjc == true ? 'view' : 'edit'}
#{layoutValue.kartelapersonale.Familja.data.dpgjc == true ? 'view' : 'edit'}
#{layoutValue.data.dpgjc == true ? 'view' : 'edit'}