Topics
All
Mac OS X
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Guides
Examples
New in version:
7.4
7.5
8.0
8.1
8.2
8.3
8.4
8.5
9.0
9.1
Statistic
Events.AuthorizationStatusForEntityType
Returns the authorization status for the given entity type.
Component | Version | macOS | Windows | Server | FileMaker Cloud | FileMaker iOS SDK |
Events | 6.2 | Yes | No | No | No | Yes |
Parameters
Parameter | Description | Example value |
---|---|---|
Type | Which entity type you like to check: Event or Reminder. | "Event" |
Result
Returns status or error.
Description
Returns the authorization status for the given entity type.You can check and see if your solution is allowed to use the calendar.
Value is NotDetermined, Restricted, Denied or Authorized.
You can use Events.requestAccessToEntityType to request access.
Examples
Query authorization:
Set Variable [$r; Value:MBS("Events.AuthorizationStatusForEntityType"; "Reminder")]
If [MBS("IsError")]
Show Custom Dialog ["We have a problem"; MBS("Text.RemovePrefix"; $r; "[MBS] ")]
Else If [$r = "NotDetermined"]
Set Variable [$r; Value:MBS( "Events.requestAccessToEntityType"; "Reminder" )]
If [$r = "Wait"]
#dialog is showing.
Else If [$r = "OK"]
Show Custom Dialog ["Success"; "We are authorized and ready to go."]
Else
Show Custom Dialog ["We have a problem"; $r]
End If
Else If [$r = "Restricted"]
Show Custom Dialog ["Success"; "We are authorized for a restricted access and ready to go."]
Else If [$r = "Denied"]
Show Custom Dialog ["Problem"; "We are denied for calendar access. Please go to system preferences and enable us."]
Else If [$r = "Authorized"]
Show Custom Dialog ["Success"; "We are authorized and ready to go."]
Else
Show Custom Dialog ["We have a problem"; $r]
End If
See also
Example Databases
- Mac only/Calendar/Events Changes
- Mac only/Calendar/Events Create Reminder
- Mac only/Calendar/Events Import
- Mac only/Calendar/Events Create Event
Created 10th March 2016, last changed 13th March 2016
Events.Alarm.Type - Events.Calendar.AllowsContentModifications
Feedback: Report problem or ask question.
Links
MBS Xojo Plugins