Question

Add Attribute value in continuation using Message_Sys Package

  • 12 December 2020
  • 2 replies
  • 240 views

Userlevel 3
Badge +6

Hi,

I wanted to pass parameter value in continuation with Message_Sys.Add_Atribute method in dialogbox

Message_Sys.Add_Attribute(Valriable_, Name_, Value_);

then it’s contain value like ‘$VARIABLE=VALUE’ but i wanted to like ‘-$VARIBALE=VALUE’

‘-$’ this symbol indicate value with continuation and i wanted it.

 

 c_ VARCHAR2(32000) := '!OBJ_VAL_CHANGE
$B=!
-$COMPANY=COM01
-$OBJECT_ID=XYZ
-$BOOK_ID=ABC
-$EVENT_DATE=2015-03-31-00.00.00
-$RETROACT_DATE=2015-03-31-00.00.00
-$VOUCHER_DATE=2020-03-31-00.00.00
-$VOUCHER_TYPE=A
-$USER_GROUP=AC
-$VALUE=-6000.00
-$IS_AMOUNT=TRUE
-$OBJECT_TRANSACTION_TYPE=11
-$USER_ID=IFSAPP
-$METHOD_ID=LMP-X10
-$TRANSACTION_REASON=DEFAULT
-
'; --p2

 

Thanks

Shekhar

 


This topic has been closed for comments

2 replies

Userlevel 3
Badge +7

Hi

You should first construct the message and then add attributes.

         note_ := Message_SYS.Construct('NOTIFY_ME_NOTE');
         Message_SYS.Add_Attribute(note_, 'INDEX', index_);
 

The message is a string so you can do direct string manipulation if you prefer that.

Userlevel 3
Badge +6

When i using it. “        

note_ := Message_SYS.Construct('NOTIFY_ME_NOTE');
Message_SYS.Add_Attribute(note_, 'INDEX', index_);  “

 

Output is like  $INDEX=index_.  but i want in following manner  :    -$INDEX=index_ 

Please consider just before dollor sign.