IBM Support

Add Structured word to Field description in Data View Record

Troubleshooting


Problem

Trying to add a structured word (sword) to a description field in a Data View Record (DVR) then generating the HTML using WAI produces unpredictable results.

Cause

Reason - Labels cannot contain data from a field unless you edit the HTML after the HTML is generated using the generate option on Web Access for Information Management (WAI).

Resolving The Problem

It is possible to SEDIT the '$.S0CA9' and change it back to '$.S0C09'
Put the following two lines in a file (call it fixhtml.sh or something similar):

sed -e "s/'$.S0CA9'/'$.S0C09'/g;" /source_path/BLQxxxxx.html
>/source_path/temp.html
cp /source_path/temp.html /source_path/BLQxxxxx.html

Change the source_path to the html directory and the BLQxxxxx.html to the HTML file that needs to be fixed.

Then run that shell script after you generate the html. You do that by using ISHELL.
Use Tools --> Run 2. Run shell command(SH), type /path/fixhtml.sh and press enter.

By copying those two lines and changing the strings or file names you can post fix any of these types of things.

[{"Product":{"code":"SSWRDZ","label":"Tivoli Web Access for Information Management"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"Not Applicable","Platform":[{"code":"PF035","label":"z\/OS"}],"Version":"1.2","Edition":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Document Information

Modified date:
08 August 2018

UID

swg21264651