Form A does a lookup on form B but Form also passes a parameter to 
Form A as a filter for the lookup.

when I compile form B error message "The wrong number of arguments 
has been specified for the function."

Please help 

See code below


Form A Code 

 super();

    args = new Args();

    // Pass values to pass to lookupform

     args.parm(TankLookupName.valueStr()); //a display method

    //Run lookupform

    args.name(formstr(Form B)));
    args.caller(this);

    formRun = classFactory.formRunClass(args);
    formRun.init();
    formRun.run();
    formRun.wait();

    obj = formRun;

  }


Form B Init method

public void init()
{
    FormRun                   callerFormRun;
    TankTableLookup           tanklookup;  
    FormStringControl         callingLookupControl;
    ;
    
    super();
    
    
   //Checked for passed arguments
   
   if(element.args())
   {

          stringtankLookup.valueStr(element.args().parm());
   }


}

Reply via email to