步骤插件开发:如何在textVar()输入中列出自定义变量?(Step Plugin Development : How to list custom variables inside textVar

编程入门 行业动态 更新时间:2024-10-27 12:28:41
步骤插件开发:如何在textVar()输入中列出自定义变量?(Step Plugin Development : How to list custom variables inside textVar() input?)

我正在尝试使用Pentaho开发一个step plugin ,

我使用textVar()输入列出变量。

问题是没有列出从上一步创建的自定义变量,所以我尝试在我的代码中使用environmentSubstitute(${var})来获取变量的值,并且没有任何影响!

所以请引导我以正确的方式列出使用前面步骤创建的自定义变量,以便在我的自定义步骤插件中的textVar()输入中列出它。

I'm trying to develop a step plugin using Pentaho,

I used textVar() Input for listing the variables.

the problem is that the custom variables that created from the previous step aren't listed, so i tried to used environmentSubstitute(${var}) inside my code for fetching the variable's value, and no thing effected !.

so please guide me to the right way for listing the custom variables that created using the previous steps , for listing it inside textVar() input inside my custom step plugin.

最满意答案

经过多天的测试,我成功地使用以下列表列出了以前的字段名称:

Combo wField = new Combo(); String[] inputFields = transMeta.getPrevStepFields(stepname).getFieldNames(); Arrays.sort(inputFields); for (String fName : inputFields) { wField.add(fName); }

就这样 :)

After many days of testing , I succeeded of listing previous field names using the follwoing :

Combo wField = new Combo(); String[] inputFields = transMeta.getPrevStepFields(stepname).getFieldNames(); Arrays.sort(inputFields); for (String fName : inputFields) { wField.add(fName); }

That's all :)

更多推荐

本文发布于:2023-07-29 20:17:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1319454.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:自定义   变量   插件   步骤   如何在

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!