introduce myself: "I am No-Code guy at all and I need a little bit of help... :=).
I want to build an app to track Vendor's invoices that bring Training Classes. Each invoice reference to a particular Training Class ID (Sence ID). I need not only register the invoice but also the list of participants that assisted to those training classes. So I build two Custom entities in CDS: "Invoices" and "Participant"
Entity #1 "Invoices". Primary Field is an autonumeric (I find it that will not hurt anybody this approach)
I will use Dataflow to fill this entity with the inovice's info (I daily receive this info in a .xls list i.e: invoiceNumber, Vendor TaxID, Amount, SENCE ID, Date, etc..).
Each entity record will have not only the primary field value but a unique value in a custom field called "InvoiceKEY" ( which is a concatenate of Vendor's TaxID and InvoiceNumber that comes from the imported list on dataflow).
Each entity record has a unique Training Class code (SENCE ID)
Entity #2 "Participant". Primary field is an automumeric ( hidden field in forms)
This entity has a lookup field "SENCEID" and other fields like , first name, last name participant, % attended, etc..
I created a 1:N relationship ( Invoices Entity – "Primary"; Participant entity "Related" )
The SENCE ID field in Related entity is a "lookup field".
Entity "Participant" has SENCE ID as Key field.
Inside the Model-driven app I have to Area/Group/SubArea that provides the proper navigation with view / forms .
Here is the dilema:! After importing the invoice info into Entity #1 , when I go to the Participant entity and I want to add a new record , in the SENCE ID lookup field .. it shows a list of all the values of "primary Field of Invoices", not the SENCE ID field which has the 1:N relationship!!. I need to be able to show me by the SENCE ID values!. I must be doing something wrong with the understanding of entity relationship or do not what.!. I need help.
(Don't tell me that SENCE ID in Invoice entity has to be the primary field!..i has to be another way.. Please.. :=)
Thanks in advance !!