Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
We have a need to truncate the filename to 12 characters in our BOM repeat region. Is there a trick in repeat region that this can be done? Can this be done using relation? If so, has anyone done it and willing to share?
Creo/Element M230
Thanks!
Calvin
Solved! Go to Solution.
Calvin,
You can use repeat region relation:
actual_length = STRING_LENGTH(asm_mbr_name)
display_length = actual_length
if (actual_length > 12)
display_length = 12
else
display_length = STRING_LENGTH(asm_mbr_name)
endif
display_name = EXTRACT(asm_mbr_name, 1, display_length)
Add report parameter rpt > rel > user defined display_name
Calvin,
You can use repeat region relation:
actual_length = STRING_LENGTH(asm_mbr_name)
display_length = actual_length
if (actual_length > 12)
display_length = 12
else
display_length = STRING_LENGTH(asm_mbr_name)
endif
display_name = EXTRACT(asm_mbr_name, 1, display_length)
Add report parameter rpt > rel > user defined display_name