ADF如何将列名转换为属性名称 [英] ADF how to convert column name to attribute anme

查看:66
本文介绍了ADF如何将列名转换为属性名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 ADF 的新手,现在我像 USER_NAME 一样得到表的列名,在 ADF EO VO 中属性名会转换成UserName这样的另一种模式,但是属性名可以改成用户想要的任何名字,那么有没有什么方法可以根据列名获取VO的属性名?

I am new to ADF ,now I get the column Name of table just like USER_NAME ,in the ADF EO VO the attibute name will be converted to another pattern like UserName,but the attribute name can change to any name the user want ,So is there any method which can get the attribute name of VO according to the column name?

推荐答案

您转到 VO.xml 属性并设置提示.导航到概览部分并选择属性并转到编辑.设置一个提示,在这种情况下将是标签.在用户界面上,您将访问它:

You go to the VO.xml property and set hints. Navigate to the overview section and select the attribute and goto edit. Set a hint which in this case would be the label. On the ui you would access it as :

label=#{bindings.sampleAttribute.hints.label}

这篇关于ADF如何将列名转换为属性名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆