Add Structured word to Field description in Data View Record
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.
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
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.
Translate this page: