Skip to main content

Hello community,

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

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. 

 

kind regards

Tobias 


Hello ​@tofuse 

Thanks for reply.

I removed the datasource and just left the binding.

When i create a new record, the site is not automatically fetched and similar error persist when trying to save the record.

Any other idea?

 


Hi, 

This is how I did it:

  1. Create an Entity Configuration - TofuseTest, with CONTRACT, SERIES_ID, DESCRIPTION. All string lenght 100, unformatted and in my case no alternete key.
  2. 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
  3. 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

 

 


Hello ​@tofuse 

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.

Thank you again


Reply