Andrew Davidsburg
Posts: 0
Joined: Sun Aug 03, 2014 5:29 pm

Challenges with Select component - values change back to 1st value in list

Thanks a lot Bruce,

Got a chance to jump into this over the weekend and still can't figure out what the hell is triggering it, but I added a little snippet to swich it back after the service is successfull. Not perfect but it works. Thanks for the help, good luck with your app!

-Andrew

Bruce Stuart
Posts: 0
Joined: Fri Oct 24, 2014 4:42 am

Challenges with Select component - values change back to 1st value in list

Andrew ..... thanks for the update.... best of luck to you as well....

We did not yet hear back from Mayna or anyone else from Appery on this topic. Can you folks tell us what your perspective on this issue is?

Do you need more information? Can you reproduce the issue we are having? Is this slated to be fixed? and if so - when?

do Andrew or I need to repost this issue in order to get these questions answered?

Thanks much!

Bruce

Andrew Davidsburg
Posts: 0
Joined: Sun Aug 03, 2014 5:29 pm

Challenges with Select component - values change back to 1st value in list

Just wanted to check in again and see if there was any info from Appery on this? As Bruce said above, happy to provide more info if you need.

Bruce Stuart
Posts: 0
Joined: Fri Oct 24, 2014 4:42 am

Challenges with Select component - values change back to 1st value in list

Andrew, reposted this as it's similar to another issue I'm having. Thanks for the reminder & persitense! Bruce

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Challenges with Select component - values change back to 1st value in list

Hello,

Unfortunatly could not to reproduce this problem in my app.

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

Regards.

Andrew Davidsburg
Posts: 0
Joined: Sun Aug 03, 2014 5:29 pm

Challenges with Select component - values change back to 1st value in list

Hi Bruce,

I don't know if this applies to you, but I figured out what the issue was and why my menus were resetting. In the Appery.js file there is a refresh setting for dropdowns where if more then one option has the select tag set, it resets the dropdown to the key 0. I had a javascript snippet that was setting the dropdown by adding the select tag, and by default Appery adds selected tag to the first item in the dropdown. If you clear the selected tags from the dropdown before you set yours( $('#DD_ID option:selected').removeAttr('selected');), it seems to bypass this problem.

Not sure if this is the same issues, but maybe this helps?

-Andrew

Bruce Stuart
Posts: 0
Joined: Fri Oct 24, 2014 4:42 am

Challenges with Select component - values change back to 1st value in list

Andrew... That's awesome find!!! And likely that's my issue ... Where did you place your code ? In your data service? Page show ??

Thanks much !!!

Bruce

Andrew Davidsburg
Posts: 0
Joined: Sun Aug 03, 2014 5:29 pm

Challenges with Select component - values change back to 1st value in list

Thanks! I placed it literally the line before where I set the dropdown, but I think it can be put anywhere after the dropdown is populated. So glad I could help!

-Andrew

Bruce Stuart
Posts: 0
Joined: Fri Oct 24, 2014 4:42 am

Challenges with Select component - values change back to 1st value in list

Andrew ... Working through another challenge right now ... Let you know before end of day :-) thanks !!

Return to “Issues”