I have written this code to fetch the value from a StringEdit field which is within a Tab page within a form
static void Job10(Args _args)
{
Args args = new Args(“LedgerParameters”);//LedgerParameters is a form
FormRun formRun = ClassFactory.formRunClass(args);
FormStringControl formStringControl;
;
formStringControl=formRun.design().controlName(“Acc”); //Acc is the name of the StringEdit field
//Debugger error in the above line (Error: Object not initialized)
info(formStringControl.valueStr());
}
Its giving debugger error… Why is so… How can i take the value from that StringField.