Iron Speed Technical Forums
Register Latest Topics
 
 
 


Reply
  Author   Comment  
bhavesh7098

Registered:
Posts: 56
Reply with quote  #1 
Hi ,
        How to get distinct value from Dropdown or Quick selector filter when view is not possible to create? Is there any custom Code modification can ido in ironspeed to remove dulicate values ?


Thanks,
Bhavesh
Rexxrally

Registered:
Posts: 229
Reply with quote  #2 
You will have to override the code that populates your drop down list.

Look in the Base Record Control or Base Table Control for the method Populate{DropDownListName}DropDownList.

Copy that code up to Section 1 and change it to override the original method.

Now, in this method, you can set a PreviousEnteredValue variable with the value of the last value added to the Drop Down List. Each time you go to add one, check that it's not the same as the previous one added.
bhavesh7098

Registered:
Posts: 56
Reply with quote  #3 
Thanks for the reply! can you plz  give me an Example or write code for few line?
JimiJ

Avatar / Picture

MVP Developer
Registered:
Posts: 1,927
Reply with quote  #4 
You just need to focus on the part, similar to this, of the PopulateDDL method:
 
 [image]

The logic to follow is, to check always if the item is not yet in an Array before it added to the DDL list. Then save only into an Array what has been successfully included into the DDL list.   


Cheers,
Jimi J

__________________

  Jaime Jegonia
[jts_logo]

Iron Speed MVP Developer
 

". . . and whoever sows generously will also reap generously" 2 Cor 9:6

bhavesh7098

Registered:
Posts: 56
Reply with quote  #5 
Hi Jim,
            Thanks for the code. I dont see the PopulateDDL method in quick selector.
            please see attached image.

Attached Images
Click image for larger version - Name: Capture.PNG, Views: 3, Size: 107.05 KB 

JimiJ

Avatar / Picture

MVP Developer
Registered:
Posts: 1,927
Reply with quote  #6 
For QS, there is no other way, other than the distinct view source. There could be other solutions that I don't know about. In fact, I stopped using QS for almost 3 years because it's very slow even for few numbers of records.
 
In our evaluation, for loop up data with less than 1001, ISD DDL is better. Otherwise, we use Telerik ComboBox.  

Jimi J

__________________

  Jaime Jegonia
[jts_logo]

Iron Speed MVP Developer
 

". . . and whoever sows generously will also reap generously" 2 Cor 9:6

Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Download Iron Speed Designer

Terms of Service Privacy Statement