IF xxxSetup.GET() THEN; GenJnlLine.RESET; GenJnlLine.SETRANGE("Journal Template Name",xxxSetup."Journal Template Name"); GenJnlLine.SETRANGE("Journal Batch Name",xxxSetup."Journal Batch Name"); pgeGenJnl.SETTABLEVIEW(GenJnlLine); pgeGenJnl.RUNMODAL;but it doesn't work, I always get the list of templates when I try to run my action.
Comments
You could add a function to Page 39 to bypass the code onOpenPage, you would call that function before you run the page, alternatively move your setup to the functions in GenJnlManagement but you have to be more careful with that.