Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Adding new object type for city (CityInfo and CityInfoProvider) View modes: 
User avatar
Member
Member
r.zareianfard-yahoo - 9/25/2013 9:38:21 AM
   
Adding new object type for city (CityInfo and CityInfoProvider)
I created a CityInfo class and a CityInfoProvider same as StateInfo and StateInfoProvider...
I added a record to cms_class table and created cms_city (the classname is cms.city)
but when I set the UIForm control's objecttype and click new it returns

The object does not exist. It may have been deleted by someone else

I checked and applications calls CityInfo static constructor correctly and creates TYPEINFO object.
Should I do anything else to introduce this object type to system?

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 9/25/2013 6:38:42 PM
   
RE:Adding new object type for city (CityInfo and CityInfoProvider)
Most likely what happened is by manually adding the record, none of the othe values were properly set. If you added columns via SQL Management Studio, I'd remove them via SSMS and then modify your record and set the ClassShowAsSystemTable property to 1. Then log into the Site Manager and go to Development>System tables and view your table. Make modifications in there and they will be updated as needed. Manually modifying the database or adding records is not a good practice unless you are positive there are no breaking changes.

User avatar
Member
Member
r.zareianfard-yahoo - 9/25/2013 8:46:44 PM
   
RE:Adding new object type for city (CityInfo and CityInfoProvider)
thanks for your reply, finally I Found the problem, The List page action attribute was incorrect :)