scaffolding one to one relation screen

scaffolding one to one relation screen

  

Hi

When scaffolding on the second drag (for creating the detailscreen for editing data) I get an error (Entity has no Id) if the entity has a one to one relationship (so indeed has no own identifier). How to use scaffolding in a one to one scenario?

Regards, Harry


Hi Harry,

Usually when you create an entity, you must have an Primary Key. When on the second scaffolding OutSystems try to create the detail page, it needs a PK to pass through as the parameters to identify which records you want to see the details for, same will go for Edit screens.

Do you have any specific reason for not creating an identifier?

Shashank