Hii all..
I'm trying to show only name of procedure in TOC.
Below is my code...
oOutput.Output("Procedure Name: " + "\n" , "Robot", 10, RGB(0,0,0), Constants.C_TRANSPARENT, Constants.FMT_LEFT, 0 );
oOutput.Output("Water Wash Procedure" + "\n" , "Robot", 10, RGB(0,0,0), Constants.C_TRANSPARENT, Constants.FMT_TOCENTRY1 | Constants.FMT_LEFT, 0 );
output => Procedure Name:
Water Wash Procedure
In TOC it showing:
Procedure Name: Water Wash Procedure
I want to show in TOC only, Water Wash Procedure
(I don't want empty line between Procedure Name: and Water Wash Procedure)
how can I fix this issue need your supports.
Hello Gautam,
as long as you use the Output method as per your example:
oOutput.Output("Water Wash Procedure" + "\n", ....
the new line (\n) is part of the value and as such written to the TOC.
You can try to separate the text from the following blank line:
oOutput.Output("Water Wash Procedure", "Robot", 10, RGB(0,0,0), Constants.C_TRANSPARENT, Constants.FMT_TOCENTRY1 | Constants.FMT_LEFT, 0 );
oOutput.OutputLn("" , "Robot", 10, RGB(0,0,0), Constants.C_TRANSPARENT | Constants.FMT_LEFT, 0 );
So only the String "Water Wash Procedure" should be marked as a TOC entry.
s. ARIS Scripting Help for more on Report class StandardOutputObject - Method OutputLn
( <yourserver>/abs/help/en/script/ba/#/home/r_O_StandardOutputObject_outputln/en/1 )
Regards, Martin