In my inventory mobile application , i use RDA.
using the mobile device ,i update only the Barcode of a particular Item which is in the Item Master(.sdf file). then I push the tables to the SQL Server.
there is a web application handles all the other functionality , including Item Master Changes.
for and eg.
(1) I pull the Item master to the Mobile Device.
(2)change the Item Name from the Web application.(NOT FROM DEVICE)
(3)Update Bar code from the Device
(4)push table from mobile Device to SQL Server.
In this situation Old Item Name is replaced.
My need is only to update the Barcode.
Please help me.
Maybe you can use SubmitSQL instead?
Related
I've saved contacts on a server in an uncommom format. These contacts are regularly evaluated and changed. Using a xamarin app on my android device I want to synchrously connect a phonenumber to a name.
Using a BroadcastReceiver that captures all incoming call I'm able to display a toast and a notification showing the name related to the number.
Because the toast disappear fast and the notification isn't easy available during ringing I search for another way to display the name connected to a number. The best way would be to replace the displayed number on the dialer.
I created a mobile service app using azure connected it to SQL DB that has this table
now trying to insert and retrieve data in my Windows Universal App gives me this error:
I tried many things one of them was this code:
HighScore item = new HighScore
{
SCORE = "100",
playerName = "Mark"
};
await App.MobileService.GetTable<HighScore>().InsertAsync(item);
tried also to get the table bu name but no luck, now what is weird for me is that this same code works perfectly on the TodoItem Table but not on other tables.
Thanks in advance
The MobileServiceInvalidOperationException is a wrapper exception. The actual exception is in an InnerException inside that object. Based on the error message, your insert is not working.
You have provided no information on how you constructed the backend. Don't forget that you need to create the table in the SQL database and you need to create an appropriate controller for exposing the database table to your mobile client.
You have not provided any information on what the entity on your mobile client looks like. It needs to match the information you want to send to the backend.
Finally, take a look at my book - http://aka.ms/zumobook - Chapter 3 of the book goes into great detail on the data protocol.
I'm a newbie to dealing with Azure SQL Databases and Mobile Services. Does anyone know if it is possible to add a column to Azure SQL Database without having to go through the publish process in Visual Studio? When I download the mobile services project from Azure, I can publish the service and it will run with a new ToDoItems table. So I open up a SQL query in Visual Studio and add a column and add some random data to the new column 'Individual':
ALTER TABLE Numboo.TodoItems
ADD Individual nvarchar(max)
INSERT INTO Numboo.TodoItems (Text,Complete,Deleted,Individual)
VALUES ('90987834',1,0,'test data xxxxx')
But when I request the data from the table using mobile services, the data in the new column is null when I query the table
private MobileServiceCollection<TodoItem, TodoItem> demo;
private IMobileServiceTable<TodoItem> demoTable = App.MobileService.GetTable<TodoItem>();
demo = await demoTable.ToCollectionAsync();
//Individual is null
instead of "test data xxxxx" which I inserted via a sql query. Does anyone know if this is even possible to do it this way (add a column via script and access it using mobile services)? Or point me in the right direction or to an answer on SO if there is one? I'm not sure what I would be searching for. Thanks.
NB: I have updated the model/entity to reflect the new column in the database but that didn't make any difference:
You do need to deploy your service with an updated model that matches the table schema/the model you want your API to expose. It's not enough to just change the client model.
Now, your question is specifically about publishing from VS, and although a deployment is required, you have other deployment options, including continuous deployment, which you can learn more about here:
https://azure.microsoft.com/en-us/documentation/articles/mobile-services-dotnet-backend-store-code-source-control/
I have 2 applications both containing Datagridview connected to the same data-source.
When I insert data to the database via application1, the new data is instantly shown in the application1's Datagridview, I want the same new record to be shown in application2's Datagridview at the same time.
How do I achive this?
You can do this using Service Broker via the SqlDependency object. It will fire an event in your application when the results of your query change.
i was trying to connect a local machine with my web application.i need to get some data from local machine and insert it into my online table.User clicks a button and a new column is added to a online table named request which has status "new" in the beginning.i went for sql dependency which i installed as a windows service in local machine and it check the request table for any new insert.the service fetches some data from the local machine and posts it to the online database and change the status field in request table to "updated".
Now my problem is how can i notify my website that required data has been inserted in the table?? i need to watch the request table continuously until the value in the status column changes to updated.can i go for thread or timer ??
You can write an INSERT trigger in the live database which your website is using.
Use another Table RequestUpdates and write an INSERT trigger that adds a value to the table RequestUpdates in the live database.
Design your website to load the RequestUpdates table.
And when the user loggs in and Requests have been viewed, change the status in the live table to viewed.
In this way new requests will be shown that are not viewed the next time.