Why all the newly adding record's ID is set to 0 in an entity

Why all the newly adding record's ID is set to 0 in an entity

  
Hi All,

I am new to Outsystems. 
I have two entities Discovery & Eligibility, Eligibility's ID is an foreign key in Discovery.
My issue is when ever I am adding new record to Eligibility Entity, its taking 0 as record's ID.

Because of this, when ever I try to browse Eligibility records from Discovery table, its taking to a new Eligibility details page.not to the actual record.

Please suggest how to fix this.
Thanks !!

 

Hi,

provide the oml you are using, becaue there could be an error in there.

furthermore, what database is behind it?


J, 
Here is my oml. Please let me know the issue.

Thanks,
Sindhura

Solution
Hi Sindhura,

I have attached the screenhot of your entity Eligibility its Primary Key ID Property IsAutoNumber is set to No,
thats it always create it with 0 Id. Please set it to Yes, it will resolve your problem.

Thanks,
Manish Jawla 


Solution
Manish,

Thanks, this is working. But I intentionally modified that to NO earlier to fix some issue.

Anyways now its good. Thanks !!

Regards,
Sindhura
Your always welcome Sindhura.

Regards,
Manish Jawla
Hi Sindhura,

You can mark my post as a solution so that if someone else faces the same issue can easily identify the solution.

Regards,
Manish Jawla
Done !! Thanks Again !!