on 10-16-2015 4:08 PM
Hi,
I have a button in my fragment which is called in my view. In the controller i would like to read the event parameters.
But when the button is pressed , the Event is empty.
For expert advice please.
Controller:
handlesubmit: function(oEvent) {
console.log("post entry",oEvent);
}
The oEvent parameter and source is empty.
Thanks in Advance
Hi Robert,
Will this help? Plunker - Button XML Fragment
Open console to check the event parameters.
Regards,
Sai Vellanki.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
From the event i would like to know the source and other parameters.
Code:
fragment
<core:FragmentDefinition
xmlns="sap.m"
xmlns:core="sap.ui.core" >
<Button text = "pass event" press = "handlepress" />
</core:FragmentDefinition>
View:|
<core:View controllerName="DELETE.view.Master" xmlns:core="sap.ui.core" xmlns:l="sap.ui.layout" xmlns:table="sap.ui.table" xmlns="sap.m">
<Page id="productListPage" navButtonPress="onNavBack" showNavButton="true" title="{i18n>masterTitle}">
<content>
<core:Fragment fragmentName="DELETE.view.test" type="XML" />
</content>
</Page>
</core:View>
Controller:
handlepress: function (oEvent) {
console.log(oEvent) ;
},
Thx
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Robert
Maybe this will help
JS Bin - Collaborative JavaScript Debugging
All the events work the same way
Thanks
-D
post how do create a fragment
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Robert
Can you share what are the event parameters that you wish to have?
some example will do.
Thanks
-D
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.