Find store by param

Discuss about Group-Office development here

Moderator: Developers

Posts: 6
Joined: Fri Apr 11, 2014 10:40 am

Find store by param

Postby mathil » Wed Mar 11, 2015 2:53 pm

Hi. I need to get store by params but I don't know how. In the other modules in GO.form.JsonStore I saw param baseParams. Is it a parameter after which a query retrieves results? In my code it's look like this:

Code: Select all = new{
        url: GO.url('warehouse/warehouse/store'),
        baseParams: {
            category_id: 2
        fields: ['id', 'barcode', 'name', 'category_id', 'quantity', 'unit', 'price', 'price_val', 'min_value', 'weight'],
        remoteSort: true,
        model: 'GO_Warehouse_Model_Warehouse'
Is this code should retrieve records with the category_id=2 and then display them in a table?
Posts: 77
Joined: Thu Jul 03, 2014 10:36 pm

Re: Find store by param

Postby mcharvat » Sat Apr 18, 2015 11:39 pm

Well it's on your implementation on backend how do you filter results. BaseParams is property of the store containing an object which contains properties which are sent as parameters for every HTTP request.
IT Analyst, Independent seasoned Group-Office developer, Educator of web applications

Who is online

Users browsing this forum: No registered users and 3 guests