Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"CRS: Rename - Current File" - reportextension - column #249

Closed
g-franck opened this issue Jul 4, 2022 · 6 comments
Closed

"CRS: Rename - Current File" - reportextension - column #249

g-franck opened this issue Jul 4, 2022 · 6 comments

Comments

@g-franck
Copy link

g-franck commented Jul 4, 2022

Hi,

"CRS: Rename - Current File" not rename columns with prefix/suffix in reportextension,
as it should be according to documentation below:

Benefits and Guidelines for using a Prefix or Suffix - General rules

Thanks.

@waldo1001
Copy link
Owner

I'd like to repro your problem.
Could you send me an example of a reportextension and what you'd expect it to behave?

@g-franck
Copy link
Author

g-franck commented Jul 4, 2022

To reproduce, for example,
Create a reportextension of standard report "Standard Sales - Order Conf." (1305),
Add a column with a name who already exists in the standard report
"CRS: Rename - Current File" correctly renames the object with my prefix (APO_) but not the name of the new column

reportextension 50000 "APO_StandardSalesOrderConf" extends "Standard Sales - Order Conf." //1305
{
    dataset
    {
        add(Header)
        {
            column(YourReference; YourReference)
            {

            }
        }
    }

    var
        YourReference: Text[35];
}

Error:

A member of type ReportColumn with name 'YourReference' is already defined in Report 'Standard Sales - Order Conf.' by the extension 'Base Application by Microsoft.

@waldo1001
Copy link
Owner

Good point.

So, the result in above should be:

reportextension 50000 "APO_StandardSalesOrderConf" extends "Standard Sales - Order Conf." //1305
{
    dataset
    {
        add(Header)
        {
            column("APO_YourReference"; YourReference)
            {

            }
        }
    }

    var
        YourReference: Text[35];
}

Right?

@g-franck
Copy link
Author

g-franck commented Jul 4, 2022

Yes, according to CRS.ObjectNamePrefix or CRS.ObjectNameSuffix.

@waldo1001
Copy link
Owner

I think the same counts for RequestPages.. 🤔

@waldo1001
Copy link
Owner

Fix is on its way in release 1.5.13!
If it doesn't work, just open this issue again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants