Quantcast
Viewing all articles
Browse latest Browse all 5648

How do I the same field PK more than once on the form

Hello,

I am trying to build a simple form;

1) I have a Person Entity with PK as personId

2) I have a Hobby Entity with PK as Hobbyid

3) I have a Person_Hobby Entity with two FKs of above both.

I have a form that attempts to Create the 3rd Entity.

As a part of the form I am allow the dropdown to select the Person Name
(The Person name comes from Person table)

<field name="guestId" title="${uiLabelMap.PersonId}">
<drop-down>
<entity-options entity-name="HelloPerson" description="${firstName}" />
</drop-down>
</field>

Next field element I attempt to fetch the gender of the Person again from
the Person Table something like this

<field name="guestId" name="gender"
entry-name="guestId"><display-entity.....>

I am getting an error that gender is not a "PK" which is actually true. I
cant set the name as "guestId" again because the field with same names if
repeated, the last one takes effect. How do I get teh gender frm the person
table ?

Thanks.

Viewing all articles
Browse latest Browse all 5648

Trending Articles