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

Issue with Application Focus and XPand Security Modules #1076

Open
JIFaktor opened this issue Nov 19, 2024 · 7 comments
Open

Issue with Application Focus and XPand Security Modules #1076

JIFaktor opened this issue Nov 19, 2024 · 7 comments
Labels

Comments

@JIFaktor
Copy link

Hello,

We are having trouble with our XAF-Application utilizing XPand.

𝗗𝗲𝘀𝗰𝗿𝗶𝗯𝗲 𝘁𝗵𝗲 𝗯𝘂𝗴
When selecting an item from a LookUpListEditor in a DetailView the Edit looses Focus resulting in navigation via Tab being unavailable.
The Issue resolves when the Modules XPandSecurityWinModule and XPandSecurityModule are removed fom the project
𝗧𝗼 𝗥𝗲𝗽𝗿𝗼𝗱𝘂𝗰𝗲 (In a project with XPandSecurityWinModule and XPandSecurityModule)

  1. Open a DetailView with a LookUpListEditor present.
  2. Click on the edit with the LookUpListEditor.
  3. Select a Value from the Drop Down.
  4. See that Focus is Lost and Tabbing is impossible
    𝗘𝘅𝗽𝗲𝗰𝘁𝗲𝗱 𝗯𝗲𝗵𝗮𝘃𝗶𝗼𝗿
    After selecting a value from the DropDown focus should be placed back on to the edit and navigating via Tabs should be possible
    𝗦𝗰𝗿𝗲𝗲𝗻𝘀𝗵𝗼𝘁𝘀
    We created a short gif to showcase the issue, focus is lost after a value is chosen from the dropDown making Tabbing impossible.
    Focus

Additionally we prepared a small sample project that reproduces the issue.

Any help debugging the Issue will be greatly appreciated.
We are looking forward to your reply.
Best Regards
XpandExample.zip

@apobekiaris
Copy link
Member

apologies for the late response seems I missed this one, @CWolffIF u know u can ping me if I do not respond in a reasonable timeframe.

I will process it asap, unless u have a solution already?

@JIFaktor
Copy link
Author

JIFaktor commented Dec 3, 2024

Hi, sadly, until now we haven't found a solution

@apobekiaris
Copy link
Member

need some guidance here, what i should do to repro it

image

@JIFaktor
Copy link
Author

JIFaktor commented Dec 3, 2024

Steps i took to reproduce the issue:

  1. navigate over to "Standard"
  2. Open the "TestObject" detailView
  3. Create an TestObject
  4. Move over to the "relatedObject" DetailView
  5. Create a relatedObject
  6. in the related Object DetailView select the TestObject instance that was just created from the LookupListEditor

After selecting the TestObject from the Lookup focus is lost and Tabs stop working.

i hope this helps i just tested it again and reproduced the issue, if you need any more information please let me know.

@apobekiaris
Copy link
Member

I am not sure why this happens, however I saw that your Model.xafml is marked as embedded resource. By default Xaf uses a Content for this file and copy to build dir. If you embed that file eXpand thinks is by intension and merges it with the main model. ALthough this shouldn't cause problems for some reason it does. In any case I used the default declaration and worked for me

<Content Include="Model.xafml">
      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
    </Content>

let me know if that's ok

@JIFaktor
Copy link
Author

JIFaktor commented Dec 6, 2024

Hi, you are correct this resolves the issue in the example i provided, however in our actual application that we ship to customers it does not.
After making the changes you suggested a ModelDifference and a ModelDifferenceAspect have been created in the Database.
starting the application with these present results in a broken userinterface, after deleting these entries from the database the application runs as expected but the problem with focus persists.

Any idea how we can continue to debug this?
Many thanks for your assistance so far.

@expand
Copy link
Member

expand commented Dec 6, 2024 via email

@apobekiaris apobekiaris removed their assignment Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants