LookupOK button on form

Hi All, I use this piece of code on a button on Form A to load a form f_ARMBudgetLines : CLEAR(f_ARMBudgetLines); r_JobBudgetLine.RESET; r_JobBudgetLine.SETFILTER(“Job No.”,Job); f_ARMBudgetLines.SETTABLEVIEW(r_JobBudgetLine); IF f_ARMBudgetLines.RUNMODAL = ACTION::LookupOK THEN f_ARMBudgetLines.ReturnSelection(c_Phase,c_Task,c_Step); //function on form returns some values The form loads OK (so the record filtering is OK). Now I copied a lookup OK button from a standard Navision form onto this form. But the lookup OK button is not showing on the form. For some reason it is invisible. Any ideas ? Thanks, Gunther

Hi Gunther, check the property ‘InvalidActionAppearance’ of the button. Normal the value is ‘Hide’! bye Andre

The lookup OK button would normally only show when the form is opened with lookupmode=true. Either set the property on the form, in code on the form or set the proerty on the form before calling it. Paul Baxter

quote:


Originally posted by triff
The lookup OK button would normally only show when the form is opened with lookupmode=true. Either set the property on the form, in code on the form or set the proerty on the form before calling it. Paul Baxter


Lookupmode = true did the trick ! thanks, gunther