# Presentation Order Events
These events are in presentationOrder.js file.
# Ti.App.fireEvent('deletePresentation')
Deletes a custom presentation from tbl_slides_v2. Fires loadPresentationsFromDB event before exiting.
Example:
Ti.App.fireEvent('deletePresentation', {
dataOfPres: '{ timeValue: "timeOfTheFile" }'
})
timeValue- Time value of the deleted file, used in delete query.
# Ti.App.fireEvent('editPresentation')
Edits/creates a new custom or just edits a normal presentation from only presentations or from all documents.
Example:
Ti.App.fireEvent('editPresentation', {
chapters: [chapter0, chapter1],
dataOfPres: `{
'timeValue' : 'timeOfTheFile',
'slideOrder' : '123456',
'presentationName' : 'myPresentationName',
'isCustom' : 0,
'editorValue' : 1,
'vSubFolder' : 'mySubFolder',
'vNumber' : 'myVNumber'
}`
})
chapters- Chapter information of the updated presentation.timeValue- Time value of the edited file, used in edit query.slideOrder- Slide order of the updated presentation.presentationName- Name of the updated presentation.isCustom- is the presentation custom?editorValue- 0 or 1vSubFolder- Sub foldervNumber- vNumber value for the presentation.
# Ti.App.fireEvent('finishedEditingPresentation')
Fired after the edit operation is done.
Example:
Ti.App.fireEvent('finishedEditingPresentation', {
timeValue: 'timeOfTheFile',
presentationName: 'myPresentationName',
saved: true,
overwrite: true,
ID: 123456
})
timeValue- Time value of the edited file, used in edit query.presentationName- Name of the edited presentation.saved- if true, add presentation to DB.overwrite- if true, delete the previously saved presentation from DB.ID- id of the file.
# Ti.App.fireEvent('finishedCreatingPresentation')
Fired after the create operation is done.
Example:
Ti.App.fireEvent('finishedCreatingPresentation', {
timeValue: 'timeOfTheFile',
presentationName: 'myPresentationName',
saved: true,
overwrite: true,
pdfMode: true,
slideOrder: '123456',
slideNumbers: '654321',
subFolder: mySubFolder
})
timeValue- Time value of the created file, used in edit query.presentationName- Name of the edited presentation.saved- if true, add presentation to DB.overwrite- if true, delete the previously saved presentation from DB.pdfMode- if true, delete finale file mentioned in timeValue.slideOrder- slide order of the created presentation.slideNumbers- Slide numbers of the created presentation.subFolder- subFolder of the created presentation.
# Ti.App.fireEvent('showHelp')
Shows help. No further explanation available.
Example:
Ti.App.fireEvent('showHelp', showHelpForPresentationEditor)