Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    hannes
    @escapedcat
    Or maybe easier. How to use entities in a custom page?
    garethsb
    @garethsb
    Good question, @escapedcat. I'm interested in the answer too!
    hannes
    @escapedcat
    :tada:
    @garethsb marmelab/ng-admin#1316
    ah, i see :)
    I think my case is a bit different. Still wouldn't be sure how to use custom types in a custom page
    garethsb
    @garethsb
    No, that's a different issue. I'm also interested in the answer to your question :-)
    hannes
    @escapedcat
    anyone? ;(
    I dislike the idea of just creating my own controller/service, do API calls and use that data instead of what ng-admin might be able to provide already.
    zhxbwin
    @zhxbwin
    amazing dashboard, but I haven't see any chart? NO chart inside?
    Tianzuo.Zhou
    @ztz0223

    Hello everyone.
    My site is build from the MeanJS, and I want to integrate the ng-admin as a part of my site. But I failed.
    And I did a test like this:

    // Init the application configuration module for AngularJS application
    var ApplicationConfiguration = (function () {
        // Init module configuration options
        var applicationModuleName = 'ang_html';
        var applicationModuleVendorDependencies = ['ui.router', 'ng-admin'];
        // Add a new vertical module
        var registerModule = function (moduleName, dependencies) {
            // Create angular module
            angular.module(moduleName, dependencies || []);
            // Add the module to the AngularJS configuration file
            angular.module(applicationModuleName).requires.push(moduleName);
        };
        return {
            applicationModuleName: applicationModuleName,
            applicationModuleVendorDependencies: applicationModuleVendorDependencies,
            registerModule: registerModule
        };
    })();
    angular.module(ApplicationConfiguration.applicationModuleName, ApplicationConfiguration.applicationModuleVendorDependencies);
    angular.element(document).ready(function () {
        angular.bootstrap(document, [ApplicationConfiguration.applicationModuleName])
    });
    ApplicationConfiguration.registerModule('newApp1', []);
    angular
        .module('newApp1')
        .config(routeConfig)
        .config(['NgAdminConfigurationProvider', function (NgAdminConfigurationProvider) {
            // create the admin application
            var admin = NgAdminConfigurationProvider.application('My First Admin')
                .baseApiUrl('/xxx');
            NgAdminConfigurationProvider.configure(admin);
        }]);
    routeConfig.$inject = ['$stateProvider'];
    function routeConfig($stateProvider) {
        $stateProvider
            .state('order', {
                abstract: true,
                url: '/order',
                template: '<ui-view/>'
            })
            .state('order.admin', {
                url: '',
                template: '<div ui-view="ng-admin">AAAA</div>',
                data: {
                }
            });
    }

    This does not work.
    And I created a repo for my test: test ng -admin can someone help me ?

    Tianzuo.Zhou
    @ztz0223
    Any idea will be appreciated!
    Thanks.
    Jerod Fritz
    @centogram
    Does anyone know if ng-admin supports drag and drop reordering of items in a collection via a weight field or something similar?
    ajordanduh
    @ajordanduh
    @Phocea Can we set a limit on the number of objects retrieved from the response of a REST API call? For example, if I only want to retrieve 20 objects from the response at a time how can this be done with a reference?
    jlabarintos
    @jlabarintos
    how can i specify width of the table columns in listView?
    Olga Maciaszek-Sharma
    @OlgaMaciaszek
    Hello; I have an issue regarding adding default headers with Restangular; I need to add basic auth for my PAI. After checking up the docs, I have added the following code to admin.js:
    taskDevelopers.config(['RestangularProvider', function(RestangularProvider) {
        var login = 'admin',
            password = 'xxx',
            token = window.btoa(login + ':' + password);
        RestangularProvider.setDefaultHeaders({'Authorization': 'Basic ' + token});
    }]);
    However, when the request is actually being done, the header is not being added
    These are all the headers that get added:
    OPTIONS /agencies?_page=1&_perPage=30&_sortDir=DESC&_sortField=id HTTP/1.1
    Host: localhost:8080
    User-Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
    Accept-Language: en-US,en;q=0.5
    Accept-Encoding: gzip, deflate
    Access-Control-Request-Method: GET
    Access-Control-Request-Headers: authorization
    Origin: null
    Connection: keep-alive
    I would be very grateful for any suggestions regarding how to debug this issue
    Olga Maciaszek-Sharma
    @OlgaMaciaszek
    I've solved the issue, so not important anymore
    Al Falah Taieb
    @AlFalahTaieb
    Hi is there someone please
    Bhargav-Narayan
    @Bhargav-Narayan
    Hi, I have an app built on sails.js. I'm very new to angular2. Now I want to integrate ng-admin using angular2. Is there any plugin like ng-admin for angular 2 also ?
    Lucas
    @lucassantanna
    hey @Bhargav-Narayan https://github.com/akveo/ng2-admin
    am-konstantin
    @am-konstantin
    Hey! Im currently using ng-admin and im trying to implement a simple search filter. I used the documentation to implement it but after typing in something it just fires a new request with the search text in it but it does not search on the clientside. Do I have to implement it on serverside or is there anyway to make it work on clientside only? Thanks for helping me
    Jacob Rief
    @jrief
    is there a way to attach an entity to an editionView without a listView? Say you want to edit a sigleton.
    Dmitry Demenchuk
    @mrded
    Quick question. Will ng-admin become unsupported, in favour to admin-on-rest? Thanks.
    Srinivas Kommu
    @srinivaskommu
    @am-konstantin , search will make request to server with values filled in filters. You need to have api to support search.
    Angel Santiago Silva Borja
    @angelsilva94
    hi
    Paulo Brito
    @paulorsbrito
    Hi! There's a way to post the full related object? For example, I need a full post object when a post a comment, not just the post id.
    Qiming Liu
    @qooroo
    +1 for the above, alternately: how do you post with another property of the object other than the id?
    .targetField works for display, but I'd like to configure it to post as well
    Qiming Liu
    @qooroo
    looks like .transform is designed to handle this, but I want it for a related entity within a creation view
    and I don't want to override the global identity for that related entity
    Rajesh Rai
    @MrRajeshRai
    What is the best login module for ng-admin?
    Dmitry Demenchuk
    @mrded
    Can I use a pages (or infinity scroll) without providing X-Total-Count?
    @MrRajeshRai I made a login form myself, can give you an example.
    muenzer
    @muenzer
    Is there anyway to pass the entry id to the file upload field?
    Dmitry Demenchuk
    @mrded

    @muenzer after uploading, you should return something like

    {id: 1234}

    then in ng-admin create a field:

    nga.field('my_file', 'file')
      .uploadInformation({
        'url': 'http://example/file',
        'apifilename': 'id'
      }),
    ramadhani
    @cyber41

    This is the expected markup which is created dynamically

    <textarea data-ng-model="cv.experience[content.title]"></textarea>
    <textarea data-ng-model="cv.experience[content.title]"></textarea>

    This is the sample of the JSON I want to achieve

    experience:{
    
        content:[
            {
                header:String,
                title:String,
                start_date:Date,
                end_date:Date,
                location:String,
                description:String
            },
            {
                header:String,
                title:String,
                start_date:Date,
                end_date:Date,
                location:String,
                description:String
            },
            ....
        ]
    }

    How can i archive above structure using ** ng-model **

    Dmitry Demenchuk
    @mrded
    Can I get somebodies attention on this? marmelab/ng-admin#1348
    saimirg
    @saimirg

    hi,
    the following URL is called on our application to add a new subscription record.

    http://mydomian.com/Subscriptions/create?defaultValues={"login_id":1234}

    Part of the creationview code is the following:
    subscription.creationView()
    .title('<h4>Subscriptions <i class="fa fa-angle-right" aria-hidden="true"></i> Create: Subscription</h4>')
    .fields([
    nga.field('login_id', 'reference')
    .targetEntity(admin.getEntity('LoginData'))
    .targetField(nga.field('username'))
    .attributes({ placeholder: 'Select Account' })
    .validation({ required: true })
    .singleApiCall(function (login_id) {
    return { 'login_id[]': login_id };
    })
    .label('Username'),
    The API call to the LoginData entity is bringing back all the records; what we want is to pass to the API call the login_id value coming from the initial URL. Something like: http://mydomain.com/api/LoginData?login_id=1234

    How do we do that ?

    Hector Mota
    @mota57
    asssuming that I have two entities EntityA and EntityB
    I want the two listViews i mean the data grids to show in the same page
    one below another...
    How do I do that..?
    ....on the documentation it shows only for the dashboard..How can i do that for another router......instead of the dashboard ?
    Hector Mota
    @mota57
    one day without answer my question good job im fuck out here ..
    oops wrong chat dont get me wrong
    Dmitry Demenchuk
    @mrded
    One of the reasons people don't get they answers, it because it's really hard to read a code in plain text. I personally don't even bother myself reading it.
    Dmitry Demenchuk
    @mrded
    How to create a multiple string field in editionView() and creationView()? stackoverflow