Quantcast
Channel: SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 789

Adding Controls on Smart template using Annotations...SAP WEB IDE

$
0
0

Hi  all

 

i have created a blog

Create Smart Template Project.........SAP WEB IDE

 

Now in Smart template if we want to add some controls like Data Field,Line item , Data point , presentation Variant etc

 

we don't need to write code on JS , XML , HTML etc we can add controls by using Annotation file .

 

 

STEP 1.

16.png

open Annotation folder => right click on annotation.xml

 

here you can open 3 way.

 

code editor - you to wirte code your self .which can be difficult

 

so open file by Annotation Modeler after click this u will get

17.PNG

 

Click on Green icon

 

18.PNG

here you can chose function what you want add on smart template project.

 

 

Example 1 : i want to add on line item  one Action button and one Navigation Button on overview page like this

 

19.png

so to create this select UI.LineItem and click Ok

 

then click Plus Icon on Line Item you will get

 

 

20.PNG

here you have to select controls according to your req.

 

now i select DatafieldforAction and DatafieldForIntentBasedNavigation

now you will see

21.PNG

Now click 1st one Data filed for Action U will get from Right side u have to fill.den

like this

22.PNG

click on apply Save Project

 

Run The Project Again

 

now when i run then project i got my desire output

23.PNG

 

So it was just a example .

 

plz do comment for any controls.which you want add on overview Page or List view Page

 

 

 

Regards

Virendra


Viewing all articles
Browse latest Browse all 789

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>