blanchap
29th April 2011, 23:16
Hi,

is it possible to limite the number of lines to be deleted when you mark?

i have a session where users can delete lines but i want to limite them to mark and delete only 1 line at a time.

Is is possible?

I tried counting in the mark.occur choice and do a validation in the mark.delete choice but it doesn't work. They still can mark multiple lines.

PB

MilindV
1st May 2011, 20:21
Hi,

I assume you are working in baan IV.

You can try this, not a good solution but still.

In main.table.io, before.delete control will come for each record to be deleted.
Put a counter in this section, if the counter goes above 1 then call skip.io and give message to the user.

OR

In Ln use following in mark.delete, before.choice section.

boolean
mark.table()
4R
This array indicates which records are marked. The size of this array is set to fattr.occurnr. For example, if records 3 and 8 are marked, then:

mark.table(3) = true
mark.table(8) = true

Scan through this array increase the counter for every true you found. If counter > 1 then abort.

Hope this will work...

sameer.don
2nd May 2011, 09:09
Array mark.table() can be used when working with BaanIV. So need not to write code in main.table.io in either of the case.