I am trying make a change to the standard "Export RASCI chart" report. We are putting a Step Id in AT_UA_TXT_22. I was able to change the sort so the functions are output in the order of the Step Id. I would like to display the value of StepId (AT_UA_TXT_22) either as a new column or combined with the function name. I can't get this part to work! Any help would be appreciated.
Hi,
You could update the following line in the script(line 173)
oOutputFile.TableCell(arrOuter[i][0].funcDef.Name(g_nLoc) + " - mytxt", 20, getString("TEXT_3"), 10, Constants.C_BLACK, new java.awt.Color(0.72265625, 0.99609375, 0.72265625).getRGB(), 0, Constants.FMT_BOLD | Constants.FMT_LEFT | Constants.FMT_VTOP, 0);
See where I put " - mytxt"
I've tried that and I get the following error:
oOutputFile.TableCell(arrOuter[i][0].funcDef.Attribute((Constants.AT_UA_TXT_22(g_nloc)).GetValue(false)) +
I got sytax error with ... AT_UA_TXT_22, g_nloc so changed it to the above code. The error I'm getting is:
TypeError: Cannot call property AT_UA_TXT_22 in object constants. Its is not a function, it is "number".
oOutputFile
.TableCell
(arrOuter[i][
0
]
.funcDef
.Attribute
(Constants
.AT_UA_TXT_22
,g_nloc)
.GetValue
(
false
), 10, "Arial"...
This is an actual line from one of my working scripts:
g_ooutfile.TableCell(oObjOcc.Model().Attribute(Constants.AT_USER_ATTR5, g_nloc).getValue(), 10, "Arial", 12, Constants.C_BLACK, Constants.C_TRANSPARENT, 0, Constants.FMT_CENTER | Constants.FMT_VCENTER, 0);
Notice that the get value is different but either should work.