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
Post a Comment