Help logging selected file name to the DNP #507
Answered
by
jenningsb2
jenningsb2
asked this question in
Q&A
-
I'm looking for the correct syntax for accessing the selected file here. I'd like to do a second Capture in the macro that logs the selected file (and header) from the first capture. Here is the first part of the macro: Here is what I am hoping to do with the second capture: |
Beta Was this translation helpful? Give feedback.
Answered by
jenningsb2
May 29, 2023
Replies: 1 comment 6 replies
-
In your first macro function, you can store the selected file in a variable as follows: params.variables["selectedFile"] = selectedFile; Then, in the capture, you can access the variable as follows:
I've done something similar, and it works really well! |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for your help @nicobako
After a lot of trial and error, I got the outcome I was hoping for!