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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / SetFocus not working
Power Apps
Unanswered

SetFocus not working

(0) ShareShare
ReportReport
Posted on by 62

Hi @WarrenBelz have horizontal menu navigation bar which will have submenus if I click on submenu name called Leader it should focus on the Leader Image I tried by adding hidden label also throw error. For your reference i have attached menu screenshot and code snippet please let me know if anyone knows. 

 

 

ClearCollect(
    colHorizontalMenu,
    {
        Title: "L&LD Vision",
        Screen: Blank(),
        Id: 1,
        ParentTab: ""
    },
    {
        Title: "Leader's Message",
        Screen:Blank(),
        Id: 1,
        ParentTab: "Property"
    },
    {
        Title: "Our Essence",
        Screen: SetFocus(lblLM),// hidden label)
        Id: 1,
        ParentTab: "Property"
    },
    {
        Title: "Learning Promise",
        Screen: Blank(),
        Id: 1,
        ParentTab: "Property"
    },
    {
        Title: "Learning Catalogue",
        Screen: Blank(),
        Id: 2,
        ParentTab: ""
    },
    {
        Title: "L&LD AIOC Offerings",
        Screen: HomeScreen,
        Id: 2,
        ParentTab: "Owner"
    },
    {
        Title: "Monthly Calender",
        Screen: HomeScreen,
        Id: 2,
        ParentTab: "Owner"
    },
        {
        Title: "Know About Offerings",
        Screen: HomeScreen,
        Id: 2,
        ParentTab: "Owner"
    },
    {
        Title: "Stay in the Know",
        Screen: Blank(),
        Id: 3,
        ParentTab: ""
    },
    {
        Title: "Brain Hacks",
        Screen: SecondScreen,
        Id: 3,
        ParentTab: "Sales"
    },
    {
        Title: "Accenture Blogs",
        Screen: SecondScreen,
        Id: 3,
        ParentTab: "Sales"
    },
    {
        Title: "Awards",
        Screen: Blank(),
        Id: 4,
        ParentTab: ""
    },

    {
        Title: "New Joiner Lounge",
        Screen: SecondScreen,
        Id: 5,
        ParentTab: ""
    },
     {
        Title: "Learning Buzz",
        Screen: SecondScreen,
        Id: 6,
        ParentTab: ""
    },  
     {
        Title: "Learning Team",
        Screen: SecondScreen,
        Id: 7,
        ParentTab: ""
    }    

);
Set(varMenuPrimaryColor,Color.White);
//Set(varMenuPrimaryColor,RGBA(225,225,225,100));
Set(varMenuSecondaryColor,Color.White);
//Set(varMenuSecondaryColor,RGBA(161,0,225,100));
Set(
    varTabSelected,
    0
);
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,084 Most Valuable Professional on at

    Hi @Sindhu251 ,

    That is because all elements of a Table need to be the same data type (in this case a Screen control). Blank() is acceptable, but not data of another type.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard