Monday, November 22, 2010

Dynamic Messages Using Tokens


First you must create a message in Oracle Apps and tag the dynamic part of the message with an ampersand "&". By convention these tags must be in uppercase. - &LOAN_ENTRIES

Java Code in Controller

MessageToken[] tokens = {new MessageToken("LOAN_ENTRIES", getInstructionLoanEntries(loanTypeCode,am)) };
 oaRawTextBean.setText(pageContext.getMessage("XXHLS", "XXHLS_SIMULATE_PS_INST", tokens));


Import MessageToken class and create an array of it with elements containing the tags you used in the message. Take note of the application short name and the message name - parameters that will be used for the getMessage method.

Random Rant =w=

JDeveloper's intellisense is buggy - when there is an error in the code, the reflector cannot properly detect the methods in the class anymore .. wtf TwT and so as the refactor function .. rawr

No comments:

Post a Comment