Skip to main content
1-Visitor
November 10, 2014
Solved

Help with coding inside a bom table

  • November 10, 2014
  • 1 reply
  • 1216 views

Hi all

I am working inside a BOM table calling out the part description in one of two different languages. The parameters that I am calling up are: &asm.mbr.PART_NAME or &asm.mbr.DESCRIZIONE. My problem is that I want to display the DESCRIZIONE only if PART_NAME does not exist. I am using Creo elements 5 if that has any affect.

Thank you

Wayne


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
Best answer by TomU

This is pretty straight forward. Add these relations to your repeat region and then change the parameter of the description column to be &rpt.rel.BOM_DESC

BOM_DESC = ""

IF EXISTS("ASM_MBR_PART_NAME")

BOM_DESC = ASM_MBR_PART_NAME

ELSE

IF EXISTS("ASM_MBR_DESCRIZIONE")

BOM_DESC = ASM_MBR_DESCRIZIONE

ENDIF

ENDIF

1 reply

TomU23-Emerald IVAnswer
23-Emerald IV
November 10, 2014

This is pretty straight forward. Add these relations to your repeat region and then change the parameter of the description column to be &rpt.rel.BOM_DESC

BOM_DESC = ""

IF EXISTS("ASM_MBR_PART_NAME")

BOM_DESC = ASM_MBR_PART_NAME

ELSE

IF EXISTS("ASM_MBR_DESCRIZIONE")

BOM_DESC = ASM_MBR_DESCRIZIONE

ENDIF

ENDIF