Insert value into dropdown list - InfoPath Dev
in

InfoPath Dev

Insert value into dropdown list

Last post 10-15-2014 07:53 AM by Hilary Stoupa. 7 replies.
Page 1 of 1 (8 items)
Sort Posts: Previous Next
  • 10-02-2014 10:29 PM

    Insert value into dropdown list

    Hi,

    I am using an item event receiver which will automatically generate infoapth forms.I have a problem that a value is needed to be inserted into a dropdown field in that event reciever.Can anyone help me about this problem?

     Many thanks

  • 10-10-2014 10:39 AM In reply to

    Re: Insert value into dropdown list

    Your event receiver generates XML? And you are setting that XML node via your event receiver? Can you maybe provide a little more detail?

    Hilary Stoupa

  • 10-12-2014 09:44 PM In reply to

    Re: Insert value into dropdown list

    Yes.I have published a blank infopath form.When event reciever triggers, it opens the blank infopath form and fill the form with the data retrieved from the uploaded file. The problem for me is that i have to add a vaue to the dropdown list in the form.I have to add a single value to the dropdown.

  • 10-13-2014 07:55 AM In reply to

    Re: Insert value into dropdown list

    If the drop down is hard coded, you'd have to modify the view for the form and resave the template..... I guess one option might be to store the options for the drop down in the form's main data source - then you could add to that.

    Hilary Stoupa

  • 10-13-2014 09:19 PM In reply to

    Re: Insert value into dropdown list

    But the problem is that the auto populated row contains a single value in dropdown.But if the user click add a new row, then the dropdown should show a list and user can select any one.so how should i manage this problem?

  • 10-14-2014 07:28 AM In reply to

    Re: Insert value into dropdown list

    What are the settings on the drop down control? Is it getting its values from a secondary data source?

    Hilary Stoupa

  • 10-14-2014 09:18 PM In reply to

    Re: Insert value into dropdown list

    Yes.but that could be managed.But how I set the selected item of dropdown through code.For example,to set a text box we can use".innertext" property.Similar to this is there any property for set dropdown selected item in infopath?

  • 10-15-2014 07:53 AM In reply to

    Re: Insert value into dropdown list

    The drop down control is bound to a form field, just like the text box. Simply set the XML element to the value you want, just like you are with the XML element bound to the text box. I'm sorry, I really am having a very hard time understanding what your issue is. If you can attach some screenshots or something under the Options tab in a reply I may be able to help a little more.

    Hilary Stoupa

Page 1 of 1 (8 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.