Skip to Content
1
Apr 10, 2019 at 08:04 AM

【Fiori element template】How to bind parameter to importFunction(Odata) with UI.DataFieldForAction

245 Views

Hi Everyone,

I used DataFieldForAction to send action to the imported Function in Odata side. However, I cannot send the parameter which I wanted automatically. After clicking the button, the parameter popup appeared that I have to input it manually. What I want is to send the id(such as order ID number) of selected line to the backend side.

Pic①:The function I created in the Odata side.

Pic②:The annotation related to button which is DataFieldForAction.

Pic③:The result is that I have to input the parameter manually but not bind some field automaticlly.

There must be some other annotation configuration should be set but unfortunately I could not find any hint.

Could some one

help me.

Thanks a lot in advance.

Best regards,

Xin