this.#Name.text

3 messages - 1122 views

Hi,

While this.#Name work with the  latest SVN code (when put inside <_renderer>, however this does not work when invoked from the screen second menu.

<_renderer>
   <![CDATA[
                <listitem  onAction="doSomething(thiis.#Name.text,this.#Addres.text)" style="layout:inlinelayout(false, left)">
                <text class = "label" id="Name" style="align:left">@{name}</text>
                <text id="Address">@{address_main}</text>

........

<screenSecondMenu onAction="doSomething(this.#Name.text,this.#Address.text)">. Ideally it should send the focussed widgets data. B instead sends the first widgets data without 'this' and 'null' with 'this'

I think this is a mistake while copying your code, but in your code sample the first this has 2 'i' and the #Address id miss a 's'. Is it the same in your real code ?

Else the syntax seems to be correct.

The 'i' was a typo, when I typed it in here. I am still not able to get it to work from the screen second Menu. Wish you a happy new year.

Even though I have the 3rd or fourth element highlighted and onAction from the list sends the right data, when I go via the screen secondMenu it still sends the first Item in the list's data. Strange and it is quite possible I have done something wrong, but I am unable to figure out what.