Search code examples
extjssencha-architect

Sencha Architect not creating getter for config variable


I am using Sencha Architect 4.3 (Beta), sdk 7.4. Modern.
I have an Ext.form.Panel named TimesheetEntry written in the Architect.

Here is a fiddle of TimesheetEntry as generated by Sencha Architect and lightly modified to run in Fiddle TimesheetEntry

You can see that adding config.fee_earner_user_id does not result in a getter. The best I can do is to use win.getConfig('fee_earner_user_id');

My question is: how to specify in the Architect that fee_earner_user_id is a config property that should have a getter generated for it?


Solution

  • In SA, enter fee_earner_user_id in the box where you would normally search for config options. To the right of that box will be a button you can click to add it as a config option.
    After it is added you can also change its type, i.e. string, object, etc.