Quantcast
Channel: SCN : Popular Discussions - SAP Cloud Applications Studio
Viewing all articles
Browse latest Browse all 1333

Scripting and Null comparision

$
0
0

Hello,

 

I am trying to do a comparison of the value in the this.CurrentDefaultAddressInformation.Address.CommunicationPreference.CorrespondenceLanguageCode

field with null.

 

The problem is that when this field does not have a value, a null is returned but I cannot compare this directly. So I could not use

this.CurrentDefaultAddressInformation.Address.CommunicationPreference.CorrespondenceLanguageCode.ToString == ""

as this gives a short dump.

 

Any ideas how I could stop the user from leaving this field null but make a selection always.

 

Thanks and Regards,
Vikram


Viewing all articles
Browse latest Browse all 1333


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