Is it possible to have the ability to launch the edit modal from a wiki page using the same syntax used for opening an Add Item modal from a wiki? Passing the item ID in the json object?
Is it possible to have the ability to launch the edit modal from a wiki page using the same syntax used for opening an Add Item modal from a wiki? Passing the item ID in the json object?
David Corrin, Ryan McDonough - The attached should help you out. So in David's example, we would call:
CommunityExamples.Sheet.editItem(925710, 6139, 22108, 26413);
;(function($, window, undefined) {
window.CommunityExamples = window.CommunityExamples || {};
window.CommunityExamples.Sheet = {
editItem: function(itemID, sheetID, siteID, sheetViewID) {
if (window.AddSheetItemCollection) {
window.sheetHomePageVar = $.extend(true, window.sheetHomePageVar, {
sheetID: sheetID,
siteID: siteID,
isDraftView: 0
});
window.AddSheetItemCollection.editItem(itemID, sheetID, siteID, sheetViewID);
}
}
};
})(window.jQuery.noConflict(), window);
David Corrin, Ryan McDonough - The attached should help you out. So in David's example, we would call:
CommunityExamples.Sheet.editItem(925710, 6139, 22108, 26413);
;(function($, window, undefined) {
window.CommunityExamples = window.CommunityExamples || {};
window.CommunityExamples.Sheet = {
editItem: function(itemID, sheetID, siteID, sheetViewID) {
if (window.AddSheetItemCollection) {
window.sheetHomePageVar = $.extend(true, window.sheetHomePageVar, {
sheetID: sheetID,
siteID: siteID,
isDraftView: 0
});
window.AddSheetItemCollection.editItem(itemID, sheetID, siteID, sheetViewID);
}
}
};
})(window.jQuery.noConflict(), window);