Isaac
asked on
SharePoint display modal blank
Hi All,
Using SharePoint 2010
My code below sort of works. It brings up the form in the modal window but all the fields are always blank with no data.
Here's a piece of code
Using SharePoint 2010
My code below sort of works. It brings up the form in the modal window but all the fields are always blank with no data.
Here's a piece of code
function onQuerySucceeded(sender, args) {
var listItemInfo = '';
var listItemEnumerator = collListItem.getEnumerator();
while (listItemEnumerator.moveNext()) {
var oListItem = listItemEnumerator.get_current();
htmlTbl += "<tr><td><a href='#' onclick=OpenEditDialog("+oListItem.get_item('ID')+","+ oListItem.get_item('ter')+")>" + oListItem.get_item('Title') + "</a></td>"+
"<td>" + oListItem.get_item('Project_x0020_Number') + "</td>" +
"<td>" + oListItem.get_item('Project_x0020_Scope') + "</td>" +
....
function OpenEditDialog(item_title, item_id){
var options = {
url:"/my/personal/test/paProjects/Lists/Project%20Module%20New/Item/displayifs.aspx?List=8ce29c8c%2Deb89%2D4a0d%2D83f2%2D93559faee67c&ID=" + item_id+"ter="+item_title+",
width: 500,
height: 300
};
SP.UI.ModalDialog.showModalDialog(options);
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER