Created
September 10, 2019 17:21
-
-
Save arun12209/a973273a2195841755f2b5164c88f8d0 to your computer and use it in GitHub Desktop.
FileUploaderCmpHelper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
UpdateDocument : function(component,event,Id) { | |
var action = component.get("c.UpdateFiles"); | |
var fName = component.find("fileName").get("v.value"); | |
//alert('File Name'+fName); | |
action.setParams({"documentId":Id, | |
"title": fName, | |
"recordId": component.get("v.recordId") | |
}); | |
action.setCallback(this,function(response){ | |
var state = response.getState(); | |
if(state=='SUCCESS'){ | |
var result = response.getReturnValue(); | |
console.log('Result Returned: ' +result); | |
component.find("fileName").set("v.value", " "); | |
component.set("v.files",result); | |
} | |
}); | |
$A.enqueueAction(action); | |
}, | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment