cancel
Showing results for 
Search instead for 
Did you mean: 

How to fill/highlight the input field (read only)

Former Member
0 Kudos
126

Hi,

I want to fill some of my input field with some colour or I want to highlight the boarder of the input field so as to make the field distinct from other fields.I tried changing the property of the cell:- cellbackgroundDesign (fill1,fill2,plain,thansparent,boarder).But its not working.

can nywant please suggest how to do this.

regards

-Sandip

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

As per my knowledge there is no possibility to change the colour of the inputfield.

If that input field is not editable (read only) then instead of input filed you can use the textview and you can change the sematicColour property to change the colour.

Regards,

Charan

Former Member
0 Kudos

Hi Krishna,

Thanks for your reply,

Then what is the use of cellbackgroundDesign property (fill1,fill2,plain,boarder).

How can i use those properties.

Thanks in advance.

Regards

-sandip

Former Member
0 Kudos

Hi,

If you observe, cellBackgroundDesign is not the property of the input filed.

This property will be there under LayOutData Section of your input field properties.

That means it is the property of the container( Transparent/ Group..etc) in which this input field is there.

If you change the value in this property the background colour of that container will change. Not the colour of InputField.

You can do one thing. But i dont suggest to do that.

Adjust the width and height of the container just a little bigger than Input Field. And then change the background colour. It looks ok.

Regards,

Charan

Answers (2)

Answers (2)

former_member40425
Contributor
0 Kudos

Hi,

Write the following code in WDDoModify of your view..

if(firstTime)
{
	IWDInputField InputField = (IWDInputField) view.getElement("INPUT_1");
	InputField.requestFocus();
}

Here INPUT_1 is the ID of your input field.

It will help you.

Regards,

Rohit

Former Member
0 Kudos

Hi Rohit,

I implimented as you suggested.But nothing is happening.

Can you please tell me what exacly this method requestFocus() does??

Regards

-Sandip

former_member40425
Contributor
0 Kudos

Hi ,

sorry for the last post. Actually puts the cursor in desired input field.

Go through the following thread ... It may help you.

https://forums.sdn.sap.com/click.jspa?searchID=31380798&messageID=8120684

Regards,

Rohit

Former Member
0 Kudos