getApplicableProductCharacteristics

Methode (Sub)

getApplicableProductCharacteristics ist eine Methode der Klasse Aloaha_ZUGFeRD.XML im Aloaha ZUGFeRD SDK. Sie betrifft BG-32 (Artikelattribute), BT-160 (Artikelattributname), BT-161 (Artikelattributwert).

Beschreibung (Originaltext der englischen SDK-Dokumentation): BG-32: Reads an item attribute (ApplicableProductCharacteristic) of a line item.

Hinweis: Missing values are returned as empty strings. If an index is out of range the output arguments are not changed.

Deklaration

Public Sub getApplicableProductCharacteristics(ByVal ProductIndex As Integer, ByVal CharacteristicsIndex As Integer, ByRef Description As String, ByRef Value As String, Optional ByRef TypeCode As String = "", Optional ByRef ValueMeasure As String = "", Optional ByRef ValueMeasureUnitCode As String = "")

Parameter

NameTypPflichtBeschreibung
ProductIndexIntegererforderlichZero-based index of the line item.
CharacteristicsIndexIntegererforderlichZero-based index of the attribute within the line item.
DescriptionStringerforderlichBT-160: Item attribute name (output)
ValueStringerforderlichBT-161: Item attribute value (output)
TypeCodeStringoptional (Standard: "")Type code of the attribute (output)
ValueMeasureStringoptional (Standard: "")Measured value of the attribute (output)
ValueMeasureUnitCodeStringoptional (Standard: "")Unit code of ValueMeasure (output)

Aufruf (VB.NET)

Dim alo As New Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, False, "IHR-LIZENZSCHLUESSEL")
Dim ProductIndex As Integer = 0
Dim CharacteristicsIndex As Integer = 0
Dim Description As String = ""
Dim Value As String = ""
alo.getApplicableProductCharacteristics(ProductIndex, CharacteristicsIndex, Description, Value)

Aufruf (C#)

var zfStandard = Aloaha_ZUGFeRD.iXML.ZUGFeRDVersion.xInvoice;   // Optional ByRef im Konstruktor: in C# mit ref übergeben
var alo = new Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, false, "IHR-LIZENZSCHLUESSEL", ref zfStandard);
int productIndex = 0;
int characteristicsIndex = 0;
string description = "";
string value = "";
string typeCode = "";
string valueMeasure = "";
string valueMeasureUnitCode = "";
alo.getApplicableProductCharacteristics(productIndex, characteristicsIndex, ref description, ref value, ref typeCode, ref valueMeasure, ref valueMeasureUnitCode);

Business Terms (EN 16931)

Artikel mit getApplicableProductCharacteristics

COM-Schnittstelle

getApplicableProductCharacteristics ist Mitglied der Schnittstelle Aloaha_ZUGFeRD.iXML (Position 274 von 343) und damit auch aus VB6, VBA/Access und anderen COM-Clients über CreateObject("Aloaha_ZUGFeRD.XML") aufrufbar. Neue Mitglieder werden immer am Ende von iXML angefügt, damit bestehende COM-Clients unverändert weiterlaufen; nach einem Update die Typbibliothek neu registrieren.

Quelle: XML-Dokumentationskommentare des Aloaha ZUGFeRD SDK (xml.vb). Gleiche Signatur in VB6/VBA über COM. In C# werden ByRef-Parameter mit ref übergeben, VB-Eigenschaften mit Parametern heißen get_…/set_…, optionale Parameter können entfallen.