Dear Sir,
Can the 'context' be passed from a ftl file to java?
I see a 'globalContext' in this link...
https://cwiki.apache.org/confluence/display/OFBIZ/Variables+always+available+in+screen+context
My goal is to use context here..
---
dbName.setNonPKFields(context);
-
Hello Avijit,
Can you share some peace of code, I didn't understand your ftl to java ?
You have a ftl template and go to java service through request call or
you want to call a java code on a ftl code ?
Nicolas
On 28/06/2022 12:45, Avijit Bose wrote:
> Dear Sir,
>
> Can the 'context' be passed
Hi Nicolas,
First... I have a ftl file like this. Here I am calling "createStudent" in
the controller through "<@ofbizUrl>createStudent"
*
. blah blah blah
*
Second my controller as shown below
*
***
Hello Avijit,
It looks like you are getting confused from the concept of Events and
Services in java. It is very well explained in the OFBiz tutorial:
https://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Tutorial+-+A+Beginners+Development+Guide+for+18.12
Now talking about your code snippet:
Y
Hi Ashish,
I completely understood your explanation. I also have a workable
understanding about service and events.
Firstly ... I wanted to handle and manipulate request data before storing
it in the database.
Secondly... It is required to insert request data into 10 different
entities.
Thirdly..
Hello Avijit,
You have shared following code snippet in your previous email:
// Setting up all non primary key field values from context map
smsSubjectMaster.setNonPKFields(context);
"context" is just a map object from which you can get the parameters passed
to the service definition in
Thank you Ashish. I will try it.
regards
Avijit
On Tue, Jul 12, 2022 at 10:04 AM Ashish Vijaywargiya <
ashish.vijaywarg...@hotwaxsystems.com> wrote:
> Hello Avijit,
>
> You have shared following code snippet in your previous email:
> // Setting up all non primary key field values from context m