User Profile & Activity

Jimmy Tungol Member
Page
of 13
Hi Martin and Yudi,

Thanks for your support. We really appreciate it. And yes, we are aware that licences should be uninstalled or removed prior to any restoration or recovery. However, crashes do not apply to this situation where you no longer have access to the main system, neither in safe mode. Unless of course you develop an online license manager where we can deactivate licenses easily. You know, much like how you deactivate licensed machines on Xamarin.

Again, many thanks!
This guide works, awesome! Thanks!
We'll take a look and see how things work. Thanks!
Hi Yudi,

As always, we appreciate your support with our concerns. But please do verify the download link, the files is no longer available.

Thanks!

Edit: Nevermind, I modified the link to this https://onedrive.live.com/?cid=A29317908CEA783A&id=A29317908CEA783A!428
Hmmm... how do you call an SP without executing the query using db.Context? When calling the desired SP and passing the needed parameters manually, isn't it that db.Context is still required? A code snippet would be very much appreciated. There may be several ways of calling an SP, but could you please post a code that demonstrates your feedback?

We can think of using db.Context.Database.SqlQuery<TModel>("GetCategoryByLocations", params[]) based on your statement. But even that makes use of the db.Context. So please... pretty please confirm or provide a code snippet regarding your latest post.

Much appreciated. Many thanks!
We believe item #2 is supported, and have made it work. However, please do advise follow-up queries regarding item #1, as to how we can use ObjectResult<TEntityModel> GetCategoryByLocations(string location). We can extend this Crosslight-generated function to QueryResult using a partial class, but that breaks the paging or incremental loading, because the controller does not recognize the query string syntax (see attached screenshot). We might prefer to use stored procedures often for complex queries with EnableIncrementalLoading, EnableRefresh, EnableAsyncFilter, and ExitEditModeOnDelete set to true. So please, kindly advise what we need to do next or provide a link that specifically demonstrate how to use custom functions and stored procedures (if any). If not, code snippets would work as well.

Thanks!
Hi,

Kindly provide a sample on how you would implement this scenario using the business template. Seems like there are services that have been broken, which are dependent to the AppSettings. The code snippet you have provided, does it have to be inside the ApplicationServiceBase.OnStart method? Before the lines of codes provided below?

if (!this.ActivationService.IsActivated())
{
// Inside this viewmodel, a company code will be accepted from user's input.
// The company code will be validated. Once confirmed valid, the details to
// construct the Url for Crosslight's services will be retrieved and stored
// to the device for future reference. Then, the Url will be generated and
// assigned to the WebServerUrl and BaseAppUrl respectively. Afterwhich, the
// user will be redirected to the LoginView via HomeViewModel.
this.SetRootViewModel<ActivationViewModel>();
}
else
{
// Initialize the AppSettings here.
var appSettings = Container.Current.Resolve<AppSettings>;
appSettings.WebServerUrl = this.ActivationService.GetStoredWebUrl();
appSettings.BaseAppUrl = appSettings.WebServerUrl + this.ActivationService.GetStoredAppName();
appSettings.BaseImageUrl = appSettings.BaseAppUrl + "/images/";
appSettings.RestServiceUrl = appSettings.BaseAppUrl + "/data/Inventory";
appSettings.IdentityServiceUrl = appSettings.BaseAppUrl + "/data/Identity";
appSettings.PushNotificationServiceUrl = appSettings.BaseAppUrl + "/data/PushNotification";

// Initialize the account service
this.AccountService.Initialize(typeof(LoginViewModel));

// Set the root ViewModel to be displayed at startup
if (!this.AccountService.IsLoggedIn())
{
// Not logged-in, redirect user to the home page
this.SetRootViewModel<HomeViewModel>();
}
else
{
// Redirect user to main UI
this.SetRootViewModel<DrawerViewModel>();
}

// Push notification registration.
this.RegisterDeviceForPushNotification();
}

You mentioned that subsequent calls to the services instantiated at the constructor will honor the new values. We would appreciate it if you could provide a sample project.

Thanks!
Hi Yudi,

Thanks for your feedback... and we appreciate the samples you have given. However there are still unasnwered queries regarding this matter.

I'm not sure we were able to get answers with item #2 (Display text from related Entity). Did you get a chance to review it? Kindly confirm if that's possible at all. Will the navigation work for related entities in this case, cosidering the sample tables/entities we provided?

In addition to item #1. Does the return type needs to be specified of type QueryResult? What about those that were auto-generated by Crosslight to use stored procedures such as ObjectResult<Category> GetCategoryByLocations(string location)? How do we take advantage of this instead of the custom or extended method you've shown?

Please advise. Thanks!
Posted: January 15, 2015 7:01 PM
ASP.NET Identity 2.0 support would be great. I second  that.

Hi Yudi,

Thanks for your feedback. Please do provide the sample solution for this sample.

All times are GMT -5. The time now is 4:58 PM.
Previous Next