Page 1 of 1

Dimension Update

Posted: Tue Dec 13, 2016 4:26 pm
by dharav
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

Re: Dimension Update

Posted: Tue Dec 13, 2016 5:07 pm
by dharav
Guys,

It is resolved. That was silly. I did not copy the code properly from notepad. The dimensionelementinsert function should be there and we good to go.

Thnaks for your time.

Thank You