on 04-13-2007 10:39 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
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.