Document Builder: how does document element and variable cooperate

157 阅读1分钟

Created by Jerry Wang, last modified on Nov 03, 2014

In customizing, we can select one element and maintain a rule for it in order to achieve that the element would only appear in the final document once some condition meets. We could also maintain one or more variables to that element:

 

clipboard1

For example here we have assigned the variable "ZJERRY_TEST" to element ZCR_CD:

 

 

 

clipboard2

 

 

such variable has type CHAR10 and has default value "i042416".

 

clipboard3

 

 

In document template design time, we could drag the variable from right variable tree pane and drop them to the left word layout part:

 

clipboard4

 

 

In the document creation ui, we could input some data to the variable:

 

clipboard5

 

 

and in the runtime we could see the user input is merged to the final rendered document:

 

clipboard6