【问题标题】:SDL Tridion 2009 SP1 Custom URL get current field valueSDL Tridion 2009 SP1 自定义 URL 获取当前字段值
【发布时间】:2013-01-04 11:52:15
【问题描述】:

我正在连接到包含以下代码的组件字段上的自定义 URL

        function SaveAndClose()
        {
            var newValue = new Array();
            newValue[0] = "/feed.ashx?type="+ $("#Type").val() + "&user="+ $("#User").val();
            window.returnValue = newValue;
            self.close();
        }
       document.write("Current Value:");
       document.write(window.dialogArguments.fieldValue);

SaveAndClose 函数完美运行并将值发送回组件,但 window.dialogArguments.fieldValue 总是返回 undefined。

【问题讨论】:

    标签: tridion tridion2009


    【解决方案1】:

    您需要阅读 dialogArguments 上的customArguments 属性:

    document.write(window.dialogArguments.customArguments.fieldValue);
    

    【讨论】:

    • 请在文档中添加注释,以便技术作者可以修复它。
    • 很抱歉听到这个消息 - 希望您没有在这上面浪费太多时间!我会请您对有错误示例的页面发表评论,但这是在文档在线之前...
    猜你喜欢
    • 2012-06-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-05-01
    • 2012-05-05
    相关资源
    最近更新 更多