Skip to main content
Solved

Limit attribute value to 8 character

  • February 23, 2022
  • 5 replies
  • 158 views

abinash

Hi, i have a attribute field that contains value more than 8 charecter.I want to limit it to 8.

Best answer by david_r

You can use the SubstringExtractor for this.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

5 replies

david_r
Celebrity
  • 8392 replies
  • Best Answer
  • February 23, 2022

You can use the SubstringExtractor for this.


abinash
  • Author
  • 6 replies
  • February 23, 2022

You can use the SubstringExtractor for this.

Actually i have the value starting from 1 to a number which contains more than 8 character. so i want something like attribute rounder so that i could mention the maximum digit.


david_r
Celebrity
  • 8392 replies
  • February 23, 2022

Actually i have the value starting from 1 to a number which contains more than 8 character. so i want something like attribute rounder so that i could mention the maximum digit.

Can you provide some examples.


abinash
  • Author
  • 6 replies
  • February 23, 2022

Actually i have the value starting from 1 to a number which contains more than 8 character. so i want something like attribute rounder so that i could mention the maximum digit.

i need a transformer which will limit the attribute value to 8. if there is any value more than 8 character it should erase the extra value on the right side


abinash
  • Author
  • 6 replies
  • February 23, 2022

Actually i have the value starting from 1 to a number which contains more than 8 character. so i want something like attribute rounder so that i could mention the maximum digit.

i found it (string length formatter )

Thank you