Hi All, today I have small tip, During development, I have to process a lot of records. During this , I need Busy screen process indicator.
I used following code snippet to create progress busy indicator.
For this I have to do following changes in my Class method (Business logic).
- Convert required method to Static
- Parameter is changed to Container and then required parameter extract from container inside the method.
So my required method become something like
Class myProcess { Public static void RunmyProcess(Container _C) { Str _Value = conpeek(_C,1); } } class RunBtnProcess { /// <summary> /// /// </summary> public void clicked() { container _Xyz=[TableName.FieldValue]; super(); SysOperationSandbox::callStaticMethod(classNum(myProcess), staticMethodStr(myProcess,RunmyProcess),_Xyz, 'Ledger Record in process', 'Operation completed'); } }
Reference : Internet.