"Map object not initialised." when running report

Question Status

Unanswered
cjohnson300 asked a question on 17 May 2018 6:13 AM

I am trying to design a report which is run from the "SalesTable" form where a user can select a sales line, click the report button and view a report about that sales order line.  Unfortunately I get the error above.  I have traced this to this line of code:

protected void prePromptModifyContract()
{
    this.setRanges(this.parmReportContract().parmQueryContracts().lookup(this.getFirstQueryContractKey()));
}


And I understand that the parmQueryContracts() is returning null but don't understand why or how to fix it?  I have turned off "Dynamic filters" on the report (on purpose) as I don't want the user to add anymore parameters but would still like to show the fixed parameter which should be the RecId of the sales order line (taken from the selection in the sales line grid).  

Many thanks in advance, and let me know if you need more information to help!

Reply
Krishna responded on 17 May 2018 6:59 AM

Hi cjohnson300,

Please make sure you have initialized  report,query objects.

Also do "reset"  on report dialog window.

Reply
cjohnson300 responded on 17 May 2018 7:14 AM

Thanks for the reply!

Initialise what and where?!

Reply
cjohnson300 responded on 17 May 2018 7:37 AM

Sorry, I should have said do I need to initialise/declare a contract class (i don't currently have one)

Reply