I created a custom entity with 3 fields and with a projection. CONTRACT, SERIES_ID, DESCRIPTION
Then i associated with CompanySiteHandling projection with CONTRACT key.
Projection Configuration
I added a new tab under Shipment Management section and created a list content. As you can see datasource and binding are completed however the site information is not automatically populated.
Page Configuration
When i try to create a record then i get the following error. If I delete the binding then i am getting all records from all sites.
I am missing something but I cannot figure what. Anyone can guide?
Thanks
Best answer by tofuse
Hi,
This is how I did it:
Create an Entity Configuration - TofuseTest, with CONTRACT, SERIES_ID, DESCRIPTION. All string lenght 100, unformatted and in my case no alternete key.
Create a new projection configuration for the standard projection CompanySiteHandling. - Add entity TofuseTest - Add Entity Association (TofuseAssoc) between CompanySite and TofuseTest - Add key mappings CONTRACT - CONTRACT
In Page Designer for ‘main/ifsapplications/web/page/CompanySite/ShipmentManagementInfo’ - Add List (Tofuse Test List) with the 3 attributes with default values. I’m not sure why you have added contract as a lookup. It is a bound key so it should always have the value of the parent record. - Add List to the page content and bind it to main selector for the association property.
After this I’m able to add and save a record to the list
I think that your problem here is the datasource. You already have an association to your main record so there should be no additional datasource defined. Try delete that attribute and see if it works.
Create an Entity Configuration - TofuseTest, with CONTRACT, SERIES_ID, DESCRIPTION. All string lenght 100, unformatted and in my case no alternete key.
Create a new projection configuration for the standard projection CompanySiteHandling. - Add entity TofuseTest - Add Entity Association (TofuseAssoc) between CompanySite and TofuseTest - Add key mappings CONTRACT - CONTRACT
In Page Designer for ‘main/ifsapplications/web/page/CompanySite/ShipmentManagementInfo’ - Add List (Tofuse Test List) with the 3 attributes with default values. I’m not sure why you have added contract as a lookup. It is a bound key so it should always have the value of the parent record. - Add List to the page content and bind it to main selector for the association property.
After this I’m able to add and save a record to the list
Thanks for the guiding. The site is automatically changed to lookup when I defined the list. I did not pay attention in my first try. Now I changed back to field and works correctly.