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…


发表评论

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