-
Notifications
You must be signed in to change notification settings - Fork 244
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
Incorrect Behavior of Table Relation Filters from FlowFields in AL TestPages #7460
Comments
Unfortunately, this is the wrong place to submit your issue. If you have no access, let me know, and I will link your issue there. |
@NKarolak |
I believe it is more for the platform team. |
For your reference, I've mentioned your issue here: https://www.yammer.com/dynamicsnavdev/threads/2359402983677952 |
@Drakonian you should be able to request access to the Yammer via the following shortlink: https://aka.ms/bcyammer There should be some option to request access. |
@pri-kise Thanks for you suggestion. I did it and hope will get access :) |
As mentioned before, this issue is not related to the AL language itself but concerns the behavior of the runtime. I have created a bug on the team responsible for it and they will investigate it. If it is by design, there will be a response with the explanation to this issue, else it will be fixed in one of the next releases. |
Can you provide a link?
…On Wed, Aug 2, 2023, 08:13 Sotiris Dragonas ***@***.***> wrote:
As mentioned before, this issue is not related to the AL language itself
but concerns the behavior of the runtime. I have created a bug on the
relevant team and they will investigate it. If it is by design, there will
be a response with the explanation to this issue, else it will be fixed in
one of the next releases.
—
Reply to this email directly, view it on GitHub
<#7460 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACKQJUSYBJW4GN7RQE6SL3XTJOAFANCNFSM6AAAAAA2KWC3TM>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
@omnisip It is in our internal systems, thus I cannot provide a link for it. |
Okay. Then what's the way for us to receive updates on the status of this
bug? Closing this here and providing no tracking means that it's lost in
the black hole.
…On Wed, Aug 2, 2023, 08:55 Sotiris Dragonas ***@***.***> wrote:
@omnisip <https://github.com/omnisip> It is in our internal systems, thus
I cannot provide a link for it.
—
Reply to this email directly, view it on GitHub
<#7460 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACKQJTP4WFJZAIHC3AFQQLXTJS5ZANCNFSM6AAAAAA2KWC3TM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Again, this is an issue of the runtime and not an issue in the AL language, thus this is not the correct repository for this issue. The responsible team does not use this repository or follow the issues here. It is possible to make a support request to have the issue tracked through a support case, if the issue is blocking. See below for how: To be clear, the bug was not closed here to be ignored. I forwarded it to the correct team to speed up the process. Issues on the runtime are currently handled through either support cases or internal tickets. |
So you are never going to fix this? |
I am looking at this bug, and it does not look like a general issue with CalcField/Filters/TestPages. The following stripped down scenario works just fine - I will try and see if I can find the difference between this working case below and the 'real' non-working case.
|
This is unfortunately not a platform bug, but just the platform doing as requested by the AL code. In the Validate function for Type in Purchase Line, the Init function is called which clears the calculated fields. In the test code, there is nothing re-calculating this field if you go and invoke the lookup immediately afterwards, leading to blank filters. I suggest you subscribed to one of the events in the Type validate function and re-calculate the field there, as that will make the experience better both in the web client and in tests. |
Thanks, it's really not a bug, but rather expected behavior given the original conditions. I was able to reproduce this behavior the same way in the UI. |
As you mention one of possible solution in this specific scenario will be:
Works perfectly. |
I have encountered a bug that's related to the use of TestPage type variables in AL Language within the Business Central Test Framework. Specifically, this issue occurs when using a TestPage type variable to simulate UI behavior.
In my project, I have created a flow field and used it in a table relation filter. I also added CalcFields of that flow field on AfterGetCurrRecord of a page. This implementation works as expected in the Business Central UI, for all cases - when a record is already inserted or not.
However, when trying to simulate this behaviour using a TestPage type variable in a test codeunit, the flow field is always returning an empty value. This inconsistency breaks all possible tests of that filtering within the Business Central test framework.
This behavior is not expected as the TestPage variable in test codeunits should simulate the UI behavior in the same way the page works in Business Central.
Attached is a project with example code demonstrating this issue.
Steps to Reproduce:
Expected Result:
The flow field should return the correct value, even when accessed from a TestPage type variable in a test codeunit, replicating the same behavior as in the Business Central UI.
Actual Result:
The flow field always returns an empty value when accessed from a TestPage type variable in the test codeunit.
Please consider investigating this matter. The consistent behavior between TestPage variables and actual UI pages is crucial for accurate testing within the Business Central Test Framework.
AL Code which works as expected:
AL Test which is always fail, I can't find any way to write this test using test pages.
Correct:
Wrong:
The text was updated successfully, but these errors were encountered: