Web app running 5667.
I'm using client-side show/hide expressions to show or hide various controls. When opening a prerendered UX the controls that should be hidden are very briefly shown to the user. Maybe 1/4 second. Then they disappear. If I turn prerender off and reload that same component it loads with the controls already hidden from view.
Anyone else experience this? How do you deal with it? Do you just live with it?
I'm trying to determine if this is a bug within Alpha or if I need to change how I'm showing/hiding controls. Briefly, I get the user's security group in an argument. I evaluate that argument in a JS function. Then return true/false. Sample code below...
onDialogInitialize Server-side event
JS Function
Ashampoo_Snap_Tuesday, October 15, 2019_12h32m54s_001_.png
My hunch is I need to come up with a more efficient method. Suggestions/comments welcome as always.
Thank you.
I'm using client-side show/hide expressions to show or hide various controls. When opening a prerendered UX the controls that should be hidden are very briefly shown to the user. Maybe 1/4 second. Then they disappear. If I turn prerender off and reload that same component it loads with the controls already hidden from view.
Anyone else experience this? How do you deal with it? Do you just live with it?
I'm trying to determine if this is a bug within Alpha or if I need to change how I'm showing/hiding controls. Briefly, I get the user's security group in an argument. I evaluate that argument in a JS function. Then return true/false. Sample code below...
onDialogInitialize Server-side event
Code:
dim p as p dim pUser as p dim sGroups as c = "" 'Setup arguments a5ws_logged_in_user_values(pUser) sGroups = a5ws_get_user_assignments(pUser.userId) if is_one_of("Staff",sGroups) then e.arguments[e.arguments.ArgumentNumber("ISSTAFF")].data = "True" end if
JS Function
Code:
function isStaff(){ var _arg = {dialog.object}.argumentValue('ISSTAFF'); if(_arg == 'True'){ return true; } else { return false; } }
My hunch is I need to come up with a more efficient method. Suggestions/comments welcome as always.
Thank you.
Comment