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

Customized Export Utility


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

Recommended Posts

Posted

Hi,

Can we provide users with an export utility from where they can select the fields which they want to export. I understand we can do it by using the export script step and performing it without dialog but this would show all the fields and would also show field names to the users. Can we accomplish it using some other method?

Thanks,

Sanjai

Posted

Yes... but it requires the GetField() function. I know this is in FMP 5.5 and later but not sure about 5.0.

The attached quick-and-dirty demo file shows how it could be done.

ExportText.zip

Posted

Using Vaughams Example, replace the GetField(exportfield#) calcs by a nested SUbstitute() like this:

Substitute(

Substitute(

Substitute(

Substitute(

Substitute(

Export01Select;

"FirstName";FirstName );

"LastName";LastName);

"Street";Street); ....

This worked since Version 3. However, the Number of nested substitutes is limited to about 24 - 64 in Versions below 7. You can use a lengthy CASE() statement for that ....

Posted

Thanks Vaughams and Christian. It is definitely a good idea but if we want to give users a choice of 20 to 30 fields, we have to create those number of global fields. Secondly, we cannot show the export dialog box to select which global fields they want to export because the export dialog box would also show other fields from the file.

Could you please let me know how to implement the above solution and if I am not understanding correctly.

Thanks,

--Sanjai

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