user can select demo user on login for testing purpose

Description

currently user need to copy paste or type manually for demo user.

expected user can select demo user on login page for easy testing

Environment

None

Attachments

1

Activity

Show:

Carlos Ruiz January 30, 2025 at 5:29 PM

Pending to document the new SysConfig key at

zuhri utama January 28, 2025 at 1:31 PM

Thx . Yes, actually i need some reference cause I also learn from zk doc but not really helpful. Gonna look on your reference.

Carlos Ruiz January 28, 2025 at 1:13 PM

Thanks - good thing is that you share the idea that would be better as a link

I think it’s doable, maybe checking how the HTML links on reports work:

  • there is the report.js which defines scripts that can send events back to iDempiere - for example the window.idempiere.zoom which sends the Event onZoom to the element with the componentId,

  • in HTMLExtension.java the links are created (example href.addAttribute("onclick" …)

Something like that could work.

The login-info.zul could show links produced by a new method on LoginPanel, and the LoginPanel listen to events to fill user/passwd when clicking on those links

zuhri utama January 28, 2025 at 12:50 PM

hi

I tried several way like add button or link on login-info.zul but cant find a way to send event to login panel. That's why my approach is added dropdown on login window.

Carlos Ruiz January 28, 2025 at 12:33 PM

Hi - visually checked your pull request, and I don’t like that is dependent on the URL

I think that must be coming from login-left.zul - but the case of showing that info is different than showing the box in login page.

For the login page maybe it would be better to have a System level SysConfig.

 

But, if you ask me my preference, I would like better that the users on the left are links, and when clicking on the link they fill the user/pass fields. I don’t know if that’s possible, just how I would prefer to see it.

Fixed

Details

Assignee

Reporter

Fix versions

Priority

Created January 28, 2025 at 3:52 AM
Updated April 1, 2025 at 1:43 PM
Resolved January 31, 2025 at 5:31 PM