Hmm must say I haven't tried it with a getter that actually does anything :p so you might have hit a bug, will try to reproduce and come back to you.
The scaffold method basically does the following
public object GetScaffold(Type type)
{
var obj = Activator.CreateInstance(type);
var a1 = new ObjectEventArgs(type, obj);
UIOMaticObjectService.OnScaffoldingObject(a1);
return a1.Object;
}
UIOMaticListViewField
Hi,
I am trying to create a field that has te be shown at the listView. I am creating this field as following:
This works perfectly at the listView but now, when I want to create a new item is gives the following error (logs are empty):
I can not find any information about this on the internet or in the documentation. Am I missing something?
Kind regards, Yanick
Comment author was deleted
Hi Yanick,
Hmm must say I haven't tried it with a getter that actually does anything :p so you might have hit a bug, will try to reproduce and come back to you.
The scaffold method basically does the following
So don't see immediatly why it would fail
Comment author was deleted
you MemberRepository when is that initialized ?
It is just a simple class with a static method that looks like this:
Comment author was deleted
Ok thanks for the details, will give it a go
Comment author was deleted
It's probably because MemberId is still null, so try checking for that before calling the MemberRepository
Something like
Let me know if that does the trick
Comment author was deleted
And I assume memberId is an int so the check will be
if(MemberId == 0) return string.Empty;
Awesome that was the trick! You rock Tim!
Comment author was deleted
No prob, hope the project is useful to you :)
is working on a reply...