cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
marcocim2020
New Member

onStart ClearCollect problem

Hi all,

i am trying to add two ClearCollect to the onStart app event, the first ClearCollect it's ok  but when i add the second i get a formatting error. I tried both ';' or ',' to separate the two ClearCollect.

 

Below the script:

 

ClearCollect(
'Raccolta 1';
{
Name: "Home";
Screen: DatiPersonali
};
{
Name: "Diario";
Screen: Diario
}
)
;
ClearCollect(showMenu; {Value: false})

 

Thanks

Marco

1 ACCEPTED SOLUTION

Accepted Solutions
Pstork1
Dual Super User III
Dual Super User III

This is dependent on your locale settings.  Since you are using ';' as a separator inside statements then the separator between statements should be ';;',  Try the following code.

ClearCollect(
'Raccolta 1';
{
Name: "Home";
Screen: DatiPersonali
};
{
Name: "Diario";
Screen: Diario
}
)
;;
ClearCollect(showMenu; {Value: false})


-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

2 REPLIES 2
Pstork1
Dual Super User III
Dual Super User III

This is dependent on your locale settings.  Since you are using ';' as a separator inside statements then the separator between statements should be ';;',  Try the following code.

ClearCollect(
'Raccolta 1';
{
Name: "Home";
Screen: DatiPersonali
};
{
Name: "Diario";
Screen: Diario
}
)
;;
ClearCollect(showMenu; {Value: false})


-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

Hi @Pstork1,

now it works fine.

 

Thanks

Marco

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

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

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (27,378)