Hello,
I've set 'Record deactivation' for my object. But I don't see any field for that in Data model attributes on my Freedom UI page.
How can I add this field 'Inactive' to Freedom UI page?
Thank you!
Like
1 comments
22:05 Feb 14, 2025
Hello Vladimir,
I've the same question and I followed these steps for Contact section:
1. Create a replacement for the Freedom client schema. Please create a new client module, and for the URL in the browser, change schemaType=9
for example like that: .../0/ClientApp/#/ClientUnitSchemaDesigner/new?packageId=db5d44a0-881e-ba1b-3396-a2dfae3fecee&packageName=test_contacts&schemaType=9
2. Set Parent object - Contacts form page (Contacts_FormPage)
3. Change del module script
viewConfigDiff: /**SCHEMA_VIEW_CONFIG_DIFF*/[ { "operation": "insert", "name": "Checkbox_Custom", "values": { "layoutConfig": { "column": 1, "row": 2, "colSpan": 1, "rowSpan": 1 }, "type": "crt.Checkbox", "label": "$Resources.Strings.PDS_RecordInactive_Custom", "labelPosition": "auto", "control": "$PDS_RecordInactive_Custom" }, "parentName": "SideAreaProfileContainer", "propertyName": "items", "index": 1 } ]/**SCHEMA_VIEW_CONFIG_DIFF*/, viewModelConfigDiff: /**SCHEMA_VIEW_MODEL_CONFIG_DIFF*/[ { "operation": "merge", "path": [ "attributes" ], "values": { "PDS_RecordInactive_Custom": { "modelConfig": { "path": "PDS.RecordInactive" } } } } ]
Show all comments