The above code will load the jquery globally on the masterpage and you dont have to deal with making sure it reference everytime or in JS files.
Again, I am not going to reinvent the wheel.
As more and more enterprise are embracing Cloud and Office 365, I thought that this will be a great time to start writing up on branding your Sharepoint Online, which comes part of the package with Office 365.
Sharepoint Online comes configured with the Top Navigation Bar for you. But we want to hide it, as i dont have all the Sites that I created to be shown in that portion.
You can add the following the master page or add this to a content editor webpart.
With the recent announcement of Parse.com winding down their service, a lot of developers will be left stranded. viagra generico ou similar
The good people at Parse have release and open-source their service on Github. viagra rx
2. Parse Server Example – https://github.com/ParsePlatform/parse-server-example
But, the catch here is the dashboard that we are used to are gone.
Parse is not releasing the dashboard along with the source code and the analytics portion. Ok, they heard all the developers and are trying to release the code, but in the mean time this tutorial still works!
Now, today I am going to show how we can leverage and alternative dashboard to connect to Parse.
In this article, I will be using the Parse Server Example and deploy to Heroku using the free tier. This will apply if you are hosting this on your on VPS as well.
Follow the instruction provided by the Parse team, set it up on Heroku free tier ( I am not covering this but if there’s a need, I am happy to provide the instruction).
Once everything is setup and tested on Heroku.
We are going to using AdminMongo to connect to it as Parse.com is using MongoDB as the datasource.
AdminMongo – https://github.com/mrvautin/adminMongo
Follow the instruction to clone the adminMongo to the local or VPS of your choice and run it.
In your Heroku Dashboard, access the MongoLab interface.
This should give you the exact connection string to connect to MongoDB. Now go to your AdminMongoDB and add that connection in the exact format provided by the MongoLab.
PS: At this stage, I do suggest creating a different user account to access the MongoDB.
Connect to the instance and you have access to the tables and data created by Parse. vrouwen viagra pillen
I know this is still a long way from the dashboard provided by Parse, but its definitely a interim solution till Parse release their dashboard.
K2 Services Objects
Now with the previous post, we talk about adding our own custom library and cleaning up the template. This is so that we have a clean baseline to start working on.
If you missed the previous post, visit them here.
This post will be relative short and last part of the series.
Today, we are going to cover the main portion of it and some deployment procedure.
Within, K2 Smartform Custom Control project, located the SideMenu_Contro.cs file.
Add the following codes.
Add the following codes to SideMenu_Script.js
At the top of the file, add the following.
Testing & Deployment
We are all done now, let’s build it and deploy it.
If you are facing the following errors during your build phase, change the .Net framework of the project to 4.5
Now, copy the dll and place them in the Bin folder of your K2 Runtime and K2 Designer and run the .bat file.
Continuing from the previous post on building a custom control, visit Part 1 here.
Now lets add those library to the solution project.
Open up the property windows of those files and set them to “Embedded Resources”
NOTE: This is critical for the K2 SmartForm Control, as this will tell the solution to compile the library along with it.
In the SideMenu_Control.cs, open it up and add the following lines of codes.
We are not done yet, the above codes only tells to K2 Smartfrom Custom Control that those are required resources.
We are going to add those following JS and CSS to the code base with the following lines.
You will notice that the K2 Smartform Custom Control Template generate a whole bunch of codes for you. In this section, we going to remove some stuff to keep it clean.
Remove the following sections that is generated along with the template.
With that all done, we have a clean baseline to work with.
K2 Smartform is a rapid development tool that provide a WYSIWYG interface. There’s a lot of plus point to this as this closely resemble the visual studio designer or even dreamweaver and K2 have place alot of thought in the Smartform product design and a whole lot of controls are available out of the box.
However, the downside here is that since the K2 Smartform only work within the K2’s technology ecosystem, to extend the capability of the Smartform such as cooking your own controls or even using those commercially available (e.g. Telerik) are limiting.
In this article, we will be writing a mulit part series to show you guys how to build your own custom control.
The K2 Smartform is design such that its almost similar to any custom user control on ASP.NET or Sharepoint Webpart in terms of architecture.
To get started building a K2 Smartform custom control, head over to the following url and install the template that the community have release to help everyone get started.
Download the respective template and install for your version of Visual Studio. The “good” guys at the community have cater for different version of Visual Studio.
Getting Started – Creation of the K2 Smartform Control Project Solution
Now, let go about creating a new project. You should have a new category for the option on the left which is named K2.
Expand the K2 and select K2 Extension. Now choose Custom Smartform Control Project and give it a project name.
This should generate a Visual Studio Solution Project for you.
Generating the K2 Smartform Control Files
Let’s go generate some files for the custom control that we are going to build.
Right-Click and select Add New Item.
Choose SmartForms Basic Client Control Item and give it a name. (This should be the name of the control).
Your Visual Studio Solution Explorer should look like below.
Using Global Variable in Objective C, allow you to store static information or values similar to Microsoft.NET C#.
In this post, we are going to using the Singleton design pattern.
Step 1: Create the class in Xcode, add both the header and method file (.h / .m), call it GlobalVariables.
Step 2: Add the following content into your header file.
@property (nonatomic, assign) bool *offline;
Step 3: Add the following content into your method file.
static GlobalVariables* singleton;
static dispatch_once_t pred;
singleton = [[GlobalVariables alloc] init];
At this stage, you will be wondering what does all these do. You will be adding @property for those value that you want to be able to access globally in the header file and synthesize them in the method file.
How do we use them?
To access the singleton, you need to import the header file.
First, saving data to the singleton.
[GlobalVariables getValue].offline = YES;
Getting Data from the Singleton
bool isOffline = [GlobalVariables getValue].offline