Page 3 of 4

Appery().val() has stopped updating selected item in dropdown selector lists

Posted: Sat Jul 25, 2015 5:00 pm
by Chris7650227

I'm having the same issue which is neither solved by trigger('change') nor by selectmenu('refresh',true). Has there been any progress on this one?


Appery().val() has stopped updating selected item in dropdown selector lists

Posted: Mon Jul 27, 2015 3:36 am
by Yurii Orishchuk

Hi Chris,

I've just checked and following code works as expected:

pre

Apperyio("mobileselectmenu_141").val("Vici").selectmenu('refresh', true)

/pre

Please give us your app public link and describe steps to reproduce this issue in your app.

Regards.


Appery().val() has stopped updating selected item in dropdown selector lists

Posted: Sun Aug 23, 2015 8:48 pm
by Darren O'Neill

Hello all,

I'm having the same problem. When I use

codeApperyio("mobileselectmenu_141").val("Vici").selectmenu('refresh', true)/code

for the default SelectMenu, the default value is changed accordingly.

However when I try to apply the same logic to my SelectMenu object, the desired value is not displayed - in fact it's the first value in the list that's displayed.

Any advice?


Appery().val() has stopped updating selected item in dropdown selector lists

Posted: Tue Sep 01, 2015 3:59 am
by Anil Guduru

Hi, Can someone respond to the last Q in this thread, I have same problem it shows the first item in the list. Thanks


Appery().val() has stopped updating selected item in dropdown selector lists

Posted: Tue Sep 01, 2015 5:00 am
by Yurii Orishchuk

Hi Daren,

You sad it worked for "default SelectMenu" but not works for "my SelectMenu object" it does not works.

Please specify what is "my SelectMenu object". Is that custom HTML select? Or component from appery.io toolbar?

Regards.


Appery().val() has stopped updating selected item in dropdown selector lists

Posted: Wed Sep 02, 2015 7:25 am
by Darren O'Neill

Hi Yurii,

My SelectMenu object is a component from the appery.io toolbar. I clear out the default values (veni, vini, vici) and then use the mapping facility, from within my created service, to populate the menu object, as below.
Image

Then I try to force the default value using the following code:

code
var defaultchannel = localStorage.getItem('selectedchannel');
var $selectmenuid = Appery("mobileselectmenu_131");
$selectmenuid.val(defaultchannel);
$selectmenuid.selectmenu.trigger("change"); //('refresh', true);
/code

However, I always have the first value in the list as the default value, no matter what value I force 'selectedchannel' to.


Appery().val() has stopped updating selected item in dropdown selector lists

Posted: Wed Sep 02, 2015 9:30 am
by Serhii Kulibaba

Hello Derren,

Please use JS below:

prevar defaultchannel = localStorage.getItem('selectedchannel');
Apperyio("mobileselectmenu_131").val(defaultchannel ).refresh();/pre

Does mobileselectmenu_131 have option with value = defaultchannel ?


Appery().val() has stopped updating selected item in dropdown selector lists

Posted: Wed Sep 02, 2015 5:30 pm
by Darren O'Neill

Hi Sergiy,

I still have the same issue with the above code.

Also, I don't see anywhere that I can set a value for the selectmenu. The only action that I can see, which seems to be relevant, is 'value changed'.


Appery().val() has stopped updating selected item in dropdown selector lists

Posted: Thu Sep 03, 2015 8:19 pm
by Darren O'Neill

Any other ideas to address this issue?


Appery().val() has stopped updating selected item in dropdown selector lists

Posted: Sat Sep 12, 2015 8:53 am
by Alena Prykhodko

Hello Darren,

Have you tried on value change event?