eBiss 3

Hilfe & Dokumentation

User Tools

Site Tools


en:transformation:berichte:reportselektion

XPath selection of values from the data source

To be able to use additional values from the report's bound data source, an XPath query can be defined in one of the Report Designer's fields. The following code snippet can be used in the text field of a report element

Note: When formulating the query, you must ensure that it results in a single elementary value or attribute. If the query returns the query to a node, only an empty string is returned.

Sample:

Query of the file name from the CustomItem of an eBiss.Industry.Invoice

howto_reportgeneratorselektbsp.jpg

AAlternative example:

{eBiss.ClassLib.Maps.XPathEvaluator.Evaluate(InventoryMovement._Current, "//Items[@PosNumber=" + Items.PosNumber + "]/CustomItem[@Key='Vorgang']/@Value")}

Here, a reference to the currently iterated item object is created with a data element Items. posNumber that can be addressed directly from the data source and the CustomItem/@Value contained therein is read with the XPATH filter[@Key=' Transaction'].

en/transformation/berichte/reportselektion.txt · Last modified: 2024/02/20 08:15 by 127.0.0.1