If the price lists have changed this function should be called to clear the internal cache.
see getEaiwsPriceLists
If the project groups have changed this function should be called to clear the internal cache.
see getEaiwsProjectGroups
This function will close the given eaiws session. If the given session is equal to wbkApp.user.eaiwsSession
than EaiwsSession.session.loadEmptySession() will be used instead to clear the session.
OptionalpForceClose: boolean
If true the session will be closed even if it is the user session.
Creates and initializes a new basket instance.
Session context the basket should operate on.
OptionalpOptions: CreateBasketOptions
Options for the created basket.
Creates and prepares a new eaiws session using the current application settings.
In case of a gatekeeper error a GatekeeperError will be thrown.
Note: prepareEaiwsSession() will be also called internally.
OptionalpOptions: CreateEaiwsSessionOptionsCalling this function will prevent the basket from automatically closing the provided session when the basket window gets closed. The session will stay open.
Returns a list of price lists available for the given session. Note: The server response will be cached to speed up further calls.
Returns a list of project groups available for the given session. Note: The server response will be cached to speed up further calls.
Returns a file name for the given project and extension.
Basket instance with loaded project
Extension of the file (e.g. ".obk")
Returns true if the ctrl key is currenty down. For Apple platforms the command (meta) key is checked instead.
Normalizes the given set of user restrictions. E.g. if edit is part of the set, all the other
editing restrictions will be added also to the set.
Converts the given OBK into an OBX.
The EAIWS session.
Url of the OBK. The URL has to belong to the given session.
OptionalpOptions: ObkToObxOptions
Additional conversion options.
Returns the URL of the created OBX.
Can be used to programmatically open a link.
OptionalpTarget: string
Custom target for the link (default: _blank)
Prepares article images and shows a progress while doing so. Should be called before requesting a large amount of article images to avoid timeouts.
The eaiws context holding the items.
OptionalpOptions: PrepareArticleImagesOptions
Additional options.
Should be called after starting a session to setup parameters like data language and locale of the session.
Note: Will be called automatically from createEaiwsSession()
Resizes an image if it exeeds the maximum size. The original image will be returned in case it does not need to be resized.
Scrolls an html element into view if necessary.
Starts the download of the given file while preventing the window.beforeunload event to be triggered.
Note: This is not guaranteed to work for cross domain urls (e.g. for PDFs). In this case the file will be opened in a new tab.
OptionalpDownloadFilename: stringUploads and resizes an image to an eaiws session while showing a progress. The url of the uploaded image will be returned.
null will be returned if the upload was aborted by the user.
Only PNG and JPG images are supported.
Uploads a file to an eaiws session while showing a progress. The url of the uploaded file will be returned.
null will be returned if the upload was aborted by the user.
Uploads the given file to the shared file storage and returns its download url (share link).
Utilities for the
File System Access API