This is a migrated thread and some comments may be shown as answers.

Picklist state is not saved

5 Answers 90 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
algot
Top achievements
Rank 1
algot asked on 20 Mar 2012, 02:20 PM
I use following step to select value from combo-box, but after saving the form the combo-box has empty value.
http://screencast.com/t/0M396CyN
Select_Country is defined as
http://screencast.com/t/dXvX1f8wg3v

5 Answers, 1 is accepted

Sort by
0
algot
Top achievements
Rank 1
answered on 20 Mar 2012, 05:33 PM
I found out that if I defined combo-box as
tagname=select,name=sitecore_country
it works fine.
If I define combobox as
tagname=select,id=sitecore_country
value from combo-box is selected but it is not saved on form saving.
0
Anthony
Telerik team
answered on 20 Mar 2012, 11:07 PM
Hello Alexander,

I'm not able to reproduce the behavior in my testing. Please provide more information, specifically a means to reproduce the issue (either in your app or a on public site), so we can continue troubleshooting.

Greetings,
Anthony
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
algot
Top achievements
Rank 1
answered on 21 Mar 2012, 09:19 AM
I couldn't give you link to this site. So I'll try to describe it more detailed.

I have following control
<SELECT style="IME-MODE: auto" id=sitecore_country class="ms-crm-SelectBox " tabIndex=1240 name=sitecore_country attrPriv="7" req="0" defaultSelected="null"><OPTION title="" selected value=""></OPTION><OPTION title=Afghanistan value=89>Afghanistan</OPTION><OPTION title=Albania value=90>Albania</OPTION>....<OPTION title=Zimbabwe value=168>Zimbabwe</OPTION></SELECT>

If I define it as
tagname=select,name=sitecore_country
value is selected and is saved fine.
If it is defined as
tagname=select,id=sitecore_country
then value is set but is not saved after form save.
0
Anthony
Telerik team
answered on 21 Mar 2012, 03:56 PM
Hello Alexander,

I still cannot reproduce the issue after adapting your code to my local testing. I can't explain why identifying by id isn't working as expected without seeing the issue first-hand.

Is it an issue to identify the <select> element by name so the test behaves correctly?

Greetings,
Anthony
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
algot
Top achievements
Rank 1
answered on 21 Mar 2012, 03:59 PM
No, it's not an issue for me. Later to find workaround I had to run recorder to determine how Telerik define this element.
Tags
General Discussions
Asked by
algot
Top achievements
Rank 1
Answers by
algot
Top achievements
Rank 1
Anthony
Telerik team
Share this question
or