Skip to content

Commit 8cbd20d

Browse files
committed
OpenUI5 Documentation Update 21.06.2024
1 parent fb7884b commit 8cbd20d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/Best_Practices_for_Developers_28fcd55.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ In the following we'll focus on crucial aspects of app development, specifically
210210
When creating instances of OpenUI5 controls programmatically \(i.e. not declaratively via XML View or Fragment\), then:
211211
212212
- Don't use the global name of a control. Require the corresponding module dependency instead.
213-
- Use `createId` to ensure there are no ID collisions, e.g. `View.createId` to prefix the control's ID with the view ID.
213+
- Use `createId` to ensure there are no ID collisions, e.g. [`sap.ui.core.mvc.View#createId`](https://sdk.openui5.org/api/sap.ui.core.mvc.View%23methods/createId) to prefix the control's ID with the view ID.
214214

215215
**Additional Information:**
216216

@@ -323,14 +323,14 @@ Take care of destroying programatically created models to prevent memory leaks.
323323

324324
**OData V2 Model**
325325

326-
- [`v2.ODataModel#createEntry`](https://sdk.openui5.org/api/sap.ui.model.odata.v2.ODataModel%23methods/createEntry) : Defining an array for the `mParameters.properties` is deprecated since OpenUI5 1.120. Pass the initial values as an object instead.
326+
- [`v2.ODataModel#createEntry`](https://sdk.openui5.org/api/sap.ui.model.odata.v2.ODataModel%23methods/createEntry): Defining an array for the `mParameters.properties` is deprecated since OpenUI5 1.120. Pass the initial values as an object instead.
327327

328-
- [`v2.ODataModel#refreshSecurityToken`](https://sdk.openui5.org/api/sap.ui.model.odata.v2.ODataModel%23methods/refreshSecurityToken) : Pass `true` for the `bAsync` parameter explicitly as its default value is `false`.
328+
- [`v2.ODataModel#refreshSecurityToken`](https://sdk.openui5.org/api/sap.ui.model.odata.v2.ODataModel%23methods/refreshSecurityToken): Pass `true` for the `bAsync` parameter explicitly as its default value is `false`.
329329

330330

331331
**JSON Model**
332332

333-
[`JSONModel#loadData`](https://sdk.openui5.org/api/sap.ui.model.json.JSONModel%23methods/loadData) : Do **not** pass `false` to the `bAsync` and `bCache` parameters, which are deprecated.
333+
[`JSONModel#loadData`](https://sdk.openui5.org/api/sap.ui.model.json.JSONModel%23methods/loadData): Do **not** pass `false` to the `bAsync` and `bCache` parameters, which are deprecated.
334334

335335
**Additional Information:**
336336

@@ -364,7 +364,7 @@ Implement strict error handling to address critical issues.
364364

365365
- Ensure a dependency on the renderer or embed it within the control class.
366366

367-
- Migrate to the rendering `apiVersion 2` or `apiVersion 4`.For more information, see the [API Reference](https://sdk.openui5.org/api/sap.ui.core.RenderManager%23overview).
367+
- Migrate to the rendering `apiVersion 2` or `apiVersion 4`. For more information, see the [API Reference](https://sdk.openui5.org/api/sap.ui.core.RenderManager%23overview).
368368

369369
- When utilizing [`RenderManager#icon`](https://sdk.openui5.org/api/sap.ui.core.RenderManager%23methods/icon) during rendering, include a dependency to `sap/ui/core/IconPool` in your code.
370370

@@ -390,7 +390,7 @@ Implement strict error handling to address critical issues.
390390

391391
- Don't use the global namespace of the library to add types. Use the return value of `Lib.init` instead to add them.
392392

393-
- Migrate to the library `apiVersion 2`.For more information, see the [API Reference](https://sdk.openui5.org/api/sap.ui.core.Lib%23methods/sap.ui.core.Lib.init).
393+
- Migrate to the library `apiVersion 2`. For more information, see the [API Reference](https://sdk.openui5.org/api/sap.ui.core.Lib%23methods/sap.ui.core.Lib.init).
394394

395395
- Use [`sap.ui.base.DataType.registerEnum`](https://sdk.openui5.org/api/sap.ui.base.DataType%23methods/sap.ui.base.DataType.registerEnum) to register enums that shall be usable as a type of control properties.
396396

0 commit comments

Comments
 (0)