Base solution for your next web application

Activities of "20summers"

Hi,

Anyone willing to share stripe integration code.

I live in South Africa and need to Invoice in ZAR - Paypal does not offer this option.

Anyone willing to share stripe integration code?

Thanks

Question

I am trying to wtite an Outlook addin that communicated with the main application.

When I run the Console API Client on local - everyhting works great.

When I change the following line: ServerUrlBase = "http://www.brokerblocks.com/" in the client and try to connect to my azure hosting, it fails on this line:

var tokenClient = new TokenClient(disco.TokenEndpoint, "client", "def2edf7-5d42-4edc-a84a-30136c340e13", httpHandler);

Is there something I am missing?

I am posting the data via

_activitiesService.createOrEdit( activity ).done

How do I post the data and get the resulting record Id from createOrEdit?

I upgraded to Visual Studio 15.7.3 last night.

When I try to logon this morning to <a class="postlink" href="http://localhost:62114/Account/Login">http://localhost:62114/Account/Login</a> I get an error:

An unhandled exception occurred while processing the request.
ArgumentException: The 'SiteKey' option must be provided.
PaulMiami.AspNetCore.Mvc.Recaptcha.Guards.CheckMandatoryOption(string s, string name)

TargetInvocationException: Exception has been thrown by the target of an invocation.
System.RuntimeMethodHandle.InvokeMethod(object target, Object[] arguments, Signature sig, bool constructor)

ComponentActivatorException: ComponentActivator: could not instantiate PaulMiami.AspNetCore.Mvc.Recaptcha.RecaptchaService
Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.CreateInstanceCore(ConstructorCandidate constructor, Object[] arguments, Type implType)
Question

Hi

I have seen the updates to the ASP.NET Boilerplate documents section ( <a class="postlink" href="https://aspnetboilerplate.com/Pages/Documents">https://aspnetboilerplate.com/Pages/Documents</a> ). Any chance we can have this functionality built into Boilerplate or share the souce code for this.

It would be nice to either show version update information or could be used as a Help section on your custom solution.

Thanks

I have created a new Area called CRM that I have in addition to the App area All is working well except the custom menu for this area This new area has its own Startup Folder with public class CRMNavigationProvider : NavigationProvider

I find when I change this line from App to CRM public const string MenuName = "CRM";

I get the following error

AbpException: There is no menu with given name: CRM Abp.Application.Navigation.UserNavigationManager+<GetMenuAsync>d__12.MoveNext()

When I change it back to App, I do not get the error, but it shows the menu from the App Area

How Do I implement a custom menu for this area?

I have a table where I store the current sales values that I import from an excel file.

Is there a quicker way to do this than each item being deleted?

var query = _crmOpportunityRepository
                    .GetAll();

                foreach (var item in query)
                {
                    await _crmOpportunityRepository.DeleteAsync(item.Id);
                }

Hi,

Instead of using PagedResultDto with JTable (which is awesome), I want to display the users in the system to the other users, in a different layout (see the link). [http://webapplayers.com/homer_admin-v2.0/contacts.html]) How would I use PagedResultDto to do this?

Hi,

I have the following foreign key in my model:

public virtual PlanStatus Status { get; set; }
        public int? StatusId { get; set; }

in jTable I can display the StatusId

statusId: {
                title: app.localize("Status"),
                width: "30px",
                display: function (data) {
                    if (data.record.statusId) {
                        console.log(data.record);
                         return data.record.statusId;
                    }

                }
            },

in the PlanStatus model I have a field Status that I want displayed in the jTable.

How do I display it?

I have created document upload functionality.

I can create the record correctly, but wanted to add dropzone.js as the means by which I upload the document see image: [https://goo.gl/photos/ZSVgZCJrHDTBFnBC6])

The ideas is that you populate the Name and Category fields, then drag and drop a file. The file gets submited automatically and gets replaced with a DocumentId (once saved in the database), and then the user clicks save.

My Issue: my _createOrEditModal.js has the following code:

$(".dropzone").dropzone({
    url: "/App/Documents/UploadDocument/",
    uploadMultiple: false,
    paramName: "file",
    parallelUploads: 1,
    maxFiles: 1
});

I keep on getting a code 400 error when it tries to upload the file (it does not even go into the controller). I have spent a number of hours on this and cannot figure out whats going on.

Here is my controller code:

public ActionResult UploadDocument()
        {
            try
            {
                var documentFile = Request.Form.Files.First();

                //Check input
                if (documentFile == null)
                    throw new UserFriendlyException(L("File_Empty_Error"));

                byte[] fileBytes;
                using (var stream = documentFile.OpenReadStream())
                {
                    fileBytes = stream.GetAllBytes();
                }

                var documentFileObject = new BinaryObject(AbpSession.GetTenantId(), fileBytes);
                _binaryObjectManager.SaveAsync(documentFileObject);


                return Json(new AjaxResponse(new {id = documentFileObject.Id}));
            }
            catch (UserFriendlyException ex)
            {
                return Json(new AjaxResponse(new ErrorInfo(ex.Message)));
            }
        }
Showing 1 to 10 of 13 entries