Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Cursor should come to that filed, if user deosn't enters it

Hi Team,

I want to make the cursor should placed on that perticular place, when the user doesn't enter any value for that field.

I wrote the below code, It showing the inputfiled as red, but the cursor is not coming to that field.

String firstName = wdContext.currentContextElement().getFirstName();

if(firstName == null){

wdComponentAPI.getMessageManager().reportContextAttributeMessage(

wdContext.currentContextElement(),

wdContext.getNodeInfo().getAttribute("firstName"),IMessageBalaComp.FIRST_NAME_BLANK,null,false);

Can any help me on this.

Regards,

Bala

Former Member
Not what you were looking for? View more on this topic or Ask a question