ux absl

Description

Execute Beas BSL command in simple way

Parameters

bsl

bsl object name

object

bsl object

select

the $select area as string

filter

the $filter area as string

orderby

the $orderby area as string

transaction

the $transaction option

format

the $format. Standard = json string

function

Callback function to execute after the command receive a reply

object

JSON object with the options:

contentType

json|multipart|standard

timeout

Max time to wait a reply

loading

Block the app while sending/receiving data. Default: true

Return

void


Example


// Example: get itemName from item
let itemCode='RM';
ux.bsl("Item",
    {
      select:"ItemName",
      filter:"ItemCode eq "+ux.toJson(itemCode)
    },
  function(err, result.value) 
    {
     ux.dialog(_t("Info"),_t("Item Name: " +result.value[0], { buttons:[{id:'ok', title:_t("Ok"),type:"is-danger"}] } );
    }
  );