[progress Communities] [progress Openedge Abl] Forum Post: Re: [kendo For Angular] How To...

  • Thread starter Thread starter Giorgi Kviraia
  • Start date Start date
Status
Not open for further replies.
G

Giorgi Kviraia

Guest
Hello Edsel,very intresting post, i have few question around it if i do not disturb you. i see you are using request.xhr.getResponseHeader("x-client-props")) which is coming from XMLHttpRequest . it has been changed in angular 4, and agular documentation suggests to use HttpClient instead. can you provide some example how rewrite function onAfterFillCustomers(jsdo, success, request) { console.log("DEBUG: fill(): roles: " + request.xhr.getResponseHeader("x-client-props")); console.log("DEBUG: fill(): roles: " + session.getContextProperty("roles")); jsdo.ttCustomer.foreach(function(customer) { document.write(customer.data.CustNum + ' ' + customer.data.Name + ' '); }); } this function to angular 4? i have tryed to use HttpClient and after debuging it returns NULL or Undefined, does that means x-client-props do not transport the role of user? if it does and i'm mistaken does user role reaches http header after authentication? or before authentication? i want to use user role in canActivate guard, so different users can surf over different components. i assume martin is trying to achieve same thing.

Continue reading...
 
Status
Not open for further replies.
Back
Top