question: private static void reply_Login2_Role ( body body , MobileSessionCtx wsc , String roleId ) { String form = null ; Login login = new Login ( wsc . ctx ) ; KeyNamePair [ ] clients = login . getClients ( new KeyNamePair ( Integer . parseInt ( roleId ) , roleId ) ) ; StringBuffer script = new StringBuffer ( "{\"options\":[" ) ; for ( int i = 0 ; i < clients . length ; i ++ ) { if ( i > 0 ) script . append ( "," ) ; KeyNamePair p = clients [ i ] ; script . append ( "{\"text\":\"" ) ; script . append ( p . getName ( ) ) ; script . append ( "\",\"value\":\"" ) ; script . append ( p . getKey ( ) ) ; script . append ( "\"}); " ) ; } script . append ( "]}" ) ; }
target:  Login 2nd page Response - Field Role. <p> fill Client, Org, Warehouse