Skip to main content
Answer

How to generate files in parent screen under FILES button while clicking on child screen generate button?

  • April 1, 2022
  • 1 reply
  • 104 views

Forum|alt.badge.img+1

How to generate files in parent screen under FILES button while clicking on child screen generate button

Tanku

 

Best answer by Dmitrii Naumov

Check this stackoverflow answer:

https://stackoverflow.com/a/49325327/6038399

 

You’ll need something like that:

  PX.SM.FileInfo file = new PX.SM.FileInfo(fileName, null, data);

UploadFileMaintenance graph = new UploadFileMaintenance();
graph.SaveFile(file);
PXNoteAttribute.AttachFile(Base.Document.Cache, Base.Document.Current, file);

 

1 reply

Dmitrii Naumov
Acumatica Moderator
Forum|alt.badge.img+7
  • Acumatica Moderator
  • Answer
  • April 1, 2022

Check this stackoverflow answer:

https://stackoverflow.com/a/49325327/6038399

 

You’ll need something like that:

  PX.SM.FileInfo file = new PX.SM.FileInfo(fileName, null, data);

UploadFileMaintenance graph = new UploadFileMaintenance();
graph.SaveFile(file);
PXNoteAttribute.AttachFile(Base.Document.Cache, Base.Document.Current, file);