I tried to explore entity in IFS Developer Studio. I just made a small sample, added 2 attributes then generated code and deployed. But I met error during deploying. It seems the table was not created and deployed.
My attributes
Then generated code and deployed
I got error and there was no table in DB.
Any advice or reference materials on this would be greatly appreciated.
Page 1 / 1
You have a totally new entity, a normal entity which shall have a database table to store the data.
When you deploy it it only deploys the api, apv and apy files as you see in the log. That requires that the database table is created earlier.
When you generate code you also get a .cre file which you can find in the folder “Generated Files” under the entity:
This is a script to create the database table with it’s constraints.
Normally when you do a customization in the Cust layer you copy the content of that file and creates a .cdb file which you then deploy manually.
If you are learning to develop according to standards that is what you shall do next.
If you just want to test out some small things you can go ahead and mark the .cre file and deploy it to the database and then try to deploy the whole entity again.
@Tomas Ruderfelt Thank you so much. It was deployed successfully in DB now. But I could not see it in IFS Cloud. Any other steps I need to do?
I think the reason is the module I didn’t use Capital letter when I added it to this table module_tab