ASD Report Function: QueryTableDataFromOccurrence

A method to query a generative table to extract the data associated to an object at a specific column.

This lets the annotations to extract a table computed data such as position number (for example, in ballooning).

This page discusses:

Signature

ASDGenerativeTable->QueryTableDataUsingOccurrence(iPrdOcc: ProductOccurrence, iColumn: Integer) : String

Arguments

Name Input/Output Required? Type Comment
iPrdOcc In ProductOccurrence Indicates the object from which to extract data from table.
iColumn In Integer Indicates the column number to use.

Return type

String

The extracted data associated to iPrdOcc at iColumn.

Example

//Get Generative table from ASDSheet
Let ISOSheet(ASDSheet)
Let ASDTableList(List)

//set ISOSheet = Sheet // Get the sheet
ASDTableList = ISOSheet.Tables

//Get BOM table , Use name query to find in the list 
Let ASDBomTable(ASDGenerativeTable)
set ASDBomTable = ASDTableList[1]

Let PrdOcc(ProductOccurrence)
// set PrdOcc = Product to query , from input or Annotation
// Get the value of First column related to product
Let PosNum(String)
PosNum = ASDBomTable.QueryTableDataUsingOccurrence(PrdOcc,1)

// PosNum has posistion number in the BOM Table as string