Only show a part of a number with computed attributes

Andreas Kern5 years ago

Hello,

is ist possible only to show a certain part of a number with computed attributes?

For example
11210102030405060708090a0b0c0d0e0f10020b010ae5 is transmitted.

But i only want 0102030405060708090a0b0c0d0e0f10020b010a to be shown.
The first 4 digits have to be deleted and the last 2.

Tank you for your help.

With best regards

Andreas

Anton Tananaev5 years ago

Is it a string attribute? You can use substring method.

Andreas Kern5 years ago

I am not really sure,

the attribute value is sent by an ibeacon ID Coin from teltonika and i think it is hex.
The ibeacon ID 0102030405060708090a0b0c0d0e0f10020b010a is the one i want to filter out from 11210102030405060708090a0b0c0d0e0f10020b010ae5.

Andreas Kern5 years ago

Tank you Anton,

it worked.

This is how i solved it.
io385.substring(4,44)