on 11-17-2014 1:18 PM
Hi Frnds,
Am new to Webdynpro ABAP, I am working on Tabstrip control, i have some problems while navigating between Tabs in Tabstrip.
My Scenario:
I have two tabs in Tabstrip, each contains,
1. Label and Input Field as Mandatory.
2. Label and Input Field
i want to throw the error msg to fill the input field, whenever i click on second tab without entering mandatory field,
I have tried with using SELECT Event in Tabstrip, When i click to Second tab without entering Value the Msg comes,
i tried with "report_attribute_error_message" method.
But it goes to second tab, it cant stay on first tab itself.
I need your Help or Sample code to achive.
Thanks,
Pradeep.
Hi Pradeep,
Please check below link.
.
Create a attribute and bind it to selected tab property of tabstrip UI.If both the fields are initial then set the selected tab to first tab.
Regards,
Harsha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for your reply friends..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Create one attribute(let say "Selected_tab") bind it with the selected tab property of tabstrip, on tab select method keep the current tab name in one local variable by reading the same attribute, now check for mandatory condition, if mandatory fields are empty set the "selected_tab" attribute with the local variable name otherwise allow it to go without any changes..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Create an attribute(say SELECTED) in context and Bind the selectedTab property of the Tabstrip UI to that attribute.
Now in onSelect of tabstrip, read the input field and if it is initial display error and set the attribute SELECTED to TAB1 ( TAB1 is the ID of Tab 1)
hope this helps,
Regards,
Kiran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In report_attribute_error_message method, Try CANCEL_NAVIGATION = ABAP_TRUE attribute and check.
Thanks
KH
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.