Ferdinand_ Posted February 12, 2012 Posted February 12, 2012 Hi, I have a portal with PDF files (SC container as unstored calc) on Layout A . How do I show the PDF from the Portal in a webviewer on the same layout A? PS: I only know the basics of scripting...
ooparah Posted February 13, 2012 Posted February 13, 2012 Hey Ferdinand, Take a look at this example/sample database that uses portals, SCGetContainer(), and web viewers together on the same layout (A). Hopefully it sheds some light on how to achieve your end result. Hope this helps,
Ferdinand_ Posted February 14, 2012 Author Posted February 14, 2012 Thanks ooparah, I had already checked the demo file, but still do not understand which values I have to enter in the calc field WebViewerURL. I tried the following, but it's not working: SCGetInfo ("http://" & xxxxx::SC_setIP & ":8020/SuperContainer/Files/FMGalerie/Document/Doc/") :getlost:
ooparah Posted February 22, 2012 Posted February 22, 2012 I tried the following, but it's not working: SCGetInfo ("http://" & xxxxx::SC_setIP & ":8020/SuperContainer/Files/FMGalerie/Document/Doc/") Much too much entered here! The SCGetInfo() function (along with most SuperContainer functions) only requires that the "folderPath" be passed into the function. The folderPath is essentially everything after the "Files/" in the full URL. So, your call to SCGetInfo(), using the above example, would be similar to: SCGetInfo( "FMGalerie/Document/Doc/" ) Simple and sweet. :-) I hope this helps. I apologize for the delay in getting back to you... didn't see that you replied to this one until today. P.s. Make sure that you have set your baseURL prior to calling any SC Companion functions Good luck,
Recommended Posts
This topic is 4910 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