Skip to main content
Answer

Create a text file when export

  • April 17, 2023
  • 2 replies
  • 191 views

param2022
Jr Varsity II
Forum|alt.badge.img

I have created one processing screen where I want to create a text file when I select the records and click export. And I want that file to be attached in the top right corner just like many other screens. Is this possible ? I checked and it looks like you can attach the file to a particular DAC but I don’t want to do that.

Best answer by Leonardo Justiniano

Hi @param2022 

Short answer: Depends

You might need to create an Audit Table to persist each execution (and parameters) of your processing screen on each run (You can run multiple times). Then, you can have such record linked to the file you generated. The file can be created after your Graph finished the processing in the Process Delegate function. Having this you also might need to add a button “History” to display those records and attachments which have a AuditHistory DAC that you can edit in a screen.

If the purpose of the file is to record a log of the processing, then you do not need it because you have the Audit table for that. Normally processing screens are not persistent as parameters on the header are usually PXFilter which is not persistent. 

 

 

2 replies

Leonardo Justiniano
Jr Varsity II
Forum|alt.badge.img+4

Hi @param2022 

Short answer: Depends

You might need to create an Audit Table to persist each execution (and parameters) of your processing screen on each run (You can run multiple times). Then, you can have such record linked to the file you generated. The file can be created after your Graph finished the processing in the Process Delegate function. Having this you also might need to add a button “History” to display those records and attachments which have a AuditHistory DAC that you can edit in a screen.

If the purpose of the file is to record a log of the processing, then you do not need it because you have the Audit table for that. Normally processing screens are not persistent as parameters on the header are usually PXFilter which is not persistent. 

 

 


Hi ​@Leonardo Justiniano , do you have any sample of work or reference for that kind of solution you mentioned? I need exactly the same solution to meet client requirement