From a0aa525ccfc399668f061a750c4e84ba2bf18c45 Mon Sep 17 00:00:00 2001 From: Sai Raj <39055732+sairajzero@users.noreply.github.com> Date: Wed, 26 Feb 2020 17:08:45 +0530 Subject: [PATCH] adding requestSubAdminList requestSubAdminList can be used to request the subAdmin list of the app --- app/webAppClient.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/app/webAppClient.html b/app/webAppClient.html index 5c46a24..90bc794 100644 --- a/app/webAppClient.html +++ b/app/webAppClient.html @@ -101,6 +101,18 @@ reject(result[1]) }).catch(error => reject(error)) }) + }, + + requestSubAdminList: function(){ + return new Promise((resolve, reject) => { + this.util.requestData([floGlobals.application, 'subAdmins']).then( + result => { + if (result[0]) + resolve(result[1]) + else + reject(result[1]) + }).catch(error => reject(error)) + }) } }