Many thanks Aditya. It looks like I need to understand actions and the 
mini-lang well to be able to understand Ofbiz. I'll appreciate it if you can 
refer to a good documentation for the same as I failed to find a complete one. 
On the other hand and with the example of the 'main_role' role concept its 
starts getting fun but again is this only mentioned in code? Or documented 
somehow? I feel I understand the Party and Roles model from the book but the 
role of a certain party like 'main_role' is for sure not there.

Please shed some light if you can.

Regards,

Emad.

On 2020/11/02 05:33:23, Aditya Sharma <adityasha...@apache.org> wrote: 
> Hi Edmad,
> 
> In row-actions, we define actions related to each row which helps us to get
> related data for each record
> https://github.com/apache/ofbiz-framework/blob/trunk/applications/party/widget/partymgr/PartyForms.xml#L136
> 
> Here you can see the mainRole is populated by calling getPartyMainRole
> service
> https://github.com/apache/ofbiz-framework/blob/trunk/applications/party/widget/partymgr/PartyForms.xml#L141
> 
> HTH
> 
> Thanks and Regards,
> Aditya Sharma
> 
> 
> On Sun, Nov 1, 2020 at 8:51 PM Emad Radwan <eradwan1...@gmail.com> wrote:
> 
> > Hello everyone,
> >
> > Would you please have a look at my last reply and help if you can?
> >
> > Regards,
> >
> > Emad
> >
> > On 2020/10/30 10:34:21, Emad Radwan <eradwan1...@gmail.com> wrote:
> > > Hello Aditya,
> > >
> > > Reference to the above that was helpful, in the Parties grid I'm finding
> > > difficulty understanding how the 'main role' column was fetched from the
> > > DB. I think the following line is the configuration of the column in the
> > > grid - <field name="mainRole"
> > title="${uiLabelMap.PartyMainRole}"><display
> > > description="${mainRole.description}"/></field> - and I went thru
> > > 'PerformFindPart'
> > > in mentioned PartyServices and although I'm not a Java expert but I guess
> > > the code is building the conditions based on the search parameter, but
> > > where
> > > I can see the link between Party & Party_Role and how the main role is
> > > calculated specially that there is no indicator in Party_Role for that,
> > is
> > > it based on the date
> > > the role is linked to certain party?
> > >
> > > Thanks for help,
> > >
> > > Emad
> > >
> > >
> > > On Tue, Oct 27, 2020 at 7:59 AM Aditya Sharma <adityasha...@apache.org>
> > > wrote:
> > >
> > > > Hi Edmad,
> > > >
> > > > Here is how you can trace out the flow based on the request
> > > >
> > > > controller request
> > > >
> > > >
> > https://github.com/apache/ofbiz-framework/blob/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml#L511
> > > >
> > > > view mapping
> > > >
> > > >
> > https://github.com/apache/ofbiz-framework/blob/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml#L1415
> > > >
> > > > Screen & Forms
> > > >
> > > >
> > https://github.com/apache/ofbiz-framework/blob/trunk/applications/party/widget/partymgr/PartyScreens.xml#L25
> > > >
> > > >
> > https://github.com/apache/ofbiz-framework/blob/trunk/applications/party/groovyScripts/party/FindParty.groovy
> > > >
> > > >
> > https://github.com/apache/ofbiz-framework/blob/trunk/applications/party/widget/partymgr/PartyForms.xml#L131
> > > >
> > > > performFindParty service which returns the results based upon the
> > > > parameters
> > > >
> > > >
> > https://github.com/apache/ofbiz-framework/blob/trunk/applications/party/src/main/java/org/apache/ofbiz/party/party/PartyServices.java#L1519
> > > >
> > > > HTH
> > > >
> > > > Thanks and regards,
> > > > Aditya Sharma
> > > >
> > > > On Sun, Oct 25, 2020 at 4:46 PM Emad Radwan <eradwan1...@gmail.com>
> > wrote:
> > > >
> > > > > Hi There,
> > > > >
> > > > > While testing the Parties module I noticed that default find party
> > > > results
> > > > > - returned records - are not all there in the database, this is
> > while I
> > > > > didn't specify any parameters. What are the logic behind this and
> > where
> > > > its
> > > > > configured.
> > > > >
> > > > > Regards,
> > > > >
> > > > > Emad.
> > > > >
> > > >
> > >
> >
> 

Reply via email to