cancel
Showing results for 
Search instead for 
Did you mean: 

Viewset data navigation

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

After clicking Continue page is geeting refreshed..so the data in inputfield is showing empty..

but it has to show the data entered by the user

Regards

Padma N

Former Member
0 Kudos

Hi,

Can you explain what you have done so far,

1) From where the contexts are mapped to the views?

2) Are all views part of one component?

3) What do you do in the continue button?

Regards

Ayyapparaj

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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 ?

Former Member
0 Kudos

Hi,

Change the life span of the view from When Visible to Framework Controlled.

Regards

Ayyapparaj

Former Member
0 Kudos

Hi ,

The Lifespan of my view1 is Framework_Controlled only.....

but the data of view1 is getting refreshed after clicking Continue button

Regards

Padma N