on 06-11-2014 1:34 PM
Hi everyone,
I have a requirement like one field repeats multiple times (0-unbound).
If the field contain the same values at each repetitive node then it has to create target node.
If the value changes at any node it does not create the target node.
Is there any approaches for this scenario. If any UDF's please post the same.
Thanks
Dileep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use standard function, splitByValue (Value changed)
Ambrish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can write UDF something like below..
your field -> remove context-> UDF -> Target Node
String a = "0";
for (int i=1; i<var1.length; i++)
{
if (var1[i-1] != var1[i])
a = "1";
}
if (a.equals("0"))
{
result.addValue(" ");
}
I think you should be able to achieve with graphical mapping by using count function on field and node level..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dileep,
Your requirement is a little unclear.
example: Is it that if there is a node <name>abc</name> and next time if <name>abc</name> come a target node will be created. But if a node <name>xyz</name> comes the target node will not be created?
Is this the requirement?
Regards,
Vikas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.