Quantcast
Viewing all articles
Browse latest Browse all 9076

Re: Default selection of dropdown value help in bp search for custom field

Hi Sven Wagener,

 

what i understand is you want to set the default entry is second value right?

 

if this is your requirement then go for this procedure.

 

In redefine do_init_context method and fetch the collection in that collection get your field name and value.

make a condition like this if the value = 'first value of your drop down' then set to second value.

 

this method will execute only in the initial stage means when ever you login into your business role this method will execute.

 

example:

 

lr_col ?= me->typed_context->yournode->collection_wrapper->get_current( ).


check lr_col is bound.

lr_col->get_property_as_string( EXPORTING iv_attr_name = 'DROPDONWFIELD' RECEIVING rv_result = lv_dropdownfield ).


if lv_dropdownfield EQ 'FIRSTFIELDKEY'.

lv_dropdownfield = 'SECONDFIELDKEY'.


lr_col->set_property( EXPORTING iv_attr_name = 'DROPDONWFIELD' iv_value = lv_dropdownfield ).


IF this is not your requirement then give me some screen shorts.


Thanks & Regards,

Srinivas.


Viewing all articles
Browse latest Browse all 9076

Trending Articles



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