FlowFields

st0328
st0328 Member Posts: 97
Hello Everybody,

I have a code like this

Timefrom - VAR - datatype - Time
TimeUntil - VAR - datatype - Time
date&Time - Field - datatype - Datetime

EVALUATE(TimeFrom,'0');
EVALUATE(TimeUntil,'23:59:59.999');
SETRANGE("Date & Time",CREATEDATETIME(CALCDATE('<-1W>',WORKDATE),TimeFrom),CREATEDATETIME(WORKDATE,TimeUntil)

The above code is retunring Integer value, where I am showing the value in Factbox. Instead of writting the above
code I want to follow as per standard like in Sales order (Like showing Customer Ship to Add in the Factbox area).

In a table I want to create a FlowField, Please suggest me that how can I use above lines of code
as a CalcFormula.

Regards

ST.

Comments

  • vaprog
    vaprog Member Posts: 1,163
    As a whole you can't do it.

    You could add a FlowFilter field and use it as a filter in your FlowField definition. Then calculate the filter value into it, just as you did in your code sample, before you calculate the FlowField.