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

destination #49

Open
ThuF opened this issue Nov 11, 2016 · 0 comments
Open

destination #49

ThuF opened this issue Nov 11, 2016 · 0 comments
Labels

Comments

@ThuF
Copy link
Contributor

ThuF commented Nov 11, 2016

API for working with 'destinations'.
The current workaround is through the following code:

var destination = getDestination('the-name-of-the-destination');
var user = destination.get('User');
var password = destination.get('Password');
...

function getDestination(destName) {
    var ctx = $.getInitialContext();
    if (ctx != null) {
        var configuration = $.getConnectivityService().getConnectivityConfiguration();
        var destinationConfiguration = configuration.getConfiguration(destName);
        var destinationPropeties = destinationConfiguration.getAllProperties();
        return destinationPropeties;
    }
    return null;
}
...
@ThuF ThuF added the prio1 label Nov 11, 2016
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

1 participant