Skip to Content
0
Former Member
Mar 04, 2007 at 07:24 AM

How to set the Global Variable

24 Views

Hi

I have created RadioButtonGroupByKey UI element in the WD view.

I set values for that UI element in the WdInit() of the view.

ISimpleTypeModifiable reportType=wdThis.wdGetAPI().getContext().getModifiableTypeOf("ReportType");;

IModifiableSimpleValueSet reportValues=reportType.getSVServices().getModifiableSimpleValueSet();

reportValues.put("0","Status");

reportValues.put("1","Order Status");

wdContext.currentContextElement().setReportType("0");

now the problem is when want to changed the value of "Status" to " Customer Status" At runtime

I am not able to access the reportType or reportValues variable from the action method.

so please let me know if i want to access these where i need declare

ISimpleTypeModifiable reportType=wdThis.wdGetAPI().getContext().getModifiableTypeOf("ReportType");;

IModifiableSimpleValueSet reportValues=reportType.getSVServices().getModifiableSimpleValueSet();

reportValues.put("0","Status");

reportValues.put("1","Order Status");

wdContext.currentContextElement().setReportType("0");

regards

mmukesh