Baanboard.com

Go Back   Baanboard.com

User login

Frontpage Sponsor

Main

Google search


Poll
For ERP LN feature pack upgrade, what method of install are you using?
Installation Wizard into existing VRC
33%
Installation Wizard into new VRC
39%
Manual into existing VRC
6%
Manual into new VRC
22%
Total votes: 49

Baanboard at LinkedIn


Reference Content

 
gbf.get.children()
By patvdv at 26 Feb 2008 - 21:57

gbf.get.children()

Syntax

#include <bic_gbf>

long gbf.get.children( const string object.key(), long object.value, long cur.level)

Description

This function will be called by the GBF whenever it has the need for the children of a specific parent, for example after a parent is opened or after a refresh.

Note that the application may have defined other fetch child functions, instead of this function, see gbf.set.child.function() Still the GBF assumes that the interface (incoming arguments as well as the return values) are exactly the same as defined here.

Using functions like gbf.get.first.child() and gbf.get.next() is dangerous and should be avoided, especially when the force.read is set to TRUE, since that may lead to recursive calls towards this gbf.get.children() function.

Arguments

object.key()

The parent is identified by the object.key and object.value, which have been given to the GBF on a preceding gbf.add.object() call. Note that in this particular call the obj.type argument must have been set to GBF.INTERIOR otherwise this function (gbf.get.children()) would not have been called for this object.

object.value

cur.level

The cur.level indicates the current level of the given object. The level is defined as:

1 for every object which is added to the GBF by a gbf.add.object() call when called from a gbf.get.top.level() function call

1 + cur.level for each child which is added to the GBF with gbf.add.object() when called from this gbf.get.children() call.

Return values

GBF.DO.CONTINUE or 0

Successful completion, GBF will continue working

GBF.DO.ABORT

Abort GBF, which will end the GBF and return with an error, see gbf.start()

GBF.DO.EXIT

Finish GBF, which will end the GBF and return with 0, see gbf.start()

Any return other than these values will be treated as if GBF.DO.ABORT has been returned

Related topics


0
No votes yet


All times are GMT +2. The time now is 22:13.


©2001-2018 - Baanboard.com - Baanforums.com