hljs.configure({cssSelector: "code"}); hljs.highlightAll();

Thursday, August 24, 2023

Financial dimension lookup

 

Financial dimension lookup Code X++.

public static void lookupControl(FormControl _formControl, str _value)
{
	FormStringControl   control;
	Args                args;
	FormRun             formRun;
	DimensionAttribute  dimAttribute;
	dimAttribute    =   DimensionAttribute::findByName(_value);

	args            =   new Args();
	args.record(dimAttribute);
	args.caller(_formControl);
	args.name(formStr(DimensionLookup));

	formRun         =   classFactory.formRunClass(args);
	formRun.init();
	control         =   _formControl as FormStringControl;
	control.performFormLookup(formRun);
}

No comments:

Post a Comment