cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
raewyne
Helper I
Helper I

Show the same DataCard across multiple tabs

I have had a look at a previous post however it only shows me how to show one card, hoping someone can assist....

 

I have the following tabs under variable, VarFormTab

"Risk Assessment"

"Risk Training"

"Project Participation"

"Document Review"

 

The Datacard is named Requestor_DataCard

 

How do I show this DataCardas as visible across all the above tabs, I can only get it to show on one tab.

 

thanks for your support

Rae

1 ACCEPTED SOLUTION

Accepted Solutions
StalinPonnusamy
Super User
Super User

Hi @raewyne 

 

We can control all Datacard visible based on a variable.

 

  • Create Variable and set the property to true(In this case Variable name "RequestorVisible"), setting up on screen OnVisible property
  • Assign the variable to DataCard Visible Property

 

StalinPonnusamy_0-1628486327832.png

 

Assumption: I believe you are one form and trying to control the data card based on the tab. Set the variable based on tab and assign the variable to visible property of the data card.

View solution in original post

3 REPLIES 3
StalinPonnusamy
Super User
Super User

Hi @raewyne 

 

We can control all Datacard visible based on a variable.

 

  • Create Variable and set the property to true(In this case Variable name "RequestorVisible"), setting up on screen OnVisible property
  • Assign the variable to DataCard Visible Property

 

StalinPonnusamy_0-1628486327832.png

 

Assumption: I believe you are one form and trying to control the data card based on the tab. Set the variable based on tab and assign the variable to visible property of the data card.

Thank you for your quick reply.

When you say create a variable, 

Below is an example of each datacard and the tab it needs to be visible in.

Do I need to create a variable for each tab?

Example

DataCardtab- Risk Assessmenttab-Document Reviewtab-Artefact Request
RequestorXXX
Risk AssessmentX  
Date of RequestXXX
Artefact Request  X

 

StalinPonnusamy
Super User
Super User

Hi @raewyne

 

  • No variable is needed if the control needs visible all the time
  • Use variable only visible changes based on tab
  • We can achieve DataCard or control visible in 2 ways

 

1. Set the visible property based on the tab selected. This is the preferred way.

 

Set(SelectedTab, 1)

 

StalinPonnusamy_3-1628513551093.png

 

SelectedTab=1 // OR If(SelectedTab=1,true,false)

 

 

StalinPonnusamy_4-1628513567393.png

2. When you click on the tab set the variable for a specific control to true or False. And assign the variable to Datacard

StalinPonnusamy_0-1628513222606.png

StalinPonnusamy_2-1628513338678.png

 

 

 

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,846)