tslaton
6th April 2006, 22:52
I am new to BaaN programming and I am having a problem with which I could use some assistance. I have created a session which uses a multi-occurance type 2 form to display records from the tfgld106 main table onto it. I need to limit the records on the initial forms display to those of a particular account (tfgld106.leac = '11050') and to be able to work from that subset of records. It seems that everything I try returns all the records from the beginning of the table or no records if I set MIN & MAX values to "11050" with the "store.occ.min()"/"store.occ.max()" functions.
Does anyone have any suggestions as to how to limit the records to only this account number? A snippit of my code in the latest incarnation is shown below.
Thanks in advance for your help.
|****************************** form section ****************
form.1:
init.form:
tfgld106.leac = "11050"
get.rcds()
execute(find.data)
|***************** function section *************************
functions:
function get.rcds()
{
select tfgld106.*, tccom010.nama:cuno.nama
from tfgld106, tccom010
where tfgld106.dim3 refers to tccom010
and tfgld106.leac = "11050"
order by tfgld106.dim3, tfgld106.amth, tfgld106.odoc
selectdo
endselect
}
Does anyone have any suggestions as to how to limit the records to only this account number? A snippit of my code in the latest incarnation is shown below.
Thanks in advance for your help.
|****************************** form section ****************
form.1:
init.form:
tfgld106.leac = "11050"
get.rcds()
execute(find.data)
|***************** function section *************************
functions:
function get.rcds()
{
select tfgld106.*, tccom010.nama:cuno.nama
from tfgld106, tccom010
where tfgld106.dim3 refers to tccom010
and tfgld106.leac = "11050"
order by tfgld106.dim3, tfgld106.amth, tfgld106.odoc
selectdo
endselect
}