on 12-11-2007 9:39 AM
Hi all,
I created a ViewSet with 2 rows and 1 column.In first viewset i had one input field followed by a Continue button.On click of Continue button second view gets displayed..but the value of inputfield of view1 should be retained even though both the screens are in the viewset
Regards
Padma N
Hi,
to switch between views you can use plugs and fire this from your code.
To retain the value between views try to store the values at the controller level and
map them to views.
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If you want to share the values between the two views, then you can
1. Map the two view contexts to the component controller
2. Pass the values to the "<i>onPlug<Plug name></i>" event handler as formal parameters. Choose this if the number of values being passed is minimal.
Regards,
Satyajit.
Hi,
in the view1 i have one inputfield and the context attribute is Value1.On click of Continue button after user enters the input field value the navigaton is to view2 ..so at a time in viewset both the views get dispalyed menas page is getting refreshed..so the inputfield value enterd by the user should be retained and has to be displayed again in that view1 inputfield and make it as readonly
Regards
Padma N
Hi ,
I am replying on behalf of padma,
Imagine there are 2 views in vieset.
TopView - cell1,1
BottomView,empty view - cell2,1
In TopView There is textbox.User enters data and click continue button.Then the emptyview in cell2,1 is replaced by BottomView.
At this moment the data in TopView need to be reatined.
At present TopView Inputbox is binded to context attribute which inturn mapped to component controller.So data will be reatined in component controller,but it is unable to retain in inputbox in TopView.
Please suggest me how to retain the values in view and avoid referesh/reset ?
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
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.