cancel
Showing results for 
Search instead for 
Did you mean: 

How to reset view in Tabstrip

Former Member
0 Kudos

Hi

I have created a View having 4 tabs in tab-strip.

These 4 tabs contain 4 different views, each having many input fields.

Some input fields are validated for their input.

If validation fails, then an error message is displayed on the page.

When I change the tab, these error messages should disappear, which is not happening.

I tried to reset/ refresh the view in wdDoModifyView, but it is not solving my problem.

Please help.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Dear Venkat,

Try this

1. Declare a variable for the view as: com.sap.tc.webdynpro.progmodel.api.IWDView View1

2. Declare an Action for refreshing the view and paste the following code in that:

//@@begin onActionRefreshView(ServerEvent)

try

{

View1.resetView();

}catch(Exception e)

{

e.printStackTrace();

}

//@@end

3. Associate this action with a button/ Link/ Tab at the press of which you want the page to refresh

Regards

Vineet Vikram

Answers (1)

Answers (1)

former_member189631
Active Contributor
0 Kudos

Hi Venkat,

*Use context attribute to display the messages.

*Display the value of context attrubute when you display the message.

*Write a seperate method in the component controller to display the message.

*Write a seperate method to clear context attribute message.

*When u dont want the message u can call the method to clear your context

attributes.

Regards,

Ramganesan K.