Unable to set visibility on response of API call. When API generates an error cant set label visibility to visible/unhide. I think this issue is due to thread

This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal.

identitySvc.login(options, function(response) {

}, function(error) {

this.view.ContainerInvalid.setVisibility(true);

// This label should be visible on callback which returns when error occurs

//The above code is working outside the block

});

@Advm Mvthis​ can you please help here? Thanks!