Mobile SDK > Connected mobile application example reference > Components overview > pageManager.js
 
pageManager.js
Public methods
initialize
Accepts the context data from main.js.
postReady
Return a Boolean value that indicates whether the response data is ready for posting to the server.
setPosition
Sets the question array index to retrieve the current question.
render
Renders the current question in the user interface.
getPostData
GET post data from the user interface.
Major private methods
_setPageText
Sets the question text, or error text, in the user interface.
_setPageCodes
Renders the selection items that support codes (NA, REF, DK).
_getQuestionRenderer
GET the specific question renderer, according to the current question type.
Methods
GeneratePostData
Generate the post data according to the user responses. Simple questions contain a single response; complex questions contain responses for each question.
RenderQuestion
Render the question object at CurrentIndex in the QuestionList array.
CollectResponse
Collect the response values for the question object at CurrentIndex in the QuestionList array.
See also
Components overview