File Name
Syntax
CheckNodeForOrgMC(VAL wHdl: WINDOW, VAL table: STRING, VAL mode: STRING, VAL parent: STRING, REF child: STRING, VAL ID: String): INTEGER
Parameters
wHdl - the window handle of the calling event
table - the table the Work With dialog box is based on
mode - the mode for the current node - cut or copy
parent - the organization of the current selected node under which the paste for the cut or copy will take place
child - the organization of the node being cut or copied
ID - the identifier for the record being cut or copied
Returns
None
Side Effects
None
Description
This function checks if the node being cut or copied has an organization that is consistent with the node it is being pasted under. If it is consistent, it will be pasted. If not, it will prompt the user to clear the organization and continue to paste the node. If the node is being cut and pasting continues, the children nodes' organizations are set to the parent variable.
Dialog Forms Called
tree.dfc[findnode]
File Name
Syntax
FUNCTION OkToPaste(VAL wHdl: WINDOW, VAL table: STRING, VAL ID: STRING, VAL child_org: STRING, VAL parent_org: STRING): BOOLEAN
Parameters
wHdl - window handle of the calling dialog box
table - object for which this is in reference to (location, inventory category, change category, connection)
ID - primary key ID for table (i.e. location_id, h_object_id, category, connection_id)
child_org - organization ID that is currently assigned to the object
parent_org - organization ID of node under which the object is being pasted
Returns
TRUE or FALSE
Side Effects
None
Description
This function checks with the individual products whether to paste the node under another object, given the new object's organization ID. Might violate rules for products in a multi-customer environment.
Dialog Forms Called
None