erp - Open specified report and page in Acumatica -


in acumatica there exception pxredirectrequiredexception allows redirect page in acumatica. there posibility open report , application page?

you can use pxredirectwithreportexception. here code example of assetmaint:

    assettranrelease graph = createinstance<assettranrelease>();     assettranrelease.releasefilter filter = (assettranrelease.releasefilter)              graph.filter.cache.createcopy(graph.filter.current);     filter.origin = faregister.origin.disposal;     graph.filter.update(filter);     graph.selecttimestamp();     int = 0;     dictionary<string, string> parameters = new dictionary<string, string>();           foreach (faregister register in created)           {              register.selected = true;              graph.fadocumentlist.update(register);              graph.fadocumentlist.cache.setstatus(register,               pxentrystatus.updated);                     graph.fadocumentlist.cache.isdirty = false;                     parameters["faregister.refnbr" + i] = register.refnbr;                     i++;                 }                  parameters["datefrom"] = null;                 parameters["dateto"] = null;                  pxreportrequiredexception reportex = new                  pxreportrequiredexception(parameters, "fa680010", "preview");                 throw new pxredirectwithreportexception(graph, reportex,                                "release fa transaction"); 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -