0

我正在尝试创建一个 ER,它将冒号添加到 JDE (OMW) 中的时间变量中。我尝试使用 substring 函数制作 3 个子字符串,然后在每个子字符串之间添加一个冒号,但这似乎由于某种原因不起作用。

Here is what I tried to do as a test to see if the substring would work.

substr([PC Time - Last Updated (F0911) (UPMT)],0,2 )

This should cut my time from an 8 digit number to a 2 digit number, but it doesn't seem to be doing anything. Any ideas? Currently this line of code is in the DO section of my event rules.

4

1 回答 1

0

您可以使用 substr 函数实现您想要的。但是你必须给这个函数你的时间。从您的代码中,我可以看到您使用了“PC”变量。

substr([PC Time - Last Updated (F0911) (UPMT)],0,2 )

这与业务视图中的先前值有关。也许您想使用“BC”?因为在 DO SECTION 事件规则中,“PC”变量的第一条记录将始终为空。只需确保您正在向 substr 函数发送一个值。

于 2017-02-27T18:10:43.897 回答