Skip to content

Create Ui control SchemaBit #473

@itadapter

Description

@itadapter

Re: #429

We will use bits to create a hierarchical browser of schema objects.

Schema objects are canonical JSON:

{
	"data": {
		"handle": "#0",
		"name": "AccountHistory",
		"readonly": false,
		"attrs": [
			{
				"target": "yhic",
				"name": "AccountHistory",
				"description": "Account History",
				"immutable": false,
				"meta": "root{activateable=False associateEntityType=History }"
			}
		],
		"fields": [
			{
				"name": "Id",
				"order": 0,
				"getOnly": false,
				"type": "string",
				"attributes": [
					{
						"target": "yhic",
						"description": "Account History ID",
						"meta": "root{aggregatable=True aiPredictionField=False }",
						"backName": "Id",
						"required": true,
						"maxLen": 18
					},
					{
						"target": "*",
						"description": null,
						"meta": null
					}
				]
			},
			{
				"name": "IsDeleted",
				"order": 1,
				"getOnly": false,
				"type": "bool",
				"attributes": [
					{
						"target": "yhic",
						"description": "Deleted",
						"meta": "root{aggregatable=False aiPredictionField=False autoNumber=False byteLength=0 calculated=False calculatedFormula=null }",
						"backName": "IsDeleted",
						"required": true
					},
					{
						"target": "*",
						"description": null,
						"meta": null
					}
				]
			},
			{
				"name": "AccountId",
				"order": 2,
				"getOnly": false,
				"type": "string",
				"attributes": [
					{
						"target": "yhic",
						"description": "Account ID",
						"meta": "root{aggregatable=True aiPredictionField=False }",
						"backName": "AccountId",
						"required": true,
						"maxLen": 18
					},
					{
						"target": "*",
						"description": null,
						"meta": null
					}
				]
			},
			{
				"name": "CreatedById",
				"order": 3,
				"getOnly": false,
				"type": "string",
				"attributes": [
					{
						"target": "yhic",
						"description": "Created By ID",
						"meta": "root{aggregatable=True aiPredictionField=False autoNumber=False byteLength=18 calculated=False calculatedFormula=null cascadeDelete=False }",
						"backName": "CreatedById",
						"required": true,
						"maxLen": 18
					},
					{
						"target": "*",
						"description": null,
						"meta": null
					}
				]
			},
			{
				"name": "CreatedDate",
				"order": 4,
				"getOnly": false,
				"type": "date",
				"attributes": [
					{
						"target": "yhic",
						"description": "Created Date",
						"meta": "root{aggregatable=True aiPredictionField=False autoNumber=False byteLength=0 calculated=False calculatedFormula=null cascadeDelete=False caseSensitive=False }",
						"backName": "CreatedDate",
						"required": true
					},
					{
						"target": "*",
						"description": null,
						"meta": null
					}
				]
			},
			{
				"name": "Field",
				"order": 5,
				"getOnly": false,
				"type": "object",
				"attributes": [
					{
						"target": "yhic",
						"description": "Changed Field",
						"meta": "root{aggregatable=True aiPredictionField=False autoNumber=False byteLength=765 calculated=False calculatedFormula=null cascadeDelete=False caseSensitive=False }",
						"backName": "Field",
						"required": true,
						"maxLen": 255
					},
					{
						"target": "*",
						"description": null,
						"meta": null
					}
				]
			},
			{
				"name": "DataType",
				"order": 6,
				"getOnly": false,
				"type": "object",
				"attributes": [
					{
						"target": "yhic",
						"description": "Datatype",
						"meta": "root{aggregatable=True aiPredictionField=False autoNumber=False byteLength=120 calculated=False calculatedFormula=null cascadeDelete=False caseSensitive=False compoundFieldName=null }",
						"backName": "DataType",
						"required": true,
						"maxLen": 40
					},
					{
						"target": "*",
						"description": null,
						"meta": null
					}
				]
			},
			{
				"name": "OldValue",
				"order": 7,
				"getOnly": false,
				"type": "object",
				"attributes": [
					{
						"target": "yhic",
						"description": "Old Value",
						"meta": "root{aggregatable=False aiPredictionField=False }",
						"backName": "OldValue",
						"required": true,
						"maxLen": 255
					},
					{
						"target": "*",
						"description": null,
						"meta": null
					}
				]
			},
			{
				"name": "NewValue",
				"order": 8,
				"getOnly": false,
				"type": "object",
				"attributes": [
					{
						"target": "yhic",
						"description": "New Value",
						"meta": "root{aggregatable=False }",
						"backName": "NewValue",
						"required": true,
						"maxLen": 255
					},
					{
						"target": "*",
						"description": null,
						"meta": null
					}
				]
			}
		]
	},
	"OK": true
}

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions