3 Replies Latest reply on Oct 16, 2018 2:01 AM by Ufuk Taskin

    How can i get card list with api?

    Ufuk Taskin

      Hello, i want get card list with api without sql query.

       

      How can i do it? I've searched a lot in the forum and the document api, but I didn't find anything.

      I've added a list on image

      List1.png

        • Re: How can i get card list with api?
          Michael Dekoning

          AFAIK the only way is using a query.

          • Re: How can i get card list with api?
            Sam Sam

            There is variant of connection to Excel or Access file with these (linked server), but it is all the same sql query.

            If it is very necessary, probably it is possible to use API for work with this file.

            • Re: How can i get card list with api?
              Ufuk Taskin

              I solved it in another way.

              Adsız.png

              String musteriListVariable = "Sil";
              aFile = vault1.GetFileFromPath(FileName, out ppoRetParentFolder);
                                  k = FileName.LastIndexOf(".");
                                  fileExt = FileName.Substring(k + 1, (FileName.Length) - k - 1);
                                  aPos = aFile.GetFirstFolderPosition();
                                  aFolder = aFile.GetNextFolder(aPos);
                                  aCard = (IEdmCard6)aFolder.GetCard(fileExt);
                                  Object musteriListName = musteriListVariable;
              if (getMusterilist.GetControlVariableList(aFile.ID, out String[] musteriListStrings))
                                  {
                                      listBox1.Items.Clear();
                                      foreach (String musteriListItem in musteriListStrings)
                                      {
                                          listBox1.Items.Add(musteriListItem);
                                      }
                                  }