Base solution for your next web application

Activities of "microbridge"

I tried doing s before posting but i get a javascript error - Uncaught TypeError: originalListAction.method is not a function.

see code below

Javascript Script Code:

_$bagsTable.jtable({

        title: app.localize('Bags'),

        actions: {
            listAction:  "/Mpa/DepositProcessingToTreasury/GetBagsToBeTransfered"
        },

        fields:
        {
            id: {
                key: true,
                list: false
            },

            bagNo: {
                title: app.localize('BagNo'),
                width: '10%'
            },
            fit: {
                title: app.localize('Fit'),
                width: '10%'
            },

            currencyCode: {
                title: app.localize('Currency'),
                width: '25%'
            },
            bagTotal: {
                title: app.localize('Total'),
                width: '10%'
            }
        }  

    });

Controller :

public JsonResult GetBagsToBeTransfered() {

        try
        {
            List<CashMovementTransactionBagListDto> result = new List<CashMovementTransactionBagListDto>();

            if (ViewData["Bags"] != null)
            {
                var bagList = ViewData["Bags"] as List<CreateOrUpdateCashMovementBagDto>;


                foreach (var bag in bagList)
                    result.Add(new CashMovementTransactionBagListDto { BagNo = bag.Bag.BagNo, BagTotal = 0, CashMovementTransactionId = 0, CurrencyCode = "JMD", CurrencyId = 1, Fit = true, Id = 0 });



            }
            return Json(new { Result = "OK", Records = result });


        }
        catch (Exception ex)
        {
            return Json(new { Result = "ERROR", Message = ex.Message });
        }


    }

Hi, i am using ASP.NET MVC 5.X with JQuery. I want to call a controller method instead of service method when loading data into a jtable. I need to store some data in viewdata or as a session object and populate the jtable from one of those objects instead of pulling data from a database. Whats is the best way to achieve this using abp.

Ok, Thanks

i am using JQuery.

Question

Hi, I need some assistance to implement cascading dropdownlist using ajax. I have scenario similar to a make and model, where once a make is selected, i want to populate a dropdown asynchronously the associated models. Whats the best way to achieve this using ABP.

Showing 1 to 5 of 5 entries