AnsweredAssumed Answered

how to check if the AF Element exists or not?

Question asked by ArunaNamadev on Jul 22, 2015
Latest reply on Jul 22, 2015 by Eugene Lee

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 !

Outcomes