Skip to main content
Question

Would like to use Database Connections as Published Parameter Options

  • June 1, 2020
  • 1 reply
  • 11 views

benvk
Contributor
Forum|alt.badge.img+7
  • Contributor

So I have two database connections in Tools | FME Options | Database Connections.

One connection connects to our TEST database, the other to our PRODUCTION database.

I am wanting to setup a published parameter so that the user is prompted for it, then they can select either of the two connection files, when they run the workbench.

I cannot work out how to create a parameter and reference the database connections.

Is this possible?

1 reply

samisnunu
Contributor
Forum|alt.badge.img+10
  • Contributor
  • June 2, 2020

Do they have the same name?

Do they reference the same input tables/feature classes?

If yes:

Then you can export the corresponding connection files info as .xml file format, and share with other users so they can import at their end, all is done within the Database Connections dialog you mentioned. Just select both the TEST and PRODUCTION databases entries (multi-select) then, right click, choose Export..., but for other users to select Import... (one time setup process).

And as you have already added the Reader, its published parameter is ready for you to choose from either the TEST, or, the PRODUCTION database.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings