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
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
you MemberRepository when is that initialized ?
It is just a simple class with a static method that looks like this:
Ok thanks for the details, will give it a go
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
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!
No prob, hope the project is useful to you :)
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.