Skip to Content
0
Former Member
May 29, 2007 at 04:12 PM

Assigning & Reading Context variable

13 Views

All,

Im setting the context variable "POS_NUM" in Component controller:

wdThis.wdGetFormController().wdGetContext().getCurrentElement().setAttributeValue( "c_pos_num", pos_num);


* In View controller im reading the component controller value & passing into BAPI..
Here im getting error :Can not be converted".

  String val = wdThis.toString( wdContext.getCurrentElement().getAttributeValue( "c_pos_num") );

bapiInput.setI_Pos_Num( val );

can anyone tell me how to read the value of context variable..

BM