Passing "CONTEXT" from FTL to Java

2022-06-28 Thread Avijit Bose
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); -

Re: Passing "CONTEXT" from FTL to Java

2022-07-08 Thread Nicolas Malin
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

Re: Passing "CONTEXT" from FTL to Java

2022-07-08 Thread Avijit Bose
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 * ***

Re: Passing "CONTEXT" from FTL to Java

2022-07-10 Thread Ashish Vijaywargiya
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

Re: Passing "CONTEXT" from FTL to Java

2022-07-11 Thread Avijit Bose
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..

Re: Passing "CONTEXT" from FTL to Java

2022-07-11 Thread Ashish Vijaywargiya
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

Re: Passing "CONTEXT" from FTL to Java

2022-07-12 Thread Avijit Bose
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