All posts by John

Loading JQuery Globally for Sharepoint Online

The pain in customizing Sharepoint Online is real! cheapest viagra sale how much cialis cialis for sale usa

But Jquery can make it so much easier. viagra new zealand buy online generic viagra for sale

To do so, have Sharepoint Designer ready, browse to the master page that you are using. tadalafil low price cheap cialis cialis 5mg daily price

Add the following into your masterpage. viagra da 20 mg when should you take a viagra pill

<!–SPM:–> buy cialis rate generic viagra buy viagra online in india

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.

Sharepoint Online – Office 365 Branding (Top Navigation Bar)

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.

O365-SP Online - Top Navigation
Use the following .css to hide the “HR” and “Search”.


.ms-breadcrumb-top  {
display: none;
}

You can add the following the master page or add this to a content editor webpart.

After Parse.com

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

  1. Parse Server – https://github.com/ParsePlatform/parse-server cialis pills 10 mg

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).

Parse Server Example - Heroku buy jelly viagra online

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.

Parse Server - AdminMongoDB

In your Heroku Dashboard, access the MongoLab interface.

Parse Server - Heroku Dashboard

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.

Parse server - AdminMongoDB connection

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.

Github on K2 Blackpearl & K2 Smartforms.

K2 Services Objects

hoshyK2/K2-Worklist-Service-Broker

SimonAllport/Building-a-endpoint-assembly-for-K2blackpearl

K2 Smartforms

cyclops1982/K2Field.Smartforms.Controls

jonnoking/K2Field.SmartForms.BrowserMessaging

timmes/K2Field.Controls.IPAddress

jonnoking/K2Field.SmartForms.Workspace

jonnoking/K2Field.SmartForms.Workdesk

jonnoking/K2Field.SmartForms.Toastr

narapat/K2TH.SmartFormControl.ThaiBahtTextLabel

jonnoking/K2Field.SmartForms.BrowserMessaging.SharePoint

gohlance/K2.PDFViewer

K2 Misc

osamakhan/K2-Datafield-Editor

josh3ennett/K2CustomControlNuGet

Building K2 Smartform Control – Part 3

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.

K2 Smartform Custom Control – Part 1

K2 Smartform Custom Control – Part 2

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.

SideMenu_Control.cs

Within, K2 Smartform Custom Control project, located the SideMenu_Contro.cs file.

Add the following codes.

13. Adding method to generate HTML

This is required of the Javascript library to render the html within in the K2 Smartform Custom Control.

SideMenu_Script.js

Add the following codes to SideMenu_Script.js

At the top of the file, add the following.

 

14. Javascript file Init the class

 

Next, scroll to the bottom and add the required javascript to invoke the SideMenu.

 

15. Adding Document.Ready method

 

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

Error:

16. Error in compiling

 

Solution:

17. Changing the .Net Framework

Now, copy the dll and place them in the Bin folder of your K2 Runtime and K2 Designer and run the .bat file.

Building K2 Smartform Control – Part 2

Continuing from the previous post on building a custom control, visit Part 1 here.

We are going to add a sidemenu javascript library to the K2 Smartform Control.

I have chosen the following javascript library, you can download it from here.

Add Javascript Library to Solution

Now lets add those library to the solution project.

6. Adding the javascript and CSS library

 

Open up the property windows of those files and set them to “Embedded Resources”

7. Setting the properties to Embbedded Resources

NOTE: This is critical for the K2 SmartForm Control, as this will tell the solution to compile the library along with it.

Linking the Javascript Libraries & CSS in the source code

In the SideMenu_Control.cs, open it up and add the following lines of codes.

8. Adding CSS library to Control source file

 

9. Adding JS library to source file

 

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.

9.1 Adding JS library to source file

Housekeeping

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.

SideMenu_Control.cs

Remove the following sections that is generated along with the template.

section 1:

 

10. Remove the Generated Method

section 2:

11. Remove the Generated Method 2

section 3:

12. Remove input type as this not a input control

With that all done, we have a clean baseline to work with.

Go to K2 Smartform Custom Control – Part 3

 

Building K2 Smartform Control – Part 1

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.

Setup

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.

K2 Visual Studio Template

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.

K2 Visual Studio Project

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.

2. Visual Studio - Add New Item

Choose SmartForms Basic Client Control Item and give it a name. (This should be the name of the control).

3. Visual Studio - Add New Basic Client Control

 

Your Visual Studio Solution Explorer should look like below.

4. Directory Structure

 

Go to K2 Smartform Custom Control – Part 2

Global Variable in Objective C

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.

Step 3: Add the following content into your method file.

 

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.

Getting Data from the Singleton