Login Register

_nameMaps

Need alternate way to create model.fields._nameMaps

I have a situation in which I start with an empty store - just giving it an identifier and an empty "items" value as "data", so its associated model never reaches _setupFields from processRows. It does not cause a problem until I try to add a value to each field using setValue in the associated store. That ends up calling model._storeDatumChange and _nameMaps does not exist.

I solve the problem by calling a model.refresh before doing my update, but I wonder if I am missing something or if there needs to be a way to call _setupFields directly?

-Al Byers

Syndicate content