Focal Point
[CLOSED] Business View and Update SQL Table Name

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/1367092196

May 09, 2019, 12:35 PM
Howell
[CLOSED] Business View and Update SQL Table Name
I have a business view that is being utilized by InfoAssist report templates. I need to update one of the table names used in the business view. I have used the text editor to update the table name and all references using this table. I have updated both the .mas and .acx file associated with the business view.

However, the existing report templates can't find the new table name in the business view. Is there a different way to update the business view (master file) without breaking existing report templates?

This message has been edited. Last edited by: FP Mod Chuck,


WF 8.1.05, Windows 10
Databases: MS SQL 2012, Output Formats: HTML, Excel, PDF
May 09, 2019, 01:02 PM
BabakNYC
I have a feeling the fully qualified fieldnames in your reports reference the original tablename. Below is an example of a report that has the fully qualified fieldnames:
  
TABLE FILE retail_samples/wf_retail
SUM WF_RETAIL.WF_RETAIL_SALES.REVENUE_US
BY WF_RETAIL.WF_RETAIL_PRODUCT.PRODUCT_SUBCATEG
BY WF_RETAIL.WF_RETAIL_TIME_SALES.TIME_DATE_DAY_COMPONENT
WHERE WF_RETAIL.WF_RETAIL_TIME_SALES.TIME_DATE_DAY_COMPONENT EQ &TIME_DATE_DAY_COMPONENT.(|FORMAT=YYMD).Day:.QUOTEDSTRING;
WHERE WF_RETAIL.WF_RETAIL_PRODUCT.PRODUCT_SUBCATEG EQ &PRODUCT_SUBCATEG.(|FORMAT=A50V).Product Subcategory:.QUOTEDSTRING;


How many reports have been developed using the original tablename? I think the only way to fix this is to manually remove all occurrences of WF_RETAIL.WF_RETAIL_PRODUCT. from the reports. App Studio has an Impact Analysis that could help you in that.

If you can live with the original name in your master files, then you should be able to leave everything as they are and only change the value of TABLENAME= in the acx file. That way, your master file stays exactly as it was and it's mapped to a different tablename.

This message has been edited. Last edited by: BabakNYC,


WebFOCUS 8206, Unix, Windows
May 09, 2019, 04:09 PM
FP Mod Chuck
Howell

I have seen in the past that a business view is referencing the other master files with the use of CRFILE references and if so you need to check the tables those master files are referencing.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats