cancel
Showing results for 
Search instead for 
Did you mean: 

Complex Table Filter and remove dublicates

Former Member
0 Kudos

Hey all,

I am trying to implement a custom complex table.

as i have a record like below; ı do want to show the values to the user with remove dublicates. As you see that, the line  1 - 2 -3 and 4 are identical and 5 -6 and 7 are idendical too.

How can i remove those identical vaues in a complex table.

Regards,

IndxF1F2F3F4
1ABC0101GBB
2ABC0101GBB
3ABC0101GBB
4ABC0101GBB
5ABC0102KMD
6ABC0102KMD
7ABC0102KMD
8ABC0302DND
9XYZ0101GBB
10XYZ0101GBB
11XYZ0101GBB
12XYZ0101GBB
13XYZ0102KMD
14XYZ0102KMD
15XYZ0102KMD
16XYZ0201FDS
17QWR0101GBB
18QWR0101GBB
19QWR0101GBB
20QWR0101GBB
21QWR0102KMD
22QWR0102KMD
23QWR0102KMD
24QWR0302DND
25QWR0302DND
26ASD0101ABS
27ASD0102ABS
28ASD0103OTR
29ASD0104RBS
30ASD0201OTR

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Adem,

In Java while setting the index, please concatenate F1,F2,F3 and F4. which will not set the values which are identical. Then in Agentry you will not be able to see all duplicate values.

Hope this makes you clear

Thanks

Ajitesh

Former Member
0 Kudos

Hello Upadhyaya,

Thank you for your answer.

I did as you said. I have two conconated value, first one is F1 - F2 and F3 and second one is F1 F2 F3 and F4 but the thing is i have two input that based on this complex table. Regarding the data of above example, the first input should only show(F1 + F2 + F3); 01,02,03,04 and the second input should show(F1 + F2 + F3 + F4) GMD, KMD, ...., OTR.

The index of second input is the conconacated field of F1+F2+F3+F4 and it works ok.

The index of first input is the conconacated field of F1+F2+F3 but still shows dublicated value.

Those two index has  no parent index.

I hope, i tell myself clear.

Regards,

Adem

Former Member
0 Kudos

Adem,

In Agentry the the primary key should be unique. you have to make sure while setting the property value in Java for Key property is unique. for that you can concatenate any number of column.

May i know what do you want to display for first input?

i think you can still use same index for the first input. while displaying the selected row you can write a rule to filter out that record from complex table.

Hope this makes you clear

Thanks

Ajitesh

Former Member
0 Kudos

Hello Upadhyaya,

For the first input, I want to display the value of F3 without dublicated values.

Former Member
0 Kudos

Have a Index on F3, with a Parent of F2.  Then on the F2 have a parent of F1.

Then on the field have a parent rule of

CONCATENATE  (String function)

- F2

- NEWLINE (String Function)

- F1

Former Member
0 Kudos

Hello Stephen,

I understand like this,

Create index of F1 with no parent, lets say F1Index, then create one more F2Index with parent of F1ındex then  create F3 index with parent of F2Index.

Do i have Index of Indx which is the only unique value in complex table.

Regards,

Adem

Former Member
0 Kudos

The first index that is created will become the primary index and this needs to be the unique row.

As a lot of the fields are close to the same name, I would say create a new field that has all the current fields  concatenate together (F1+F2+F3+F4) and use that as the unique index.

Former Member
0 Kudos

Hep  Streeter

I did as you said but still same  the value is came with dublicated by the way i use complex table with search.

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

What control type are you using, Complex Table search?  If you are trying to remove duplicate when selecting a row what id are you looking to return?

--Bill