cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cnorris135
Helper IV
Helper IV

Collection No Data

Been struggling with this one allllllll day.....  put together this collection but it will NOT show any data when i go to look at the collection.  So i figured i must have some issues with my code someplace.    The fields:

 

Contractor Company Name (dropdown) - "ContractorCompanyName_DataCardValue"

Contractor Type (Dropdown) - "ContractorType_DataCardValue"

Orientation Request Date: (calendar) - "OrientationRequestDate_DataCardValue"

Estimated Contractor Count (text) - "EstimatedContractorsCount_DataCardValue"

First Name (text) - "DataCardValue2"

Last Name (text) - "DataCardValue3"

Class Category (checkbox in a GALLERY) - "ClassChoices"

 

I added on the OnCheck for the "Class Category" field,, this code:

 

Collect(

    SelectedClasses,

    {

        ClassChoices: ThisItem.'Classes v2',

        ContractorCompanyName: ContractorCompanyName_DataCardValue.SelectedText.Value,

        CompanyType: ContractorType_DataCardValue.Selected.Value,

        RequestDate: OrientationRequestDate_DataCardValue.SelectedDate,

        EstimatedContractorCount: EstimatedContractorsCount_DataCardValue.Text,

        FirstName: DataCardValue2.Text,

        LastName: DataCardValue3.Text

    }

)

 

i get absolutely no data back in the collection when i go to File>Collection...... I can not figure out why.  Can someone help me here?  i think i am very close.

2 ACCEPTED SOLUTIONS

Accepted Solutions
v-jefferni
Community Support
Community Support

Hi @cnorris135 ,

 

Could not find errors in your formula except:

 

Collect(

    SelectedClasses,

    {

        ClassChoices: ThisItem.'Classes v2',

        ContractorCompanyName: ContractorCompanyName_DataCardValue.SelectedText.Value,

        CompanyType: ContractorType_DataCardValue.Selected.Value,

        RequestDate: OrientationRequestDate_DataCardValue.SelectedDate,

        EstimatedContractorCount: EstimatedContractorsCount_DataCardValue.Text,

        FirstName: DataCardValue2.Text,

        LastName: DataCardValue3.Text

    }

)

 

Please remove the red "Text" or modify to ContractorCompanyName_DataCardValue.Selected.Value and try again.

 

Hope this helps.

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

Hi @cnorris135 ,

 

Actually I made a test with your scenario, check box in a gallery and retrieve data in From's Data Cards Values with the row data of check box into a collection, which worked very well.

 

Could you please share the gallery screen for me to look into? No matter if no data in it.

 

Best regards,

Community Support Team _ Jeffer Ni

 

View solution in original post

3 REPLIES 3
v-jefferni
Community Support
Community Support

Hi @cnorris135 ,

 

Could not find errors in your formula except:

 

Collect(

    SelectedClasses,

    {

        ClassChoices: ThisItem.'Classes v2',

        ContractorCompanyName: ContractorCompanyName_DataCardValue.SelectedText.Value,

        CompanyType: ContractorType_DataCardValue.Selected.Value,

        RequestDate: OrientationRequestDate_DataCardValue.SelectedDate,

        EstimatedContractorCount: EstimatedContractorsCount_DataCardValue.Text,

        FirstName: DataCardValue2.Text,

        LastName: DataCardValue3.Text

    }

)

 

Please remove the red "Text" or modify to ContractorCompanyName_DataCardValue.Selected.Value and try again.

 

Hope this helps.

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

not sure why, but i just cant get the form to produce data in the collection even though i have filled out the form.  I didnt think i need to submit it do i?  I mean i did a preview with data in the fields and the checkbox checked.  Nothing... 

I dont get it.  Is there something im missing?

Hi @cnorris135 ,

 

Actually I made a test with your scenario, check box in a gallery and retrieve data in From's Data Cards Values with the row data of check box into a collection, which worked very well.

 

Could you please share the gallery screen for me to look into? No matter if no data in it.

 

Best regards,

Community Support Team _ Jeffer Ni

 

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,191)