Serializable in oaf
Serializable is basically used in OAF to pass multiple
parameters as a Single Parameters in the Methods/Functions created in the OAF
application Module. With the help of Serializable we can pass the Parameters of
Different Types in the single Parameters but the Parameters should be in the
same sequence as like the Methods/Procedure parameters. We also don’t need to
take care about the Datatype mentioning during Parameters passes in the
Methods. Serializable takes all the parameters in a sequential manner and pass
all the parameters to the methods in the same way.
I have shared the Serializable using Example in the OAF Page
controller.
In this I am using ‘params’ as a parameter for Serializable
function of the OAF and then I am passing two parameters sequentially in this
‘params’ parameter of the Serializable and then Later I am using this ‘params’
variable to pass all the values to the Method Parameters.
class updatePo extends OAControllerImpl
{
public void processRequest(pageContext,
webBean)
{
OAApplicationModule am =
pageContext.getApplicationModule(webBean);
Serializable[] params = { 135, “POSTED” };
am.invokeMethod(”initQuery”,
params);
}
}
0 comments:
Post a Comment