Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Concatenating 2 columns with TimeStamp in JavaScript Add Method

$
0
0

I have a Save button- when user clicks it i want a new value of concatenation of 2 columns with time stamp. Below is the image of the list. I want the Recipient column to be loaded with BillingDoc+Item+TimeStamp

Here is my code

function AddItem() {
    var ListItem = web.get_lists().getByTitle('TracingList');
    var itemCreationInfo = new SP.ListItemCreationInformation();
    this.oListItem = ListItem.addItem(itemCreationInfo);
    oListItem.set_item('Recepient', '??What Goes Here???');

    oListItem.update();

    context.load(oListItem);
    context.executeQueryAsync(ListQS, ListQF);

}
And i want to update 2 web parts at the same time with same information for 'n' number of items - it could be 1 item or 10 items

Any help is appreciated.



Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>