Categories > TinyButStrong general >

ope action show right n characters possible ?

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: kle_py
Date: 2017-03-29
Time: 16:00

ope action show right n characters possible ?

Hi,

I would like to show the last 3 digits/letters from an IP field like "255.255.255.248".
Is there a way to do it with a smart operation like [list.IP;ope=rightcrop:3] ??

Right now a created a "calculated / cropped" field in the SQL register, but maybe there is a possible way I could not find in TBS ?

Thank You
By: Skrol29
Date: 2017-04-01
Time: 01:23

Re: ope action show right n characters possible ?

Hi,

There is not such a feature in TBS, but you can do it using a custom onformat function.
See http://www.tinybutstrong.com/manual.php#html_field_prm_onformat