Merge Blank Rows of a column in Repeating tables - InfoPath Dev
in

InfoPath Dev

Merge Blank Rows of a column in Repeating tables

Last post 05-06-2009 12:31 AM by Patrick Halstead. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 05-05-2009 01:01 PM

    • sreuben
    • Top 200 Contributor
      Male
    • Joined on 11-03-2008
    • Chennai
    • Posts 56

    Merge Blank Rows of a column in Repeating tables

    Hi, 

    I want to merge a field(column) in a repeating table and publish in the sharepoint site.

    The field is a dropdown list and the dropdownlist has a blank row at first. I want to merge only those entries that does not contain blank row and publish.

    When I publish is the SP site, it displays blank rows in the SP columns entries. But I don't want to have blank rows to be displayed in the Sharepoint site. 

    How to go about doing this functionality. Kindly suggest.

    Thanks,

    Reuben

  • 05-05-2009 04:29 PM In reply to

    Re: Merge Blank Rows of a column in Repeating tables

    Hi Reuben,

    SharePoint doesn't handle repeating sections or tables. There are a few tricks you can do: for example, you can add a rule to your form (OnSubmit) that concatenates the fields into a separate field and promote that instead. Or, you can write code and save the fields to a separate list. Or you could export to Excel and use the Excel to go to SharePoint. Or, you could just map the data to a SQL database and use a SharePoint data view to view it.  

    If you don't have much data, I'd try the concat option for now. If you have a lot of data, I'd try to get it into SQL and use a data view. Good luck!

    Patrick Halstead
    Project Manager at Qdabra
  • 05-05-2009 06:44 PM In reply to

    • sreuben
    • Top 200 Contributor
      Male
    • Joined on 11-03-2008
    • Chennai
    • Posts 56

    Re: Merge Blank Rows of a column in Repeating tables

     

    Thanks for your suggestion.

    May I know how to concatenate the fields in the onsubmit event. Can it be written as a rule in the form instead of code behind??

  • 05-06-2009 12:31 AM In reply to

    Re: Merge Blank Rows of a column in Repeating tables

    Yes, just go to Tools->Submit Options. Go to Advanced and add a rule. In the rule, specify an action to set a fields value using a function and hte function is concat of the other fields. You'll need to use the eval(eval...)) style functional repeater to concat all values. Google search for "InfoPath eval" for more info on that. There should be an example for concatenating To: e-mail addresses. Same idea. Good luck!

    Patrick Halstead
    Project Manager at Qdabra
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.