Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8419

Check mandatory for Select Option

$
0
0

Dear -

 

Looking at the title seems very common and already discussed several times in the forum earlier but actually I am placing my question/need which may be little different in this case.

 

I am trying to validate mandatory parameter / select option fields in my demo component. I am aware of the  cl_wd_dynamic_tool=>check_mandatory_attr_on_view approach but it is not working as I am looking for.

 

Reason , here I need to provide the view controller reference of the view for select option and not the original component where I have used the select option.I have also checked the forum and somewhere it is being mentioned to get the field content and check if that is initial and raise error.

 

This will not be very useful reason in my case I have created dynamic select option / parameter fields and made all mandatory (around 20 parameters / select option fields can get generated dynamically in my case). Therefore I need to stop triggering any further action if any of the dynamic field is empty / initial.

 

In other word I am trying to get the IF_WD_VIEW_CONTROLLER reference for the select option. I tried type narrow / wide casting but that also didn't work.

 

So please share if any better / smarter approach you know which I can learn.

 

- Thanks , Somnath


Viewing all articles
Browse latest Browse all 8419

Trending Articles



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