Codeunit "Xml Helper PSCAP"
ID 70345159
Namespace: CapVision.Online.Webshop.Misc
Properties
| Name |
Value |
| SingleInstance |
True
|
| Access |
Public
|
Methods
RemoveNode
procedure RemoveNode(var XDoc: XmlDocument; XPath: Text)
Parameters
| Name |
Type |
Description |
|
XDoc
|
XmlDocument |
|
|
XPath
|
Text |
|
SetValue
procedure SetValue(var XDoc: XmlDocument; XPath: Text; Value: Text)
Parameters
| Name |
Type |
Description |
|
XDoc
|
XmlDocument |
|
|
XPath
|
Text |
|
|
Value
|
Text |
|
SetValue
procedure SetValue(var XDoc: XmlDocument; XPath: Text; Value: Integer)
Parameters
| Name |
Type |
Description |
|
XDoc
|
XmlDocument |
|
|
XPath
|
Text |
|
|
Value
|
Integer |
|
SetValue
procedure SetValue(var XDoc: XmlDocument; XPath: Text; Value: Decimal)
Parameters
| Name |
Type |
Description |
|
XDoc
|
XmlDocument |
|
|
XPath
|
Text |
|
|
Value
|
Decimal |
|
SetValue
procedure SetValue(var XDoc: XmlDocument; XPath: Text; Value: Boolean)
Parameters
| Name |
Type |
Description |
|
XDoc
|
XmlDocument |
|
|
XPath
|
Text |
|
|
Value
|
Boolean |
|
SetValue
procedure SetValue(var XDoc: XmlDocument; XPath: Text; Value: Date)
Parameters
| Name |
Type |
Description |
|
XDoc
|
XmlDocument |
|
|
XPath
|
Text |
|
|
Value
|
Date |
|
GetValueAsDateTime
procedure GetValueAsDateTime(XDoc: XmlDocument; XPath: Text): DateTime
Parameters
| Name |
Type |
Description |
|
XDoc
|
XmlDocument |
|
|
XPath
|
Text |
|
Returns
| Type |
Description |
|
DateTime |
|
GetValueAsDateTime
procedure GetValueAsDateTime(XNode: XmlNode; XPath: Text): DateTime
Parameters
| Name |
Type |
Description |
|
XNode
|
XmlNode |
|
|
XPath
|
Text |
|
Returns
| Type |
Description |
|
DateTime |
|
GetValueAsDate
procedure GetValueAsDate(XDoc: XmlDocument; XPath: Text): Date
Parameters
| Name |
Type |
Description |
|
XDoc
|
XmlDocument |
|
|
XPath
|
Text |
|
Returns
GetValueAsBoolean
procedure GetValueAsBoolean(XDoc: XmlDocument; XPath: Text): Boolean
Parameters
| Name |
Type |
Description |
|
XDoc
|
XmlDocument |
|
|
XPath
|
Text |
|
Returns
GetValueAsInteger
procedure GetValueAsInteger(XDoc: XmlDocument; XPath: Text): Integer
Parameters
| Name |
Type |
Description |
|
XDoc
|
XmlDocument |
|
|
XPath
|
Text |
|
Returns
GetValueAsInteger
procedure GetValueAsInteger(XNode: XmlNode; XPath: Text): Integer
Parameters
| Name |
Type |
Description |
|
XNode
|
XmlNode |
|
|
XPath
|
Text |
|
Returns
GetValueAsDecimal
procedure GetValueAsDecimal(XDoc: XmlDocument; XPath: Text): Decimal
Parameters
| Name |
Type |
Description |
|
XDoc
|
XmlDocument |
|
|
XPath
|
Text |
|
Returns
GetValueAsDecimal
procedure GetValueAsDecimal(XNode: XmlNode; XPath: Text): Decimal
Parameters
| Name |
Type |
Description |
|
XNode
|
XmlNode |
|
|
XPath
|
Text |
|
Returns
GetValueAsText
procedure GetValueAsText(XDoc: XmlDocument; XPath: Text): Text
Parameters
| Name |
Type |
Description |
|
XDoc
|
XmlDocument |
|
|
XPath
|
Text |
|
Returns
GetValueAsUrl
procedure GetValueAsUrl(XDoc: XmlDocument; XPath: Text): Text
Parameters
| Name |
Type |
Description |
|
XDoc
|
XmlDocument |
|
|
XPath
|
Text |
|
Returns
GetValueAsText
procedure GetValueAsText(XNode: XmlNode; XPath: Text): Text
Parameters
| Name |
Type |
Description |
|
XNode
|
XmlNode |
|
|
XPath
|
Text |
|
Returns
GetValueAsText50
procedure GetValueAsText50(XDoc: XmlDocument; XPath: Text): Text[50]
Parameters
| Name |
Type |
Description |
|
XDoc
|
XmlDocument |
|
|
XPath
|
Text |
|
Returns
| Type |
Description |
|
Text[50] |
|
GetValueAsText30
procedure GetValueAsText30(XDoc: XmlDocument; XPath: Text): Text[30]
Parameters
| Name |
Type |
Description |
|
XDoc
|
XmlDocument |
|
|
XPath
|
Text |
|
Returns
| Type |
Description |
|
Text[30] |
|
GetValueAsText2
procedure GetValueAsText2(XDoc: XmlDocument; XPath: Text): Text[2]
Parameters
| Name |
Type |
Description |
|
XDoc
|
XmlDocument |
|
|
XPath
|
Text |
|
Returns
GetValueAsText10
procedure GetValueAsText10(XDoc: XmlDocument; XPath: Text): Text[10]
Parameters
| Name |
Type |
Description |
|
XDoc
|
XmlDocument |
|
|
XPath
|
Text |
|
Returns
| Type |
Description |
|
Text[10] |
|
GetValueAsText20
procedure GetValueAsText20(XDoc: XmlDocument; XPath: Text): Text[20]
Parameters
| Name |
Type |
Description |
|
XDoc
|
XmlDocument |
|
|
XPath
|
Text |
|
Returns
| Type |
Description |
|
Text[20] |
|
GetValueAsText100
procedure GetValueAsText100(XDoc: XmlDocument; XPath: Text): Text[100]
Parameters
| Name |
Type |
Description |
|
XDoc
|
XmlDocument |
|
|
XPath
|
Text |
|
Returns
| Type |
Description |
|
Text[100] |
|
GetAttributeAsInteger
procedure GetAttributeAsInteger(Node: XmlNode; AttributeName: Text): Integer
Parameters
| Name |
Type |
Description |
|
Node
|
XmlNode |
|
|
AttributeName
|
Text |
|
Returns
PopulateMetadata
procedure PopulateMetadata(MetadataTable: Enum "Metadata Table PSCAP"; Code: Code[20]; XEntity: XmlDocument; XPath: Text; MetadataType: Enum "Metadata Type PSCAP")
Parameters
ExtractMetadata
procedure ExtractMetadata(XEntity: XmlDocument; XPath: Text; Metadata: Dictionary of [Integer, Text])
Parameters
| Name |
Type |
Description |
|
XEntity
|
XmlDocument |
|
|
XPath
|
Text |
|
|
Metadata
|
Dictionary of [Integer, Text] |
|
ExtractMetadata
procedure ExtractMetadata(MetadataTable: Enum "Metadata Table PSCAP"; Code: Code[20]; XEntity: XmlDocument; XPath: Text; MetadataType: Enum "Metadata Type PSCAP")
Parameters
GetMandatoryMissingValue
Renvoie une valeur par défaut insérée dans les champs Prestashop qui n'ont pas de valeur dans Business Central mais dont la présence d'une donnée est obligatoire côté Prestashop.
procedure GetMandatoryMissingValue(): Text
Returns
Events
OnBeforeGetValueAsUrl
[IntegrationEvent(False,False)]
local procedure OnBeforeGetValueAsUrl(var Url: Text; var Handled: Boolean)
Parameters
| Name |
Type |
Description |
|
Url
|
Text |
|
|
Handled
|
Boolean |
|
See also