Community
Showing results for 
Search instead for 
Do you mean 
Reply

Deleting a subentity field

Avid Listener
Posts: 25
Country: USA

Deleting a subentity field

Does anyone know the command to delete a field from a subentity?

Bronze Super Contributor
Posts: 1,231
Country: USA

Re: Deleting a subentity field

 

ACTFramework.Fields.Delete(MyFieldDescriptor)

 

-- Jim Durkin

Avid Listener
Posts: 25
Country: USA

Re: Deleting a subentity field

tried it but what occurs is the field gets tagged as deleted but never gets deleted, is there some update command to apply the changes and actually remove the field from the database?

 

Bronze Super Contributor
Posts: 1,231
Country: USA

Re: Deleting a subentity field

Any time to make chanes to the database such as field changes or custom tables you want to lock first then unlock and refresh

 

ACTFramework.Database.LockDatabase(Act.Framework.DatabaseLockReason.SchemaChanges)

 

' Make your changes here

 

ACTFramework.Database.UnlockDatabase()

ACTFramework.Fields.RefreshSchema()

 

 

Hope this helps

-- Jim Durkin