Skip to Content
author's profile photo Former Member
Former Member

customize editorarea

Hy experts.

I want to create a customize editor area and need an advice. What I want to do is:

I have this data when selecting an result. alt text

In all this tabs I will have data from the selected entity but from other entities relationed. For example imagine I've selected an order. This order has a property which is a type of another entity linesOfOrder. This entity linesOfOrder has a property "product" which is a type of another entity "Product".

In this first tab "General" I want to show for example ordernumber, linesOfOrder id and product name. I know I need for each tab a custom render but I don't know how to show those inputs.

For this first tab I have:

 <editorArea:editorArea xmlns:editorArea="http://www.hybris.com/cockpitng/component/editorArea">
             <editorArea:tab name="new.request.general.tab">
                 <editorArea:section name="new.request.general.tab">
                     <editorArea:customPanel name="customTabGeneral" spring-bean="customGeneralRender">
                         **<editorArea:render-parameter>
                             <editorArea:name></editorArea:name>
                             <editorArea:value></editorArea:value>
                         </editorArea:render-parameter>**
                     </editorArea:customPanel>
                 </editorArea:section>
             </editorArea:tab>



How can I create entries for this information so user can see and modify if needed.

Thanx a lot. Regards.

Add comment
10|10000 characters needed characters exceeded

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 06, 2018 at 03:16 PM

    Hi Carlos,

    It is doable. you can make use of Default Extended Multi Reference Editor in an editor area to show table like structure. The attributes which are not from the particular type or need some custom logic to evaluate, you can write custom renderer for the same.

    Let us know once it is done, so that other can also make use of it.

    For custom renderer, you can follow this link https://answers.sap.com/questions/12759433/how-to-display-relational-attribute-in-list-view-o.html?childToView=12803974#answer-12803974

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 06, 2018 at 02:04 PM

    you could add these fields as dynamic attributes to your type. Then simply configure the fields in Backoffice.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hy . Thanks for your reply. I've thought about that but I'd l ike to do that without using dynamic attributes since I have all data in relationed entities.

      I want to do that because in project we have more then 10 entities relationes and don't want to add dynamic attributes to each one and find a way to use the relation between them.

      Thanx a lot ;)

  • author's profile photo Former Member
    Former Member
    Posted on Dec 07, 2018 at 11:43 AM

    Hy all.

    I finally could see data of relationed entities using "marketplaceNestedAttributePanelRender"

     <editorArea:customPanel name="marketplacebackoffice.renderer" spring-bean="marketplaceNestedAttributePanelRenderer">
                             <editorArea:attribute qualifier="basicData.applicant" readonly="false" label="marketplacebackoffice.order.customer.id"/>
                             <editorArea:attribute qualifier="initiator" readonly="false" label="marketplacebackoffice.order.customer.id"/>
                             <editorArea:attribute qualifier="processContext.activeTasks" readonly="false" label="marketplacebackoffice.order.customer.id"/>
                         </editorArea:customPanel>
    
    

    Only problem I have now it's that I can modify data but the save button is not getting active....

    Add comment
    10|10000 characters needed characters exceeded