Codeunit 18122988 EOS EX073 Subscription
Codeunit 18122988 EOS EX073 Subscription
Provides functions related to extension specific subscription management.
Methods
LoadSubscriptionInfo
procedure LoadSubscriptionInfo(ForceReload: Boolean; DoCommit: Boolean)
Loads record with present subscription informations
Parameters / Return Value
ForceReload
BooleanIf true forces information to be read from EOS Endpoint
DoCommit
BooleanIf true executes a commit when updating cached information
LoadSubscriptionInfo
procedure LoadSubscriptionInfo(ForceReload: Boolean)
Loads record with present subscription informations without executing necessary commit
Parameters / Return Value
ForceReload
BooleanIf true forces information to be read from EOS Endpoint
LoadSubscriptionInfo
procedure LoadSubscriptionInfo()
Loads record with present subscription informations without executing necessary commit and reading from cache
GetSubscriptionInfo
procedure GetSubscriptionInfo(var TmpSubscrInfo: Record "EOS Subscription Information")
Reads present subscription informations
Parameters / Return Value
TmpSubscrInfo
Record "EOS Subscription Information"the record type with the found informations
TestSubscription
procedure TestSubscription(): Boolean
Verifies if subscription is active. If not a “required” notification will be displayed
Parameters / Return Value
Returns
BooleanTrue if notification has been displayed
SendExpirationNotifications
procedure SendExpirationNotifications(): Boolean
Verfifies subscription status/dates and if necessary displays expiring related notification
Parameters / Return Value
Returns
BooleanTrue if notification has been displayed
SendAllNotifications
procedure SendAllNotifications(): Boolean
Verfifies subscription status/dates and if necessary displays a notification
Parameters / Return Value
Returns
BooleanTrue if notification has been displayed
SetupSubscription
procedure SetupSubscription()
Launches subscription request wizard
GetSubscriptionIsActive
procedure GetSubscriptionIsActive(): Boolean
Verfifies if the subscription is active
Parameters / Return Value
Returns
BooleanThe subscription status
GetSubscriptionIsFreeTrial
procedure GetSubscriptionIsFreeTrial(): Boolean
Returns if the subscription is a free trial (active and “FREE” subscription plan)
Parameters / Return Value
Returns
Booleantrue/false
GetUsingAllowed
procedure GetUsingAllowed(): Boolean
Returns if “full” using extension is allowed with actual subscription situation
Parameters / Return Value
Returns
Booleantrue/false
GetMaxFreeDays
procedure GetMaxFreeDays(): Integer
Returns the maximal nr. of days allowed for using in free trial mode
Parameters / Return Value
Returns
IntegerThe number of total free days
GetFreeDays
procedure GetFreeDays(): Integer
Returns the remaining days for using in free trial mode
Parameters / Return Value
Returns
IntegerThe number of remaining free days
GetLicenseText
procedure GetLicenseText(): Text[50]
Generates a text with infos related to free version (i.e. for captions)
Parameters / Return Value
Returns
Text[50]The generated text
GetNotificationId
procedure GetNotificationId(): Guid
Returns a unique GUID to use for extension specfic notifications
Parameters / Return Value
Returns
GuidThe ID
SendNotification
procedure SendNotification(Message: Text; ActionText: Text)
Displays an extension specific notification
Parameters / Return Value
Message
Text[]The message text to be displayes
ActionText
Text[]The action text to be displayes
SendCustomNotification
procedure SendCustomNotification(NotifyCode: Code[20])
Displays an extension specific notification
Parameters / Return Value
NotifyCode
Code[20]Code of notification to be displayed
DetCaption
procedure DetCaption(Title: Text; Applcode: Text): Text
Defines the title/caption for pages/reports considering licensing (free version)
Parameters / Return Value
Title
Text[]the base title/caption text
Applcode
Text[]if present a short application code, if to remove from base title/caption
Returns
Text[]then new caption
CheckSubscriptionPage
procedure CheckSubscriptionPage()
IsTestCodeunitRunning
Obsolete
Pending: Function deprecated (22.0)procedure IsTestCodeunitRunning(CodeunitId: Integer): Boolean
Checks if a given test-codeunit is currently running.
If the provided codeunit is not a test-codeunit, false is returned.
If the test toolkit is not installed, false is returned.
A test-codeunit is then considered running if it is present in at least one test suite and this test suite has been started within the last 2min.
Parameters / Return Value
CodeunitId
IntegerThe ID of the codeunit to check for.
Returns
Booleantrueif the test-codeunit is running,falseotherwise.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.