getTableIdentifiers.<Component> macro
Use this macro to retrieve the identifying attributes of the current Component that is being processed.
The <Component> for the getTableIdentifiers is not the full component
name, but only the last segment. For example: for component
PurchaseOrderBOD.PurchaseOrderLine.PurchaseOrderSchedule
the generated macro has the name:
getTableIdentifiers.PurchaseOrderSchedule
.
long getTableIdentifiers.<Component>(ref long xmlnode)
This table shows the arguments:
Argument | Description |
---|---|
XML node | XML node that contains the table identifiers after the call |
Example:
long ret
long header.xml
domain tcorno orno
domain tccom.bpid otbp
ret = getTableIdentifiers.PurchaseOrderBOD(header.xml)
orno = getIdentifierValueFromIdentifierStructure(
header.xml, "tdpur400", "orno")
select tdpur400.otbp:otbp
from tdpur400
where tdpur400.orno = :orno
selectdo
select tccom100.*
from tccom100
where tccom100.bpid = :tdpur400.otbp
selectdo
addValue("LongBpName", tccom100.cdf_lnam, "String")
endselect
endselect
In this example the identifying attribute of the current Component
PurchaseOrderBOD
are stored in
header.xml. With the macro
getIdentifierValueFromIdentifierStructure
the
individual table field values can be retrieved. Those values can be used in
subsequent queries or function calls.