cancel
Showing results for 
Search instead for 
Did you mean: 

Modelling a query for MI 7.1 Laptop client

Former Member
0 Kudos

Hi,

Please can anyone let me know how to model a query in MI 7.1 for a laptop client.

I am getting the data in the device after synchronization, but not able to fetch the data in the views.

I am simply trying to fetch all the records from the DOE model in a table ui in the view. I am not clear on what to give as a input model class and result model class. Also how to provide conditions.

Please help if anyone has an idea on this.

Thanks & regards,

Sumit

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Dear Sumit,

Plz .refer to below link for the complete information on how to create a Query Model Class for Laptop client for MI 7.1.Its also having a tutorial:" Creating a Service Order Application " for reference and better clarity.

Below link explains the complete flow of data from Backend to client.

Follow the path:

Developing Mobile Applications for Laptops->Tasks->Creating a Query Model Class .

Link:

http://help.sap.com/saphelp_nwmobile71/helpdata/en/46/7294498d870ad3e10000000a11466f/frameset.htm

Mark the answer as helpful,if it has solved your doubt.

Regards,

Abhi

Former Member
0 Kudos

Dear Abhi,

I have gone through the link. this is for handheld scenario.

There is a tab for a laptop as well but they have not clearly mentioned on how to give a condition for filtering while writign the query.

My exact concern is to know how to use the query modeller provided here in.

Please help if you can.

Thanks & regards,

Sumit.

Former Member
0 Kudos

Hello,

Here are the steps on how to use query modelling :

1. Create and emplty model first say 'emptymodel1' (model with out MBO's)

2. Create a model say 'model1' where u import all your required MBO's

3. Now ass model1 in used models of empltymodel1

4. In the model class of emplty model , we need to create a query.here are the steps :

create one composite query wher you select your input class and save

creaye one simple query where you select you result class and save.

Former Member
0 Kudos

Hello Sumit,

Here are the steps for query creation :

1. Create an empty model say 'empty model1' (model with out MBO's)

2. Create a model say 'model1' with all ur MBO's needed

3. In the used models of empty model1 , add model1

4. In th model class of empty modes , you have to create a query.

a. create one composite query where you select your input class

b. create one simple query where you select your result class(ur mode1l) and iput class as composite (one with input) and provide filter condition

c. filter condition will be based on ur input field.Like if your inpur field is like CHAR_FLD

and result class is NODEX then the filter condition here looks like following:

NODEX.CHAR_FLD ILIKE: CHAR_FLD

5. Now you are done with your query creation , the rest of the application UI modelling will be as per your requirement.

Let me know just in case you need more info.

Regards,

Lakshmi