I want to know how to use Object Service Data Model Class

This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal.

Hello.

I made a model class like the attached image.

However,I couldn't get the use it answer though I investigated it.

Could you give me sample code to run this model class?

http://docs.kony.com/konylibrary/visualizer/kony_ref_arch_api/Content/MVVM_Overviews_CreateApp.htm

KonyVisualizer Version 8 Service Pack 2 Fix Pack 8.

Thanks for the help.

Hi,

Model is genrated based on associated object services in Kony Fabric app. This model structures your requests responses as per Object field parameteres, enables you to call CRUD opertaions.

You can call a custom verb as shown below -

var inputParammObj = {};

var modelDef = kony.mvc.MDAApplication.getSharedInstance().modelStore.getModelDefinition("WeatherAPI");

modelDef.customVerb('verbName', inputParammObj , serviceCompletionCallback);

Check below link for other CRUD opertaios and more details -

https://docs.kony.com/konylibrary/konyfabric/offline_objectsapi_reference_guide/Content/Integrating_Offline_Objects_with_MDA_Models.htm

@Chloe Pullmvn​

Thanks for the reply!

This problem was resolved thanks to your support.