Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9071

Re: SAP Cloud For Customer make any fields Mandatory from SDK or Front End

$
0
0

Hi Mithun,

 

I am not sure about front end but from studio you can definitely make it possible.

 

For making the mandatory * come on screen you need to enhance the screen ( COD_Account_TI )

Open extensibility explorer in UI Designer.

Open the section group Header and click Adjust Properties.

 

 

Then select True within column for the field you want to make mandatory.

 

 

Remember setting it mandatory would not automatically do a validation as well.

 

You need to write the code in Validation OnSave to not to save with out this field.

 

Sample code looks something like this where AccountEMail is a field in account header.

 

if ( this.CurrentCommon.AccountEMail.content.IsInitial() )

{

raise MsgEmail.Create( "E");

return false;

}

 

Hope this helps

 

Regards

Vinod


Viewing all articles
Browse latest Browse all 9071

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>