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
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" } } } } ]
Hello,
The solution provided by Stefano is a good one.
An alternative solution was discussed in this post: https://community.creatio.com/questions/recordinactive-checkbox-missing-freedom, and you can use the approach from there.
However, we still recommend adding the required column directly via page metadata, as described above.
We already have a backlog task to address this issue in future versions of the application.
Thank you for reaching out!
Stefano Bassoli,
Hello Stefano,
I just followed your advice and it worked well, thanks!
However, is it possible to select the field in the conditions part of the business rules? It doesn't show up there either.
Thanks,
Robert