Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hello Everyone,
I having a problem that I have a page node , where I create a multi picker for members.
After picking the members, it is returning member ids example 2551 , 2514
var page = @CurrentPage.mymember; var my = ApplicationContext.Current.Services.MemberService.GetAllMembers(page);
I also not able to convert the var page value in array via linq or int.parse
.GetAllMembers(int[] ids);
How I do that so I able pass member id one by one ... forloop also throwing error ...
Please help me ..
Thanks
Can do it this way:
@{ string mems = Model.Content.GetPropertyValue<string>("members") ?? string.Empty; int[] memsIDs = Array.ConvertAll(mems.Split(','), int.Parse); IEnumerable<IMember> members = ApplicationContext.Current.Services.MemberService.GetAllMembers(memsIDs); { @foreach(IMember member in members){ @member.Name <br/> <br/> foreach(var prop in member.Properties) { @(prop.Alias + ": " + (prop.Value ?? string.Empty)) <br/> } }
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Can't able to get member item values
Hello Everyone,
I having a problem that I have a page node , where I create a multi picker for members.
After picking the members, it is returning member ids example 2551 , 2514
I also not able to convert the var page value in array via linq or int.parse
How I do that so I able pass member id one by one ... forloop also throwing error ...
Please help me ..
Thanks
Can do it this way:
is working on a reply...