Hi Emad,
Here is the logic:
Condition to check if the person
https://github.com/apache/ofbiz-framework/blob/trunk/applications/party/widget/partymgr/ProfileScreens.xml#L54Menu added for the person
https://github.com/apache/ofbiz-framework/blob/trunk/applications/party/widget/partymgr/ProfileScreens.xml#L66Menu added for the party group
https://github.com/apache/ofbiz-framework/blob/trunk/applications/party/widget/partymgr/ProfileScreens.xml#L105You can also get a quick reference by inspecting markup in the browser.
https://drive.google.com/file/d/17-1Abb79WrToTd79jLCTKNGJl--0a4x1/view?usp=sharingI would recommend you to go through the basic tutorial and framework
architecture video to get a better understanding of the flow.
Basic tutorials
https://cwiki.apache.org/confluence/x/dQiQBQhttps://www.youtube.com/playlist?list=PLobIkeUbRXqc-lwvbdbajPJdbWjFm82DjFramework Architecture (Old but a lot of it still valid)
https://www.youtube.com/playlist?list=PL199BC2AE602B3D1AHTH
Thanks and Regards,
Aditya Sharma
On Sun, Nov 15, 2020 at 6:10 PM Emad Radwan <
[hidden email]> wrote:
> Hi There,
>
> In the find party grid, if I select a person then in the 'view profile'
> page the 'personal information panel'
> lists only fields related to a person while if I select a 'Party Group'
> party like a company then the listed details also reflects that. More over,
> 'Update' button in the 'personal information panel' points to the relative
> 'Edit' form like 'EditPerson' or 'EditParty', etc. My question is where
> can I find this logic and is it based on the party type of the party? I
> tried searching but looks like having the 'viewProfile' is a 'Portal Page'
> confuses me a bit.
>
> Regards,
>
> Emad
>