Community: Framework mailing list archives

expert-framework@mail.odoo.com

Re: Odoo Mobile framework

by
Devang Pipaliya
- 07/15/2015 04:56:27
HI Sandra,

You can use the 'ListView' for the view and the 'OCursorListAdapter' as the adapter to bind the customer data from the customer model

For example :: to list out all the partner what you have to use is ..

@Override public Loader<Cursor> onCreateLoader(int id, Bundle args) { return new CursorLoader(getActivity(), db().uri(), null, null, null, null); }

Where
db() == this will return you the db object of the particular table that you provide as given code in your java file ...
    @Override
    public Class<ResPartner> database() {
        return ResPartner.class;
    }

means 'res.partner' - the partner table that is been referenced in the ResPartner.Java

so if you want to list out all partner; this is what you should use...

http://mobile.odoo.co.in/v2/getting-started/working-with-odoo-mobile/components/addons.html#working-with-r-layout-common-listview-layout

This will help you out for that. The example used here is of related to project.



​--
Regards,
 
--
 
Devang Pipaliya
http://about.me/DevanGPipaliyA
 
​" Have a nice rest of the remaining day ! "​​ 


On Wed, Jul 15, 2015 at 12:40 PM, Sandra Konotey <buelersandra@gmail.com> wrote:

For Android

On Jul 15, 2015 6:08 AM, "Holismo Tecnolǵico" <holismo.tecnologico@gmail.com> wrote:
I m Working first in integration of AngularJS
 y Odoo CMS and second Ionic Framework for Odoo Mobile.

So, any help are welcome,



2015-07-15 1:47 GMT+02:00 Planeta Odoo <planetaodoo@gmail.com>:
There google framework for iOS ?

2015-07-14 19:41 GMT-03:00 Sandra Konotey <buelersandra@gmail.com>:

Hello 
I'm currently building on top of the Odoo mobile framework. So far I've been able to add an addon programmatically following the documentary but can't figure out how to load the data. So my fragment is empty when application launches unlike that  of the customers. Any help please?

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-framework-62
Post to: mailto:expert-framework@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe


_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-framework-62
Post to: mailto:expert-framework@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe


_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-framework-62
Post to: mailto:expert-framework@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-framework-62
Post to: mailto:expert-framework@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe