cancel
Showing results for 
Search instead for 
Did you mean: 

# doubts on UI developing

Former Member
0 Kudos

1.I created a group but it is coming on the left top cornet i want to move that on to the middle.,how?

2. how can i restrict the input to input field is only a string,is there any way to track the keystroke?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi shanto,

Group:

1)Click Group UI element--->go to Properties-->change hAlign= Center

can u tell me clearly abt ur input field question....what u want to do...

Former Member
0 Kudos

in the inputfield i want to enter only characters

Former Member
0 Kudos

Hi,

U can achieve this only by Validation....for this u have to write some coding......

1)Create 1 attribute as name and bind that to input field

Validation coding:

String name=wdContext.currentContextElement().getName();

for(int i=0;i<name.length();i++)

{

if(!(Character.isLetter(name.charAt(i)) || Character.isWhitespace(name.charAt(i)) || name.charAt(i)==46))

{

wdComponentAPI.getMessageManager().reportMessage(IMessageFilterModel.NAME_VALIDATION,null,false);

}

}

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

That is because, the layout property of your view's RootContainer is FlowLayout.

Change the layout property of RootContianer and Group to Grid layout and accordingly choose the value of hAlign and vAlign in the layout data of the group.

I didnt get what you were asking about input field.

Former Member
0 Kudos

Hi,

1.Make all layout including RootContainer as grid.Make hAlign as Center and colcount as 1 for all.

2. There is no way to track the keystroke in webdynpro, but some methods r there to change focus,etc..

Regards

Fahad Hamsa