Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5741 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hello,

I am trying to create a library solution that saves web viewer browsed images or pdfs and re-imports them into a container field in the solution.

So if a user browsen a website in the webviewer and he wants to make a visual bookmark of the page he clicks a script that opens the same url in a new window saves the whole window as pdf to the desktop and then the script imports the saved image (pdf) into a container field.


If [not(fnIsWebConnection)]



Set Variable [$Recipe; Let ( [

        MAC = "filemac:" & Get ( DesktopPath ) ;

        PC = "filewin:" & Get ( DesktopPath )

] ;

Case(Abs(Get ( SystemPlatform )) = 1; MAC; Abs(Get ( SystemPlatform ))= 2 ;

PC ) & "Recipe" & recipes::rec_name & ".pdf")]



Go to Related Record [show only related records; From table: "recipes"; Using layout: "recipe_others" (recipes); new window]



Print Setup [Restore; No dialog]



Save Records as PDF [Restore; No dialog; "$Recipe"; Current Record]



Go to Object [ObjectName: "library1"]



Insert Picture ["$Recipe"]

So is this a way to achieve this? The problem seems in the insert picture, i specify the path but how can I tell it the file name (Recipe" & recipes::rec_name & ".pdf)

Thanks for the help.

Also is there a way to boomark the current browsed page?

  • 3 weeks later...

This topic is 5741 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.