Menu

Swap view name

+1 vote

I have a view attached to my table that I would like to rename. I copied the view and gave it a new name. Is there any way to update the dbfront config to just switch out the old view name with the new, so I don't have to re-add all the fields?

I tried updating :

  <TableViews>
    <string>[ViewName]</string>
  </TableViews>

in:

C:\data\dbfront\data\[ConnectionKey]\[TableKey]_TableConfig.configdata

but that doesn't seem to take.

in How To by (2.4k points)

1 Answer

0 votes

The Table Views documentation covers that exact scenario.

  • Create or copy the new view with the same fields as the old view.
  • Open the table preferences and add the new view and position it above the old view and then save. dbFront will rebind all of the view fields to the new view and mark the old view fields as duplicates.
  • As the last step, you open the table preferences and remove the old view.
by (65.1k points)
Thanks Anthony. I'm getting "Rejecting View [NewViewName]: No valid fields" after adding the new view above the old. I'm on v1.2.6.0184 if this functionality was added/fixed recently.
This has been fixed in dbFront 1.2.6.7021 - this is currently a Patch version.
Welcome to the dbFront Q&A site, where you can ask questions and receive answers from other members of the community.
 | Minimalist Answer Theme by Digitizor Media
 |
Powered by Question2Answer
...