cancel
Showing results for 
Search instead for 
Did you mean: 

TabStrib and validation

Former Member
0 Kudos

Hello,

i have a view with a TabStrip. I validate the input and report it with

msgMgr.reportInvalidContextAttributeException(...)

The navigation of the shown error messages does not behave as i expect.

The validation error messages can only navigate to the wrong input fields, if the corresponding tab is selected.

Is it possible to select the right tab, if the user clicks on a navigation link of an attribute error message?

Thanks and best regards,

Matthias

Accepted Solutions (1)

Accepted Solutions (1)

former_member182372
Active Contributor
0 Kudos

Hi Matthias,

I think the only option is to do such tab switch manualy:

1) create selectedTab context attribute

2) bind it to selectedTab TabStrip UI`s element.

3) in place where you have <i>msgMgr.reportInvalidContextAttributeException(...)</i> change selectedTab context attribute to appropriate value depending on where invalid UI element is plced.

Best regards, Maksim Rashchynski.

Former Member
0 Kudos

Hello Maksim,

Thanks for your answer. The place i use <i>msgMgr.reportInvalidContextAttributeException(...)</i> can report errors of more then one tab. In this case i can't decide wich tab i have to select. My idea is to place the tab name in the error message, but that is not my first choice.

Best regards, Matthias

Former Member
0 Kudos

Hai,

create a value Attrbut of type String, bind trhis value attribute to tabStrip selectedtab.

you can place the code like this

msgMgr.reportInvalidContextAttributeException(""+wdContext.currentContextElement.getUrAttribnmae) ;

regards,

Answers (0)