Skip to Content
0
Jul 21, 2020 at 05:46 PM

Passing data between views

58 Views

Hi

In manifest.json i have defines a Model:

			"transModel": {
				"type": "sap.ui.model.json.JSONModel",
				"settings": {},
				"preload": true

In main view i have bound an DateTimePicker to this model:

		        <DateTimePicker id="DateTimeFr" value="{transModel>/DateTimeFr}" displayFormat="short" change="handleTimePicker" minutesStep="15" width="20%"/>	

Now i go to detail view and want to pass the value from Main to detail, so i do like this:

                <DateTimePicker id="DateTimeFr" displayFormat="short" change="handleChange" minutesStep="15" editable="false" value="{transModel>/DateTimeFr}" />	

But in detail View data is empty. What am i missing in order to pass the value from Main to Detail?