Restore Backup of Page

Good Day,

I have had a failure on one of my pages, is there a fix or can a restoral of a backup be done. The page was last working at 10:00 Tuesday 20th of September gmt.

Can not render page due to error: "Load timeout for modules: pages/Maintenance_Hub/components/c8acff12bc7e33bf5d27bac45a063c37/bundle.js,pages/Maintenance_Hub/components/3f49cd0c3c5eda2acce4b50f55ab5b1b/bundle.js,pages

your assistance is appreciated.

Kind Regards,
Raymond Woodley

Page is Maintenance_Hub

Hello @Raymond_Woodley

Can you please check if there are the following files in the Files service

  • /ui-builder/containers/{YOUR_CONTAINER_NAME}/pages/Maintenance_Hub/components/c8acff12bc7e33bf5d27bac45a063c37/bundle.js,
  • /ui-builder/containers/{YOUR_CONTAINER_NAME}/pages/Maintenance_Hub/components/3f49cd0c3c5eda2acce4b50f55ab5b1b/bundle.js,pages

Hi @vladimir-upirov

Yes they are present the actual list of components was a lot longer only listed 2 too give an idea of the issue. Yet all are present in the file service.


Kind Regards,
Raymond

ok, please provide your appId if the issue still appears for you.
Seems like it wasn’t loaded for a certain time and it failed by timeout, perhaps it was a network issue

Hi @vladimir-upirov

Problem is still persisting.

Can not render page due to error: “Load timeout for modules: pages/Maintenance_Hub/components/641c2be9cef1d189cf3643b6c4af4c7c/bundle.js,pages/Maintenance_Hub/components/1552b77b7a722a438f84554d09e1275a/bundle.js,pages/Maintenance_Hub/components/df8a0ec4cc8b0bc3d8b7444e89235d58/bundle.js,pages/Maintenance_Hub/components/930c23b74a6131974b7c4194a1883328/bundle.js,pages/Maintenance_Hub/components/7bc64c7b849e0e2b749f9262f42a5652/bundle.js,pages/Maintenance_Hub/components/a1dcd5b6de93d525e47cc7219c4fe9db/bundle.js,pages/Maintenance_Hub/components/15ccd93ffebd439a1a39824a9bb751e8/bundle.js,pages/Maintenance_Hub/components/b88d2a08debd6bfb45e9f8ea86858c3c/bundle.js,pages/Maintenance_Hub/components/85699cfc93336b044f023f84483b7091/bundle.js,pages/Maintenance_Hub/components/ecabbaf5d7dd66ef38b2852d6c58f315/bundle.js,pages/Maintenance_Hub/components/01c9f14ff185a7a40b4b390b35c9fa38/bundle.js,pages/Maintenance_Hub/components/b2c4a4f3f7b2799e45d6e42ded1fba18/bundle.js,pages/Maintenance_Hub/components/5c3b2bd836a5b54a519f9f52d0559d95/bundle.js,pages/Maintenance_Hub/components/0f265fe6b4773996d2516d85cd3267b7/bundle.js,pages/Maintenance_Hub/components/70680aa8f755f2c68331c9c635a9c07d/bundle.js,pages/Maintenance_Hub/components/d3ccc09c191516032d4458d4356c55b9/bundle.js,pages/Maintenance_Hub/components/2842c9d116ed2ff8e13b0424f95ffa88/bundle.js,pages/Maintenance_Hub/components/34aef95a5a9ce068f8197349f19d5d1c/bundle.js,pages/Maintenance_Hub/components/16186f3702c6f8f52c55dd79397e7503/bundle.js,pages/Maintenance_Hub/components/025dc8a16dc13f358ffd47c520a7d89f/bundle.js,pages/Maintenance_Hub/components/ed150fcc17871b84bbc5be3e8b2f6a49/bundle.js,pages/Maintenance_Hub/components/1256861ae7cb137d944a10cd8d3aa7cc/bundle.js,pages/Maintenance_Hub/components/dc721d36f5244a0e09153a52fcea715d/bundle.js,pages/Maintenance_Hub/components/d3b5326969adcf43616478066bfd58ce/bundle.js,pages/Maintenance_Hub/components/2bb898cc316b560d9d05e486e3e4c225/bundle.js Common Errors

Application ID: CB411F83-2292-179C-FF6B-D25974153100

Thank You

ok, looking into it

I found the reason, it fails by timeout because the page loads lots of files ~730 files, there is a timeout = 60 and this is too small

We will fix it today, as a temp workaround, I can propose you change the config manually in the file /ui-builder/containers/default/main.js, just change 60 to let’s say 180 seconds.

But each time when you open the UI-Builder container the value will be overridden by the system to 60 and you will need to change it again.

Thanks @vladimir-upirov appreciate your help

the issue has been fixed and released, now it sets the value as 180 automatically, so you do not change it manually anymore

Goodday all,

Logic on one of my pages is no longer there,

APP ID: CB411F83-2292-179C-FF6B-D25974153100

The Home Page is the page where a backup is required last date i can recall it working was the 20th of August.

Your assistance is appreciated.

Kind Regards,
Raymond

Hi @Raymond_Woodley

What exactly logic is missed?
Have you tried to restore it by using the Codeless Changelog?

Hi @Vlad i had an extensive amount of logic in the on page enter handler, i have not worked on this area of the app in quite some time however needed it today, checked the change log and there was nothing there.

Thank you for your help.

we can see you have removed the “On Page Enter” handler 10/01/2022 12:51:09 and then create a new one 10/01/2022 12:51:29

so it seems like that’s the reason why you do not see any snapshots in the changelog

Thanks Vlad,

Not sure how that happened, Would you be able to restore the original.

Kind Regards,
Raymond

it requires an administrative fee to restore the file system. If you’d like us to proceed, please contact us sales@backendless.com to get a price for the restoration, the price depends on the time of our engineer. We can bill it to the credit card registered with the app.

CAn you provide me with just the snapshot if possible so i can re-create, dont have any available funds.

unfortunately we can’t, because to see that logic we have to restore the backup

Thanks @vladimir-upirov I appreciate your help regardless. This leads me on to another question then can i convert the JSON Logic i have to XML that will be compatible with the UI Builder.

define(‘./pages/Home/components/page/bundle.js’, [], () => ({
/* content /
/
handler:onEnter */
async ‘onEnter’ {
var Active_Truck, Next_Load, item, Current_Truck, Current_Targets, object, Current_Driver, Last_3_Lt, Last_3_MD, Last_Mileage_Of_This_Truck, LiveUser, Current_User;

function generateUUID() {
const chr4 = () => Math.random().toString(16).slice(-4);
const chr8 = () => ${chr4()}${chr4()};
const short = () => chr8();
const long = () => ${chr8()}-${chr4()}-${chr4()}-${chr4()}-${chr8()}${chr4()};

return { short, long, }
}

function getObjectProperty(object, propPath) {
if (typeof propPath !== ‘string’ || object[propPath] !== undefined) {
return object[propPath]
}

const propsNamesList = propPath.split(‘.’)

let result = object

for (let i = 0; i < propsNamesList.length; i++) {
if (!result || result[propsNamesList[i]] === undefined) {
return
}

result = result[propsNamesList[i]]

}

return result
}

___arguments.context.appData[‘Push_ID’] = (generateUUID().long());
___arguments.context.pageData[‘Current_User’] = (await BackendlessUI.Functions.Custom’fn_5a16854754a90b444dc8e7a6d99bb9e3’);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘b4f6b83bb7c5e5192e3b209be681abb4’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘02c145b9ce792c5ff8b850e9bf7bfd4d’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘016a464b6458cb1718cdb8bb22143bcc’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘61afc62fd67d4c6e6c482533ab87e193’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘09856cb1e0e3377d004ebe96850941f4’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘02c145b9ce792c5ff8b850e9bf7bfd4d’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘6851de2659d546c91cad0cf50f8df812’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘97d9b1b980cde38105c6358ff1767355’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘5a12309e74a3c79eddb8d0ec4d8b9787’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘c797679c6aecc33b668aed8e0dfb1e51’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘c045dae556f37e5e8509a0c96c027057’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘ac96599b2c6296b901f3f523b1a2543f’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘01d4cb6c47e6b82be389dd6929265acf’, true);
Current_User = (await BackendlessUI.Functions.Custom’fn_5a16854754a90b444dc8e7a6d99bb9e3’);
___arguments.context.pageData[‘User_Level’] = (getObjectProperty((await Backendless.UserService.getCurrentUser(false)), ‘User_level’));
___arguments.context.pageData[‘Username’] = (getObjectProperty((await Backendless.UserService.getCurrentUser(false)), ‘displayName’));
___arguments.context.pageData[‘UserDriver’] = (getObjectProperty((await Backendless.UserService.getCurrentUser(false)), ‘displayName’));
LiveUser = (getObjectProperty((await Backendless.UserService.getCurrentUser(false)), ‘objectId’));
if ((getObjectProperty(___arguments.context.pageData, ‘User_Level’)) == ‘Global’) {
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘61afc62fd67d4c6e6c482533ab87e193’, true);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘09856cb1e0e3377d004ebe96850941f4’, true);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘02c145b9ce792c5ff8b850e9bf7bfd4d’, true);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘6851de2659d546c91cad0cf50f8df812’, true);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘97d9b1b980cde38105c6358ff1767355’, true);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘5a12309e74a3c79eddb8d0ec4d8b9787’, true);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘c797679c6aecc33b668aed8e0dfb1e51’, true);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘c045dae556f37e5e8509a0c96c027057’, true);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘ac96599b2c6296b901f3f523b1a2543f’, true);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘01d4cb6c47e6b82be389dd6929265acf’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘b4f6b83bb7c5e5192e3b209be681abb4’, true);
} else if ((getObjectProperty(___arguments.context.pageData, ‘User_Level’)) == ‘Driver’) {
console.log(‘1’);
Current_Driver = (await Backendless.Data.of(‘Employees’).find(Backendless.DataQueryBuilder.create().setWhereClause(([‘Employee.displayName = '’,(getObjectProperty((await Backendless.UserService.getCurrentUser(false)), ‘displayName’)),‘'’].join(‘’))).setPageSize(10)))[0];
___arguments.context.pageData[‘Warehouse’] = (getObjectProperty(Current_Driver, ‘Warehouse’));
if ((getObjectProperty(___arguments.context.pageData, ‘Warehouse’)) == null || (getObjectProperty(___arguments.context.pageData, ‘Warehouse’)) == ‘In’) {
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘61afc62fd67d4c6e6c482533ab87e193’, true);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘61afc62fd67d4c6e6c482533ab87e193’, true);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘01d4cb6c47e6b82be389dd6929265acf’, false);
} else {
Active_Truck = (await Backendless.Data.of(‘Vehicles’).find(Backendless.DataQueryBuilder.create().setWhereClause(([‘Driver_1.ownerId = '’,LiveUser,‘'’].join(‘’))).setPageSize(100)))[0];
___arguments.context.pageData[‘Got_Mileage’] = (getObjectProperty(Active_Truck, ‘objectId’));
Last_Mileage_Of_This_Truck = (await Promise.all((await Backendless.Data.of(‘Fuel’).find(Backendless.DataQueryBuilder.create().setWhereClause(([‘reg.objectId = '’,(getObjectProperty(___arguments.context.pageData, ‘Got_Mileage’)),‘'’].join(‘’))).setSortBy(‘mileage’).setPageSize(100))).map(async item => {; return ({ ‘Last Mileage’: (getObjectProperty(item, ‘mileage’)) });})));
___arguments.context.pageData[‘Final_Last_Mileage’] = (Last_Mileage_Of_This_Truck.slice(-1)[0]);
___arguments.context.pageData[‘Reflected_Mileage’] = (Number((getObjectProperty((getObjectProperty(___arguments.context.pageData, ‘Final_Last_Mileage’)), ‘Last Mileage’))));
Last_3_MD = (await Promise.all((await Backendless.Data.of(‘Fuel’).find(Backendless.DataQueryBuilder.create().setWhereClause(([‘reg.objectId = '’,(getObjectProperty(___arguments.context.pageData, ‘Got_Mileage’)),‘'’].join(‘’))).setSortBy(‘created’).setPageSize(100))).map(async item => {; return ({ ‘Mileage Differential’: (getObjectProperty(item, ‘Mileage_Differential’)) });})));
___arguments.context.pageData[‘Final_Last_MD_1’] = (Last_3_MD.slice(-1)[0]);
___arguments.context.pageData[‘Reflected_MD_1’] = (getObjectProperty((getObjectProperty(___arguments.context.pageData, ‘Final_Last_MD_1’)), ‘Mileage Differential’));
___arguments.context.pageData[‘Final_Last_MD_2’] = (Last_3_MD.slice(-2)[0]);
___arguments.context.pageData[‘Reflected_MD_2’] = (Number((getObjectProperty((getObjectProperty(___arguments.context.pageData, ‘Final_Last_MD_2’)), ‘Mileage Differential’))));
___arguments.context.pageData[‘Final_Last_MD_3’] = (Last_3_MD.slice(-3)[0]);
___arguments.context.pageData[‘Reflected_MD_3’] = (Number((getObjectProperty((getObjectProperty(___arguments.context.pageData, ‘Final_Last_MD_3’)), ‘Mileage Differential’))));
___arguments.context.pageData[‘Got_LT’] = undefined;
Last_3_Lt = (await Promise.all((await Backendless.Data.of(‘Fuel’).find(Backendless.DataQueryBuilder.create().setWhereClause(([‘reg.objectId = '’,(getObjectProperty(___arguments.context.pageData, ‘Got_Mileage’)),‘'’].join(‘’))).setSortBy(‘created’).setPageSize(100))).map(async item => {; return ({ 'Last Litres ': (getObjectProperty(item, ‘litres’)) });})));
___arguments.context.pageData[‘Final_Last_LT_1’] = (Last_3_Lt.slice(-1)[0]);
___arguments.context.pageData[‘Reflected_LT_1’] = (Number((getObjectProperty((getObjectProperty(___arguments.context.pageData, ‘Final_Last_LT_1’)), 'Last Litres '))));
___arguments.context.pageData[‘Final_Last_LT_2’] = (Last_3_Lt.slice(-2)[0]);
___arguments.context.pageData[‘Reflected_LT_2’] = (Number((getObjectProperty((getObjectProperty(___arguments.context.pageData, ‘Final_Last_LT_2’)), ‘Last Litres ‘))));
___arguments.context.pageData[‘Final_Last_LT_3’] = (Last_3_Lt.slice(-3)[0]);
___arguments.context.pageData[‘Reflected_LT_3’] = (Number((getObjectProperty((getObjectProperty(___arguments.context.pageData, ‘Final_Last_LT_3’)), ‘Last Litres ‘))));
___arguments.context.pageData[‘Last3_FC’] = (Math.round((((getObjectProperty(___arguments.context.pageData, ‘Reflected_MD_3’)) + (getObjectProperty(___arguments.context.pageData, ‘Reflected_MD_2’)) + (getObjectProperty(___arguments.context.pageData, ‘Reflected_MD_1’))) / ((getObjectProperty(___arguments.context.pageData, ‘Reflected_LT_3’)) + (getObjectProperty(___arguments.context.pageData, ‘Reflected_LT_2’)) + (getObjectProperty(___arguments.context.pageData, ‘Reflected_LT_1’)))) * 1000) / 1000);
___arguments.context.pageData[‘Current_Driver_objectId’] = (getObjectProperty(Current_Driver, ‘objectId’));
Current_Truck = (await Backendless.Data.of(‘Vehicles’).find(Backendless.DataQueryBuilder.create().setWhereClause(([‘Driver_1.objectId = '’,(getObjectProperty(___arguments.context.pageData, ‘Current_Driver_objectId’)),’'’].join(’’))).setPageSize(10)))[0];
___arguments.context.pageData[‘Horse_objectId’] = (getObjectProperty(Current_Truck, ‘objectId’));
if ((getObjectProperty(Active_Truck, ‘Load_Planner_objectId’)) == null) {
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘cf92e1a8d8fc3fefef4caa4505c480e7’, false);
}
}

;(function(whereClause) {
  const callback = async object => {
      ___arguments.context.pageData['Current_Truck_PT'] = ((await Promise.all((await Backendless.Data.of('Targets').find(Backendless.DataQueryBuilder.create().setWhereClause((['Registration.objectId = \'',(getObjectProperty(Current_Truck, 'objectId')),'\''].join(''))).setPageSize(10))).map(async item => {; return (getObjectProperty(item, 'Tonnage_Override'));})))[0] == null ? (await Promise.all((await Backendless.Data.of('Targets').find(Backendless.DataQueryBuilder.create().setWhereClause((['Registration.objectId = \'',(getObjectProperty(Current_Truck, 'objectId')),'\''].join(''))).setPageSize(10))).map(async item => {; return (getObjectProperty(item, 'Permissible_Tonnage'));})))[0] : (await Promise.all((await Backendless.Data.of('Targets').find(Backendless.DataQueryBuilder.create().setWhereClause((['Registration.objectId = \'',(getObjectProperty(Current_Truck, 'objectId')),'\''].join(''))).setPageSize(10))).map(async item => {; return (getObjectProperty(item, 'Tonnage_Override'));})))[0]);
  console.log('Create');
  await new Promise(r => setTimeout(r, 10000 || 0));
  Next_Load = (await Promise.all((await Backendless.Data.of('Loads').find(Backendless.DataQueryBuilder.create().setWhereClause((['Horse.objectId = \'',(getObjectProperty(Current_Truck, 'objectId')),'\' And ','Completion_Status = \'0\''].join(''))).setSortBy('Planned_Delivery_Date_Time').setPageSize(10))).map(async item => {; return ({ 'Split_delivery': (getObjectProperty(item, 'Split_delivery')),'Service': (getObjectProperty(item, 'Service')),'Status': (getObjectProperty(item, 'Status')),'load_point': (getObjectProperty(item, 'load_point')),'delivery_point': (getObjectProperty(item, 'delivery_point')),'Planned_Delivery_Date_Time': (getObjectProperty(item, 'Planned_Delivery_Date_Time')) });})))[0];
  if ((getObjectProperty(Active_Truck, 'Load_Planner_objectId')) == null) {
    (function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === 'boolean' ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })('cf92e1a8d8fc3fefef4caa4505c480e7', false);
  } else {
    if ((getObjectProperty(Next_Load, 'Service')) == 'Yes' && (getObjectProperty(Next_Load, 'Status')) == null) {
      (function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === 'boolean' ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })('cf92e1a8d8fc3fefef4caa4505c480e7', true);
      ___arguments.context.pageData['Next_Load'] = (String('Service at ') + String(getObjectProperty(Next_Load, 'load_point')));
    } else if ((getObjectProperty(Next_Load, 'Status')) == null) {
      (function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === 'boolean' ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })('cf92e1a8d8fc3fefef4caa4505c480e7', true);
      ___arguments.context.pageData['Next_Load'] = (String('Load at ') + String(getObjectProperty(Next_Load, 'load_point')));
      await Backendless.Messaging.publish((getObjectProperty(___arguments.context.appData, 'Push_ID')), (String('Load at ') + String(getObjectProperty(Next_Load, 'delivery_point'))), new Backendless.PublishOptions({ 'headers': Object.assign({  }, {})  }), null);
    }
    if ((getObjectProperty(Next_Load, 'Service')) == 'Yes' && (getObjectProperty(Next_Load, 'Status')) == 'Loaded') {
      (function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === 'boolean' ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })('cf92e1a8d8fc3fefef4caa4505c480e7', true);
      ___arguments.context.pageData['Next_Load'] = (String('Complete Service') + String(''));
    } else if ((getObjectProperty(Next_Load, 'Status')) == 'Loaded') {
      (function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === 'boolean' ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })('cf92e1a8d8fc3fefef4caa4505c480e7', true);
      ___arguments.context.pageData['Next_Load'] = (String('Deliver to ') + String(getObjectProperty(Next_Load, 'delivery_point')));
    }
  }

  };

  const rtHandlers = Backendless.Data.of('Loads').rt();

  const options = [callback];

  if (whereClause) {
     options.unshift(whereClause);
  }

  rtHandlers.addCreateListener.apply(rtHandlers, options);



})('');

;(function(whereClause) {
  const callback = async object => {
      ___arguments.context.pageData['Current_Truck_PT'] = ((await Promise.all((await Backendless.Data.of('Targets').find(Backendless.DataQueryBuilder.create().setWhereClause((['Registration.objectId = \'',(getObjectProperty(Current_Truck, 'objectId')),'\''].join(''))).setPageSize(10))).map(async item => {; return (getObjectProperty(item, 'Tonnage_Override'));})))[0] == null ? (await Promise.all((await Backendless.Data.of('Targets').find(Backendless.DataQueryBuilder.create().setWhereClause((['Registration.objectId = \'',(getObjectProperty(Current_Truck, 'objectId')),'\''].join(''))).setPageSize(10))).map(async item => {; return (getObjectProperty(item, 'Permissible_Tonnage'));})))[0] : (await Promise.all((await Backendless.Data.of('Targets').find(Backendless.DataQueryBuilder.create().setWhereClause((['Registration.objectId = \'',(getObjectProperty(Current_Truck, 'objectId')),'\''].join(''))).setPageSize(10))).map(async item => {; return (getObjectProperty(item, 'Tonnage_Override'));})))[0]);
  if ((getObjectProperty(Active_Truck, 'Load_Planner_objectId')) == null) {
    (function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === 'boolean' ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })('cf92e1a8d8fc3fefef4caa4505c480e7', false);
  } else {
    console.log('Destroy');
    await new Promise(r => setTimeout(r, 10000 || 0));
    Next_Load = (await Promise.all((await Backendless.Data.of('Loads').find(Backendless.DataQueryBuilder.create().setWhereClause((['Horse.objectId = \'',(getObjectProperty(Current_Truck, 'objectId')),'\' And ','Completion_Status = \'0\''].join(''))).setSortBy('Planned_Delivery_Date_Time').setPageSize(10))).map(async item => {; return ({ 'Split_delivery': (getObjectProperty(item, 'Split_delivery')),'Service': (getObjectProperty(item, 'Service')),'Status': (getObjectProperty(item, 'Status')),'load_point': (getObjectProperty(item, 'load_point')),'delivery_point': (getObjectProperty(item, 'delivery_point')),'Planned_Delivery_Date_Time': (getObjectProperty(item, 'Planned_Delivery_Date_Time')) });})))[0];
    if (Next_Load == null) {
      ___arguments.context.pageData['Next_Load'] = (String('No Loads'));
    }
    if ((getObjectProperty(Next_Load, 'Service')) == 'Yes' && (getObjectProperty(Next_Load, 'Status')) == null) {
      (function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === 'boolean' ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })('cf92e1a8d8fc3fefef4caa4505c480e7', true);
      ___arguments.context.pageData['Next_Load'] = (String('Service at ') + String(getObjectProperty(Next_Load, 'load_point')));
    } else if ((getObjectProperty(Next_Load, 'Status')) == null) {
      (function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === 'boolean' ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })('cf92e1a8d8fc3fefef4caa4505c480e7', true);
      ___arguments.context.pageData['Next_Load'] = (String('Load at ') + String(getObjectProperty(Next_Load, 'load_point')));
    }
    if ((getObjectProperty(Next_Load, 'Service')) == 'Yes' && (getObjectProperty(Next_Load, 'Status')) == 'Loaded') {
      (function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === 'boolean' ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })('cf92e1a8d8fc3fefef4caa4505c480e7', true);
      ___arguments.context.pageData['Next_Load'] = (String('Complete Service') + String(''));
    } else if ((getObjectProperty(Next_Load, 'Status')) == 'Loaded') {
      (function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === 'boolean' ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })('cf92e1a8d8fc3fefef4caa4505c480e7', true);
      ___arguments.context.pageData['Next_Load'] = (String('Deliver to ') + String(getObjectProperty(Next_Load, 'delivery_point')));
    }
  }

  };

  const rtHandlers = Backendless.Data.of('Loads').rt();

  const options = [callback];

  if (whereClause) {
     options.unshift(whereClause);
  }

  rtHandlers.addDeleteListener.apply(rtHandlers, options);



})('');

;(function(whereClause) {
  const callback = async object => {
      ___arguments.context.pageData['Current_Truck_PT'] = ((await Promise.all((await Backendless.Data.of('Targets').find(Backendless.DataQueryBuilder.create().setWhereClause((['Registration.objectId = \'',(getObjectProperty(Current_Truck, 'objectId')),'\''].join(''))).setPageSize(10))).map(async item => {; return (getObjectProperty(item, 'Tonnage_Override'));})))[0] == null ? (await Promise.all((await Backendless.Data.of('Targets').find(Backendless.DataQueryBuilder.create().setWhereClause((['Registration.objectId = \'',(getObjectProperty(Current_Truck, 'objectId')),'\''].join(''))).setPageSize(10))).map(async item => {; return (getObjectProperty(item, 'Permissible_Tonnage'));})))[0] : (await Promise.all((await Backendless.Data.of('Targets').find(Backendless.DataQueryBuilder.create().setWhereClause((['Registration.objectId = \'',(getObjectProperty(Current_Truck, 'objectId')),'\''].join(''))).setPageSize(10))).map(async item => {; return (getObjectProperty(item, 'Tonnage_Override'));})))[0]);
  if ((getObjectProperty(Active_Truck, 'Load_Planner_objectId')) == null) {
    (function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === 'boolean' ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })('cf92e1a8d8fc3fefef4caa4505c480e7', false);
  } else {
    Next_Load = (await Promise.all((await Backendless.Data.of('Loads').find(Backendless.DataQueryBuilder.create().setWhereClause((['Horse.objectId = \'',(getObjectProperty(Current_Truck, 'objectId')),'\' And ','Completion_Status = \'0\''].join(''))).setSortBy('Planned_Delivery_Date_Time').setPageSize(10))).map(async item => {; return ({ 'Split_delivery': (getObjectProperty(item, 'Split_delivery')),'Service': (getObjectProperty(item, 'Service')),'Status': (getObjectProperty(item, 'Status')),'load_point': (getObjectProperty(item, 'load_point')),'delivery_point': (getObjectProperty(item, 'delivery_point')),'Planned_Delivery_Date_Time': (getObjectProperty(item, 'Planned_Delivery_Date_Time')) });})))[0];
    if (Next_Load.length == 0) {
      (function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === 'boolean' ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })('cf92e1a8d8fc3fefef4caa4505c480e7', true);
    } else {
      if ((getObjectProperty(Next_Load, 'Service')) == 'Yes' && (getObjectProperty(Next_Load, 'Status')) == null) {
        (function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === 'boolean' ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })('cf92e1a8d8fc3fefef4caa4505c480e7', true);
        ___arguments.context.pageData['Next_Load'] = (String('Service at ') + String(getObjectProperty(Next_Load, 'load_point')));
      } else if ((getObjectProperty(Next_Load, 'Status')) == null) {
        (function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === 'boolean' ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })('cf92e1a8d8fc3fefef4caa4505c480e7', true);
        ___arguments.context.pageData['Next_Load'] = (String('Load at ') + String(getObjectProperty(Next_Load, 'load_point')));
      }
      if ((getObjectProperty(Next_Load, 'Service')) == 'Yes' && (getObjectProperty(Next_Load, 'Status')) == 'Loaded') {
        (function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === 'boolean' ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })('cf92e1a8d8fc3fefef4caa4505c480e7', true);
        ___arguments.context.pageData['Next_Load'] = (String('Complete Service') + String(''));
      } else if ((getObjectProperty(Next_Load, 'Status')) == 'Loaded') {
        (function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === 'boolean' ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })('cf92e1a8d8fc3fefef4caa4505c480e7', true);
        ___arguments.context.pageData['Next_Load'] = (String('Deliver to ') + String(getObjectProperty(Next_Load, 'delivery_point')));
      }
    }
  }

  };

  const rtHandlers = Backendless.Data.of('Loads').rt();

  const options = [callback];

  if (whereClause) {
     options.unshift(whereClause);
  }

  rtHandlers.addUpdateListener.apply(rtHandlers, options);



})('');

;(function(whereClause) {
  const callback = async object => {
      ___arguments.context.pageData['Current_Truck_PT'] = ((await Promise.all((await Backendless.Data.of('Targets').find(Backendless.DataQueryBuilder.create().setWhereClause((['Registration.objectId = \'',(getObjectProperty(Current_Truck, 'objectId')),'\''].join(''))).setPageSize(10))).map(async item => {; return (getObjectProperty(item, 'Tonnage_Override'));})))[0] == null ? (await Promise.all((await Backendless.Data.of('Targets').find(Backendless.DataQueryBuilder.create().setWhereClause((['Registration.objectId = \'',(getObjectProperty(Current_Truck, 'objectId')),'\''].join(''))).setPageSize(10))).map(async item => {; return (getObjectProperty(item, 'Permissible_Tonnage'));})))[0] : (await Promise.all((await Backendless.Data.of('Targets').find(Backendless.DataQueryBuilder.create().setWhereClause((['Registration.objectId = \'',(getObjectProperty(Current_Truck, 'objectId')),'\''].join(''))).setPageSize(10))).map(async item => {; return (getObjectProperty(item, 'Tonnage_Override'));})))[0]);
  Current_Targets = (await Backendless.Data.of('Targets').find(Backendless.DataQueryBuilder.create().setWhereClause((['Registration.Horse_Registration = \'',(getObjectProperty(___arguments.context.pageData, 'Current_Truck_Horse_Registration')),'\''].join(''))).setPageSize(10)))[0];
  ___arguments.context.pageData['Current_Truck_Km/L'] = (getObjectProperty(Current_Targets, 'Ideal_Fuel_Consumption'));

  };

  const rtHandlers = Backendless.Data.of('Targets').rt();

  const options = [callback];

  if (whereClause) {
     options.unshift(whereClause);
  }

  rtHandlers.addUpdateListener.apply(rtHandlers, options);



})('');
  try {
  if ((getObjectProperty(((await Promise.all((await Backendless.Data.of('Loads').find(Backendless.DataQueryBuilder.create().setWhereClause((['Horse.objectId = \'',(getObjectProperty(Current_Truck, 'objectId')),'\' And ','Completion_Status = \'0\''].join(''))).setSortBy('Planned_Delivery_Date_Time').setPageSize(10))).map(async item => {; return ({ 'Split_delivery': (getObjectProperty(item, 'Split_delivery')),'Service': (getObjectProperty(item, 'Service')),'Status': (getObjectProperty(item, 'Status')),'load_point': (getObjectProperty(item, 'load_point')),'delivery_point': (getObjectProperty(item, 'delivery_point')),'Planned_Delivery_Date_Time': (getObjectProperty(item, 'Planned_Delivery_Date_Time')) });})))[0]), 'Planned_Delivery_Date_Time')) == null) {
    Next_Load = (await Promise.all((await Backendless.Data.of('Loads').find(Backendless.DataQueryBuilder.create().setWhereClause((['Horse.objectId = \'',(getObjectProperty(Current_Truck, 'objectId')),'\' And ','Completion_Status = \'0\''].join(''))).setSortBy('Planned_Delivery_Date_Time').setPageSize(10))).map(async item => {; return ({ 'Split_delivery': (getObjectProperty(item, 'Split_delivery')),'Service': (getObjectProperty(item, 'Service')),'Status': (getObjectProperty(item, 'Status')),'load_point': (getObjectProperty(item, 'load_point')),'delivery_point': (getObjectProperty(item, 'delivery_point')),'Planned_Delivery_Date_Time': (getObjectProperty(item, 'Planned_Delivery_Date_Time')) });})))[1];
    console.log(Next_Load);
  } else {
    console.log(Next_Load);
    Next_Load = (await Promise.all((await Backendless.Data.of('Loads').find(Backendless.DataQueryBuilder.create().setWhereClause((['Horse.objectId = \'',(getObjectProperty(Current_Truck, 'objectId')),'\' And ','Completion_Status = \'0\''].join(''))).setSortBy('Planned_Delivery_Date_Time').setPageSize(10))).map(async item => {; return ({ 'Split_delivery': (getObjectProperty(item, 'Split_delivery')),'Service': (getObjectProperty(item, 'Service')),'Status': (getObjectProperty(item, 'Status')),'load_point': (getObjectProperty(item, 'load_point')),'delivery_point': (getObjectProperty(item, 'delivery_point')),'Planned_Delivery_Date_Time': (getObjectProperty(item, 'Planned_Delivery_Date_Time')) });})))[0];
  }

} catch (error) {

}
___arguments.context.pageData['Current_Truck_Horse_Registration'] = (getObjectProperty(Current_Truck, 'Horse_Registration'));
Current_Targets = (await Backendless.Data.of('Targets').find(Backendless.DataQueryBuilder.create().setWhereClause((['Registration.Horse_Registration = \'',(getObjectProperty(___arguments.context.pageData, 'Current_Truck_Horse_Registration')),'\''].join(''))).setPageSize(10)))[0];
___arguments.context.pageData['Current_Truck_Km/L'] = (getObjectProperty(Current_Targets, 'Ideal_Fuel_Consumption'));
___arguments.context.pageData['Current_Truck_PT'] = ((await Promise.all((await Backendless.Data.of('Targets').find(Backendless.DataQueryBuilder.create().setWhereClause((['Registration.objectId = \'',(getObjectProperty(Current_Truck, 'objectId')),'\''].join(''))).setPageSize(10))).map(async item => {; return (getObjectProperty(item, 'Tonnage_Override'));})))[0] == null ? (await Promise.all((await Backendless.Data.of('Targets').find(Backendless.DataQueryBuilder.create().setWhereClause((['Registration.objectId = \'',(getObjectProperty(Current_Truck, 'objectId')),'\''].join(''))).setPageSize(10))).map(async item => {; return (getObjectProperty(item, 'Permissible_Tonnage'));})))[0] : (await Promise.all((await Backendless.Data.of('Targets').find(Backendless.DataQueryBuilder.create().setWhereClause((['Registration.objectId = \'',(getObjectProperty(Current_Truck, 'objectId')),'\''].join(''))).setPageSize(10))).map(async item => {; return (getObjectProperty(item, 'Tonnage_Override'));})))[0]);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === 'boolean' ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })('01d4cb6c47e6b82be389dd6929265acf', false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === 'boolean' ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })('02c145b9ce792c5ff8b850e9bf7bfd4d', true);
if ((getObjectProperty(___arguments.context.pageData, 'Current_Truck_Horse_Registration')) != null) {
  (function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === 'boolean' ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })('016a464b6458cb1718cdb8bb22143bcc', true);
  (function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === 'boolean' ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })('c797679c6aecc33b668aed8e0dfb1e51', true);
  (function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === 'boolean' ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })('09856cb1e0e3377d004ebe96850941f4', true);
  (function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === 'boolean' ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })('6851de2659d546c91cad0cf50f8df812', true);
  (function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === 'boolean' ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })('97d9b1b980cde38105c6358ff1767355', false);
  (function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === 'boolean' ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })('02c145b9ce792c5ff8b850e9bf7bfd4d', true);
  (function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === 'boolean' ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })('5a12309e74a3c79eddb8d0ec4d8b9787', false);
  (function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === 'boolean' ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })('61afc62fd67d4c6e6c482533ab87e193', false);
} else {
  (function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === 'boolean' ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })('016a464b6458cb1718cdb8bb22143bcc', false);
  (function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === 'boolean' ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })('61afc62fd67d4c6e6c482533ab87e193', true);
}
if ((getObjectProperty(___arguments.context.pageData, 'Current_Truck_Horse_Registration')) != null) {
  (function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === 'boolean' ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })('016a464b6458cb1718cdb8bb22143bcc', true);
  (function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === 'boolean' ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })('c797679c6aecc33b668aed8e0dfb1e51', true);
  (function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === 'boolean' ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })('09856cb1e0e3377d004ebe96850941f4', true);
  (function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === 'boolean' ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })('6851de2659d546c91cad0cf50f8df812', true);
  (function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === 'boolean' ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })('97d9b1b980cde38105c6358ff1767355', false);
  (function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === 'boolean' ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })('02c145b9ce792c5ff8b850e9bf7bfd4d', true);
  (function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === 'boolean' ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })('5a12309e74a3c79eddb8d0ec4d8b9787', false);
  (function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === 'boolean' ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })('61afc62fd67d4c6e6c482533ab87e193', false);
} else {
  (function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === 'boolean' ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })('016a464b6458cb1718cdb8bb22143bcc', false);
  (function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === 'boolean' ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })('61afc62fd67d4c6e6c482533ab87e193', true);
}
if ((getObjectProperty(Next_Load, 'Service')) == 'Yes' && (getObjectProperty(Next_Load, 'Status')) == null) {
  (function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === 'boolean' ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })('cf92e1a8d8fc3fefef4caa4505c480e7', true);
  ___arguments.context.pageData['Next_Load'] = (String('Service at ') + String(getObjectProperty(Next_Load, 'load_point')));
} else if ((getObjectProperty(Next_Load, 'Status')) == null) {
  (function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === 'boolean' ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })('cf92e1a8d8fc3fefef4caa4505c480e7', true);
  ___arguments.context.pageData['Next_Load'] = (String('Load at ') + String(getObjectProperty(Next_Load, 'load_point')));
}
if ((getObjectProperty(Next_Load, 'Service')) == 'Yes' && (getObjectProperty(Next_Load, 'Status')) == 'Loaded') {
  (function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === 'boolean' ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })('cf92e1a8d8fc3fefef4caa4505c480e7', true);
  ___arguments.context.pageData['Next_Load'] = (String('Complete Service') + String(''));
} else if ((getObjectProperty(Next_Load, 'Status')) == 'Loaded') {
  (function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === 'boolean' ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })('cf92e1a8d8fc3fefef4caa4505c480e7', true);
  ___arguments.context.pageData['Next_Load'] = (String('Deliver to ') + String(getObjectProperty(Next_Load, 'delivery_point')));
}

} else if ((getObjectProperty(___arguments.context.pageData, ‘User_Level’)) == ‘Director’) {
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘02c145b9ce792c5ff8b850e9bf7bfd4d’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘016a464b6458cb1718cdb8bb22143bcc’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘61afc62fd67d4c6e6c482533ab87e193’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘09856cb1e0e3377d004ebe96850941f4’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘6851de2659d546c91cad0cf50f8df812’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘97d9b1b980cde38105c6358ff1767355’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘5a12309e74a3c79eddb8d0ec4d8b9787’, true);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘c797679c6aecc33b668aed8e0dfb1e51’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘c045dae556f37e5e8509a0c96c027057’, true);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘ac96599b2c6296b901f3f523b1a2543f’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘8774b813ba8d9998e19d4fb5c15e150c’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘8b480d6e1a55cddfa5c69531c1feb3b2’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘01d4cb6c47e6b82be389dd6929265acf’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘b4f6b83bb7c5e5192e3b209be681abb4’, true);
} else if ((getObjectProperty(___arguments.context.pageData, ‘User_Level’)) == ‘Load Planner’) {
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘02c145b9ce792c5ff8b850e9bf7bfd4d’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘016a464b6458cb1718cdb8bb22143bcc’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘61afc62fd67d4c6e6c482533ab87e193’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘09856cb1e0e3377d004ebe96850941f4’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘02c145b9ce792c5ff8b850e9bf7bfd4d’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘6851de2659d546c91cad0cf50f8df812’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘97d9b1b980cde38105c6358ff1767355’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘5a12309e74a3c79eddb8d0ec4d8b9787’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘c797679c6aecc33b668aed8e0dfb1e51’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘c045dae556f37e5e8509a0c96c027057’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘ac96599b2c6296b901f3f523b1a2543f’, true);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘8774b813ba8d9998e19d4fb5c15e150c’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘8b480d6e1a55cddfa5c69531c1feb3b2’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘01d4cb6c47e6b82be389dd6929265acf’, false);
} else if ((getObjectProperty(___arguments.context.pageData, ‘User_Level’)) == ‘Mechanic’) {
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘02c145b9ce792c5ff8b850e9bf7bfd4d’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘016a464b6458cb1718cdb8bb22143bcc’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘61afc62fd67d4c6e6c482533ab87e193’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘09856cb1e0e3377d004ebe96850941f4’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘02c145b9ce792c5ff8b850e9bf7bfd4d’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘6851de2659d546c91cad0cf50f8df812’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘97d9b1b980cde38105c6358ff1767355’, true);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘5a12309e74a3c79eddb8d0ec4d8b9787’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘c797679c6aecc33b668aed8e0dfb1e51’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘c045dae556f37e5e8509a0c96c027057’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘ac96599b2c6296b901f3f523b1a2543f’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘01d4cb6c47e6b82be389dd6929265acf’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘b4f6b83bb7c5e5192e3b209be681abb4’, true);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘531abda663a90464cfc9f23ba6ea6a4d’, false);
} else if ((getObjectProperty(___arguments.context.pageData, ‘User_Level’)) == ‘Admin’) {
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘02c145b9ce792c5ff8b850e9bf7bfd4d’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘016a464b6458cb1718cdb8bb22143bcc’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘61afc62fd67d4c6e6c482533ab87e193’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘09856cb1e0e3377d004ebe96850941f4’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘02c145b9ce792c5ff8b850e9bf7bfd4d’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘6851de2659d546c91cad0cf50f8df812’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘97d9b1b980cde38105c6358ff1767355’, true);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘5a12309e74a3c79eddb8d0ec4d8b9787’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘c797679c6aecc33b668aed8e0dfb1e51’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘c045dae556f37e5e8509a0c96c027057’, true);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘ac96599b2c6296b901f3f523b1a2543f’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘01d4cb6c47e6b82be389dd6929265acf’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘8774b813ba8d9998e19d4fb5c15e150c’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘8b480d6e1a55cddfa5c69531c1feb3b2’, false);
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘b4f6b83bb7c5e5192e3b209be681abb4’, true);
}
if ((getObjectProperty(Active_Truck, ‘Load_Planner_objectId’)) == null) {
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘cf92e1a8d8fc3fefef4caa4505c480e7’, false);
}
(function (componentUid, visible) { (function(component){ component.display = !!(typeof visible === ‘boolean’ ? visible : !component.display ) })(___arguments.context.getComponentByUid(componentUid)) })(‘01d4cb6c47e6b82be389dd6929265acf’, false);

},
/* handler:onEnter */

unfortunately, no, it works only in one direction, using XML we can generate the JS code