Table that repeats both horizontal and vertically. - InfoPath Dev
in

InfoPath Dev

Table that repeats both horizontal and vertically.

Last post 07-28-2011 06:27 AM by Yesurbius. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 07-20-2011 08:45 AM

    Table that repeats both horizontal and vertically.

    Quite simply - I want to record a few fields for each record (Name, Position, Room #) .. and then for each person I want to be able to allow the user to add a date and check a checkbox as to whether the person was present on this day.

    Formatting aside - I can't even figure out how you'd represent this data relationship in the data source.

    So essentially like this:

    Name Position Room # 1-Jan-2011 2-Jan-2011
    <>

    (I have a table above, it appears in the preview but not the final message) Essentially the table is:

    Name           Position     Room  1-Jan-2011       2-Jan-2011
    John Doe      Manager    305            X     
    John Adams  Clerk         210            X                      X

    If the user were to add a new person, the existing dates would appear for the new person.  If the user added a new date, it would add a new date to all people.  If they deleted a date, it would delete a date for all people.    Not 100% necessary, but if the dates section could scroll horizontally that'd also be bonus.

     

    I know this design is horrible.  Maybe infopath is not the best tool for this.  Access can't do repeating controls.   Excel is a nightmare to manage due to lack of data relationships.   My deliverable is to print a list like the above, indicating the dates each person will be present.    I played around with having the user enter date ranges instead and then use expression boxes to display the checked / unchecked - but it seemed way harder than simply letting the user add the dates in arbitrarily.

  • 07-24-2011 01:50 PM In reply to

    Re: Table that repeats both horizontal and vertically.

    Sounds like an Excel solution. While you say it's a nightmare to manage due to the data relationships, doing it in InfoPath (which is theoretically possible) would be a nightmare to manage the layout...  

    Patrick Halstead
    Project Manager at Qdabra
  • 07-28-2011 06:27 AM In reply to

    Re: Table that repeats both horizontal and vertically.

    Yes - for now its in Excel.   Think I'll move it into Access, and have Access, through automation, generate a spreadsheet report.  Should make it simper.

     Layout aside .. I am still not even sure how that relationship would be described in XML schema... probably it can't and you'd need to have an independent repeating group as a field within the parent group.

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