Create a new "Add" button on related list in Strategic Planning Workspace

india
Tera Guru

Dear Experts,
I am working on creating a new "Add" button on rm_story related list, where the related list is showing the records from sn_test_management_m2m_task_test 

But it is not working.

What i did?

1. Created a Declarative Action in sys_declarative_action_assignment.

india_0-1740041880355.png

2. Added the Payload as

india_1-1740041991235.png

{
"label": "Add",
"userGivenTable": "sn_test_management_m2m_task_test",
"table": "{{table}}",
"parentRecordSysId": "{{parentRecordSysId}}",
"parentFieldName": "task",
"referencedFieldName": "task",
"extensionPoint": "DEFAULT",
"view": "Default",
"columns": "",
"type": "o2m",
"hideSelectAll": false,
"relatedListName": "{{relatedListName}}"
}

3. Added Mapping as

india_2-1740042045159.png


{
"container": {
"fields": {
"container": {
"columns": {
"binding": {
"address": [
"columns"
]
},
"type": "EVENT_PAYLOAD_BINDING"
},
"extensionPoint": {
"binding": {
"address": [
"extensionPoint"
]
},
"type": "EVENT_PAYLOAD_BINDING"
},
"hideSelectAll": {
"binding": {
"address": [
"hideSelectAll"
]
},
"type": "EVENT_PAYLOAD_BINDING"
},
"label": {
"binding": {
"address": [
"label"
]
},
"type": "EVENT_PAYLOAD_BINDING"
},
"parentFieldName": {
"binding": {
"address": [
"parentFieldName"
]
},
"type": "EVENT_PAYLOAD_BINDING"
},
"parentRecordSysId": {
"binding": {
"address": [
"parentRecordSysId"
]
},
"type": "EVENT_PAYLOAD_BINDING"
},
"referencedFieldName": {
"binding": {
"address": [
"referencedFieldName"
]
},
"type": "EVENT_PAYLOAD_BINDING"
},
"relatedListName": {
"binding": {
"address": [
"relatedListName"
]
},
"type": "EVENT_PAYLOAD_BINDING"
},
"table": {
"binding": {
"address": [
"table"
]
},
"type": "EVENT_PAYLOAD_BINDING"
},
"type": {
"binding": {
"address": [
"type"
]
},
"type": "EVENT_PAYLOAD_BINDING"
},
"userGivenTable": {
"binding": {
"address": [
"userGivenTable"
]
},
"type": "EVENT_PAYLOAD_BINDING"
},
"view": {
"binding": {
"address": [
"view"
]
},
"type": "EVENT_PAYLOAD_BINDING"
}
},
"type": "MAP_CONTAINER"
},
"params": {
"type": "JSON_LITERAL",
"value": {}
},
"route": {
"type": "JSON_LITERAL",
"value": "mra"
},
"size": {
"type": "JSON_LITERAL",
"value": "lg"
}
},
"type": "MAP_CONTAINER"
}


But when I click on the "Add" button nothing is happening

india_3-1740042178271.png



I am novice in this, please suggest what i am doing wrong?


 

1 REPLY 1

Akshays14
Tera Expert

Hi

You can try by adding one more ux addon event mapping for record page that were used for your workspace.

Please find page definition from ui builder

Akshays14_0-1740049761186.png

 

Akshays14_2-1740050247844.png

 

 

 

If my answer helped you in any way, please then mark it as helpful or correct. This will help others finding a solution.