ue_bsl

Working with Beas Service Layer

 

declare this with

 

declare=b=ue_bsl

or

instance bsl b

 

with this object you can use the beas service layer as object

Example: Get information from Item

 

instance bsl b

b.get=Item("RM")

messagebox=<b.jstring>

 

Save result in JSON String

instance bsl b

instance json j

b.get=Item("RM")

j.parse=b

 

More see

youtube beas service layer command GET with beas script

youtube beas service layer command POST with beas script

 

Methodes

Function

Result

b.get

b.getstring

b.post

b.select

 

Properties

Property

Result

<b.code>

return code from last get/post command

instance bsl b

b.get=Item("wrongitemcode")

messagebox=<b.code> / <b.text>

=>  "404 / The requerst resource is not found"

<b.text>

return text from last get/post command

<b.value>

return value from last get/post command

<b.jstring>

return complete result in json format from last get command

<b.[fieldname]>

return field name from last get/select command

Example

instance bsl b

b.get=Item("RM")

messagebox=<b.ItemName>