首先在系统中注册弹性域,不管是键还是描述的.这一步都是必须的.
在JD中增加flex类型的item,其属性flex直接对系统中的弹性域进行关联
显示flex的关键代码
///////////////////////////////////////////////////////////////// OAKeyFlexBean flexBean = (OAKeyFlexBean)webBean.findIndexedChildRecursive("KeyFF"); flexBean.setStructureCode("FWK Item Flexfield"); // 在系统的键弹性域中找到了相应的注册 flexBean.setCCIDAttributeName("FwkitemId"); flexBean.mergeSegmentsWithParent(pageContext); // Now check to see if our "Results" VO has been queried so we can set the // region header text accordingly. Serializable[] params = { "ItemDetailsVO1" }; if ("Y".equals(am.invokeMethod("isVOQueried", params))) { flexBean.setRendered(true); // Render Key FF only after VO Queried } ////////////////////////////////////////////// |
也许还要看其他的文档..做更多的实践...才能够真正的理解