![]() |
T4S4
18.2 C7549 A21431
Teamcenter Gateway for SAP S/4HANA API Reference
|
Data View Demo - Add it to your mapping to see what you can do with the data view. More...
Functions | |
ContainerWidgetsDemo | |
createDemoPage parameters ?eaDataArrayName? | |
createDemoSection parameters ?eaDataArrayName? | |
Demos parameters eaDataArrayName | |
GoodiesDemo | |
MakeHelp docVar args | |
ParametersDemo parameters | |
SimpleWidgetsDemo | |
TableDemo | |
Data View Demo - Add it to your mapping to see what you can do with the data view.
The Data View Demo comes as the t4x_data_view_demo.sd
file. This file is shipped with the product and shows all the elements and attributes you can use to create the layout of the Data View. The file can be opened in an editor and the code be hooked into the “prop mapping” so you can see how the elements appear in the Data View and how they were created. The demo is added to the regular data view as an extra page or section.
t4x_data_view_demo.sd
file from the var/template/mmap/t4x_mapping_config
folder to the var/mmap/t4x_mapping_config
folder.var/mmap/t4x_mapping_config/t4x_mapping_config.sd
t4x_data_view_demo.sd
file such that it is loaded before the prop mapping file, e.g. source -relax t4x_data_view_demo.sd
var/mmap/t4s_mapping_config/t4s_prop_mapping_template.sd
MMDataView
procedure.createDemoPage
command passing on the Parameters
parameter and add its result to the string variable to be returned from the procedure, e.g. append doc [T4X::PROP::MAPPING::DEMO::createDemoPage $Parameters]
if {false} {…}
to temporarily disable it.If you do not want to modify the regular prop mapping you may choose to create a new target type with a new name, e.g. Data View Demo and write a prop mapping procedure for that type that only creates the Data View demo. You can even place it in a separate file.
The user can then view the demo by selecting the new target type in the target type drop down.
T4X::PROP::MAPPING::DEMO::ContainerWidgetsDemo |
Create a page that shows container widgets such as pages or sections.
Referenced by Demos().
T4X::PROP::MAPPING::DEMO::createDemoPage | parameters ?eaDataArrayName? | ||
Show a page with pages embedded that demonstrate various types of widgets or features of the data view.
parameters | a Tcl dict with parameters that have been set by the user of the data view |
name | of the array that holds names and values of EA attributes. EA attributes are data members of objects that reside in the EA system, SAP for example. Only used when the ::T4X::PROP::MAPPING::VIEWBUILDER is shown. |
References Demos().
T4X::PROP::MAPPING::DEMO::createDemoSection | parameters ?eaDataArrayName? | ||
Show a section with pages embedded that demonstrate various types of widgets or features of the data view.
parameters | a Tcl dict with parameters that have been set by the user of the data view |
name | of the array that holds names and values of EA attributes. EA attributes are data members of objects that reside in the EA system, SAP for example. Only used when the ::T4X::PROP::MAPPING::VIEWBUILDER is shown. |
References Demos().
T4X::PROP::MAPPING::DEMO::Demos | parameters eaDataArrayName | ||
Assemble pages which demonstrate various types of widgets or features into a single view.
parameters | a Tcl dict with parameters that have been set by the user of the data view |
name | of the array that holds names and values of EA attributes. EA attributes are data members of objects that reside in the EA system, SAP for example. Only used when the ::T4X::PROP::MAPPING::VIEWBUILDER is shown. |
References ContainerWidgetsDemo(), GoodiesDemo(), ParametersDemo(), SimpleWidgetsDemo(), and TableDemo().
Referenced by createDemoPage(), and createDemoSection().
T4X::PROP::MAPPING::DEMO::GoodiesDemo |
Create a page that shows some extra features.
Referenced by Demos().
T4X::PROP::MAPPING::DEMO::MakeHelp | docVar args | ||
Create a text widget to be used to display a help text.
docVar | name of the variable to store the document to be returned to the data view |
args | more arguments to be passed to the command that creates the text widget. |
Referenced by ParametersDemo().
T4X::PROP::MAPPING::DEMO::ParametersDemo | parameters | ||
Create a page that demonstrate how to deal with parameters coming from the data view.
parameters | a Tcl dict with parameters that have been set by the user of the data view |
References MakeHelp().
Referenced by Demos().
T4X::PROP::MAPPING::DEMO::SimpleWidgetsDemo |
Create a page that shows simple widgets such as properties.
Referenced by Demos().
T4X::PROP::MAPPING::DEMO::TableDemo |
Create a page that shows tables.
Referenced by Demos().