[DevExpress Support Team: CLONED FROM T804750: Can we add new Buttons(near Login and Cancel) to Login Page by using Custom Logon Parameters and Authentication?]
How can I now add an action to Generate grid Button.
when I click it, it should call a function (Test.Module.Impl.GridTrue.generateGridTrueImageCode())that returns base 64 string and dislay it as Igae on same LoginPage.
Also, I noticed an issue, Generate Grid button disappears if I click on Cancel.
Consider the following implementation plan:
This will remove the Cancel button.
2. Use SimpleAction instead of PopupWindowShowAction and handle its Execute event handler to implement your logic. In the event handler, use the How to: Access Objects Selected in the Current View approach to access the current logon parameters object and modify its GridTrueCode property as you wish.
3. Handle the CreateCustomLogonWindowControllers event and create your MultiCompanyLogonController class as described at Logon Form Controllers and Actions. Note that the CreateController method must be used for MultiCompanyLogonController and SetApplicationSpecificThemeWebController. Remove the creation of ObjectMethodActionsViewController in the CreateCustomLogonWindowControllers event handler - you do not need it with your MultiCompanyLogonController.
4. Support change notifications for your GridTrueCode property as per PropertyChanged Event in Business Classes - it is important for immediate updates of your property in the UI after your logic at step #2.
5. If I understand you correctly, the GridTrueCode property will be represented by a custom PropertyEditor or ViewItem in the UI. For more information about how to create and customize custom View Items, see the following:
Ways to Access UI Elements and Their Controls | View Items.