Skip to Content
avatar image
Former Member

Navigation has to be terminated when validation is failed?

Hi Gurus,

I have a requirement where in which drop down field has six values (which is populated from R/3 using adaptive RFC).

Now user wants to block the last three fields (not hide) so that User can see the fields in the drop down but they cannot amend the field as their choice .

Now I have noted the index value of the subjected codes which needs to be in display state.

Indexes are 3,4,5

So I have written the code as

index = wdContext.currentT505NElement().node().getLeadSelection();

if (index =3 || index = 4 || index =5){

wdComponentAPI.getMessageManager().reportException("You cannot amend this code",true);


It Raises the error message but still it allows the user to proceed further ? but it shouldn't allow the user to proceed further if they amend the above said codes(3,4,5)

Can you guys please provide the code for the above requirement.

I will surely award higher points for the valuable inputs

Thanks in Advance,


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Mar 17, 2008 at 06:44 AM


    Create a validating action and use the following method set the cancelNavigation to true.

    public void reportException(String message, boolean cancelNavigation);



    Add comment
    10|10000 characters needed characters exceeded