Home Dashboard Directory Help
Search

Lightswitch - autocomplete box change event fires twice by bdely


Status: 

Closed
 as External Help for as External


1
0
Sign in
to vote
Type: Bug
ID: 788439
Opened: 5/22/2013 2:21:31 PM
Access Restriction: Public
0
Workaround(s)
view
0
User(s) can reproduce this bug

Description

I have a light switch app were I am using the autocomplete box to select a store that is for a route. they select the route and the store autocomplete box gets the stores for that route and when they go to select a store the change event fires twice, the first is the selected store and the second is the first store in the list. So the desired store never is able to be selected
Details
Sign in to post a comment.
Posted by bdely on 5/29/2013 at 12:10 PM
is there a way to change the value that is displayed for the selected item? for example instead of showing 1897 as the store number could i have it show the address -> Toronto - 1111 front st
Posted by bdely on 5/29/2013 at 12:07 PM
It still will bounce to the first in the list if there is items in the first column in the table, even if you have two primary key were the first column is allowed to have the same value as long as the second column has a different value.
the work around that i have found is in the design to move the column that has the least amount of duplicate values to the first position and then then use the change event and do a check if the currently selected item is the same as the previous to not change. but there is a problem with do all also, because even though that column has the least amount of duplicate value if you pick one after the other that has the same value it will not change. so you would have to select a different item that has a different value then change it to the value you want.
Posted by Microsoft on 5/24/2013 at 1:31 AM
Thanks for your quick response. Based on current status, I would like to ask your permission to close this feedback. Should you find any bugs in the future, please feel free to let us know.
Posted by bdely on 5/23/2013 at 8:47 AM
I have found out why it is firing twice. in my datasource i have a table that has three primary keys route customer and store all are integers. It was selecting the first in the list because all item had the same route number. when I rearrange the columns in my datasource and put it store customer then route it does not fire twice.

I am going to check if it will fire twice if there is two stores with the same number but different customers
Posted by Microsoft on 5/22/2013 at 11:24 PM
Thank you for submitting feedback on Visual Studio and .NET Framework. In order to efficiently investigate and reproduce this issue, we are requesting additional information outlined below.

Could you please give us a demo project to demonstrate this issue so that we can conduct further research?

We look forward to hearing from you with this information.

Microsoft Visual Studio Connect Support Team
Posted by Microsoft on 5/22/2013 at 2:54 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.