How to Use Crosslight to Hide a Form Section on Android

4 replies. Last post: June 19, 2015 9:41 AM by leo Chandra
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Jimmy TungolMember

Hi,

As stated on the title, kindly advise how we can hide a Form Section on Android. We have the same FormMetadata used in iOS (which is working), but doesn't seem to be working on Android. Much worse than that... we are getting an error when using the same functionality in Android.

$exception { System.NullReferenceException: Object reference not set to an instance of an object
at Intersoft.Crosslight.ObjectExtensions.GetProperty (object,string) <IL 0x00002, 0x0004b>
at Intersoft.Crosslight.ObjectExtensions.GetPropertyPathValue (object,string,bool) <IL 0x0008d, 0x0025f>
at Intersoft.Crosslight.ObjectExtensions.GetPropertyPathValue (object,System.Type,Intersoft.Crosslight.BindingDescription) <IL 0x00008, 0x0004f>
at Intersoft.Crosslight.ObjectExtensions.GetPropertyPathValue<bool> (object,Intersoft.Crosslight.BindingDescription) <IL 0x0000c, 0x00037>
at Intersoft.Crosslight.Android.FormActivity`1<Mercury.Mobile.Core.ViewModels.Collection.TicketMachineEditViewModel>.InitializeForm () <0x0075f>
at Intersoft.Crosslight.Android.FormActivity`1<Mercury.Mobile.Core.ViewModels.Collection.TicketMachineEditViewModel>.InitializeView () <0x001ab>
at Intersoft.Crosslight.Android.FormActivityBase`1<Mercury.Mobile.Core.ViewModels.Collection.TicketMachineEditViewModel>.OnCreate (Android.OS.Bundle) <0x00325>
at Intersoft.Crosslight.Android.FormActivity`1<Mercury.Mobile.Core.ViewModels.Collection.TicketMachineEditViewModel>.OnCreate (Android.OS.Bundle) <0x00067>
at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (intptr,intptr,intptr) [0x00011] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.21-series/38ac51a9/source/monodroid/src/Mono.Android/platforms/android-14/src/generated/Android.App.Activity.cs:1944
at (wrapper dynamic-method) object.7cea21f0-037c-41ce-83e8-e91a9c9a9f5b (intptr,intptr,intptr) <IL 0x00017, 0x0001f>
} System.NullReferenceException

Does Section's VisibilityBinding and/or EnabledBinding work on other platforms other than iOS (e.g. WinPhone, WinRT, and that of Android's)? Please advise

Many thanks!

All times are GMT -5. The time now is 8:20 AM.
Previous Next