Repeating Table's checkboxes disabled/grayed out with Active Directory group members - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Repeating Table's checkboxes disabled/grayed out with Active Directory group members

Last post 05-21-2018 09:40 AM by TOE_CHEESE. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 04-11-2018 12:10 PM

    Repeating Table's checkboxes disabled/grayed out with Active Directory group members

    I have created several IP2010 forms where I've used data connections to populate the repeating table rows. I have also been successful in adding check box fields to the repeating table rows. My problem is this. I created a new form where I have used code to retrieve an Active Directory group membership and populate the repeating table rows with each member. I added a check box field to the repeating table group. However when I preview the form, the check box on each row is disabled/grayed out. I noticed if I insert a blank row, the check box is active. Has anyone seen this before and/or have a remedy to this problem?
  • 04-11-2018 12:17 PM In reply to

    Re: Repeating Table's checkboxes disabled/grayed out with Active Directory group members

    How is your code creating the rows? Is the new field included in that code? Or do you have default rows added that you are populating, in which case under Default Data, the new field may not be selected to be included by default.
    Hilary Stoupa

  • 04-11-2018 12:59 PM In reply to

    Re: Repeating Table's checkboxes disabled/grayed out with Active Directory group members

     The new checkbox field is not included in the code.  I manually added the checkbox field to the repeating group.  I checked the Default Data Values and confirmed the checkbox field is included.

    I will note the process I am using to get an Active Directory group membership automatically populates all the rows in the repeating table unlike the process I learned from you to populate a repeating table with members from a SharePoint permissions group.  With that process I had to filter the data from a GetUserCollectionFromGroup data connection to populate more than the first row. 

  • 04-11-2018 02:11 PM In reply to

    Re: Repeating Table's checkboxes disabled/grayed out with Active Directory group members

    So - in your code, you create a new row in your repeating table? With all the fields? What's your code look like?
    Hilary Stoupa

  • 05-17-2018 03:30 PM In reply to

    Re: Repeating Table's checkboxes disabled/grayed out with Active Directory group members

     Hi Hilary,

    I can get a list of AD group members into a repeating table/group (List-1B).  My problem was that the checkbox I also placed in that repeating group was grayed out.  So I was able to resolve that problem by creating a second repeating table/group (List-2B).  I am using List-1B as my data source and I've added 25 default rows to my table.

    If I set a default value on field-2b1 to "../../../my:List-1A/my:List-1B[count(current()/../preceding-sibling::my:List-2B) + 1]/my:field1b1" and I set the default value on field-2b2 to "../../../my:List-1A/my:List-1B/my:field-1b2[../my:field-1b1 = current()/../my:field-2b1]".  My repeating table, List-2B will populate correctly.  However, when I clear my fields and select another value from my DDL, the only rows that populate with data are the rows that remained empty after running my first query to AD.   

    I tried to use your filtering method to add the Set ID and Set Value rules on the Set field to assign values to fields field-2b1 and field-2b2 with the Set = 1 condition.  However, I couldn't get my rows to populate.

     

      


    Filed under:
  • 05-21-2018 09:40 AM In reply to

    Re: Repeating Table's checkboxes disabled/grayed out with Active Directory group members

     Hi Hilary,

     I got this worked out.  I just left field-2b1 and field-2b2 with the defaults as described in my earlier post.  My DDL rule clears all my fields.  On my Load button which runs my code I set a rule to add a value of "1" to the "set" field and after the code runs all of field-2b1 and field-2b2 is populated with the AD AccountName and AD DisplayName respectively.  I then added a rule on the group List-2B to hide all rows where field-2b1 is blank and the set field equals 1.  As always thanks for your help in pulling me in off the ledge.

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