Mattersphere Developers Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Go down
avatar
Heather@FootAnstey
Posts : 57
Join date : 2018-12-19

Writing values back to the Search List source Empty Writing values back to the Search List source

Sat 8 Feb 2020 - 10:16
Original Post: GaryC 01/02/2012 11:14:23

"Whats the most efficient way of writing values to multiple selected search list items?
Essentially I want to be able to select one or more items on the search list and click a button to timestamp each one.
In the past I've produced a stored procedure to handle the writing of the data. Equally I could fire a form for each item to automatically populate the date but both seem overkill in this instance.
Can a search list script not write the values back for each selected search list item? 'Something along the lines of:

foreach (FWBS.Common.KeyValueCollection sr in SearchControl.SelectedItems)
{
sr[“date”].Value = “2012-02-01 12:00:00”;
}
SearchControl.UpdateItem();

"
Back to top
Permissions in this forum:
You cannot reply to topics in this forum