Skip to Content

For SAP standard CRM Fiori application, we use xml view by default.

For some UI element, you could easily find its binding path in the corresponding xml view, for example we need to find out which json model field is the highlighted UI element below bound to:

/wp-content/uploads/2015/06/clipboard1_726790.png

It could simply be achieved by clicking “inspect” button in Chrome development tool, and click the UI element to find out the id generated in html native source code. Write down the part of it: opportunityProspectName.

/wp-content/uploads/2015/06/clipboard2_726794.png

Then search this in xml view, then binding path is found:

/wp-content/uploads/2015/06/clipboard3_726795.png

However, for this field below, the approach mentioned above does not work any more:

/wp-content/uploads/2015/06/clipboard4_726796.png

in xml view you could not find any hint by searching keyword “attribute5”.

Instead, you could type four keys at the same time “ctrl+alt+shift+s” to call SAPUI5 Diagnostics tool, then expand tab “Control Tree”, search “attribute5” there, then you could find the binding path: /EmployeeResponsibleName

/wp-content/uploads/2015/06/clipboard5_726797.png

You can confirm the correctness of this by verifying it in Chrome network tab: the value in the field you find in JSON model does exactly match the value displayed in UI.

/wp-content/uploads/2015/06/clipboard6_726798.png

And why the binding path of this field could not be found in xml view? It is simply because this UI element is not statically defined in xml view, but dynamically created via JavaScript. You could find its creation location by searching the keyword “/EmployeeResponsibleName“.

/wp-content/uploads/2015/06/clipboard7_726799.png

To report this post you need to login first.

1 Comment

You must be Logged on to comment or reply to a post.

  1. Prath Pu

    Hi Jerry Wang

    Thanks for your Blog.

    I am unable to find the id for the add button footer,

    My requirement is to hide this button.

    how i can do this, please provide your inputs

    Thanks

    Prath P

     

    (0) 

Leave a Reply