DATA lr_simpleseries TYPE REF TO cl_wd_simple_series. DATA lr_category TYPE REF TO cl_wd_category. DATA lr_businessgraphics TYPE REF TO cl_wd_business_graphics. DATA lr_container TYPE REF TO cl_wd_uielement_container. DATA lr_flow_data TYPE REF TO cl_wd_flow_data.
The implementation of a dynamic BusinessGraphics UI element(with a SimpleSeries and a Category)contains the following statements.ĭynamic creation of a BusinessGraphics UI element METHOD wddomodifyview.
Web dynpro abap dynamic programming series#
The Category object has the CL_WD_CATEGORY runtime class.The Series can be Series,runtimeĬL_WD_SERIES or SimpleSeries,runtime class CL_WD_SIMPLE_SERIES Hereunder,we present a table showing the correspondence between the view designer name and the runtime name, with the proper types,in case of dynamic programming of a BusinessGraphics UI element (Table). We save the settings we made the Framework generates a MIME file in XML format and sets the property customizing of the BusinessGraphics UI element. Now,the SAP Chart Designer is open and we can customise our chart. We access this tool by double-clicking on the chart picture, in the view layout. To perform customizing settings for business graphics, we have to use the SAP Chart Designer. We select all the data from the two columns LASTNAME and AGE. We have used a chart of columns type,to graphically display the data contained by the columns of our database table.īy using the supply function, we populate the node PERSON with data from the database table YPERSON. From this structure,we choose only LASTNAME and AGE. The node person has the dictionary structure YPERSON, cardinality 1.n, Singleton. By using the BusinessGraphics UI element,we show the graphical illustration of the data stored in our database table YPERSON. gantt).We create a WD Component with the structure presented in Fig. The chart engine is a C++ library that supports chart types, from simple charts (e.g. This UI element enables us to use several chart types in our WD application.The Internet Graphics Service (IGS) helps us to work with this UI element,being able to show graphics in a browser. Ir_image = cl_wd_image=>new_image( id =‘IMG_IMAGE’ The implementation of a dynamic Image UI element contains the following statements: Hereunder,we present a table showing the correspondence between the view designer name and the runtime name, with the proper types,in case of dynamic programming of an Image UI element. Ls_image TYPE wd_this->element_drop down by index,lt_image LIKE TABLE OF ls_image.
To populate with values the context attributes of the context node DROPDOWNBYINDEX, we use the supply function method shown in the Listing. The attribute VALUE is used to manipulate the property source of the Image UI element.This property defines the name of the image file shown on the screen. The context node DROPDOWNBYINDEX has the dictionary structure SHSVALSTR2,cardinality 0.n,Singleton.We have defined a data binding between the attribute KEY and the property texts of the dropDownByIndex UI element. For the attributes WIDTH,BORDER and HEIGH, it is defined the data binding to the properties (with the same names) of the UI element Image. We use these attributes to manipulate the properties of the Image UI element. The attributes WIDTH and HEIGH are STRING type and the attribute BORDER is I type. The context node DYNAMIC is Singleton, cardinality 1.1. We import three images in JPG format.As we have mentioned,to import an image into a MIME folder,we have to choose Create Mime Object Import from the contextual menu,shown by right-clicking on the WD component name. We create a WD Component, where we can choose among three images and we can manipulate the current image via the data held in the context.The WD component structure is presented. Hereunder,we show a table with some of the Image UI element properties that can be bound,and the attribute type in case the property is bindable. Same as other UI elements, it has some properties. This UI element enables us to integrate graphics in our WD application. Hereunder,we present some of the UI Elements included in this category.
This category contains UI elements that help us to work with graphics maps,etc.