application.fapi.flushCache should check whether the thing we're flushing exists in stCOAPI
Description
As described here: http://kott.fm/tomek/2011/02/10/resetting-individual-types-etc-in-farcry/ I'm trying to reset a single tag. In the process, I flush the objectBroker using application.fapi.flushCache. However, the generalized code doesn't work for formtools, since they don't exist in stCOAPI. All the function needs to do is check: structKeyExists(application.stCoapi,typename) before all the other checks.
As described here: http://kott.fm/tomek/2011/02/10/resetting-individual-types-etc-in-farcry/ I'm trying to reset a single tag. In the process, I flush the objectBroker using application.fapi.flushCache. However, the generalized code doesn't work for formtools, since they don't exist in stCOAPI. All the function needs to do is check: structKeyExists(application.stCoapi,typename) before all the other checks.