Advertisement

Power Apps -- Login Page 连接到 CDS 数据库 并进行身份验证

阅读量:

1、首先,需要通过拖拽组件的方式,完成一个Login Page前端页面的构建。

复制代码
 If(

    
     LookUp(
    
     Users,
    
     Email = 邮箱框名称.Text
    
     ).Password = 密码框名称.Text,
    
     Navigate(A),
    
     Notify("Wrong account or wrong password!")
    
 )
    
    
    
    

2、我们选取Login按钮,并在Onselect选项中插入点击事件。

··其中Users是CDS数据库中的一个表,用于保存用户的邮箱地址及其对应的密码信息。

··当用户输入的密码与数据库中存储的密码一致时,Navigate(SpringBoard)语句将被触发,其执行结果为跳转至“A”页面。

![](https://ad.itadn.com/c/weblog/blog-img/images/2025-05-31/F1JOT9MkQACVqLi4Bxdn8vpueg0Z.png

全部评论 (0)

还没有任何评论哟~