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

Collect and addcolumns if a dropdown value is equal to "No"

Hi,

 

I have created a canvas app that is to be completely offline and using sharepoint as the datasource to patch too and collect from

In this app is a bunch of questions that a user uses a dropdown to select yes or no and at the end of the questions if they have selected no for any items when they have pressed the OnSubmit button i wish for a collection to be made and each row will have

a column ill call "GalImageType" with the name of item that has the answer "No" 

and three other blank columns ill call "GalImageURL", "GalImageDetails" and "GalImage"

I know this code is wrong and its probably something to do with addcolumns however its where my thoughts are currently at do i do something like this but for each dropdown?

 

ClearCollect(
    colPrestartImageInspection,
    If(copybrakes.Selected.Value = "Non Compliant", 
    {GalImageType: "Brakes","GalImageDetails: "","GalImageURL:"",GalImage:"");

 



Could someone help me write this code? as i cant figure it out.

 

Thankyou

 

1 ACCEPTED SOLUTION

Accepted Solutions
TJO
Resolver II
Resolver II

@ShaneITAutomate You could try with something like this:

ClearCollect(
    colPrestartImageInspection,
    If(
        copybrakes.Selected.Value = "Non Compliant", 
        {
            GalImageType: "Brakes",
            GalImageDetails: "",
            GalImageURL:"",
            GalImage:""
        }
    )
)

View solution in original post

1 REPLY 1
TJO
Resolver II
Resolver II

@ShaneITAutomate You could try with something like this:

ClearCollect(
    colPrestartImageInspection,
    If(
        copybrakes.Selected.Value = "Non Compliant", 
        {
            GalImageType: "Brakes",
            GalImageDetails: "",
            GalImageURL:"",
            GalImage:""
        }
    )
)

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (46,157)