azure-mobile-services

Using Like Clause in Azure Mobile Services JavaScript Client

 ̄綄美尐妖づ 提交于 2019-12-24 18:01:45
问题 I am writing a JavaScript client for an Azure Mobile Service. I am trying to use the LIKE clause (or equivalent) in the JavaScript Where clause, when I am querying a table. Does any one know how to do this? [Essentially I want to see whether a string starts with a particular value or not] 回答1: You can use the indexOf function, which is supported in the function: var table = client.getTable('tableName'); var queryValue = document.getElementById('txtField').value; table.where(function

Using Like Clause in Azure Mobile Services JavaScript Client

倖福魔咒の 提交于 2019-12-24 18:01:30
问题 I am writing a JavaScript client for an Azure Mobile Service. I am trying to use the LIKE clause (or equivalent) in the JavaScript Where clause, when I am querying a table. Does any one know how to do this? [Essentially I want to see whether a string starts with a particular value or not] 回答1: You can use the indexOf function, which is supported in the function: var table = client.getTable('tableName'); var queryValue = document.getElementById('txtField').value; table.where(function

Azure MobileServiceClient can InsertAsync but not ReadAsync

怎甘沉沦 提交于 2019-12-24 17:50:01
问题 I can create a MobileServiceClient and GetTable<Model>() to InsertAsync , and see how my model gets inserted in the Easy Table table in Azure. But when I ReadAsync() from the table I get the following error: Microsoft.WindowsAzure.MobileSerices.MobileServiceInvalidOperation: The server did not provide a response with the expected content. This is when I mobileServiceClient.GetTable<Model>.ReadAsync() What could be the problem? This was when running from an MsTest project with no Microsoft

Azure Mobile Services with persistent authentication

假如想象 提交于 2019-12-24 15:18:20
问题 I am trying to implement authentication with Windows Azure Mobile Services in my Windows Phone app. I have followed the official tutorials and the authentication works fine. The issue is that, whenever the app is closed and started again, the user has to enter username and password. Since the services only use authentication tokens, the 'Remember me' option on log in page is not likely to work. The official documentation for Windows Azure shows possibility of Single Sign On with the Microsoft

Where() clause returning “The query specified in the URI is not valid…”

空扰寡人 提交于 2019-12-24 14:44:00
问题 I have a .Net mobile service. Calling this: https://xxx.azure-mobile.net/tables/items?$filter=(company%20eq%20%27987af3f9-8d44-4a9d-8be2-7e0567287106%27) Returns: {"message":"The query specified in the URI is not valid. Could not find a property named 'company' on type 'Default.<>f__AnonymousType2_3OfString_String_Double'."} The field name in the "items" entity model is "company" and on the database is "company_Id", neither will work. Using http://ajax.aspnetcdn.com/ajax/mobileservices

using MobileService.GetSyncTable PullAsync Trouble

蓝咒 提交于 2019-12-24 14:28:48
问题 I am trying to get using the Azure Backend with Sync to work for my app. It looks like PullAsync is not populating my local table though. My Table is set up like this: private IMobileServiceSyncTable<Familie> FamilienTable = App.MobileService.GetSyncTable<Familie>(); // offline sync Some code first. Initializing the table like this: if (!App.MobileService.SyncContext.IsInitialized) { var store = new MobileServiceSQLiteStore("localGarden.db"); store.DefineTable<Familie>(); await App

NodeJS - Google API Module - [TypeError: Cannot read property 'prototype' of undefined]

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-24 12:52:01
问题 I installed the nodejs module "googleapis" ( npm install googleapis ) to an Azure Mobile Services instance and I wanted to do a quick test with some sample code I found here https://www.npmjs.org/package/googleapis. After trying the code sample which creates a text file in google drive I get the following error message in the console: [TypeError: Cannot read property 'prototype' of undefined] The error is occurring at line 40 of the current version of google-api-nodejs-client / apis / index

Is there a REST API call for Azure Mobile Service's Scheduler Run Once?

…衆ロ難τιáo~ 提交于 2019-12-24 11:23:47
问题 Using the Azure portal, I can click the Run Once button on a Scheduler job to execute it. Is that functionality available via a REST call from my app? The scenario is that periodically a job is run to check for changes in data. The first time the app starts up, I would like to execute that job once as not to have to wait for the scheduled time. What is the call to kick off a scheduled job? Would I have to duplicate code in both the scheduler job and custom API and then call the custom API

How do I return an exception from Azure Mobile Services

大城市里の小女人 提交于 2019-12-24 00:58:40
问题 I have made an Azure Mobile Service which works fine locally. I then publish the Azure mobile Service to the cloud and the website shows that it is currently running. I then make a GET Request to my published website and it returns the following: Status 500 Internal Server Error 500 Internal Server Error A generic error message, given when no more specific message is suitable { "message": "An error has occurred." } I have tried adding: <system.web> <customErrors mode="Off"/> </system.web> To

When using Azure AD B2C with Azure Mobile Apps, how is the password policy set?

若如初见. 提交于 2019-12-23 23:21:07
问题 In Azure AD B2C, there are separate policies for "Sign-up/Sign-in" and "Password reset". I copy the Metadata Endpoint for the "Sign-up/Sign-in" policy and paste it into the Azure App Authentication This basically works, but there is no place to put in the Password reset metadata which has the templates for password reset. I think as a result of this, when you click on "Forgot password", you end up with You do not have permission to view this directory or page. at ~/.auth/login/aad/callback