Closed kkaun closed 4 years ago
Does it work outside of DataTables environment? If you send a GET request to your entity's api, does the transient field appear?
Yup, tried that just few moments ago and received fully valid JSON, including transient fields :(
I can only offer using @Formula annotation for now, see if that fits your use case.
@iSosnitsky, thanks, I'll try it!
It think you need to add:
{
"data": "ownPlacesNum",
"orderable": false,
"searchable": false
}
So that the column is not used as a filter.
I was having the same issue as @kkaun with the @darrachequesne proposal I'm able to render the DataTable.
I can live without the ordering and searching of that column but it would be great if we could
Closed due to inactivity, please reopen if needed.
Hi, I have an issue similar to this one: adding
@Transient
even to@Entity
field of simple type leads to DT warning/error :DataTables warning: table id=users - java.lang.IllegalArgumentException: Unable to locate Attribute with the the given name [placesNum] on this ManagedType [com.kirak.domain.User]
, afer which DT renders no data AKA "No matching records found".My sample field:
I tried to play with getters and their annotations - still the same. Though I really don't want to get rid of this awesome extension and have some workaround, this issue brings a little headache as it becomes nearly impossible to ignore any kinds of entities' properties. Hope it may remind to come up with something. Thanks.