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

Fix GetTableUrl for DataPerCompany=false #2303

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

pri-kise
Copy link
Contributor

@pri-kise pri-kise commented Nov 4, 2024

Summary

Fix GetTableUrl for Tables with DataPerCompany=false

Work Item(s)

Fixes #2262

Fixes AB#557526

@pri-kise pri-kise requested a review from a team as a code owner November 4, 2024 15:16
@github-actions github-actions bot added AL: System Application From Fork Pull request is coming from a fork labels Nov 4, 2024
@JesperSchulz JesperSchulz added Integration GitHub request for Integration area Linked Issue is linked to a Azure Boards work item labels Nov 14, 2024
@github-actions github-actions bot added this to the Version 26.0 milestone Nov 14, 2024
@JesperSchulz JesperSchulz self-assigned this Nov 15, 2024
begin
if Company = '' then
TableMetadata.Get(TableNo);
if not TableMetadata.DataPerCompany then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if Company is blank and the data is per company? Why cannot we always replace the blank company name with the current company?

This will also slow down the code since we will load the table metadata, which can be slow on the first call. I'm not sure how slow it is after the first call.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AL: System Application From Fork Pull request is coming from a fork Integration GitHub request for Integration area Linked Issue is linked to a Azure Boards work item
Projects
None yet
3 participants