cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate Page Footer Buttons dynamically using Data Binding

SandipAgarwalla
Active Contributor
0 Kudos

Hi all

I am developing a Fiori type MD application, where the Buttons in the Details Page footer would be dynamic.

e.g.

The buttons should be dynamic and the text and type would come from an entity set

I tried creating the footer with data binding but it didnt work. This is what I tried


<footer>

  <Toolbar id="footerToolbar" items="{/ET_Workorder_ActionsSet}">

  <content>

  <Button text="{Next_Action}" type="Accept"/>

  </content>

  </Toolbar>

  </footer>

But it does not trigger any oData call to the entity set, so look like Toolbat does not have items aggregration.

What else can be done?

Thanks

Sandip

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi sandip ,

Use content aggregation like this

JS Bin - Collaborative JavaScript Debugging

Regards

SandipAgarwalla
Active Contributor
0 Kudos

Thanks Rajesh

That was perfect.

Regards

Sandip

SandipAgarwalla
Active Contributor
0 Kudos

Hi

If I have to set the binding programatically, how would that be

oFooter.bindElement("content","<entity_set>");

oFooter.bindObject("content","<entity_set>");


The above didnt work. How do I bind it using the apis.


Thanks

Sandip

Former Member
0 Kudos

Hi sandip,

You can use bindAggregation method like this

JS Bin - Collaborative JavaScript Debugging

Regards

Answers (0)