234
Views
5
Comments
Solved
Only Create Entity Action available
Question

Hi, 


I'm currently working on a CS module where my entity only provides me with a Create<entity> action. The rest of the RUD actions are simply not available. First, I thought this was because of the structure of the entity. The entity has 2 attributes (including it's own Id) which are both Identifiers of other entities. But I have added a new attribute to the entity, and there is still only the Create action available. 

Thanks in advance,


Jori 

2021-09-06 15-09-53
Dorine Boudry
 
MVP
Solution

Hi Jori,

Your entity lacks a primary key.

This can be its own id, but can be a foreign key id as well. 

Dorine

UserImage.jpg
Jori Lam

Hi Dorine,


Is a privacy key the same as a primary key? Because its identifier is currently set to the primary key of a different entity (there is 1-1 relation), so I would say it does have a primary key. Thanks for your fast reply!


Jori

UserImage.jpg
Jori Lam

Nevermind, All I had to do was set the referenced id to "Identifier". Thanks for your help!


Jori

2021-09-06 15-09-53
Dorine Boudry
 
MVP

Yes, primary key, it´ s my autocorrect :-)

You currently have 2 foreign keys, none of them primary, as that shows red, not blue.

So you yourself already know that this id is the primary, but you still have to let OS in on it.

2020-09-21 11-35-56
Sachin Waghmare

Hi Jori,

Wishing you Merry Christmas and Happy New year!!

In order to have all the CRUD actions available for a particular entity, there should always be a column which is defined as primary key. Since, you have two foreign keys into that entity you can make one of them as primary key.

Thanks & Regards,

Sachin

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.