DispForm.aspx?ID =要重定向到特定项ID的变量问题 [英] DispForm.aspx?ID=variable question to redirect to a specific item ID
问题描述
你好,
我想这可能是因为我没有格式良好的javascript。
I think this may be that I don't have well formed javascript.
我将Item ID存储在名为itemID的变量中。
I'm storing the Item ID in a variable called itemID.
点击newform.aspx上的Save按钮后,我想做window.location到dispform.aspx,用于存储在变量中的特定商品ID。 这是我当前对window.location行的迭代:
When the Save button on newform.aspx is clicked, i want to do a window.location to the dispform.aspx for the specific item ID stored in the variable. Here's my current iteration of the window.location line:
window.location =" /sites/Fred/Barney/_layouts/15/start.aspx#/Lists/Pebbles/DispForm。 aspx?ID ="('itemID');
window.location="/sites/Fred/Barney/_layouts/15/start.aspx#/Lists/Pebbles/DispForm.aspx?ID="(' itemID');
我尝试了很多东西而且我没有正确的表格。
I've tried a whole bunch of things and I don't have the right form.
感谢您的帮助。
谢谢! Patti N。
Thanks! Patti N.
推荐答案
itemID是你脚本中的一个变量吗?
Is itemID a variable in your script?
window.location="/sites/Fred/Barney/_layouts/15/start.aspx#/Lists/Pebbles/DispForm.aspx?ID=" + itemID;
这篇关于DispForm.aspx?ID =要重定向到特定项ID的变量问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!