Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Tabset state saving

    Hello Folks,

    I have tabset in my application where user can add and remove tab and also can modify and add data in tabs.

    But how to save all user added or edited data, so that I can load them again. I want to store them in database so that when user log in again or return, He will found data as it is.

    isc.tabset.create({
    ID: "UserDefineTab",
    ...
    .... //I have define all properties here and also
    ..... // Add tab event
    ..... // close tab event
    });

    How to store whole object, so that I can draw it again.

    Thank you.

    #2
    I tried using timer in my application.
    After every 60 seconds I clear object and draw again. which works ok. but how to store whole object.

    Timer.setTimeout: function()
    {
    var objTry = UserDefineTab;

    UserDefineTab.clear();

    // wait for 60 seconds, so I know that nothing exist on page.

    objTry.draw(); // drawing everything correct with correct data and also correct state, like last visited tab, filter data and many more.
    }


    NOW PLEASE SUGGEST ME HOW TO STORE "UserDefineTab" OBJECT TO DATABASE?? When I tried to POST "UserDefineTab" is very big, and not posting anything.

    var rest = isc.RPCRequest.create({
    ...................
    ..............
    data : isc.JSON.encode(UserDefineTab, encoder);
    .............
    ...........
    });
    isc.RPCManager.sendRequest(rest);


    HOW TO COMPRESS WHOLE OBJECT, SO THAT I CAN POST IT TO SERVER?

    Comment


      #3
      Hello, Folks

      I am still looking for solution. Any suggestions are highly appreciated.

      Comment

      Working...
      X