Dimension Update
Posted: Tue Dec 13, 2016 4:26 pm
Hello All,
I have following code in MY TI:
E.g.:
#==========================================================================
IF ((DIMIX(pDim,pInsert2))=0 & (DIMIX(pDim,pInsert3))<>0 );
DimensionElementComponentAddDirect(pDim, pInsert3,pInsert2, 1);
AttrPutS(vlev2,pdim,pInsert2,'A_PC');
IF((DIMIX(pDim,pInsert))=0);
DimensionElementComponentAddDirect(pDim, pInsert2,pInsert, 1);
AttrPutS(vLev,pdim,pInsert,'A_PC');
IF((DIMIX(pDim,pElm))=0);
DimensionElementComponentAddDirect(pDim, pInsert,pElm, 1);
AttrPutS(vPCA,pdim,pElm,'A_PC');
ENDIF; ENDIF;
ENDIF;
#============================================================================
Where,
pElm=Lev0
pInsert=Lev1
pInsert2=Lev2
pInsert3=Lev3
Issue: Just N level attributes are getting placed in the dimension. All other level has no attributes after running process.
Can anyone throw lights on the concepts?
Please feel free if you require further information.
Thanks
Dharav
I have following code in MY TI:
E.g.:
#==========================================================================
IF ((DIMIX(pDim,pInsert2))=0 & (DIMIX(pDim,pInsert3))<>0 );
DimensionElementComponentAddDirect(pDim, pInsert3,pInsert2, 1);
AttrPutS(vlev2,pdim,pInsert2,'A_PC');
IF((DIMIX(pDim,pInsert))=0);
DimensionElementComponentAddDirect(pDim, pInsert2,pInsert, 1);
AttrPutS(vLev,pdim,pInsert,'A_PC');
IF((DIMIX(pDim,pElm))=0);
DimensionElementComponentAddDirect(pDim, pInsert,pElm, 1);
AttrPutS(vPCA,pdim,pElm,'A_PC');
ENDIF; ENDIF;
ENDIF;
#============================================================================
Where,
pElm=Lev0
pInsert=Lev1
pInsert2=Lev2
pInsert3=Lev3
Issue: Just N level attributes are getting placed in the dimension. All other level has no attributes after running process.
Can anyone throw lights on the concepts?
Please feel free if you require further information.
Thanks
Dharav