You could write a script that performs those two actions then have the button perform that script
can you tell me some simple example?
I'm sorry, I'm a beginer.
You may need to spend some time with tutorials, books or other training materials to learn more about how to create FileMaker scripts.
I want to exoprt a file in a container field
To where do you want to export it? You'll need to specify a location such as the temporary items folder or the desktop.
Do you want the exported file to open automatically after export? (There's a check box for that.)
and count the number of exporting in one click.
Well, you just exported one file so you have a count of 1. Can't imagine this is what you had in mind so what is it that you want to count?
Each time the button was clicked to export a field? Each time ever? Each time since you opened the file? Each time since you accessed this layout?
Each time this specific file was exported from this container field by this script?