skofra0 commented on issue #6054:
URL: https://github.com/apache/hop/issues/6054#issuecomment-3642318107
NOTE (Tested Salesforce Input on latest snapshot):
The "Module list" is not retrieved when using a "Salesforce Connection". The
SalesforceInputDialog::getModulesList() method is only executed when the
connection fields (URL, username, password) are entered directly in the dialog.
When a predefined Salesforce connection is selected, the wModule "focus
listener" does not fire, because it only reacts to changes in the individual
connection fields. As a result, no automatic module retrieval occurs.
Add check upon SalesforceConnection in in wModule focusListner, e.g:
wModule.addFocusListener(
new FocusListener() {
@Override
public void focusLost(FocusEvent e) {
getModulesListError = false;
}
@Override
public void focusGained(FocusEvent e) {
// check if the URL and login credentials passed and not just
had error
if ((Utils.isEmpty(wSalesforceConnection.getText())
&& (Utils.isEmpty(wURL.getText())
|| Utils.isEmpty(wUserName.getText())
|| Utils.isEmpty(wPassword.getText())))
|| (getModulesListError)) {
return;
}
getModulesList();
}
});
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]