【问题标题】:Accessing people code variable in HTML Area访问 HTML 区域中的人员代码变量
【发布时间】:2016-02-25 11:30:26
【问题描述】:

有没有什么方法可以访问 HTML AREA 中声明为静态(使用常量)的人员代码变量。 我们可以动态访问相同的东西(字段声明)。

【问题讨论】:

    标签: html peoplesoft


    【解决方案1】:

    您可以像这个 peoplebooks 示例一样将变量作为绑定传递,在您将调用以呈现 html 的 peoplecode 上:

    例子

    以下是HTML定义TEST_HTML中的文字:

    This is a %BIND(:1) and %BIND(:2) test.
    

    以下是PeopleCode程序:

    Local Field &HTMLfield;
    &string = GetHTMLText(HTML.TEST_HTML, "good", "simple");  
    &HTMLfield = (Record.CHART_DATA).HTMLAREA;  
    &HTMLfield.Value = &string;
    

    &string 的输出(显示在 HTML 区域控件中)是:

    This is a good and simple test.

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-12-10
      • 1970-01-01
      • 1970-01-01
      • 2012-04-20
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多