cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

Binding Widget

yahkouk
1-Visitor

Binding Widget

Hello ,

I'm currently having an issue with a widget i am creating , everything is set in place in javascript , the widget can take information from the widget with no properties with no problem but when it comes to binding information onto the widget it doesn't seem to work for some reason ,  it seems that updateProperty function doesn't run at all .

here's part of my code :

RUNTIME :

this.updateProperty = function (updatePropertyInfo) {

console.log("ListCheckBox : updateProperty executes");

if(updatePropertyInfo.TargetProperty === 'DATA') {

var singleProperty = updatePropertyInfo.SinglePropertyValue;

this.setProperty('DATA', singleProperty);

this.afterRender();

}

if(updatePropertyInfo.TargetProperty === 'RESULT_DATA') {

var singleProperty = updatePropertyInfo.SinglePropertyValue;

this.setProperty('RESULT_DATA', singleProperty);

this.afterRender();

}

    };

   

    IDE :

    ​    

this.afterSetProperty = function (name, value) {

var refreshHtml = false;

switch (name) {

case 'DATA':

refreshHtml = true;

break;

case 'RESULT_DATA' :

refreshHtml = true;

break;

default:

refreshHtml = true;

break;

}

return refreshHtml;

};

this.afterAddBindingSource = function (bindingInfo) {

if (bindingInfo.targetProperty == 'DATA') {

this.updatedProperties();

}

if (bindingInfo.targetProperty == 'RESULT_DATA') {

this.updatedProperties();

}

};

   

        

All the functions in the runtime run normally , renderHTML() , afterRender() ... but UpdateProprety doesn't run at all , the console.log I put there doesn't show up.

1 REPLY 1
CRArko
17-Peridot
(To:yahkouk)

Hello, Youssef Ahkouk.

I'm trying to locate a resource to help us answer this. Thanks for your patience.

-- Craig A.

Announcements


Top Tags