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

Re: Providing search help with result help text instead Id

$
0
0

As Andrei already mentioned - you need to generate the GET method of the newly created context field and in this method create logic to return text value for any other value of the context that you want.

 

For example (written from memory, might need some tweaks):

IF iterator IS BOUND.

current = iterator->get_current( ).

ELSE.

current = collection_wrapper->get_current( ).

ENDIF.

 

CASE current->get_property_as_string( iv_attr_name = 'SOME_PROPERTY' ).

  WHEN 'value1'.

    value = 'text for value1'.

  WHEN 'value2'.

    value = 'text for value2'.

  WHEN OTHERS'.

    value = 'text for others'.

ENDCASE.

 

You can do this using the DB SELECT of course or read text from a domain if needed. The above code is just a proof of concept.

 

regards


Viewing all articles
Browse latest Browse all 9129

Trending Articles



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