cancel
Showing results for 
Search instead for 
Did you mean: 

How to make feild Mandatary in view by palcing "*" in RED

Former Member
0 Kudos

Hi All,

I am new to Web Dynpro , i need following clarification,

In a Veiw i need to give "County" labe as mandatary by placing "*" in front of it which is should be in RED color.can any one tell me how to make it .

Thanks and Regards

CB

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Select the particular fields and in property u will find one state followed by one dropdown box in that select required from that, then will see that field label contains * .

Regards,

Suresh

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Why not just use the built in mandator functionatity (property state on the input field = required). This way your application will be consistent with standard SAP ones. You can then also use CL_WD_DYNAMIC_TOOL=>CHECK_MANDATORY_ATTRIBUTES to check on input if all required fields are supplied.

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/d7/ef8841e3af1609e10000000a155106/frameset.htm

Former Member
0 Kudos

Hi Thomas ,

Thanks a lot for your valuable help.

Regards

CB

Former Member
0 Kudos

Hi Chinna

use text view ui element before that field, give text as "*" and set property semanticcolor as negative, it gives red. i think it might helpful.

Thanks,

kriss.