I am using the vertical list as described earlier.
I am changing the list string at the run time and as well as No. of item . But it show the warning as below :
[26.8.2021 16:32:02] Runtime Core::Group.InvalidateViewState (2:1) : Could not post again the signal '@064AC014.ListBox.VerticalList.updateComponent'. This signal is currently in progress. The operation was ignored to avoid endless signal delivery. The current callstack is shown in the log messages below.https://ask.embedded-wizard.de/?qa=blob&qa_blobid=9290827327147922647
the provided screenshot did not contain the callstack. The important messages are displayed in the section Debug as mentioned little imprecisely 'below'. To attract your attention the tab Debug is blinking in such case the thick gray bar:
When you click on the tab Debug the Log window will display the mentioned callstack entries. Evaluating those reveals that in your application you tries to change the number of list items during loading an item:
Since such operation will require the list to reload items again, doing this within OnLoadItem may lead to an endless recursion. This has been detected by Embedded Wizard and suppressed.
Generally, during the list is reloading items, your implementation may not modify any states of the corresponding list. The implementation of the OnLoadItem method should limit to the load operation only. Consequently, following two rows have to removed from the OnLoadItem method:
ListBox.NoOfItems = maxItem;
ListBox.SelectedItem = defaultItem;
sorry i forgot to attach the screenshot for debug
If I want to increase the list ie no of item in vertical list as per requested by device. How it should be done.
implementing the code in Init method is the right approach. Generally, when the number of list items changes, you modify the List's property NoOfItems. This can be done at any time except the moment when the list reloads its items.
Ask Embedded Wizard
Welcome to the question and answer site for Embedded Wizard users and UI developers.
Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!