Please consider registering
guest

Log In Members

Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
How to write the remaining code to display selected items from a list
August 3, 2012
5:44 am
New Member
Forum Posts: 1
Member Since:
August 3, 2012
Offline

 I have a code that get the selected list item object. How can i display the full row with all field values. Please help..

        var context = SP.ClientContext.get_current();
        var web = context.get_web();
        context.load(web);
        var currentlibGuid = SP.ListOperation.Selection.getSelectedList();
        var currentLib = web.get_lists().getById(currentlibGuid);
        var selectedItems = SP.ListOperation.Selection.getSelectedItems(context);
        var count = CountDictionary(selectedItems);
        alert(count);
        for (var i in selectedItems) {
            var currentItem = currentLib.getItemById(selectedItems[i].id);
            context.load(currentItem);
        }

August 11, 2012
7:39 am
Mihr
Guest

Where you want to display!! in console window or in grid in sharepoint site. Where you want to show the result.

Forum Timezone: UTC 0

Most Users Ever Online: 91

Currently Online:
26 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Member Stats:

Guest Posters: 1113

Members: 16881

Moderators: 0

Admins: 1

Forum Stats:

Groups: 3

Forums: 10

Topics: 1141

Posts: 2551

Administrators: Learning SharePoint (212)