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("]}");
}

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 ( "]}" ) ; }
login 2nd page response - field role . < p > fill client , org , warehouse
