I'm trying to do SearchForObjectsByConditions in my UIX app to get an object referenced.
I already retrieved the lookup ID like this :
factureID = facture.Value.GetLookupID(); // Here facture is a Property Value
Then I try to do my search :
var searchConditions = new MFiles.SearchConditions();
var searchConditionObjType = new MFiles.SearchCondition();
searchConditionObjType.Expression.DataStatusValueType = MFiles.MFStatusType.ObjectTypeID;
searchConditionObjType.ConditionType = MFiles.MFConditionType.Equal;
searchConditionObjType.TypedValue.SetValue(MFiles.MFDataType.Lookup, 0);
searchConditions.Add(-1, searchConditionObjType);
var searchConditionObjectID = new MFiles.SearchCondition();
searchConditionObjectID.Expression.DataStatusValueType = MFiles.MFStatusType.ObjectID;
searchConditionObjectID.ConditionType = MFiles.MFConditionType.Equal;
searchConditionObjectID.TypedValue.SetValue(MFiles.MFDataType.Lookup, factureID);
searchConditions.Add(-1, searchConditionObjectID);
var searchResults = shellFrame.ShellUI.Vault.ObjectSearchOperations.SearchForObjectsByConditions(searchConditions, MFiles.MFSearchFlags.None, false);
And get the following error :
CustomControlSite.cpp, 1049, Conditions de recherche invalides. (0x80040027)
Tab Test Singer: test.html, 51, Conditions de recherche invalides. (0x80040027)
MDispatchExImpl.h, 679, Conditions de recherche invalides. (0x80040027)
MDispatchExImpl.h, 841, Conditions de recherche invalides. (0x80040027)
CoVaultObjectSearchOperations.cpp, 451, Conditions de recherche invalides. (0x80040027)
ClientVaultObjectSearchOperationsHelper.cpp, 59, Conditions de recherche invalides. (0x80040027)
ClientVaultObjectSearchOperationsHelper.cpp, 293, Conditions de recherche invalides. (0x80040027)
ClientVaultObjectSearchOperationsHelper.cpp, 641, Conditions de recherche invalides. (0x80040027)
CoVaultMountingSearch.cpp, 523, Conditions de recherche invalides. (0x80040027)
VaultStateSearch.cpp, 500, Conditions de recherche invalides. (0x80040027)
VaultStateSearch.cpp, 614, Conditions de recherche invalides. (0x80040027)
IRPCSearch.generated.cpp, 1397, Conditions de recherche invalides. (0x80040027)
gRPCClient.cpp, 497, Conditions de recherche invalides. (0x80040027)
gRPCClient.cpp, 466, Conditions de recherche invalides. (0x80040027)
gRPCClient.cpp, 99, Conditions de recherche invalides. (0x80040027)
gRPC.generated.cpp, 24216, Conditions de recherche invalides. (0x80040027)
RPCSearch.cpp, 752, Conditions de recherche invalides. (0x80040027)
MCallInLoop.h, 535, Conditions de recherche invalides. (0x80040027)
RPCSearchHelper.cpp, 3069, Conditions de recherche invalides. (0x80040027)
RPCSearchHelper.cpp, 4966, Conditions de recherche invalides. (0x80040027)
RPCSearchHelper.cpp, 17653, Conditions de recherche invalides. (0x80040027)
RPCSearchHelper.cpp, 17858, Conditions de recherche invalides. (0x80040027)
RPCSearchHelper.cpp, 17825, Conditions de recherche invalides. (0x80040027)
RPCSearchHelper.cpp, 18180, Conditions de recherche invalides. (0x80040027)
RPCSearchHelper.cpp, 18504, Conditions de recherche invalides. (0x80040027)
RPCSearchHelper.cpp, 18565, Conditions de recherche invalides. (0x80040027)
ObjectSearcher_FullInfo.cpp, 1226, Conditions de recherche invalides. (0x80040027)
ObjectSearcher_FullInfo.cpp, 1595, Conditions de recherche invalides. (0x80040027)
SearchSQLHelper.cpp, 4970, Conditions de recherche invalides. (0x80040027)
SearchSQLHelper.cpp, 3814, Conditions de recherche invalides. (0x80040027)
SearchSQLHelper.cpp, 8220, Conditions de recherche invalides. (0x80040027)
SearchSQLHelper.cpp, 7969, Conditions de recherche invalides. (0x80040027)
SearchSQLHelper.cpp, 8477, Conditions de recherche invalides. (0x80040027)
SearchSQLHelper.cpp, 9215, Conditions de recherche invalides. (0x80040027)
(M-Files 25.1.14445.5 2025-02-21T16:57:59.315Z)
Any idea why ?
I'm much more used to dev VAF apps.