首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >推送通知不推送

推送通知不推送
EN

Stack Overflow用户
提问于 2022-08-25 21:46:23
回答 2查看 50关注 0票数 0

版本22.103我已经为帮助-> https://help.acumatica.com/Help?ScreenId=ShowWiki&pageid=d903e5af-1446-4b74-b492-087e8110cdf0定义了一个内置定义类

当用户更新任何字段时,我试图发送PO信息。我可以在Push通知屏幕上看到我的类,但是当我更新PO时,没有任何东西被推送。不知道为什么?

下面是代码:

代码语言:javascript
复制
using System;
using PX.Data;
using PX.PushNotifications.Sources;
using PX.PushNotifications.UI.DAC;
using PX.Objects.PO;

public class MyPONotification : IInCodeNotificationDefinition
{
    public Tuple<BqlCommand, PXDataValue[]> GetSourceSelect()
    {
        return
         Tuple.Create(
        PXSelectJoin<POOrder,
        InnerJoin<POLine,
          On<POLine.orderNoteID, Equal<POOrder.noteID>>>>.GetCommand(),
        new PXDataValue[0]);

    //return
    //  Tuple.Create(
    //    PXSelectJoin<PushNotificationsHook,
    //    LeftJoin<PushNotificationsSource,
    //      On<PushNotificationsHook.hookId,
    //        Equal<PushNotificationsSource.hookId>>>>
    //    .GetCommand(), new PXDataValue[0]);
    }

    public Type[] GetRestrictedFields()
    {
    return null;
    
    //return new[]
    //{
    //    typeof(PushNotificationsHook.address),
    //    typeof(PushNotificationsHook.type),
    //    typeof(PushNotificationsSource.designID),
    //    typeof(PushNotificationsSource.inCodeClass),
    //    typeof(PushNotificationsSource.lineNbr)
    //};
    }
}

蒂娅!

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2022-08-30 20:06:41

显然,这是22.103年度的一个缺陷。我在22.111中尝试了相同的代码/dll,它没有出现任何问题。

票数 0
EN

Stack Overflow用户

发布于 2022-08-29 17:43:33

我认为问题在内部连接语句中

代码语言:javascript
复制
InnerJoin<POLine,
    On<POLine.orderNoteID, Equal<POOrder.noteID>>

我建议始终使用以下键编写头-详细信息/父-子表的联接:

代码语言:javascript
复制
InnerJoin<POLine,
    On<POLine.orderType, Equal<POOrder.orderType>,
        And<POLine.orderNbr,Equal<POOrder.orderNbr>>>
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/73493989

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档