SilentRejectStartedPopup
This popup is not specific for the CO2 emission solution. The SilentRejectStartedPopup is used here to hide a panel when a popup times out. If this popup is not used, the previous panel will remain visible until the system is ready processing the timeout.
Example
<TFT:PopupPanel MxStyle="{PopupStyle}" Name="SilentRejectStartedPopup">
<Controls>
<TFT:Label MxStyle="{DebugLabelStyle}" FormattedText="SilentRejectStartedPopup"/>
<TFT:Label MxStyle="{PopupTextLabelStyle}" Name="silentRejectText" FormattedText="Purchase cancelled" Location="16,273" Size="736,100"/>
</Controls>
</TFT:PopupPanel>
GetExternalInformationStartedPopup
The GetExternalInformationStartedPopup informs the user that a request is started.
<TFT:PopupPanel MxStyle="{PopupStyle}" Name="GetExternalInformationStartedPopup">
<Controls>
<TFT:Label MxStyle="{DebugLabelStyle}" FormattedText="GetExternalInformationStartedPopup"/>
<TFT:ImageRotator MxStyle="{WaitingImageStyle}"/>
<TFT:ImageRotator MxStyle="{InfoImageStyle}"/>
</Controls>
</TFT:PopupPanel>
GetExternalInformationCommunicationFailedPopup
The GetExternalInformationCommunicationFailedPopup informs the user if no information has been received from the provider. The reasons can be different.
The user can cancel the purchase, go back to adjust their license plate, or continue to pay the maximum fee. E.g., for foreign license plates.
Example
<TFT:PopupPanel MxStyle="{PopupStyle}" Name="GetExternalInformationCommunicationFailedPopup" Timeout="10" TimeoutEvent="OnSilentReject" WaitForPopupToHide="false">
<Controls>
<TFT:Label MxStyle="{DebugLabelStyle}" FormattedText="GetExternalInformationCommunicationFailedPopup"/>
<TFT:Label MxStyle="{PopupTextLabelStyle}" Name="GetExternalInformationErrorLabel" Location="16,16"/>
<TFT:Label MxStyle="{PopupTextLabelStyle}" Name="MaxEmissionFeeTextLabel" FormattedText="MaxEmissionFeeText" Location="16,273" Size="736,100"/>
<TFT:Label MxStyle="{LicensePlateLabelStyle}" Name="LicensePlateLabel" Location="14,400"/>
<TFT:Label MxStyle="{UserIdentifierLabelStyle}" Name="UserIdentifierLabel" Location="366,400" Size="386,92"/>
<TFT:Button MxStyle="{OpenCodeInputPanelAndClosePopuButtonStyle}"/>
<TFT:Button MxStyle="{AddExtAdditionalUserIDAndClosePopuButtonStyle}" Name="Accept" Click="OnCloseCurrentPopup"/>
<TFT:Button MxStyle="{SilentRejectButtonVisualStyle2}" Name="GetExternalInformationDonePopupCloseButton" Click="OnReject"/>
</Controls>
</TFT:PopupPanel>
GetExternalInformationDonePopup
The GetExternalInformationDonePopup shows the info of the found vehicle registration. The user must use the OK button to continue.
All labels for the external information must start with GetExternalInformationLabel. Set a number at the end of each label used to separate them.
To add a label, write FormattedText="@[label_text]@json:[JSON label]".
E.g, FormattedText="@GEImanufacturer@json:manufacturer" to display the manufacturer of the car.
•The first part "@[label_text]" is optional and can be whatever you find appropriate to display. The @ sign makes this part translatable
Note: the text GEI used in the examples is short for Get External Information. It is used in the example to indicate where the data comes from. See also translations |
•The second part "@json:[JSON label]" is mandatory
o[JSON label] is the label in the JSON string to retrieve the data from. E.g., "manufacturer": "VAUXHALL"
When requesting, do not enter the colon (:) as this is the divider between the label and the data in the JSON string.
the line
<TFT:Label MxStyle="{PopupTextLabelStyle}" Name="GetExternalInformationLabel1" FormattedText="@manufacturer@json:manufacturer" Location="16,258" Size="736,92"/> will result in:
manufacturer: VAUXHALL
and
Brand: VAUXHALL
if the manufacturer is translated to Brand: in the translation.xml file.
leaving out the first part out
<TFT:Label MxStyle="{PopupTextLabelStyle}" Name="GetExternalInformationLabel1" FormattedText="@json:manufacturer" Location="16,258" Size="736,92"/>
will result in:
VAUXHALL
Example:
This example displays the license plate, manufacturer of the car, the model, the colour, and the CO2 emission.
Note that the manufacturer is translated to Brand: in the screenshot
<TFT:PopupPanel MxStyle="{PopupStyle}" Name="GetExternalInformationDonePopup">
<Controls>
<TFT:Label MxStyle="{DebugLabelStyle}" FormattedText="GetExternalInformationDonePopup"/>
<TFT:Label MxStyle="{UserInstructionLabelStyle}" Name="UserInstructionLabel" FormattedText="GetExternalInformationDonePopupText"/>
<TFT:Label MxStyle="{LicensePlateLabelStyle}" Name="LicensePlateLabel"/>
<TFT:Label Name="UserIdentifierLabel" MxStyle="{UserIdentifierLabelStyle}" Location="366,166" Size="386,92"/>
<TFT:Label MxStyle="{PopupTextLabelStyle}" Name="GetExternalInformationLabel1" FormattedText="@GEImanufacturer@json:manufacturer" Location="16,258" Size="736,92"/>
<TFT:Label MxStyle="{PopupTextLabelStyle}" Name="GetExternalInformationLabel2" FormattedText="@GEIModel@json:model" Location="16,350" Size="736,92"/>
<TFT:Label MxStyle="{PopupTextLabelStyle}" Name="GetExternalInformationLabel3" FormattedText="@GEIColour@json:current" Location="16,442" Size="736,92"/>
<TFT:Label MxStyle="{PopupTextLabelStyle}" Name="GetExternalInformationLabel4" FormattedText="@GEICO2@json:co2emissionsgkm" KeyValue="AdditionalUserIdentifier" Location="16,534" Size="736,92"/>
<TFT:Button MxStyle="{CO2AcceptButtonStyle}" Name="Accept" Click="OnExternalAdditionalUserIdentifierSelect"/>
<TFT:PiezoButton MxStyle="{SilentRejectButtonVisualStyle2}" Name="GetExternalInformationDonePopupCloseButton" Click="OnSilentReject"/>
</Controls>
</TFT:PopupPanel>