BPM技术文档5

 

2. 动态设置UI元素

如下例:

public
void wdDoModifyView(com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)

{


//@@begin wdDoModifyView

        // set requester name and county

        try {

            IWDClientUser user = WDClientUser.getCurrentUser();

            StringBuffer sb = new StringBuffer(“”);

            if (user.getLastName() != null)

                sb.append(user.getLastName());

            if (sb.length() > 0 && user.getFirstName() != null) {

                sb.append(“, “);

            }

            if (user.getFirstName() != null)

                sb.append(user.getFirstName());

 

            String country = “”;

            if (user.getLocale().getDisplayCountry() != null)

                country = user.getLocale().getDisplayCountry();

            wdContext.currentRequesterElement().setRequesterName(sb.toString());

            wdContext.currentRequesterElement().setRequesterCountry(country);

        } catch (WDUMException e) {

            // do nothing

        }


//@@end

}

 

 

 

4.    设置动态action

 

 

 

5.    action的参数mapping

以下文章点击率最高

Loading…

     

如果这文章对你有帮助,请扫左上角微信支付-支付宝,给于打赏,以助博客运营

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注