Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

Overview

Description

FieldDescription
ActionSelect COPY or FILTER for your action
Profile typeA distinction is made between Traveller, Company, and Traveller as well as Company. T is for Traveller, C for Company and "-" is for both profile types(T & C). Select between T,C and - to determine on which profile type the values should either be published or filtered out
InterfaceIndicate which interface the action will affect
SourceIndicate the source needed for a customized copy action or the filter needed to remove specific copy actions already programmed in the standard User Interface (UI)
TargetIndicate the target for copy actions or for filter actions, insert a free text describing the value that has been filtered out


The sources for the COPY function of company profile data can be found under Copy - Company. The sources for the COPY function of traveller profile data is found in the first line (header line) of the traveller CSV that is downloaded from Faces. For fields that allow the use of the "Add new" function, multiple information i.e multiple frequent flyer programs are present in the CSV file. If 0-n lists (FQTV or passports) are copied, either an index (passports0, passports1) can be used, or use the index placeholder '#' (# passports). The latter then copies all existing indexes. Any extra copy sources not covered by the CSV are listed under Copy - Traveller.


FILTER examples can be found under Filter - Traveller and Filter - Company

Filters use XPath expressions to find element nodes that should be excluded from the published XML.

How to write an XPath expression?

All XPath expressions examples from this guide refer to the following XML:

<library>
	<books>
		<book type=”classic”>
			<author>
				<firstname>Charles</firstname>
				<lastname>Dickens</lastname>
			</author>
			<title>A Tale of Two Cities</title>
			<price currency="EUR">15.99</price>
		</book>
		<book type=”fantasy”>
			<author>
				<firstname>George</firstname>
				<lastname>Martin</lastname>
				<birthdate>20.02.1998</birthdate>
			</author>
			<title>A Game of Thrones</title>
			<price currency="GBP">21.99</price>
		</book>
		<book type=”science”>
			<author>
				<firstname>Stephen</firstname>
				<lastname>Hawking</lastname>
			</author>
			<title>Brief Answers to the Big Questions</title>
			<price>13.99</price>
		</book>
	</books>
	<manager>
		<firstname>John</firstname>
		<lastname>Doe</lastname>
	</manager>
	<owner>
		<firstname>Jeff</firstname>
		<lastname>Bezos</lastname>
	</owner>
</library>

To better understand this guide, you can use http://xpather.com/ to try XPath expressions on previously shown XML. You can also use this website in the future to validate your Filters, but please do not use any XMLs containing sensitive data.

 

The simplest and the most efficient way to provide an XPath to an element is to list all elements from the root element to the desired one, separated by a slash(/).

library/manager/lastname - selects the library owner's first name.

In case an exact path is unknown or does not include all desired nodes, a double slash(//) or an asterisk(*) can be used.

// - Selects nodes in the document from the current node that match the selection no matter where they are

//firstname - same as library/books/author/firstname and library/manager/firstname together

slash(/) and double slash(//) can be combined

library/books//firstname - selects authors' firstname, but not manager's and owner's

 

 

  • No labels