Salesforce Mobile | Error: OAUTH_APPROVAL_ERROR_GENERIC

written by : Varun Choprs
December 9, 2016
|
0 Comments
|

SALESFORCE MOBILE

Authorization Error after successful login from mobile in salesforce connected app

When a user requests their Salesforce data from within the external application (the consumer’s page), the user must be authenticated by Salesforce.
After login into the native salesforce mobile app using the Oauth login app gives Read more…

How to install .box extension Virtual Machine

written by : Nitin Pant(System Administrator)
December 8, 2016
|
0 Comments
|

To install and use .box extension machine we have to follow the these steps.

Step:1 Installing Virtualbox

$ sudo  apt-get install virtualbox

$ sudo apt-get install virtualbox-dkms

Step:2  Installing vagrant

 

Please don’t install the repository version, because this is very old and Read more…

Moodle Windows installation using XAMPP | Common Issues

written by : Shalini Vashist( STL)
|
0 Comments
|

Common Issues faced during Moodle Windows installation using XAMPP:

 

Do not have permissions to create database or MySQL database is too old.

 

Xampp uses the Mariadb database (based upon MySql), if during installation above issue occurs then:

 

go to the c:\xampp Read more…

NetSuite API | operator undefined for search

written by : Neha Mishra(Sr. Software Engineer)
December 7, 2016
|
0 Comments
|

On filtering contacts coming from Netsuite CRM based on last modified date, gives error “operator undefined for search”:

Below is the code that retrieves all the contacts from Netsuite CRM:

ContactSearch custSearch = new ContactSearch();

ContactSearchBasic custSearchBasic = new ContactSearchBasic();

custSearch.setBasic(custSearchBasic);

     

SearchResult result = _port.search(custSearch Read more…

CSS3 Viewport units vh, vw, vmin and vmax explained

written by : Kiranpreet Kaur(Software Engineer)
December 6, 2016
|
0 Comments
|

CSS3 Viewport units vh, vw, vmin and vmax explained

Sometimes we need to fit our webpage content into viewport (visible browser window). Some developers achieve this using Javascript by checking the size of viewport and then they resize the content accordingly to fit it in the viewport. When user resizes Read more…

Selenium | Opening and closing browser tabs with Key controls

written by : Varun Chopra(CEO)
|
0 Comments
|

We can use Robot class to open and close tabs in Selenium but we also have the Key_Control concept. These are keyboard shortcuts to open and close the tabs in browser:

Ctrl+t (Open New tab)
Ctrl+w (Close tab)

We can use these keyboard shortcuts in Selenium script also Read more…

Salesforce | Passing data via Javascript to Apex Controller

written by : Komal Dhiman(Software Engineer)
December 2, 2016
|
0 Comments
|

 

Some situations occur when we become unable to pass the data from visualforce page to apex controller directly.  For example – Suppose you have three divs (todoDiv, doingDiv, doneDiv) that are showing some tasks through the List from apex controller. It has the drag and drop functionality that allows the Read more…

Salesforce | System.Callout Exception: Unauthorized End Point

written by : Virender Singh(Sr. Software Engineer)
December 1, 2016
|
0 Comments
|

I tried to send REST request to my server on click of a custom button in Salesforce. It shows me “unauthorized end point exception”.

Solution:- To resolve this issue we need to add the server address as a remote site in Salesforce. Here are the steps to add remote site Read more…

Selenium Locators

written by : Dixit Soni(Software Test Engineer)
|
0 Comments
|

To locate elements in Selenium WebDriver, we can use findElement() for single element and findElements() to locate a list of elements satisfying the search criteria. List of different ways in which both the methods can be used are given below:

driver.findElement(By.id())
driver.findElement(By.name())
driver.findElement Read more…

How to install and use command line tools in Heroku

written by : Manju Kashyap(Sr. Software Engineer)
November 30, 2016
|
0 Comments
|

What is Heroku Command Line:

The heroku command-line tool is an interface to the Heroku Platform API and includes support for things like creating/renaming apps, running one-off dynos, taking backups, and configuring add-ons. It is generally installed in your local development operating system.

Installing the Heroku Read more…

Java | Base64 Encoding/Decoding with javax.xml.bind.DatatypeConverter

written by : Rita Sharma(SC)
November 29, 2016
|
0 Comments
|

Base64 Encoding/Decoding with javax.xml.bind.DatatypeConverter in java 6 and 7.

Solution:
javax.xml.bind.Datatypeconverter class is the built in class inside JRE. We don’t need any third party library as we need in case of Cipher encoding/decoding method. javax.xml.bind.DatatypeConverter.printBase64Binary(byte Read more…

CakePHP Security Component

written by : Manju Kashyap(Sr. Software Engginee
November 28, 2016
|
0 Comments
|

CakePHP Security Component is very useful and provides an easy way to enable very tight security in our application.

It can restrict which HTTP methods our application accepts
It provides Form Tampering Protection
It can force to require that SSL must be used
It can limit cross controller communication

Cross Read more…

Jquery | How to create/edit Jquery Datatable dynamically

written by : Parminder Kaur(Software Engineer)
|
0 Comments
|

How to create/edit Jquery Datatable dynamically?

HTML code:
<div class=”col-md-12 col-sm-12 col-xs-12″>
<table id=”table”>
<tbody>
<tr>
<th>Rules</th>
</tr>
</tbody>
</table>
&lt Read more…

Selenium Webdriver script | Open new browser tab and switch between tabs

written by : Varun Chopra(CEO)
November 25, 2016
|
0 Comments
|

In Selenium Webdriver script how to open a new browser tab and then switch between first browser tab and 2nd browser tab?

Solution:- This is the script to achieve it, go through comments in the code to understand how the code works:

public static void main(String[] args) throws InterruptedException Read more…

Moodle | Add and access custom elements in Blocks

written by : Kritika Sood(Software Engineer)
November 24, 2016
|
0 Comments
|

In Totara how to add custom HTML elements (checkboxes, input boxes etc) and then access the value selected by user on server side:

Adding custom elements
Accessing values of custom elements.

Each problem is discussed below.

Overview

In Totara, for blocks, we have some standard configuration settings. In these settings Read more…

Totara | How to enroll audience to Course/Program

written by : Namisha Arora(STC)
|
0 Comments
|

Problem: I want to enroll audience in course/program and I do not know that how we can enroll audience in course/program. To enroll audience in course/program, I have followed the below steps:

Solution

1.Click Audiences link. To click on Audience link go to
Site Administration&gt Read more…

Salesforce Mobile iOS SDK | Retrieve the list of objects from salesforce

written by : Varun Chopra(CEO)
November 23, 2016
|
0 Comments
|

Salesforce Mobile:

Retrieve the list of objects from salesforce in iOS native mobile app

Description: Using the salesforce mobile iOS-native SDK we can retrieve the list of objects using “requestForDescribeGlobal” SDK method. This method will return the data of all the objects from your salesforce org.

Code:

In your Read more…

Shopify webhook getting fired multiple times and then getting deleted from shopify store

written by : Savina Chandla(Sr. Software Engineer)
November 22, 2016
|
0 Comments
|

In our Shopify store we have an order creation webhook that points to a cakephp action URL. The action that webhook points to fetches the order data and then saves this to the database.

The problem that we were facing with this webhook was that it was getting invoked multiple Read more…

WordPress | Get title and description from posts dynamically

written by : Neelam Thakur(Sr. Web Designer)
|
0 Comments
|

In wordpress we can get title from post title and description from post content area dynamically.
<?php

$id = get_the_ID();        //get the post id.

$title = get_the_title($id);          //get title from the post.

$content = get_post_field(‘post_content’, $id);    // Get all content from post content area.

$trimmed_content = wp_trim_words( $content, 20, ‘….’ );   // This function trims Read more…

Sorting Alphanumeric Data in PHP

written by : Kritika Sood
November 21, 2016
|
0 Comments
|

While fetching data from database, in SQL query I had ‘order by’ clause but the results were not sorted when the data was in alphanumeric form. The reason for this is that SQL sorts character by character from left to right. So it places c10 before c2 as 1&lt Read more…

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 Next page ›
Send your message