SPFx webpart Duplicate records on Same page( if i add same webpart 2 time on page).

%3CLINGO-SUB%20id%3D%22lingo-sub-1041932%22%20slang%3D%22en-US%22%3ESPFx%20webpart%20Duplicate%20records%20on%20Same%20page(%20if%20i%20add%20same%20webpart%202%20time%20on%20page).%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1041932%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20created%20a%20SPFx%20webpart%20with%20Tool%20Pane%20property%20named%20%22Project%22.%20It%20will%20display%20the%20records%20based%20on%20the%20Project%20name%20provided%20in%20Tool%20Pane%20property.%20If%20I%20add%20the%20same%20webpart%202%20times%20on%20the%20same%20page%20it%20will%20merge%20the%20record%20in%20both%20the%20webpart.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EFor%20example%20Webpart1%20-%20Project%20A%20in%20toolpane%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E1)%26nbsp%3B%3C%2FSPAN%3E%3CEM%3EABC%3C%2FEM%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E2)%26nbsp%3B%3C%2FSPAN%3E%3CEM%3EXyz%3C%2FEM%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CEM%3EAfter%3C%2FEM%3E%3CSPAN%3E%26nbsp%3Badding%20Webpart2%20on%26nbsp%3B%3C%2FSPAN%3E%3CEM%3Ethe%20same%20page%3C%2FEM%3E%3CSPAN%3E%26nbsp%3Bwith%26nbsp%3B%3C%2FSPAN%3E%3CEM%3Etelephone%3C%2FEM%3E%3CSPAN%3E%26nbsp%3Bproperty%20Project%20B.%3C%2FSPAN%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CEM%3EThe%20value%3C%2FEM%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CEM%3Eshould%3C%2FEM%3E%3CSPAN%3E%26nbsp%3Bbe%3C%2FSPAN%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CEM%3E1)%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FEM%3E%3CSPAN%3EASD%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EBut%20both%26nbsp%3B%3C%2FSPAN%3E%3CEM%3Ewebpart%3C%2FEM%3E%3CSPAN%3E%26nbsp%3Bshow%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E1)%26nbsp%3B%3C%2FSPAN%3E%3CEM%3EABC%3C%2FEM%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E2)%26nbsp%3B%3C%2FSPAN%3E%3CEM%3EXyz%3C%2FEM%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CEM%3E3)%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FEM%3E%3CSPAN%3EASD%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EThanks%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EAjit%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

I have created a SPFx webpart with Tool Pane property named "Project". It will display the records based on the Project name provided in Tool Pane property. If I add the same webpart 2 times on the same page it will merge the record in both the webpart.

 

For example Webpart1 - Project A in toolpane

1) ABC 

2) Xyz 

After adding Webpart2 on the same page with telephone property Project B. 

The value should be 

1) ASD

But both webpart show

1) ABC 

2) Xyz 

3) ASD

 

Thanks,

Ajit

0 Replies