on 08-17-2006 10:24 AM
Hi,
I am pretty new to MI. I created a generic sync application in which I invoke a BAPI to create sales order.
I fail to understand -
If I am offline and I create 2 orders using the client, where are the orders stored in MI client? Are the stored automatically? or I need to store them explicitely through code?
When I go online and sync will I get 2 separate Inbound containers for each order?
Your replies will be very helpful
Thanks in advance.
Regards,
Nakul
hello nakul,
what the generic sync can offer is the abstraction of
the synchronization process by providing apis. other than
that, you have to create it by yourself. for example, your
data persistence and delta handling should be handled in
your application.
for your questions:
>If I am offline and I create 2 orders using the client,
>where are the orders stored in MI client? Are the stored
>automatically? or I need to store them explicitely
>through code?
as i had described above, you have to persist your own
data. the simpliest is to make your data serializable and
use the object streams for your persistence... the timing
of creating your outbound container is usually during the
sync.started event. your application should also have a
way of managing your data states; i.e. which data have
already been sent and which data wasn't; which data is the
same state as in the table. and so on...
>When I go online and sync will I get 2 separate Inbound
>containers for each order?
generally, when you sent 1 outbound container, you will
get a corresponding inbound container. this inbound container
will be handled to your inbound processor according to the
method you registered. inbound containers must be processed
by you and persist your data locally for your application
use. the framework temporarily saves the raw container files
but deletes them after the inbound processors were notified.
so if you did not process the inbound container during the
notification, the incoming data in that container will be lost.
hope this clears your doubt.
regards
jo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nakul,
In MI Terminology what ever that goes out of your Moblie client is called as Outbound Container and what ever that comes in is called Inbound Container.
1. The Outbound containers are stored automatically in the client device(In Offline mode).The MI Framework takes care of it.
2. When you sync the client device after creating two outbound containers, for sure you will get two inbound containers.
You can also test this scenario. I assume that your Mobile Device or the Client Device is your PC.
1. Unplug the network cable of your PC to detach it from the MI Server.
2. Now using MI Application create 2 orders.
3. Now plug your network cable.
4. Again synchronize the mobile device you will get two inbound containers.
Hope this solve your problem.
Regards,
Maheswaran.B
Message was edited by: Maheswaran B
Message was edited by: Maheswaran B
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.