Skip to Content

UDF - Custom Index function

Hi experts,

I have a requirement to add indexing to the target field starting from the last index of a different node that is mapped to a different field.

My question is can anyone help me with a custom "Index" function where the starting number can be given as a input to the function rather than just specifying inside it.

Many thanks in advance.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • May 02 at 08:57 AM

    Anyone please?

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Dilip,

      The input is correct, but I want the output to be as below:

      <output>
      	<NodeA >
      		<field>x</field>
      		<field>y</field>
      		<field>1</field>
      	</NodeA>
      	<NodeA >
      		<field>x</field>
      		<field>y</field>
      		<field>2</field>
      	</NodeA>
      	<NodeA >
      		<field>x</field>
      		<field>y</field>
      		<field>3</field>
      	</NodeA>
      	<NodeA >
      		<field>x</field>
      		<field>y</field>
      		<field>4</field>
      	</NodeA>
      	<NodeB>
      		<field>x</field>
      		<field>y</field>
      		<field>5</field>
      	</NodeB>
      	<NodeB>
      		<field>x</field>
      		<field>y</field>
      		<field>6</field>
      	</NodeB>
      	<NodeB>
      		<field>x</field>
      		<field>y</field>
      		<field>7</field>
      	</NodeB>
      </output>
      
      
      Node A occured 4 times, so it has the numbers 1,2,3,4. Node B should have the index starting from 5.
      
      Thank you.
  • May 09 at 02:07 PM

    Hi Ramesh,

    I'm not sure if this issue is resolved, thought of helping you out. See the attached mapping screens.

    --Priyanka

    Add comment
    10|10000 characters needed characters exceeded