Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to concatenate the values of two fields ?

Christian PitetDec 17 2018 — edited Jan 21 2019

Hi

I have a form with two items : P3_COMMENTAIRES and P3_COMMENT. I want with a dynamic action on a button to concatenate the values of these two fields into the field P3_COMMENTAIRES. For example, if P3_COMMENTAIRES contains the text "FIRST", and the item P3_COMMENT contains the value "SECOND", the item P3_COMMENTAIRES will be assigned the value "FIRST SECOND" when I click on the buton ADD_COMMENT. I have set up a dynamic action but without result.

DECLARE

COMMENTAIRE VARCHAR2(512);

COMMENT VARCHAR2(512) ;

RESULT VARCHAR2(512) ;

BEGIN

COMMENTAIRE := APEX\_UTIL.FETCH\_APP\_ITEM(

    p\_item => 'P3\_COMMENTAIRE',

    p\_app => 112);

COMMENT := APEX\_UTIL.FETCH\_APP\_ITEM(

    p\_item => 'P3\_COMMENT',

    p\_app => 112);

RESULT := COMMENTAIRE || ' ' || COMMENT ;

APEX\_UTIL.SET\_SESSION\_STATE('P3\_COMMENTAIRES', V('RESULT'));

END;

pastedImage_5.png

Thank you.

This post has been answered by Franck N on Dec 17 2018
Jump to Answer
Comments
Post Details
Added on Dec 17 2018
4 comments
190 views