Options

Simpe question

QuasimodoQuasimodo Member Posts: 45
edited 2002-01-10 in Navision Financials
Hi friends,

I want to mail from the marketing modul,from the campaigns. A button calls a report, based on the campaign-lines. So far so good. But how can I post automaticalle the campaign-number into the requestform of the report? <img border="0" title="" alt="" src="images/smiles/icon_eek.gif" />

Comments

  • Options
    KeithBKeithB Member Posts: 7
    You could do this by writing a function in the report to accept a parameter which would be your campaign-number and then assign this to a global variable in the report. When you run the report (you will need to declare the report as a variable rather than use REPORT.RUN) you can call the function to pass in the campaign number before you do the RUN command.

    Eg. Assume the report is dclared as repCampaign and CampaignNumber is a variable containing the campaign number.

    repCampaign.ImportCampaignNumber(CampaignNumber);
    repCampaign.SETTABLEVIEW(recCampaignLine);
    repCampaign.RUN;
Sign In or Register to comment.