Skip to Content
0
Former Member
Aug 08, 2012 at 10:04 AM

Field is empty when in display mode

75 Views

Hi all!

I've changed field type from Input field to Picklist, assigned logics in GET_V_XXXX and GET_P_XXX

Now when im going to Display mode my field is empty!!! and when im in Edit mode everything is okay...

I tried this:

in DO_PREPARE_OUTPUT

lo_objref_set ?= me->typed_context->btrefobjmain->collection_wrapper->get_current( ).

TRY .
lo_ibcomp = lo_objref_set->get_related_entity( 'BTIbaseComponent' ).

CATCH cx_root.

ENDTRY.
TRY .
lo_value = lo_ibcomp->get_property_as_string( iv_attr_name = 'INSTANCE' ).
CATCH cx_root.
ENDTRY.

TRY .
lo_ibcomp->set_property( iv_attr_name = 'INSTANCE' iv_value = lo_value ).
CATCH cx_root.

ENDTRY.

But...field is empty in Display ...

Points will be rewarded!

Regards Dan