Easy Save Help!

Forums 💬 FlowCanvas ⚙️ Support Easy Save Help!

  • This topic has 0 replies, 2 voices, and was last updated 9 years ago by Gavalakis.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #22334
    chocolacode
    Participant

      Hey Gavalakis,

      I am trying to use the Easy Save nodes for loading and Saving Lists. However I don’t see the Node “EasySaveList”. Can you please help to add it?

      Also can you please provide me an example of how to save and load for a dictionary or a List?

      Thanks in advance!!

      #22339
      Gavalakis
      Keymaster

        Hey,

        For loading lists EasySaves provides a method and there also exists a node in the integration for that “EasySave/Loading/EasyLoadList(T)”.
        For saving though, there is no special method provided by EasySave. As such you can simply use the “EasySave/Saving/EasySave(System.Object)” node, to save a list (or any other type of object of course).

        Let me know if that works for you.
        Cheers!

        ( PS: I am not at office right now -no FC access- to create an example. Once I get back, I will post the example here for you! 🙂 )

        #22338
        chocolacode
        Participant

          Hey,

          I just tried the EasySave<Object> node for List and for a Dictionary and I am receiving errors in both cases.

          I am doing something wrong?

          Thanks in advance for your help!

          [attachment file=”easy save list or dictionary.png”]

          [attachment file=”easy save list or dictionary error.png”]

          #22337
          Gavalakis
          Keymaster

            Hello,

            Hmm, that is weird. I was sure that it would work with (T) as System.Object.
            Can you please try opening up EasySaveNodes.cs, find the class called EasySave(T) at line #86 and add this attribute just above the class name [AppendListTypes].
            Doing that will make the editor also show List types to be chose for (T) and as such allow you to add the exact node type required; in this case EasySave (List<string>).

            Please let me know if that would work.
            The rest of the graph looks correct by the way.

            #22336
            chocolacode
            Participant

              Hey,

              I made the changes as you suggested.

              I added the new node and I am still getting same errors 🙁

              Can you please check on your end?

              Thanks in advance

              #22335
              Gavalakis
              Keymaster

                Hello,
                If the error you are getting is still the one saying that “EasySave does not support this type”, maybe I think that we should contact the EasySave author, since all that the FC integration nodes do, is directly calling EasySave functions (no tricks in between).
                The EasySave API [LINK], shows that it should work:

                I will check this out in the weekend too.

              Viewing 6 posts - 1 through 6 (of 6 total)
              • You must be logged in to reply to this topic.