12.07.2016, 10:18
First of all, make sure the category you selected is 2 because if you didn't do the same for the rest of the categories, obviously it will not work.
Debug it to see what the problem might be. Print inputtext, listitem and what we retrieved ("i", name of location for "i" index) in dialog response to see if it matches with the item you selected from the dialog.
Debug it to see what the problem might be. Print inputtext, listitem and what we retrieved ("i", name of location for "i" index) in dialog response to see if it matches with the item you selected from the dialog.