Details: Failed invoking <symbol>

Hello 
I get this error message when I call the updateValInputConfig() function. This function seems to be stuck at _valInputConfigElement.setText(formattedValue); . I've called it in the onLayout function and it works. But not when I call it from the designtestMenuDelegate class.

Any ideas?
Simon
//designtestInputConfigDelegate
private var _view = new designtestInputConfigView();
function onKey(keyEvent) {
        var _key = keyEvent.getKey();
        System.println(_key.toString());
        if (_key ==5){

            System.println("QUIT");    // e.g. KEY_MENU = 7
            WatchUi.popView(WatchUi.SLIDE_RIGHT);

        }

        if (_key ==13){

            System.println("ADD");    // e.g. KEY_MENU = 7
           
            addValInputConfig();
           

        }        
        return true;
    }
function addValInputConfig() {
        //_currentInputConfig++;
        //DataManager.setTargetData(_currentInputConfig,_currentInputConfig);
        System.println("ADD1");
        
        _view.updateValInputConfig("3");
       
    }
// designtestInputConfigView
function onLayout(dc as Dc) as Void {
        setLayout(Rez.Layouts.InputConfig(dc));

        _valInputConfigElement =findDrawableById("valInputConfig");
        _unitInputConfigElement =findDrawableById("unitInputConfig");
        _titleInputConfigElement =findDrawableById("titleInputConfig");
       
       
        updateValInputConfig(777); // works perfectly

    }
function updateValInputConfig(value) as Void {
        System.println("ADD2");
        var formattedValue = value.toString();
        System.println("ADD3");
        System.println(formattedValue);
        _valInputConfigElement.setText(formattedValue);
        System.println("ADD4");
        WatchUi.requestUpdate();

    }