I was aware (you stated this in another post and I hate ++ as much as you guys do) about the ++ operator concatenation and I had tried to increment counter by using: counter = counter-0+1 in hope that it will force an arithmetic operation. The problem I had/have is that I can't write/modify a CF.widget's label from another activity. I wanted to use the label to store the counter value. Lyndel was very helpful in suggesting to define a widget.field to store the value and it works fine. Please note that I am still a beginner and did not have any programming formal training, should you find some errors/misinterpretations in my statements.
I needed to modify the CF.widget.label in another application to display an error message:
Some code; if (error ) {CF.widget(PANEL, error_page, activity)= "respective error msg"; CF.widget(action_jump_to_error_page, page, activity).executeActions; }
My aim was to use same page/panel to jump to & display various error messages should that be the case.