You can define a ‘program-to-system field’ in IBM i display file DDS like this:
Code: Select all
A* Define the form view record format
A R FORMVIEW
A* Variable HTML content is a type “P” field in DDS
A HTMLVARTAG 50A P
Code: Select all
A 9 2'Dep Rate'
A 9 2HTML(&HTMLVARTAG)
A*
A 9 20'11.75'
A 9 20HTML(&HTMLVARTAG)
A*
A 10 2'Dep Cycle'
A 10 2HTML(&HTMLVARTAG)
A*
A 10 20'QUARTERLY'
A 10 20HTML(&HTMLVARTAG)
Code: Select all
If (something);
HtmlVartag = ‘Color:Red Font.Bold:True’
Else;
HtmlVartag = ‘Color:Blue’
Endif;