Skip to main content
Solved

how to split a word and get the first index value in component

  • October 10, 2024
  • 2 replies
  • 62 views

Forum|alt.badge.img

hi,

i had a word like this “12345 - Data min”, i need to split this word based on - operator and get the first word.

I had another requirement like split and save the words in another varaible

ex : select * from emp;select * from customer

query variable should have splitted value like select * from emp

can you help in implementing above scenario

Best answer by ivysakh

Hi @rajeswarimyla ,

You can use expressions in a component to achieve this. An example is attached here for your reference. 

Cheers!
Vysakh Indrasenan

2 replies

ivysakh
Space Explorer
Forum|alt.badge.img+3
  • Space Explorer
  • Answer
  • October 11, 2024

Hi @rajeswarimyla ,

You can use expressions in a component to achieve this. An example is attached here for your reference. 

Cheers!
Vysakh Indrasenan


Forum|alt.badge.img
  • Author
  • Space Explorer
  • October 15, 2024

Thanks for your support, i can get the data successfully as expected.