Navision 2009 Addin queries (Send and receiving the data)

abhishekpareekabhishekpareek Member Posts: 150
edited 2010-02-09 in NAV Three Tier
Hi everyone,

I have few queries related to navision 2009 addins i.e,

1) Whether it is possible to send the data from navision 2009 sp1 by using addin to third party control. I want to send the data in loop. I want to send the field name and field values one by one before initializing the controls through addins.

2) After calling the controls , I want to send back the data in string format, through addin only. Data is more then 1024 hence it means that I have to send it loop and then I nedd to add at the navision end.

Whether two points mention below are achievable?

Thanks for help in advance!

Regards,
Abhishek pareek

Comments

  • freddy.dkfreddy.dk Member, Microsoft Employee Posts: 360
    Bind the add-in to a BigText variable, then you don't have to cope with multiple roundtrips.
    Freddy Kristiansen
    Group Program Manager, Client
    Microsoft Dynamics NAV
    http://blogs.msdn.com/freddyk

    The information in this post is provided "AS IS" with no warranties, and confers no rights. This post does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion.
  • abhishekpareekabhishekpareek Member Posts: 150
    Whether Big Text variable can support more then 1024 size. Actually , I would be having large amount of data to be sent accross.
  • freddy.dkfreddy.dk Member, Microsoft Employee Posts: 360
    BigText can easily hold more than 1024 bytes - and unless you are looking at several MB's of data that would be my preferred way.

    Second option would be to use the event - meaning that the control would call the event on the service tier and ask for data, incrementing a counter to ask for data. Note that every event here is a roundtrip between server and client and is executed on the main UI thread, thus blocking the UI:

    Third option would be for your control to spawn up a worker thread connecting to Web Services and fetching data on the side - not blocking the UI at all - this is however a bit more complicated.
    Freddy Kristiansen
    Group Program Manager, Client
    Microsoft Dynamics NAV
    http://blogs.msdn.com/freddyk

    The information in this post is provided "AS IS" with no warranties, and confers no rights. This post does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion.
  • abhishekpareekabhishekpareek Member Posts: 150
    It would be great if you can give one example about how to send the data in chunks to control addin events.
    I am very new to this addin thing and very less help is available for this data sending and receiving part.

    Regards,
    Abhishek Pareek
Sign In or Register to comment.