changing names of multiple columns
How do i change multiple column names at once -ideally using find and replace as I spend a great deal of time changing col names ?
-
Official comment
The best way to accomplish this would be using the REST API.
Searching through the files, you'll find where you can manually adjust the titles, then do it in bulk with find and replace.
All of the documentation for this is available here:
https://documentation.datameer.com/documentation/display/DAS40/Accessing+Datameer+Using+the+REST+API
Check out the workbook section about reading and updating workbooks.
Hope this helps!
Comment actions -
The REST API in version 5 is not updating like expected:
Steps that I take per the API documentation
1. Download the Workbook's JSON configuration
curl -u username:password -X GET 'http://ourdminstance.com:80/rest/workbook/1313' -o /Users/ovalles/Documents/JSON/IBWorksheet.json;
2. Edit the JSON file, in this case added a new column style in order to process a column name change.
3. Put the JSON file back on the server successfully
curl -u username:password -X PUT -d @/Users/ovalles/Documents/JSON/IBWorksheet.json 'http://ourdminstance.com:80/rest/workbook/1313'
Unfortunately, the name is still the same. I updated the first few columns using the TAB method mentioned. Seems to be the most efficient way at the moment.
Please sign in to leave a comment.
Comments
8 comments