Posted: Fri Apr 15, 2005 6:57 am Post subject: I must have misunderstood something about ESQL references
Apprentice
Joined: 04 Mar 2005 Posts: 26
I'm trying to do some remapping in a compute node (because of some interdependant conditions that makes the mapping tool inconvenient).
After declaring a refrerence to a subtree, I don't seem to be able to refer to subnodes to that reference by name, but only by number. Why is that?
For example, this piece of code:
Code:
DECLARE s_costObject REFERENCE TO s_costObjectListDocument.sipcol:costObjectList.sipcol:costObject[I];
DECLARE t_costObject REFERENCE TO t_CostObjectInformation2.extco:CostObjectInformationDetail.extco:ListOfCostObjects.extco:CostObject[I];
SET t_CostObjectInformation2.{'debug' || CAST(I AS CHARACTER)} = s_costObject;
SET t_CostObjectInformation2.{'debug' || CAST(I AS CHARACTER) || 'B'} = s_costObject.costCenter;
SET t_CostObjectInformation2.{'debug' || CAST(I AS CHARACTER) || 'BA'} = FIELDNAME(s_costObject);
SET t_CostObjectInformation2.{'debug' || CAST(I AS CHARACTER) || 'BB'} = FIELDNAME(s_costObject.[1]);
SET t_CostObjectInformation2.{'debug' || CAST(I AS CHARACTER) || 'BBB'} = FIELDNAME(s_costObject.[1].[1]);
SET t_CostObjectInformation2.{'debug' || CAST(I AS CHARACTER) || 'C'} = s_costObject.costCenter.costCenterID;
DECLARE s_costObject REFERENCE TO s_costObjectListDocument.sipcol:costObjectList.sipcol:costObject[I];
DECLARE t_costObject REFERENCE TO t_CostObjectInformation2.extco:CostObjectInformationDetail.extco:ListOfCostObjects.extco:CostObject[I];
SET t_CostObjectInformation2.{'debug' || CAST(I AS CHARACTER)} = s_costObject;
SET t_CostObjectInformation2.{'debug' || CAST(I AS CHARACTER) || 'B'} = s_costObject.costCenter;
SET t_CostObjectInformation2.{'debug' || CAST(I AS CHARACTER) || 'BQ'} = s_costObject."costCenter";
SET t_CostObjectInformation2.{'debug' || CAST(I AS CHARACTER) || 'BN'} = s_costObject.sipcol:costCenter;
SET t_CostObjectInformation2.{'debug' || CAST(I AS CHARACTER) || 'BQN'} = s_costObject."sipcol:costCenter";
SET t_CostObjectInformation2.{'debug' || CAST(I AS CHARACTER) || 'BA'} = FIELDNAME(s_costObject);
SET t_CostObjectInformation2.{'debug' || CAST(I AS CHARACTER) || 'BB'} = FIELDNAME(s_costObject.[1]);
SET t_CostObjectInformation2.{'debug' || CAST(I AS CHARACTER) || 'BBB'} = FIELDNAME(s_costObject.[1].[1]);
SET t_CostObjectInformation2.{'debug' || CAST(I AS CHARACTER) || 'C'} = s_costObject.costCenter.costCenterID;
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum