Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "bilalhaidar"

FYI

<a class="postlink" href="https://github.com/primefaces/primeng/pull/2141">https://github.com/primefaces/primeng/pull/2141</a>

Hi, I am making use of OU to provide some dropdown lists for users with the following hierarchy:

Region --> Camp --> Shelter --> Sub Shelter 1 / Sub Shelter 2 / ...

I want to be notified when:

Member is removed or added OU is removed or added or changed (name)

Can I make use of the Entity events something like "EntityCreatedEventData<OrganizationUnit>" and "EntityUpdatedEventData<OrganizationUnit>" and "EntityChangedEventData<OrganizationUnit>" and "EntityDeletedEventData<OrganizationUnit>"

One more thing, on the client side, do you trigger any events similar to the above? For instance, if an OU changes, I want to clear the Local Storage data (that I am using to cache the data in).

Finally, can I cancel for instance deleting an OU by handling "EntityDeletingEventData<OrganizationUnit>"? The reason I am asking for that is that maybe an OU is already used on another Entity and deleting it would break the data. So before deleting an OU, I would check if this OU that is being deleted is linked to some other entity, if yes, I halt the deletion process?

How is that possible? Any example, please.

Thanks Bilal

Good to know. Thanks a lot

Thanks a lot

Answer

Yeah I know it is complicated, maybe in the future you can provide a means to do a smooth upgrade, because most of the times, new features come or some bugs are fixed, and we cannot make use of unless we get a new copy and then integrate all the code back again to the new release.

Thanks

Thanks. I checked it. Seems it is going to be fixed in future releases.

Given the fact it is always complicated to upgrade an existing app with a new release of Abp and AbpZero, can you offer workaround steps to apply locally?

by the way, is this related to Identity Server or something custom from Abp?

Thanks

Thanks Ismail.

I am making use of primeng controls nowadays. They seem good.

For now, I didn't need a Time with the date, so all selected dates in primeng are returned with Time reset. So it should be okay I believe.

I will check more how to make the primeng Calendar moment-enabled (maybe it is I dunno, i will dig more).

Hello, I keep on getting this error in the log file and I dunno where it is coming from.

How to fix it? Thanks

INFO  2017-08-15 01:06:12,952 [41   ] entication.JwtBearer.JwtBearerMiddleware - Failed to validate the token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIyIiwibmFtZSI6ImFkbWluIiwiQXNwTmV0LklkZW50aXR5LlNlY3VyaXR5U3RhbXAiOiJlNzI5NTdjNi03MzhmLTEyYmMtNzllOS0zOWUwNTAxZjViYTkiLCJyb2xlIjoiQWRtaW4iLCJodHRwOi8vd3d3LmFzcG5ldGJvaWxlcnBsYXRlLmNvbS9pZGVudGl0eS9jbGFpbXMvdGVuYW50SWQiOiIxIiwianRpIjoiYzE1ZWYzYWItNWEwMi00YWI5LWFmYmMtNzg5MjRmNDA0YzM2IiwiaWF0IjoxNTAyNzQ4MzY5LCJuYmYiOjE1MDI3NDgzNjksImV4cCI6MTUwMjgzNDc2OSwiaXNzIjoiRHJjQXBwIiwiYXVkIjoiRHJjQXBwIn0.kUWfPsixYzjRKcmBsRLsv-WsMiNkssukZlRn-NSqDAY.
Microsoft.IdentityModel.Tokens.SecurityTokenInvalidSignatureException: IDX10503: Signature validation failed. Keys tried: 'Microsoft.IdentityModel.Tokens.RsaSecurityKey , KeyId: d0fb06732fef51dd6712680ec9c1ae17
'.
Exceptions caught:
 ''.
token: '{"alg":"HS256","typ":"JWT"}.{"sub":"2","name":"admin","AspNet.Identity.SecurityStamp":"e72957c6-738f-12bc-79e9-39e0501f5ba9","role":"Admin","http://www.aspnetboilerplate.com/identity/claims/tenantId":"1","jti":"c15ef3ab-5a02-4ab9-afbc-78924f404c36","iat":1502748369,"nbf":1502748369,"exp":1502834769,"iss":"DrcApp","aud":"DrcApp"}'.
   at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateSignature(String token, TokenValidationParameters validationParameters)
   at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateToken(String token, TokenValidationParameters validationParameters, SecurityToken& validatedToken)
   at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.<HandleAuthenticateAsync>d__1.MoveNext()
INFO  2017-08-15 01:06:12,952 [41   ] entication.JwtBearer.JwtBearerMiddleware - Bearer was not authenticated. Failure message: IDX10503: Signature validation failed. Keys tried: 'Microsoft.IdentityModel.Tokens.RsaSecurityKey , KeyId: d0fb06732fef51dd6712680ec9c1ae17
'.
Exceptions caught:
 ''.
token: '{"alg":"HS256","typ":"JWT"}.{"sub":"2","name":"admin","AspNet.Identity.SecurityStamp":"e72957c6-738f-12bc-79e9-39e0501f5ba9","role":"Admin","http://www.aspnetboilerplate.com/identity/claims/tenantId":"1","jti":"c15ef3ab-5a02-4ab9-afbc-78924f404c36","iat":1502748369,"nbf":1502748369,"exp":1502834769,"iss":"DrcApp","aud":"DrcApp"}'.

I noticed all DateTime properties in Angular 2 are of type moment.Moment. So they accept values as moment() correct?

In my app, I use a Birth Date and some other Date field. I am already setting timezone to be Utc.

Now, when I capture a Date value from the user using a Calendar (different from the one used by default). The Date selected in the Calendar I want it to be in UTC in order to be sent to server in UTC and stored in Utc. How would I do this?

Thanks a lot :-)

Showing 81 to 90 of 635 entries