I've been working through this report for the last few days, trying to get the last 2 updates as well as the date & time parsed out of a Remedy work log.
I have 3 formulas setup to return the specified fields above, all of which return no errors when I save & close each one. However, once I try to export the report to Excel (Data Only) one of the reports returns the error message "A subscript must be between 1 and the size of the array." Here is the formula @2ndLastUpdate:
whileprintingrecords;
stringvar x := {MOD_TRB_Trouble.Work_Log};
stringvar array y := split({MOD_TRB_Trouble.Work_Log},"NNOC - Group");
numbervar i;
numbervar j := ubound
;
stringvar z;
z := y[j-1];
z
The y[j-1] reference is the portion of the formula returning the error.
For reference, here are the other 2 formulas built into my report:
@LastUpdate:
whileprintingrecords;
stringvar x := {MOD_TRB_Trouble.Work_Log};
stringvar array y := split({MOD_TRB_Trouble.Work_Log},"NNOC - Group");
numbervar i;
numbervar j := ubound
;
stringvar z;
z := y[j];
z
Lastly...
@Date
right({@2ndLastUpdate},53)
This one has me really stumped. Any thoughts/hints to get headed in the right direction would be greatly appreciated!
-Scott
I have 3 formulas setup to return the specified fields above, all of which return no errors when I save & close each one. However, once I try to export the report to Excel (Data Only) one of the reports returns the error message "A subscript must be between 1 and the size of the array." Here is the formula @2ndLastUpdate:
whileprintingrecords;
stringvar x := {MOD_TRB_Trouble.Work_Log};
stringvar array y := split({MOD_TRB_Trouble.Work_Log},"NNOC - Group");
numbervar i;
numbervar j := ubound
stringvar z;
z := y[j-1];
z
The y[j-1] reference is the portion of the formula returning the error.
For reference, here are the other 2 formulas built into my report:
@LastUpdate:
whileprintingrecords;
stringvar x := {MOD_TRB_Trouble.Work_Log};
stringvar array y := split({MOD_TRB_Trouble.Work_Log},"NNOC - Group");
numbervar i;
numbervar j := ubound
stringvar z;
z := y[j];
z
Lastly...
@Date
right({@2ndLastUpdate},53)
This one has me really stumped. Any thoughts/hints to get headed in the right direction would be greatly appreciated!
-Scott