on 02-06-2014 10:13 PM
Hi,
I have a view with a table on it that is populated via supply function in the Component Controller. On this same view I also have a "Text View" field that is supposed to display the number of table records.
In the controller supply function I populate the context for the table values and the context holding the value for the number of table records. So far so good. The view context is properly mapped to the controller context and the "Text View" field is properly bound to get the value/text.
For some reason when the view is initially presented the "number of records" field is not appearing at all. But, when I make any change like select a table line the field shows up properly. I cannot imaging what I am doing wrong to present this strange behavior.
Does anyone have any ideas why the view would not initially show or populate the "Text View" field?.
Thanks for any help with this.
Hi Kenneth,
Please set an external break point in your SUPPLY FUNCTION method and check if your code to set the no. of records is populating some value into context attribute while application run for first time.
Hope this helps you.
Regards,
Rama
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kenneth,
As per my understanding, the supply function is called when one or more elements of a context node are accessed. In this case, Text view will only be displayed depend on the element of the parent node that holds the lead selection at this point in time.
To solve your issue, try to set the lead selection on first record of a table.
This is the basic functionality of supply function. Hope it clears.
Thanks
Gangadhar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.