前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Relationship between variable and element

Relationship between variable and element

作者头像
Jerry Wang
发布2021-02-20 10:46:53
3420
发布2021-02-20 10:46:53
举报

Created by Jerry Wang on Jul 12, 2014

We know that for a given element, it could be assigned with several variables.

clipboard1
clipboard1

for example, variable ZCR_RULE_TEST has only maintained two variables.

clipboard2
clipboard2

It is a common misunderstanding that an element could only use the variables which are assigned to it in this customizing during the layout design. This is not correct.

See example for above element. Although it has only been assigned with two variables. However in the design time, all variables defined for the content are available for use.

clipboard3
clipboard3

To understand the relationship between variable and element, we must first know one attribute for variable.

When we create a variable, we have to maintain its visibility:

clipboard4
clipboard4

The dialog visibility means the variable must be displayed in the dialog processing. Normally the description of variable will be maintained as the style of question, to guide end user to input accordingly, see example below.

Note: in this example, all variables marked with "Dialog only" or "Dialog and Fill-in Tab" will appear in the tab "Dialog".

clipboard5
clipboard5

And in Document Summary, you could see only the two variables assigned to the element are displayed:

clipboard6
clipboard6

Once you have fnished the value fill and click button "Accept":

clipboard7
clipboard7

And you could see the values are filled in the document:

clipboard8
clipboard8

Summary

1. If a simple variable is marked as "Dialog and fill-in tab", it means this variable is then displayed as a leaf node in the variable tree and could be used in the layout design of any element. This means even if you have not assigned it to a given element, you can still drag this variable to the layout part of that given element. Till now there is no hard relationship between the variable and the given element.

Meanwhile if you also have assigned the variable to the element in customizing, then the variable will be displayed in the fill-in tab of that element, as shown in the example above.

2. If a simple variable has visibility "Fill-in tab only", then it will not be displayed in the Dialog tab. For example I have set ZJERRY_TEST as "Fill-in Tab only"

clipboard9
clipboard9

and it will not be displayed in the Dialog tab any more:

clipboard10
clipboard10

But it still could be consumed in the element design:

clipboard11
clipboard11

So essentially speaking, the assignment of variable to element below could only control whether a variable will appear in the fill-in tab of a given element, but could not controll whether a variable could be consumed in the element layout design.

clipboard12
clipboard12

In order to find out which variables have been maintained to a given element, please query table /IPRO/TELM_VAR with element name for field ELMNTX:

clipboard13
clipboard13
clipboard14
clipboard14
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2019-07-14 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • Created by Jerry Wang on Jul 12, 2014
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档