on 07-22-2015 7:24 AM
hai guys i am new for sap fiori so now i need ur help ....... this is i have been done in my view so if u know plz help me ......
<u:FileUploader
id="fileUploader"
name="myFileUpload"
uploadUrl="upload/"
width="400px"
sendXHR= "true"
tooltip="Upload your file to the local server"
uploadComplete="handleUploadComplete"
/>
<Button
text="Upload File"
press="handleUploadPress"/>
</l:VerticalLayout>
i need to know how to pass the parameter between xml view to controller .for example we have a button by xml .so now how can i pass the buttton parameters to the controller......?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you had taken a look at the API for Button, you see the 'press' event passes an event object with properties 'source' and 'parameters' (getSource() and getParameters())
In your event handler, you read this object, and do whatever you like:
onPress : function(oEvent) {
oEvent.getSource(); //gets you the button
oEvent.getParameters(); //map of parameters passed
}
actually i am to do one image uploading by using xml so for that first we need to do now the pass the parameter so thats wt i need to know now ......
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Question is not clear, Please provide more information.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.