Skip to Content

Testing Validation

Hello i have an input

<Input
										value="{
										path: 'helloPanelcito>/',
										type: 'sap.ui.model.type.Float',
										formatOptions: {minFractionDigits: 2},
										constraints: {maximum : 3001}
									}"
										description="Holi {helloPanelcito>/recipient/name}"
										valueLiveUpdate="false"
										type="text"
										fieldWidth="20%"
										width="60%"
									/>

and 'helloPanelcito' is declared at manifest.json

			"helloPanelcito": {
				"type": "sap.ui.model.json.JSONModel",
				"uri": "model/HelloPanel.json"
			},

and model/HelloPanel.json is this:

{ 
	"recipient" : {
		"name" : "World"
	}
}

so i already declared in my manifest.json bellow sap.ui5 "handleValidation": true,

But my question is what is the function of the path (path: 'helloPanelcito>/') if is doing nothing to made a validation in a input it is mandatory to put a destination (path) ??? even if is empty ?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers