Skip to content

Primary Registration View

Simone Martorelli edited this page Feb 8, 2021 · 2 revisions

Stored values for the Primary Registration Child View Controller are found in PrimaryRegistrationChildVCConstants.swift. Below is an example of the View Controller displaying the content applied from the constants file:

primaryRegistration

  1. The customer's first name is retrieved from the JPS and stored in the applications property list file (com.ibm.jamf.enrollment.plist) at the key associated to PrimaryRegistrationChildVC_Constants.Keys.hrFirstName.

  2. The customer's first name value is shared here.

Popup Buttons
    • Label = PrimaryRegistrationChildVC_Constants.PopupButtons.LabelText.popup1Header
    • Contents of button = PrimaryRegistrationChildVC_Constants.PopupBoxes.Info1.list
    • Label = PrimaryRegistrationChildVC_Constants.PopupButtons.LabelText.popup2Header
    • Contents of button = PrimaryRegistrationChildVC_Constants.PopupBoxes.Info2.list
    • Label = PrimaryRegistrationChildVC_Constants.PopupButtons.LabelText.popup3Header
    • Contents of button = PrimaryRegistrationChildVC_Constants.PopupBoxes.Info3.list
    • Label = PrimaryRegistrationChildVC_Constants.PopupButtons.LabelText.popup4Header
    • Contents of button = PrimaryRegistrationChildVC_Constants.PopupBoxes.Info4.list

By examining the format for the Popup Buttons and the values available in the corresponding structures, you can also see additional values used for recording and analyzing the data.

popupButton1struct

PrimaryRegistrationChildVC_Constants.PopupBoxes.Info1.codes: The equivalent values based on the parallel index value from PrimaryRegistrationChildVC_Constants.PopupBoxes.Info1.list recorded to the plist when a selection is made from the first info popup button.

PrimaryRegistrationChildVC_Constants.PopupBoxes.Info1.selectedType: This is used internally by the application to determine if a choice has been made in order to enable or disable the Next button.

PrimaryRegistrationChildVC_Constants.PopupBoxes.Info1.key: The key associated with storing and retrieving the code value selected by the customer.

  1. Stored string found in PrimaryRegistrationChildVC_Constants.additionalPolicyMessage.
Clone this wiki locally