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

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

Recommended Posts

Posted

Hello

I run into an issue with a a container and the navigation:

we have a documentation of cases, and in that we carry PDFs, pictures, Word and Excel files (plus some others)

There is a button to open the attached file. While it works with all tested format, it doesn't for .xlsx (.xls works)

I tried to rename, which works but then it cannot open correctly.

Any hint how I could bring that to work?

Cheers and stay safe

Posted
20 minutes ago, Ralph Schwegler said:

There is a button to open the attached file.

And what exactly does this button do?

If it does Export Field Contents, with the option "Automatically open file" selected, and the file does not open, that would indicate that there is no default application set for this type of file. Are you able to open the exported file by double-clicking it?

 

Posted

here's the script - some parts are tests:

*****

# open_container in file FFG

 

Set Variable [ $path ; Value: Get ( DesktopPath )& GetContainerAttribute (GetRepetition ( Notizen::Notiz Container ; Notizen::ContainerAuswahl ) ; "filename") ]

If [ Right(Lower($path);4)="xlsx" ]

// Set Variable [ $path ; Value: Left ( $path ; Length ( $path ) - 1 ) ]

Export Field Contents [ Notizen::Notiz Container[Notizen::ContainerAuswahl] ; “$path” ; Create folders: Off ]

Show Custom Dialog [ "Datei auf dem Schreibtisch ers…" ; "Excel Dateien können leider nicht automatisch geöffnet werden, diese wurde auf dem Schreibtisch ab…" ]

Else

Export Field Contents [ Notizen::Notiz Container[Notizen::ContainerAuswahl] ; “$path” ; Automatically open ; Create folders: Off ]

End If

*****

By creating a new Excel file in my sample document, I noticed that actually the container in FM had a corrupted file, and it looks good now...

This topic is 1092 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.