Class Function Call

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Class Function Call

FriedrichF
This post has NOT been accepted by the mailing list yet.
Hi,

i am completly stuck. I want to call a Function from an instance of an own Class i created. But i get a function not defined Error. The rest of the code works well.
Sorry for this easy question but i don't get it.

Here is my Class code:
qx.Class.define("padawan.SucheComposite", {
    extend : qx.ui.container.Composite,

    member : {
        katalogCheckBox : null,
        freitextCheckBox : null,
        freitextSelectBox : null,
        filterRadio : null,
        spalteRadio : null,
        sucheComboBox : null,
        paramSearch : function() {
            return {
                katalog : this.katalogCheckBox.getValue(),
                freitext : this.freitextCheckBox.getValue(),
                freitextBox : this.freitextSelectBox.getValue(),
                isFilter : this.filterRadio.getValue(),
                text : this.sucheComboBox.getValue()
            };
        }
    },

    construct : function() {
        this.base(arguments);
        this.setLayout(new qx.ui.layout.VBox(5));

        this.katalogCheckBox = new qx.ui.form.CheckBox("aus Katalog");
        this.freitextCheckBox = new qx.ui.form.CheckBox("aus Freitext");
        this.freitextSelectBox = new qx.ui.form.SelectBox();
        this.filterRadio = new qx.ui.form.RadioButton("als Filter");
        this.spalteRadio = new qx.ui.form.RadioButton("als Spalte");
        this.sucheComboBox = new qx.ui.form.ComboBox();
...

Function call:
var newSearchField = new padawan.SucheComposite();
newSearchField .paramSearch();
Reply | Threaded
Open this post in threaded view
|

Re: Class Function Call

voger
did you ran ./generate.py?
Reply | Threaded
Open this post in threaded view
|

Re: Class Function Call

voger
also the section is named members (plural) not member
Reply | Threaded
Open this post in threaded view
|

Re: Class Function Call

FriedrichF
This post has NOT been accepted by the mailing list yet.
Thank you so much, the missing "s" was the problem!