Polymer - Editing Entity with Multiple Primary Keys Fails

I have a table with multiple primary keys. In the Polymer front end, the way to grab the value of linecode, for example, would be to grab the value of entity.id.linecode, since id is an object.

However, CubaApp.commitEntity (from cuba.js) doesn’t know this, and simply concatenates the REST path with the id (exactly like this: 'v2/entities/' + entityName + '/' + entity.id). Since an object converted to a string is [object Object], this makes for a badly formed URL, and the server hits an error.

I have attached the source code and DDL of the specific table I’m working with. The table was migrated to CUBA.platform, and is in MSSQL.

As an aside, the response of the query is not generating an error. The server is sending back {"error":"Server error","details":""} but neither cuba-form-error nor cuba-form-success events are being triggered.

pdetail.ddl.txt (722B)

entity.pdetail.java.txt (4.4K)

Thank you for reporting the problem. We have created a YouTrack issue, see the link on the right hand side.

:ticket: See the following issue in our bug tracker:

https://youtrack.cuba-platform.com/issue/PL-9444