Previous Content

All topics specific to modeling questions in Enterprise Dynamics
Post Reply
Liedacil
Posts: 1
Joined: Friday 19 July, 2013 - 13:30

Previous Content

Post by Liedacil »

Dear Incontrol,

I'm trying to open the input of a source again while refering to a previous content.

So:

if(
Content([Queue]) > PREVIOUSCONTENT([Queue]), OpenInput(in(1,[Source]))
)

My question is: what is the code of 4DScript to refer to a previous amount of content (PREVIOUSCONTENT)?

I'm looking forward to your help

Liedacil
menno
Posts: 45
Joined: Tuesday 29 March, 2011 - 16:01

Re: Previous Content

Post by menno »

Hello Liedacil,

What do you exactly mean by PreviousContent with respect to (current) content. Do you mean previous as in a time difference (current content vs. content 5 minutes ago) or a state difference (current content vs. content before items was added/removed) of the Queue?

If it is the last option, then I would try opening the source on the entry or exit trigger of the queue. Every time a product enters/exits the queue, the source will be opened again.

I hope this answers your question, if not, please add more details of your model and the idea behind it.

Kind regards,
Menno
Post Reply