cancel
Showing results for 
Search instead for 
Did you mean: 

How to refresh subsection table dynamically in Edit mode based on value of a field

02-10-2023 3:11 PM
546 views 1 comments Go to solution
0 Likes
SAP Managed Tags
Subscribe

Dear all,

I have a requirement to update the table in subsection depending on the value entered in a field in edit mode.

Data in subsection table are coming from association in root view

association [0..*] to <orders entity> as _OpenOrders

which is configured to be shown in a facet in metadata extension

{ id: 'fgOpenOrders',
label: 'Offene Aufträge',
type: #LINEITEM_REFERENCE,
targetElement: '_OpenOrders',
position: 60
},

Currently the table in subsection is updated only after clicking save.

Is there any way to achive the refresh of subsection in edit mode after each change of the field value?

May be Side effects + Determination, but how exactly I can configure this?

0 Likes

Accepted Solutions (1)

Accepted Solutions (1)

JessieCheah
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Mikhail,

you just need side effects.

<Annotation Term="Common.SideEffects" Qualifier="Field_FieldName">
  <Record Type="Common.SideEffectsType">
    <PropertyValue Property="SourceProperties">
      <Collection>
        <PropertyPath>FieldName</PropertyPath>
      </Collection>
    </PropertyValue>
    <PropertyValue Property="TargetEntities">
      <Collection>
        <NavigationPropertyPath>_OpenOrders</NavigationPropertyPath>
      </Collection>
    </PropertyValue>
  </Record>
</Annotation> 

Regards,

Jessie

Answers (0)