Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/assembly/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sharepoint PowerApp库数据未更新_Sharepoint_Gallery_Powerapps - Fatal编程技术网

Sharepoint PowerApp库数据未更新

Sharepoint PowerApp库数据未更新,sharepoint,gallery,powerapps,Sharepoint,Gallery,Powerapps,我从我的同事那里继承了一个PowerApp,其中包括一个使用sharepoint列表作为数据源的库。图库的目的是允许管理员用户在其部门(IT、财务等)中搜索所有提交的表单,但并非所有数据都显示在图库中。收集的数据日期应为2018年12月至当前日期(2019年12月),但数据停止于2019年10月 我认为这是由于屏幕上添加了单选按钮。单选按钮应使管理员能够根据表单状态过滤库数据。见以下公式: SortByColumns( If( Radio1_1.SelectedText.Valu

我从我的同事那里继承了一个PowerApp,其中包括一个使用sharepoint列表作为数据源的库。图库的目的是允许管理员用户在其部门(IT、财务等)中搜索所有提交的表单,但并非所有数据都显示在图库中。收集的数据日期应为2018年12月至当前日期(2019年12月),但数据停止于2019年10月

我认为这是由于屏幕上添加了单选按钮。单选按钮应使管理员能够根据表单状态过滤库数据。见以下公式:

SortByColumns(
    If(
    Radio1_1.SelectedText.Value = "All",
    'IT Forms',
    Radio1_1.SelectedText.Value = "Approved",
    Search(
        'IT Forms',
        "Approved",
        "Status"
    ),
    Radio1_1.SelectedText.Value = "Rejected",
    Search(
        'IT Forms',
        "Rejected",
        "Status"
    ),
    Radio1_1.SelectedText.Value = "Form Number",
    Filter(
        'IT Forms',
        ID = IDInputText_1.Text
    ),
    Radio1_1.SelectedText.Value = "Awaiting Approval",
    Search(
        'IT Forms',
        "Awaiting",
        "Status"
    ),
    Radio1_1.SelectedText.Value = "Form Type",
    Filter(
        'IT Forms',
        Title = ITFormType.Selected.Result
    )
), "Created", Descending)
但如上所述,并不是所有的数据都在收集中。虽然我发现,当我绕过单选按钮并使用以下公式时,会收集最新数据:

SortByColumns(
    If(
    Radio1_1.SelectedText.Value = "All",
    'IT Forms',
    Radio1_1.SelectedText.Value = "Approved",
    Search(
        'IT Forms',
        "Approved",
        "Status"
    ),
    Radio1_1.SelectedText.Value = "Rejected",
    Search(
        'IT Forms',
        "Rejected",
        "Status"
    ),
    Radio1_1.SelectedText.Value = "Form Number",
    Filter(
        'IT Forms',
        ID = IDInputText_1.Text
    ),
    Radio1_1.SelectedText.Value = "Awaiting Approval",
    Search(
        'IT Forms',
        "Awaiting",
        "Status"
    ),
    Radio1_1.SelectedText.Value = "Form Type",
    Filter(
        'IT Forms',
        Title = ITFormType.Selected.Result
    )
), "Created", Descending)
SortByColumns('IT Forms',“Created”,Descending)

我现在可以把它作为一个解决办法,但我需要尽快将单选按钮添加回屏幕上。我已经将设置中的数据行限制从500增加到了2000,但这并没有带来什么不同,所以现在我已经没有办法解决这个问题了

任何帮助或建议都将不胜感激


如何填充单选按钮选项?手写可能会产生一些问题。首先,我建议将其写入单选按钮的项目属性中
Distinct('IT Forms',Status)

它所做的是获取所有不同的“状态”值,并将它们作为选项添加到您的收音机中。 您可以:
SortByColumns(过滤器('IT Forms',Status=Radio1\u 1.Selected.Result))

尝试查看是否使用此选项显示所有数据

据我所知,您必须选择“表单编号”按ID过滤结果,选择“表单类型”按标题搜索结果。但是为什么不给用户同时使用所有类型的选项呢?您可以这样做:

SortByColumns(
If(IsBlank(TitleInput) && IsBlank(IDInputText_1) && IsBlank(Radio1_1.Selected),
    'IT Forms',
    IsBlank(TitleInput) && IsBlank(IDInputText_1) && !IsBlank(Radio1_1.Selected),
    Filter('IT Forms', Status = Radio1_1.Selected.Result),
    IsBlank(TitleInput) && !IsBlank(IDInputText_1) && IsBlank(Radio1_1.Selected),
    Filter('IT Forms', ID = IDInputText_1.Text),
    !IsBlank(TitleInput) && IsBlank(IDInputText_1) && IsBlank(Radio1_1.Selected),
    Search('IT Forms', TitleInput.Text, "Title"),
    !IsBlank(TitleInput) && !IsBlank(IDInputText_1) && IsBlank(Radio1_1.Selected),
    Filter(Search('IT Forms', TitleInput.Text, "Title"), ID = IDInputText_1.Text),
    !IsBlank(TitleInput) && IsBlank(IDInputText_1) && !IsBlank(Radio1_1.Selected),
    Filter(Search('IT Forms', TitleInput.Text, "Title"), Status = Radio1_1.Selected.Result),
    IsBlank(TitleInput) && !IsBlank(IDInputText_1) && !IsBlank(Radio1_1.Selected),
    Filter('IT Forms', ID = IDInputText_1.Text && Status = Radio1_1.Selected.Result),
    !IsBlank(TitleInput) && !IsBlank(IDInputText_1) && !IsBlank(Radio1_1.Selected),
    Filter(Search('IT Forms', TitleInput.Text, "Title"), Status = Radio1_1.Selected.Result && ID = IDInputText_1.Text)
    ), "Created", Descending)

试试看,告诉我它是否适合你,或者你是否还有其他问题。最诚挚的问候

你好,布鲁诺,谢谢你的回复。我尝试了你的建议,不幸的是PowerApps不喜欢Distinct(“IT表单”;状态)。我认为我可能不得不考虑存档旧的SharePoint条目,PowerApps无法处理“IT表单”中的项目数量。再次感谢您的帮助。这是因为“;”。我想我用的是葡萄牙语的Powerapps,这是我的母语,我需要使用“;”where u use“,”。尝试使用Distinct('它的形式',状态)。我会编辑帖子的。谢谢,我将尝试“,”出来。新的更新:改变了所有的代码,所以我们可以搜索多个参数。在这方面工作了一段时间,所以请让我知道,如果这解决了您的问题,它需要一些工作;)你好,布鲁诺,这很奇怪,使用Distinct(“it表单”,状态)没有返回任何结果,因此任何新建议都将不胜感激:)