On a NG Classic (and NG Titanium) form, I am using a label (Label - WebComponent → bootstrapcomponents-label) with a standard tag like %%selectedIndex%% which works fine.
Using on the same form a data tag like %%numberOfLessons%% which references a forms variable does not work. It works perfectly on a Smart Client form though.
Thanks Marc. I tested a bit more and found, when I move the label, for example some pixels to the left, it shows the (correct) value. But only once. The value (an integer with a i18n key) changes when another record is selected. But the new value is not displayed. Unless I move the label again. Very strange.
Don’t know if it may have to do with the ARM based Servoy Developer. I am using a MacBook Pro 2021.
I guess what you are saying is that you change the content of a form variable depending on the selected record which is not reflected on the label.
Just tested, but working fine for me.
var fvText = 'Count 0';
var fvCount = 0;
function onAction() {
fvCount++;
fvText = 'Count ' + utils.numberFormat(fvCount, '#');
}
Have added a bootstrap label to the form that has a value ‘%%fvText%%’ for the text property.
Added a button triggering the onAction method.