cancel
Showing results for 
Search instead for 
Did you mean: 

extend document-versions.js

n_pancholi87
Champ in-the-making
Champ in-the-making
Hi Im trying to extend the version history panel on document details page. For this im extending document-versions.js, versions.get.js and versions.json.ftl files. I am able to display my custom metadata on share UI. Have also included a custom link on click of which i need to set my custom properties as null.

Can someone pls guide me how to proceed for this? what changes do i need to make and where?

For what i understand, oRecord.getData is fetching the details of document in scope and makes it usable in js file. But im not sure how to set the values to this object or any other approach..

Many thanks!

3 REPLIES 3

n_pancholi87
Champ in-the-making
Champ in-the-making
hi can someone pls help on this? i need to know how to set my custom property to null in side the document-versions.js file itself. If not this, is there any other feasible approach i can follow?

zladuric
Champ on-the-rise
Champ on-the-rise
I'm not sure exactly, but if you're getting some results from oRecord.getData, it means you're already on the client side, the results are loaded. Now, why do you need to set this prop to null and where? Just on screen or save it back on the repo? If you just do it on screen, you can simply use null value instead the oRecord.getData() one.

Yes, i needed to set the value on user click. Got it done by creating and calling another webscript to do the job.. thanks for replying!