Hi
When exiting a form I run a Function called AllocateType.
This function checks which other records the current record (SECT_PAIS) has linked to (PAIS_SECT) and checks their funding status.
These links are stored in tblPAIS_links
The link may link direct to a service action - this is fine because I can check this action for its funding status - this works ok for ther code below.
However some of the links may be to a PAIS action, which in turn may link to one or more service actions - this is what my code doesn't do.
so for example my current record, res-1000, may link to
res-1001 and res-1002
res-1001 is a service action so that is ok
res-1002 is a PAIS action that in turn links to res-1003 and res-1004
therefore within Allocate Type I need to check for
res-1001, res-1003 and res-1004
any help much appreciated
When exiting a form I run a Function called AllocateType.
This function checks which other records the current record (SECT_PAIS) has linked to (PAIS_SECT) and checks their funding status.
These links are stored in tblPAIS_links
The link may link direct to a service action - this is fine because I can check this action for its funding status - this works ok for ther code below.
However some of the links may be to a PAIS action, which in turn may link to one or more service actions - this is what my code doesn't do.
so for example my current record, res-1000, may link to
res-1001 and res-1002
res-1001 is a service action so that is ok
res-1002 is a PAIS action that in turn links to res-1003 and res-1004
therefore within Allocate Type I need to check for
res-1001, res-1003 and res-1004
any help much appreciated