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

Activities of "tbentley"

I'm using the latest version of AspNetZero (v9.1.0) .NetCore with angular. I am trying to export my grid using the ExportToFile used in the auditLog as a example

The Excel Spreadsheet is getting generated correctly except all my decimal values (Dollar amounts) are flagged with a warning as "The number in this cell is formatted as text or preceded by an apostrophe"

This is how it defauls so I then tried using a variety of methods to format the currency For example.

                ICellStyle currencyFmt = sheet.Workbook.CreateCellStyle();
                 currencyFmt.DataFormat = (short)7; //"($#,##0.00);($#,##0.00)"


                sheet.SetDefaultColumnStyle(5, currencyFmt);

How do I have amount get output as numbers into Excel so I can do computation on them

I know if I multiply the values by a cell containing a 1 that the numbers convert to a number but that is a cumbersome hack.

Thanks.... Terry

Thanks. I was finally able to see the subscription using the UI and get the webhook to publish the data to a remote site. I used https://webhook.site which is a great site for testing webhooks. I am actually not sure what it was that finally caused the data to publish. It may have been the adding of the publish within a unit of work using clause -- _unitOfWorkManager.Current.SetTenantId

I am running AspNetZero v9.0.1 on .Net core and Angular

I log in as the host and I have been able to add a Webhook subscription and can retrieve it using Swagger https://localhost:44301/api/services/app/WebhookSubscription/GetSubscription?subscriptionId=359EA8AC-8B77-4997-8F89-xxxxxxxxxxxx { "result": { "tenantId": 5, "webhookUri": "https://webhook.site/761e8496-2e28-4e1d-844a-xxxxxxxxxxxx", "secret": "27f232be-3ee4-4791-b91d-xxxxxxxxxxxx", "isActive": true, "webhooks": [ "App.NewDeliveryOrder" ], "headers": { "additionalProp1": "string", "additionalProp2": "string", "additionalProp3": "string" }, "id": "359ea8ac-8b77-4997-8f89-xxxxxxxxxxxx" }, "targetUrl": null, "success": true, "error": null, "unAuthorizedRequest": false, "__abp": true }

But when I call https://localhost:44301/api/services/app/WebhookSubscription/GetAllSubscriptions The response is: { "result": { "items": [] }, "targetUrl": null, "success": true, "error": null, "unAuthorizedRequest": false, "__abp": true }

I get no subscriptions. I should at least get the one above. There are no errors in the AuditLog.

Any ideas? Thanks... Terry

No the webhook would be received by a third party application. I think I have figured out the calling of the Publish to initiate the webhook but the webhook is not being received at the destination uri of the subscriber. I have also not been able to see any of my webhooks on the client angular side; I created the subscription by adding a record to the database.

I am running Angular, with .Net Core on version 9.0.1 of AspNetZero

I have read the Webhook documentation for AspNetZero and the AspBoilerplate but I cannot see how to initiate the webhook event. I have also read the http://volosoft.com/Blog/ASP.NET-CORE-3.1-Webhook-Implementation-Using-Pub-Sub where I also see what the standard WebhookPayload.cs that I need to build (I think)

I have a CreateOrder Api that when called (and successful), I want to initiate a webhook NewDelivery event to be initiated which is subscribe to by selected Delivery/Courier companies.

I have followed the instructions for creating the WebHook Publisher and the Subscription for the NewDeliveryOrderWebhook but what is the process to call the webhook from the API (or associated Manager).

Any help would really be appreciated.

Thanks... Terry

.

Showing 21 to 25 of 25 entries