CategoryGeneral / Mix Platforms

How To create Stateless form In Zoho Creator

H

When you create a new form to your application, there is one check-box option “Data will be stored in creator“, De-selecting this option will create the Form as a Stateless Form with custome buttons that does not generate a table at the back-end as Normal form.  you can add custom buttons and write your own logic on  “on click” event of the form. Creating a Stateless Form...

Download file in Attachments in Salesforce

D

public class ex_file_inSF { public void getExcelReport() { String AccId = ApexPages.currentPage().getParameters().get('id'); Account acc = [Select Id from Account where Id =: AccId]; Http h = new Http(); HttpRequest req = new HttpRequest(); string url = 'URL_Path'; url = url.replace(' ', '%20'); req.setEndpoint(url); req.setMethod('GET'); req.setHeader('Content-Type', 'application/xls'); // To...

java.lang.OutOfMemoryError: Java heap space

j

add line to catalina.sh or catalina.bat: export CATALINA_OPTS=”-Xms512M -Xmx1024M” a) The -Xmx argument defines the max memory size that the heap can reach for the JVM. A low value can cause OutOfMemoryExceptions or a very poor performance if your program’s heap memory is reaching the maximum heap size. b) The -Xms argument sets the initial heap memory size for the JVM. This...

java.security.AccessControlException: access denied (java.net.SocketPermission host connect,resolve)

j

The Simple solution is :search catalina.policy file and edit green line as // Precompiled JSPs need access to this system property. permission java.util.PropertyPermission”org.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER”,”read”; permission java.net.SocketPermission “*”, “connect”; permission java.net.SocketPermission “*”...

Common Language Runtime in C#

C

The Common Language Runtime (CLR) is the virtual machine component of Microsoft’s .NET framework and is responsible for managing the execution of .NET programs. In a process known as Just-in-time compilation, the compiled code is converted into machine instructions  that, in turn, are executed by the computer’s CPU. The CLR provides additional services including memory management...

Code to update an Excel using DataSet and the OleDbDataAdapter in C#

C

using System; using System.Collections.Generic; using System.Text; using System.Data.OleDb; using System.Data; namespace ExcelDataAdapter { class Program {     static void Main(string[] args)     {         string xlsFile = @"C:\Temp\AdapterTest.xls";         string xlsSheet = @"Sheet1$";         // HDR=Yes means that the first row in the range is the header row (or field names) by default...

How to enable .net to access Quickbooks company file

H

To do this You should have : A) QuickBooksEnterprise (here we used 13) B) QBSDK  (here we used  12.0) c) Microsoft Visual Studio 2008 How we can do ? a.  Open Connection to QuickBooks b.  Begin session with a company file c.  Construct set of request messages d.  Send request to QuickBooks e.  Receive response messages f.   End session g.  Close connection a. Open Connection to QuickBooks :...

How to play movie in iphone using unity3d

H

this is code used to play the video in iphone using unity 3d using UnityEngine; using System.Collections; public class IntroMovie : MonoBehaviour { void Start ()  { iPhoneUtils.PlayMovie(“CINEMATIC_WITH_MUSIC.mp4”,Color.black, iPhoneMovieControlMode.CancelOnTouch,iPhoneMovieScalingMode.AspectFit);   } } one important thing in order to play video files it should be placed in...

Category