I am developing a winrt lob application that uses some Sharepoint Lists. Some settings (like sharepoint address or lists names) have to be common for all the user within the same company.
I would like to know if there is a way to set this parameter before the deployment of the apps, so the users don't have to do it because they probably don't even know about sharepoint configuration
You should use Settings charm for your app with default values in textbox/dropdown to configure anything
Related
We have a ASP.NET MVC5 (Business) Web-Application (hosted on our webserver) and need to share and/or grab local data/files from the users (business customer) computer.
For example:
Local foreign Desktop-Applications > this application need some data (e.g. xml-file) from our ASP.NET MVC-Application and maybe we will get back some data (e.g. xml-file) with results. At the moment the user can download only the file to the browsers Download-Folder, and copy the file to the predefined destination folder of the foreign Desktop-Application. The user need to manually upload the resulting xml-file to our application.
Scanner: If the user scan something he can only manually upload it (for some scanners he also have to manually open the scan folder) - Drag & Drop is nice, but it would be more comfortable if this happens automatically. User don't want to Drag & Drop files.
local Payment terminals (POS-Terminal) which are connected with USB or locally at the customers network > I can't interact with it from our Web-Application.
There would morge examples for other desktop applications / local devices which I can't access from an Web-Application.
Now our idea was to write a local .NET Core application which acts like a webservice, e.g. RESTful API where I can allow CORS-Header for my Web-Application > so we can communication locally. (We have also thinked about browser plugins, but this wouldn't be easy to support all browsers).
It should run locally on windows / mac and without the need for a webserver (e.g. IIS). A user GUI isn't necessary at all - but it would be great to do some settings (like folders for the foreign applications) or updating this application.
Can this be done with .NET Core?
I have an application that is a Windows Service application. It currently reads an XML file for it's configuration and the code works off those settings.
I have created a separate project that is a Windows Forms application (typical windows app). This app is a GUI interface into the configuration settings (changed from XML to database, but that is relatively unimportant).
What I need to do is:
Integrate the 2 projects
Add a system tray icon to pop up the form
I'm unsure exactly how to proceed on this and wanted to get some advice before messing things up.
You can't integrate these two things (entirely). A service is designed to run without a GUI of any kind (there is a work around to allow desktop interaction but this is messy and clunky and will cause you more problems than it solves)
It sounds like you just need to use the code from the service in the forms application. This should be a simple copy and paste operation.
To show an icon in the system tray is pretty easy:
Create a program to run from the system tray
how to put an .net application in system tray when minimized?
I wish to distribute my enterprise Worklight application to many different clients.
Basically what I want to do is give my customer the .ipa and .apk files of the Worklight app so that they may upload them onto their own Application Center. The problem is that each application needs to be slightly different in that there are different URLs they must refer to as well as some other properties such as text.
I was wondering if there's a way to have my ipa/apk read from a properties that my client could change on their own without having to rebuild the ipa/apk?
EDIT for clarification:
The application I'm referring to is NOT the Application Center app, it is an application I've built using Worklight that I would like to distribute using the Application Center. I will be selling my application to entire companies rather than single users. Once the company has the application, their employees will need to download it somehow (using the Application Center I'm hoping).
Right now I'm trying to figure out exactly how I will distribute my application to my clients. My application calls services of another application hosted on another server (aka the "URL" I was referring to before, it is NOT the Worklight URL). The problem is this URL will be different per client and as far as I know right now in order to change this URL per client, I must recompile the ipa/apk for each client. This is what I'd like to avoid. If possible I would like to distribute the same ipa/apk to each client and have them change some sort of parameter somewhere to set the correct URL for their environment. It's also important to note this URL does not go through an adapter, and lives directly in the client.
IMO what you are asking for is not possible, be it with a regular native app or a Worklight hybrid app (that is really a web app but enclosed in a native "shell").
Once you produce the .ipa or .apk file, it is closed and cannot (unless cracked) be opened to make changes (that would be a security breach). Using a "properties file" next to the app is obviously not possible either.
You will need to create a custom .ipa/.apk for each customer.
What is the best way to go about reading and writing simple configuration data like we used to use App.config and Web.config <appsettings /> available through ConfigurationManager before, for use within your Windows 8 / Windows RT / Windows Store / Windows Modern UI App?
LocalSettings
http://msdn.microsoft.com/en-us/library/windows/apps/windows.storage.applicationdata.localsettings
OR
RoamingSettings
http://msdn.microsoft.com/en-us/library/windows/apps/windows.storage.applicationdata.roamingsettings.aspx
The main difference is that RoamingSettings will be saved to the cloud and thus, can be transferred across different devices for the same user profile. LocalSettings is device-specific.
Metro apps don't have exact equivalent of app.config/web.config.
Instead you should use package.appxmanifest to configure windows store specific values.
For local settings you should use ApplicationData api.
If you want to configure application after it is deployed you could simply load remote xml or json file at application start up.
In addition to the technical answers above its important to understand why there is no config file for these apps.
WinRT/Windows store apps are client applications so unlike your ASP.NET applications that run on the server and require admin configuration changes, end users are not expected to tinker with these changes (SQL connection, timeouts, appSettings you name it) hence there is no need for such a config file for these apps,
Hope it makes sense
You can find a sample to mimic app.config in Windows Store apps based on XML files here
Hth
Stefan
I'm new to ofbiz. I create an application in my "ofbiz/hot-deploy" folder. In some site, books they mention our application should be present in "applications" folders also. But I don't know the difference between put user defined applications in the folders namely "hot-deploy" and "applications" in ofbiz.
Please tell the difference, because it will be very useful to my project. Please forgive my mistakes in my questions because I'm new to ofbiz .
Thanks & Regards,
Sivakumar.J
applications is where the OOTB apps provided with the OFBiz framework like marekting, order, party reside. It is best NOT to put your stuff there so you can forward integrate with the next version of Ofbiz.
application components: they are generic applications that can be used as they are or extended/customized (product, order, party, manufacturing, accounting etc…); application components have access to the services and tools provided by the framework components and to the services published by other application components
hot-deploy is where you put your custom application which also has access to the services underlying from the framework.
So if you make a new application say SivakumarWebApp then place it in the hot-deploy, and it can access the framework components as well as other application components.
http://www.hotwaxmedia.com/apache-ofbiz-blog/ofbiz-tutorial-custom-components-in-ofbiz/