cancel
Showing results for 
Search instead for 
Did you mean: 

FIORI Elements with ODATA V2: Side Effect not triggered

casualCoder
Participant
0 Kudos
156

Hi, 

I have a FIORI Elements App with an ODATA V2 Model as Backend. What I would like to achieve:

If a User enters an Input in an Field in the Object Page, an Import Function is triggered to update another Field. 

The App is non-draft. But it is not getting triggered. 

I am referring to Side Effects - Documentation - Demo Kit - SAPUI5 SDK

For my understanding: Do I have to press SAVE to trigger it? I want it to be displayed live directly after input. 

Code in BAS:

 

<Annotations Target="SAP.USER_ABC">
    <Annotation Term="com.sap.vocabularies.Common.v1.SideEffects" Qualifier="CalculatePrice">
        <Record>
            <PropertyValue Property="SourceProperties">
                <Collection>
                    <PropertyPath>CUSTOM_FIELD</PropertyPath>
                </Collection>
            </PropertyValue>
            <PropertyValue Property="TargetProperties">
                <Collection>
                    <String>CUSTOM_OUTPUT</String>
                </Collection>
            </PropertyValue>
            <PropertyValue Property="TriggerAction" String="XXX.PM_USER_SCEN_ASS_SRV.XXX_PM_USER_SCEN_ASS_SRV_Entities/CHECK"/>
        </Record>
    </Annotation>
</Annotations>

 

The Function Import is working on itself in the App.

Accepted Solutions (0)

Answers (0)