web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to take optionset ...
Power Apps
Unanswered

How to take optionset value in Blank Horizontal Gallery using Data verse connector in canvas apps

(0) ShareShare
ReportReport
Posted on by 4

I am trying to take Optionset value as the Items in the blank horizontal gallery using below code.

Choices('Work items (Accounts)')

 

The problem I'm facing here is, Values are not displaying properly as shown below

B_David37_0-1698861634993.png

 

 

"This data type is unsupported for evaluation" showing as Value 

Can some one help me on this please? How to take optionset value in gallery?

 

Thanks in advance!

Categories:
I have the same question (0)
  • B_David37 Profile Picture
    4 on at

    Hi @Mudassar_SZ365 ,

    Thanks for the reply!

     

    I used the same code as you said. With that, we can show values in labels.

     I used below code On Strat of the App:

    ClearCollect(
    WICOL,
    Filter(
    Choices('Work items (Accounts)'.New),
    Text(Value) <> "Inprogress"
    )
    );
    Clear(COLWISeq);
    ForAll(
    Sequence(CountRows(WICOL)),
    Collect(
    COLWISeq,
    {
    Value: Last(
    FirstN(
    WICOL,
    ThisRecord.Value
    )
    ).Value,
    RowNo: Value
    }
    )
    );

     

    B_David37_0-1698909180212.png

     

    For left and Right Navigation, When I used the same code value in the patch function to update the record. It is not able fetch the value of current item value.

    B_David37_1-1698909775180.png

    I used below code for that;

    Patch(Accounts,ThisItem,{'Work items':{Value:LookUp(COLWISeq,RowNo = Value(RowNo_LBL.Text)+1).Value}})

     

    Can you please help me to sort this issue?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 483

#2
WarrenBelz Profile Picture

WarrenBelz 399 Most Valuable Professional

#3
11manish Profile Picture

11manish 327

Last 30 days Overall leaderboard