3 Replies Latest reply on Jul 22, 2015 8:21 AM by Eugene Lee

    how to check if the AF Element exists or not?

    ArunaNamadev

      how to check if the AF Element exists or not?

       

      to check if the AFELement is already existing i used the following, but even if the objElement is existing the value is null

       

      AFElement objElement = myDB.Elements["Name"];

       

       

      I tried

      AFNamedCollectionList<AFElement> findDeviceNameElement = AFElement.FindElements(myDB, null, "Name", AFSearchField.Name, true,

                                                                                         AFSortField.Name, AFSortOrder.Ascending, 100);

       

      even then i am not getting the result

       

      Help me out !