on 07-15-2015 4:18 PM
Dear Experts,
I hope it's okay to get your inputs/advise in creating a UDF for PI mapping to insert a 'suppress' value in the first context.
Below is the sample data.
Current scenario:
xxxxxx
<contextChange>
zzzzzz
<contextChange>
Target:
SUPPRESS
<contextChange>
zzzzzz
<contextChange>
Thanks in advance!
Execution type : All values of Queue
for(int i=0;i<var1.length;i++)
{
if(i==0)
{
result.addValue(ResultList.SUPPRESS);
}
else
{
result.addValue(var1[i]);
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Hareesh for the code.
Would you be able to advise also for a code that will 'always' put SUPPRESS on every context except the last context?
Example #1:
xxxxxx
<contextChange>
yyyyyy
<contextChange>
zzzzzz
<contextChange>
Target #1:
SUPPRESS
<contextChange>
SUPPRESS
<contextChange>
zzzzzz
<contextChange>
Example #2:
xxxxxx
<contextChange>
yyyyyy
<contextChange>
qqqqq
<contextChange>
zzzzzz
<contextChange>
Target#2:
SUPPRESS
<contextChange>
SUPPRESS
<contextChange>
SUPPRESS
<contextChange>
zzzzzz
<contextChange>
Appreciate your help on this.
Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
11 | |
10 | |
8 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.