StringEdit

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.

Are you just playing around or is this something you want to implement? If it is a new parameter you need to include the field in the table as well.