the error about "The non-generic method 'umbraco.presentation.nodeFactory.Node.GetProperty(string)' cannot be used with type arguments" is because it's trying to use the GetProperty method of the Umbraco Node obj, rather the uQuery extension method on the Node obj - to fix that add:
autocomplete and members
I am trying to iterate over members stored as a uComponents autocomplete property. The data is stored as <members>1088,1095</members>
@Model.Members returns 10881095
Using an example similar to the one on uComponents codeplex page, returns nothing.
var memberList = uQuery.GetMembersByCsv(@Model.GetProperty<string>("members").ToString());
foreach(var member in memberList) {
@member
}
Any ideas?
Hi Sean,
does @Model.Members return the the integers comma seperated ?
alternatively how about:
HTH,
Hendy
Hi Hendy
@Model.Members returns the data as one value '10881095'
The following code returns "The non-generic method 'umbraco.presentation.nodeFactory.Node.GetProperty(string)' cannot be used with type arguments"
var memberList = uQuery.GetMembersByCsv(uQuery.GetCurrentNode().GetProperty<string>("members"));
The following code returns "The best overloaded method match for 'uComponents.Core.uQuery.GetMembersByCsv(string)' has some invalid arguments"
var memberList = uQuery.GetMembersByCsv(@Model.GetProperty<string>("members"));
The following code returns ""
var memberList = uQuery.GetMembersByCsv(@Model.GetProperty<string>("members").ToString());
Any ideas?
Hi Sean,
the error about "The non-generic method 'umbraco.presentation.nodeFactory.Node.GetProperty(string)' cannot be used with type arguments" is because it's trying to use the GetProperty method of the Umbraco Node obj, rather the uQuery extension method on the Node obj - to fix that add:
HTH,
Hendy
is working on a reply...