Michelle Logan Posted March 7, 2014 Posted March 7, 2014 Windows Server Windows Workstations I have searched the RC topics but could not find an answer. We are trying to convert one of our DB's over to FM13 to be hosted on our FMS13 using Remote Containers. In our previous version FM11 we had an export script that would set a variable and put the PDF on the users C: drive then open it (below is the script step which I typed in manually): SetVariable [$_document_temp; Value;"filewin:/c:/ShcoolReport/" & " " & GetAsText(Reports::Student_Report)] Export Field Contents [Reports::Sudent_Report; "$_document_temp"; Automatically open] On Windows, this would take the PDF in the container on the FMS11 (Student_Report) place it in a folder on the users computer C: drive called SchoolReport, and then open it. Now with FM13 and remote containers, when we run the script we get a message that states: The file "?" could not be opened. (Not Found) I assume that we need to add the Remote Container Path somewhere in the script, but we do not know where to get the path or where to insert it. Thanks, Michelle
Wim Decorte Posted March 7, 2014 Posted March 7, 2014 That's because the GetAsText now returns a bunch more than just the name. Check out the brand new GetContainerAttribute( <your container field> ; "filename" )
Michelle Logan Posted March 7, 2014 Author Posted March 7, 2014 Well that was easy! I have spent the last two hours searching and you fixed it in a few seconds. I should have started here. Thank you again for your help, the staff will be happy that they can open their reports. Michelle
Recommended Posts
This topic is 4005 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now