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…

     

如果這文章對你有幫助,請掃左上角微信支付-支付寶,給於打賞,以助博客運營