on 10-18-2011 3:29 PM
Hi Expert,
I m trying to write .txt file using write file action block in transaction in SAP MII and m opening that file in browser.
But problem is coming when i m updating txt file, m unable to get updated content in browser.If i m manually
refreshing folder which containing .txt file,that time it's working fine.
Is there any action block or any dyanamic way is available for refreshing folder?
Thank you for any help in advance.
I've never had refresh problems downloading .txt files using "web://" prefix using "Write File". But once I had refresh problems downloading .zip files generated by "Create Zip Archive", even using "web://" prefix. Actually, the browser was caching files.
That was solved by adding a timestap parameter to the created file url. The parameter forces the browser to ignore its cache. Example:
Original URL
HTTP://MII:50000/XMII/CM/MY_PROJECT/MY_FILE.ZIP
Timestamped URL
HTTP://MII:50000/XMII/CM/MY_PROJECT/MY_FILE.ZIP?timestamp=2011-10-18T:14:16:10
This technique is used in other contexts too, like force refreshing css and js files.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What path are you using to save the txt file? If you are using the db prefix instead of web it will not auto publish the file to the WebAS file path (it will only go into the database).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
6 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.