Can anyone tell me how to update many assets at once? Maybe a BatchRequest in the JS API?
Assume that I have an asset listing which is presenting the metadata fields from many Data Record assets. I want a member of staff to update a field from all the listed assets. The new data is specific to each asset so it can't be cascaded from a parent asset. Import won't work either as I don't have structured data to work from.
Can this be done through the Admin Interface, Easy Edit Suite or just within a standard page?
I dont know any way through the admin interface or EES, but that doesnt mean it cant be done, and someone else might enlighten you. I am reasonably proficient with javascript and the Squiz API so personally speaking thats the route I would go. I did something vaguely similar not too long ago. If you make your asset listing output nicely structured HTML so you put the asset number in the id of a div / span with a specific class, for example, then a trivial bit of jquery would nicely loop through them all and fire off the relevant calls in Squiz.
Remember metadata is case sensitive when you need to reference the field names in code! Wasted hours on that when I first tried it.
I have done this with triggers. Sometimes doing it that way is easier than using the JS API.
Build an asset listing that lists your assets, with input fields for the attributes you want updated. Then, setup a trigger, with the asset accessed action and some conditions. Then just have the user fill in the fields, somewhere referencing the URL of that asset. Then, have your submit button run some JS to loop through each field, POSTing that data to its URL.