English
editObject
About 129 wordsLess than 1 minute
2025-04-28
This method allows developers to edit a business object.
FxUI.objectUIAction.editObject(objectApiName, objectDataId, options)Parameters
| Parameter | Description | Type | Optional Values | Default |
|---|---|---|---|---|
| objectApiName | Business object apiName (required) | string | — | — |
| objectDataId | Data ID (required) | string | — | — |
| options | Additional parameters required by the edit form | object | — | — |
Description of options (additional parameters required by the edit form)
| Parameter | Description | Type | Optional Values | Default |
|---|---|---|---|---|
| mainObjectData | Pre-filled data for the main object | object | — | — |
| detailObjectDatas | Pre-filled data for detail objects. In edit scenarios, this usually does not need to be passed externally because it is obtained internally | object | — | — |
Code Example
This method returns a Promise object, as shown below:
import FxUI from 'fxui-mobile';
FxUI.objectUIAction.editObject('AccountObj', '623c3b9d4221fd00010c7971').then(res => {
// todo what you want
}).catch(err => {
// handle error
})