I'm working on OP Crystal Report these days.
As you know, OPM utillze DRY_WEGHT as piece weight for each instance or piping component. But normally, we display WPM(weight per meter) for a pipe in MTO. Obviously, I got to utilize WEIGHT specifically for PIPE.
I did it in three ways:
A: first, put both DRY_WEIGHT and WEIGHT into PIPING_COMPONENT.TTX; then i used code to make a choice from DRY_WEIGHT & WEIGHT.
For the exported report, everything is right but fields of WPM for PIPE were empty, and I'm bloody sure the values were there. because,
B: I made PIPE.TTX which contains WEIGHT and others. Code for WEIGHT is simpler,
local stringVar array pipe_WT:= Split (CStr ({PIPE.WEIGHT}));
CDbl (CStr (pipe_WT[1]))
All pipe instances got the right values. you know, it is just right for PIPE, and not enough for other piping components. so, I tried the third time,
C: Following a guide book without any ideas, I added both PIPE.TTX and PIPING_COMPONENT.TTX to a template. Clear all links, and make a link between two 'instanceID's, set it like this
Then I got noting, all pipes and other components disappeared . Gosh, Did I do something wrong?
Thanks for any comments to help me through option A or C.
Regards,
Joe Zou