Link to home
Start Free TrialLog in
Avatar of varvoura
varvoura

asked on

deleting a value from array

Hi,

I have a field multi valued date field which is an array of dates between two date range.

I want to be able to record any deleted entries from that array. For example,

If I have 22/10/2005, 22/12/ 2005 and 24/12/2006 in that array.
If someone deletes 22/12/2005, I want to be able to record that deletion in another date field somewhere. Basically history of date deletions from that specific array.

Thanks
Varvoura
Avatar of Sjef Bosman
Sjef Bosman
Flag of France image

Isn't that the same as your previous question, with Array1 the before-array and Array2 the after-array?
Avatar of varvoura
varvoura

ASKER

Not quite

Somehow, I am still going to tap on the agent question that you don't like, so forgive me here.

I have the array of completedtests and array of all testdates.

The first comparison array, I will use to delete all the dates in that array in case of changes made as it will be filtering those projected tests from the completed tests.

In this array/field, I would like to show those tests which they were showing in array one and never made it to array2, because the user decided to delete those tests before creating response documents for them. He just didn't want to carry on a test on that date.
For our recording purposes, we would like to have a report at the end to show the tests that we scheduled for that customer and another list to show the list of tests he missed (deleted so they don't carry the test on that date)
From your other question:
> ... those documents which exists in Array1 and don't exist in Array2.

Here you have exactly the same:
> ... showing in array one and never made it to array2
Opps, more likely, were showing in array and got deleted from that array, but have nothing to do with array2 yet.
Can you pick up the lastest date value in a multi value date field.
For example, if in a sorted descendingdate field we have 22/05/2006, 22/3/2005 and 12/01/2005, then how can I pick up 22/05/2006 from that field to use that value somewhere else?
ASKER CERTIFIED SOLUTION
Avatar of Sjef Bosman
Sjef Bosman
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks!

Btw there is a typo in the first line of code:
    Array[@Elements(Array1)]