powerapps中的加载问题
我在装表格时遇到了一些麻烦。这里,我将展示两个示例,一个标签和一个按钮 标签.文本代码:powerapps中的加载问题,powerapps,Powerapps,我在装表格时遇到了一些麻烦。这里,我将展示两个示例,一个标签和一个按钮 标签.文本代码: If( DataCardValue13.Text = Concatenate( 'Utilisateursd''Office365_1'.MyProfile().Surname; " "; 'Utilisateursd''Office365_1'.MyProfile().GivenName ); "true"; "false" ) 和Button.OnVisible代码: If(
If(
DataCardValue13.Text = Concatenate(
'Utilisateursd''Office365_1'.MyProfile().Surname;
" ";
'Utilisateursd''Office365_1'.MyProfile().GivenName
);
"true";
"false"
)
和Button.OnVisible代码:
If(
ThisItem.Etat = "Validé" || ThisItem.Etat = "Refusé";
false;
If(
DataCardValue13.Text = Concatenate(
'Utilisateursd''Office365_1'.MyProfile().Surname;
" ";
'Utilisateursd''Office365_1'.MyProfile().GivenName
);
true;
If(
ThisItem.Author.DisplayName = Concatenate(
'Utilisateursd''Office365_1'.MyProfile().Surname;
" ";
'Utilisateursd''Office365_1'.MyProfile().GivenName
);
true;
If(
etat = "Nouveau";
true;
false
)
)
)
)
我的问题是:如果我加载我的表单十次,我有时会对Label.Text产生错误,有时会对Label.Text产生错误。按钮也是一样的。有时是可见的,有时不是。
和DataCardValue13.Text=Concatenate()
也许我做错了,代码应该在屏幕显示之前加载到其他地方
还有,附属问题:我必须使用
DataCardValue13.Text = Concatenate(
'Utilisateursd''Office365_1'.MyProfile().Surname;
" ";
'Utilisateursd''Office365_1'.MyProfile().GivenName
)
测试我连接的用户是否与DataCardValue13.Text相同。此数据卡值13来自
`LookUp('DI - Portefeuilles';Title = DataCardValue11.Selected.Title;Controleur_x0020_de_x0020_gestio.DisplayName)`
这是MEYER Damien和User()。全名是Damien MEYER
非常感谢您的回答:)User()和Office365Users()等连接存在性能问题,因为每次使用该函数时,都会对服务器进行新的调用。这可能会导致延迟或信息丢失 一种解决方案是将User()或Office365Users()值缓存在全局变量中,该变量可以在整个应用程序中使用,而无需进一步调用服务器
这工作得很好!更好更快!谢谢:)