After Xrm has been imported at least once somewhere in the program, all widget objects hage the following extra method.
database_object