jatin_sanghi
1st July 2009, 14:10
Hi All,
Is it possible to have the up/down scroll action disabled on a type three form?
I want to have my type 3 form to have a maximum capacity of 5 records (occurances) and not more than that. How can this be achieved in Baan4c4?
Regards,
Jatin
george7a
1st July 2009, 14:14
Hi,
If you want to have only 5 records (occurrences) and not more, then you will have to disable the resize button. Here is how:
http://www.baanboard.com/baanboard/showthread.php?t=28364&highlight=resize
I hope it helps,
- George
loveneesh
1st July 2009, 14:20
Hi Jatin
Yes, you can fixed occurrence . For this you need to goto form 2 of maintain form (ttadv3100s000) and change value of occureence from 1 to 5 .
loveneesh
1st July 2009, 14:30
Extension to my previous reply :
Then disable first,next,previous and last view through standard option
jatin_sanghi
1st July 2009, 15:00
Hi George / Lovneesh,
Thanks for your inputs.
I have used a slightly different way to solve this issue.
I restricted the number of occurances on the form to 5 and then wrote this small piece of code in main script.
choice.add.set:
before.choice:
select count(tccom971.seqn):rc.count
from tccom971
where tccom971._index1 = {:tccom971.cuno, :tccom971.cntr}
selectdo
selectempty
rc.count = 0
endselect
if rc.count = 5 then
choice.again()
endif
Now, this would not allow me to add anything more than 5 records per view.
Thanks all for help.
Jatin
Hitesh Shah
2nd July 2009, 18:11
These events to need to be addressed. Also have u checked if user is inserting more than 5 records at a stretch without saving records .
jatin_sanghi
3rd July 2009, 13:44
Yaa, this will work in that case as well..b'cus as soon as the user goes beyond 5 records, all five records are first saved and then add.set is called to input the sixth record.
regards,
Jatin