Polymer - Add data to a second entity

Hi,

I have an Cuba-polymer application. I’ve created an entity and polymer forms for the entity (A). Some of the data captured in entity A is also used in another entity (B). I want to insert the data entered (entity A) into another entity (entity B) when saving entity A.

My question is how is this done ?

I am new to the Cuba-polymer environment.

Regards.

Martin Oosthuizen

Hi Martin,

Can you please clarify ether you want to persist entity B along with entity A or just use some fields of A in another form?

Hi Vlad,

I am trying to develop an application to be used in a mobile abattoir. The first stem is the purchasing of live cattle. The purchase information is captured (entity A). The next step is the actual slaughter of the animals. An animal is by default divided into 2 sides (Entity B). Each side is weight and graded.

What I want to do is create the side records (Entity B) at the moment the purchase transaction is saved (Entity A). The RFID tag of each animal is one of the values to be used at the slaughter step. This will speed up the data capturing during the slaughter step as the RFID tag and side is selected and updated with the required information.

I hope that this clarifies my questioon abit more.

Regards.

Martin Oosthuizen

Hi Martin,

Take a look at EntityListeners mechanism.