B4A.WEB.JOBI.SETTINGS

Summary

Object type
JOBI
Object Folder
PACKAGES/BEST4AUTOMIC/B4A.WEB/SOURCE
Title
Reads settings for web services
Archive Key 1
-
Archive Key 2
-
Created
WRITER/B4A am: 2022-03-24 08:02:03
Last Modified
WRITER/B4A am: 2024-04-10 11:17:00 6 x
Last Used
-

Description

The include reads the settings for web services. It fetches the token for the technical user and the base URL to the b4A RESTful API.

Parameter

Input

Output

If called in workflow objects the output variables are:

&B4AW_TOKEN_O# authentication token for the technical

&B4AW_BASE_URL_O# base url to the b4A RESTful API

Example

    :include B4A.WEB.JOBI.SETTINGS

Process

:set &vara# = "B4A.WEB.VARA.SETTINGS"
:set &LOGIN_OBJECT# = get_var(&vara#,LOGIN_OBJECT)
:set &LOGIN_TYPE# = get_var(&vara#,LOGIN_TYPE)
:set &LOGIN_USER# = get_var(&vara#,LOGIN_USER)
:set &B4AW_TOKEN_O# = get_login(&LOGIN_OBJECT#, "&LOGIN_USER#", &LOGIN_TYPE#, PASSWORD)
:set &B4AW_BASE_URL_O# = get_var(&vara#, BASE_URL)
:set &B4AW_ENCODING_O# = get_var(&vara#, ENCODING)