How to make dynamic combobox in ExtJS or Javascript?

I have a combobox include true, false and all stuation on ExtJS. If I choose true on combobox send 1 to API and I choose false on combobox send 2,3 etc. to API. My code run static like below :

try {
    var comboStoreConfig = X.store.comboStoreConfig();
    comboStoreConfig.displayField = "name";
    comboStoreConfig.valueField = "id";
    comboStoreConfig.useDbData = false;
    comboStoreConfig.staticData = [];
    comboStoreConfig.initialValue = config.initialValue;

    comboStoreConfig.staticData.push({"id": 1, "ad":"True"});
    comboStoreConfig.staticData.push({"id": 2, "ad":"False"});
    comboStoreConfig.staticData.push({"id": 0, "ad":"All"});

    return X.store.createStoreToCombo(config, comboStoreConfig);
} catch (e) {
 //throw exception
}

How can I make dynamic combobox ? For example when I choose “false” on combobox the id must go to API like 2,3 etc.