sp-editable-field usage

raprohaska
Kilo Guru

I'm new to Service Portal and Angular. The documentation around advanced features provided via the Service Portal are difficult to find documentation on. I'm mimicking the use of sp-editable-field from the User Profile widget. I have my widget loading data and showing the editable popup for a field on the incident table. When I click save though, nothing is being updated. Is there client script that goes along with sp-editable-field to enable the update or is this an issue with the HTML?

<strong class="pad-right">${Short Description}</strong><sp-editable-field editable-by-user="true" table="incident" table-id="selectedIncident.sys_id" field-model="selectedIncident.sysIncidentModel.short_description"></sp-editable-field>

You can see I have set my table to incident. I have an in scope variable called selectedIncident. I know selectedIncident is correct because its values are being loaded into the panel. The popup includes the original value. I change it, click save, and it stays the previous value.

Beyond this specific question about sp-editable-field, is there a set of documentation around all the available "sp-" Angular functionality so that we know what is available and how to use it?
find_real_file.png  

8 REPLIES 8

This is not working. It is not saving.

@Supriya6 @raprohaska 

same issue, what if I have array of information how to make each and field editable. 

What I mean to say is: 

my obj=[{incNo: '1234', incdesc: 'desc123', state:'new'},

{incNo: '1234', incdesc: 'desc123', state:'new'},

{incNo: '1234', incdesc: 'desc123', state:'new'}

]

how to make only state editable here?

Supriya6
Kilo Contributor

One year later, I am in the same situation as you were in. Did you find a solution for this? If so, please share. I am looking to edit description and it is not saving.

Dinesh62
Tera Contributor

<sp-editable-field-customized should work