T4S4  18.2 C7549 A21431
Teamcenter Gateway for SAP S/4HANA API Reference
T4X::PROP::MAPPING::DEMO Namespace 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
 

Detailed Description

Data View Demo - Add it to your mapping to see what you can do with the data view.

Introduction

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.

Installation

  1. Copy the t4x_data_view_demo.sd file from the var/template/mmap/t4x_mapping_config folder to the var/mmap/t4x_mapping_config folder.
  2. Edit the appropriate mapping config file e.g. var/mmap/t4x_mapping_config/t4x_mapping_config.sd
    1. Add a source command for the 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
  3. Edit the prop mapping file, e.g. var/mmap/t4s_mapping_config/t4s_prop_mapping_template.sd
    1. Assuming you want to add the demo as a page find the position in the code where the pages for the Data View are defined, e.g. in the MMDataView procedure.
    2. Call the 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]
    3. You may place the regular mapping code into if {false} {…} to temporarily disable it.

Advanced Installation

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.

Function Documentation

◆ ContainerWidgetsDemo()

T4X::PROP::MAPPING::DEMO::ContainerWidgetsDemo

Create a page that shows container widgets such as pages or sections.

Referenced by Demos().

◆ createDemoPage()

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
parametersa Tcl dict with parameters that have been set by the user of the data view
nameof 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().

◆ createDemoSection()

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
parametersa Tcl dict with parameters that have been set by the user of the data view
nameof 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().

◆ Demos()

T4X::PROP::MAPPING::DEMO::Demos   parameters eaDataArrayName  

Assemble pages which demonstrate various types of widgets or features into a single view.

Parameters
parametersa Tcl dict with parameters that have been set by the user of the data view
nameof 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().

◆ GoodiesDemo()

T4X::PROP::MAPPING::DEMO::GoodiesDemo

Create a page that shows some extra features.

Referenced by Demos().

◆ MakeHelp()

T4X::PROP::MAPPING::DEMO::MakeHelp   docVar args  

Create a text widget to be used to display a help text.

Parameters
docVarname of the variable to store the document to be returned to the data view
argsmore arguments to be passed to the command that creates the text widget.

Referenced by ParametersDemo().

◆ ParametersDemo()

T4X::PROP::MAPPING::DEMO::ParametersDemo   parameters  

Create a page that demonstrate how to deal with parameters coming from the data view.

Parameters
parametersa Tcl dict with parameters that have been set by the user of the data view

References MakeHelp().

Referenced by Demos().

◆ SimpleWidgetsDemo()

T4X::PROP::MAPPING::DEMO::SimpleWidgetsDemo

Create a page that shows simple widgets such as properties.

Referenced by Demos().

◆ TableDemo()

T4X::PROP::MAPPING::DEMO::TableDemo

Create a page that shows tables.

Referenced by Demos().