Delete extra field in MYOB Exo
Is there a way to delete an extra field from MYOB Exo table using the Exo Configurator or anything else?
I mean not to remove it from the form only, but also from the table.
The reason is that I created the field with a wrong type and now I want to recreate it with another one, using the same name.
Hi VladimirK ,
Yeah, just alter the table schema directly. You might need to refresh a couple of views afterward. (To make sure that the stored definition doesn't screw up if you try to use that view. There's a stored procedure called something like "RefreshAllViews" (Sorry, guesswork, don't have the screen in front of me.) Running this view just forces SQL to recache the column lists for the default API views, etc.
For actual tables, I'd always do a quick scan of sys.columns to see which tables the extra field had been automatically added to. When you use the Extra Field adder in Exo it will add to all the related tables. (For example, with Sales Orders there is also an Archive table. For DR_TRANS there is also PARK and ARCHIVE).
So take a backup of the DB, alter tables, check you didn't break anything. If working with an actual client DB, I'd always involve the business partner, because it's a common device for there to be custom triggers involving extra fields. (Again, I've seen some interesting behavior by SQL Server when fields were updated, but not every trigger/view that was using Select * had its cached definition refreshed.).
Regards,