Browse Category: Uncategorized

How to get Chatter Feeds using ConnectApi in Apex Salesforce

public List<ConnectApi.FeedItem> getFeedItems()
List<ConnectApi.FeedItem> lst = new List<ConnectApi.FeedItem>();

lst = ConnectApi.ChatterFeeds.getFeedItemsFromFeed(communityId, ConnectApi.FeedType.Record, chatterGroupId).items;
catch(Exception ex) { }

return lst;



Where communityId => Use either the ID for a community, internal, or null.

chatterGroupId => ID of the associated CollaborationGroup.

Show/Hide fields as Picklist value changes using Deluge script in Zoho

Sometimes we need to show/hide  certain fields as picklist value changes for example  there is field called ‘Reason’ and we want to hide this field as picklist ‘Product type’ changes to ‘Research’.

We can achieve this by configuring fields action in deluge script.


  • Go to the field on which you want to add action ,in above example ‘Product type’.
  • Field Deluge Name is the name of the field we’ll refer in the deluge script.
  • Select->field properties->Configure field action.
  • Select Field Actions -> Type -> On User input block in Script builder.This action will be executed when user changes field value.

  • Drag if-else condition statement.
  • add logic as below image& save the script

The ‘Reason’ field will be hide as picklist ‘Product type’ changes to ‘Research’, as shown below.


How to Create a subform in Zoho

A subform is a form that is inserted into another form. In a one-to-many relationship, each parent record associates itself with multiple children. Using Subforms, users can display the parent and child records in one place without having to switch between forms.

Zoho have field type ‘subform’ which you can insert blank form /existing form in the main form.
To add the subform in the main form

1]Edit the main form ->add new subform(field type is present in the left panel)->Drag-n-drop subform where you want on the main form.
2]On the adding subform it’ll ask you for the new blank form or existing form.
3]Add new fields in the subform and save the changes.

After adding form you can add records in subform  using ‘add new’ button as shown in below image.

The Main Form report will display all the records with the values of the selected subform fields

The ‘Column property’ in the main form report allows you to customize the sub form report also.

Hope this helps you!
Thank You!

Converting Normal to Stateless Form in Zoho

Regular Form

By default, when a Form is created, Zoho Creator will have a table generated at the back-end to store data submitted through the Form. These Forms are called Regular/Normal Forms.

For example, when you create a  Form ‘Order Details’, a table named  ‘Order Details’ is created and  all data submitted through the form will be stored in this table. The ‘Order Details’ will display the data stored in the ‘Order Details’ Form/table.

Stateless Forms do not store data in the backend. An existing form can be converted to a Stateless Form directly from the GUI.

Steps ->

1.From the Dashboard page of the application, click on Create New -> Form.

2.In the New Form dialog box, select the Form type as Form Template.

3.Choose a Form name for the duplicate form. Since the form already contains the existing form name, choose a different name for the form.

4.Select a form to convert to stateless form, from the Choose your Template drop down list.

5.The Choose your template drop down list consist of all the forms listed in the application.

6.Choose a particular form from the My Forms Section of the drop down list.

7.Select a Section under which the form has to be listed.

8.Uncheck the Data will be stored in Zoho Creator checkbox and click on Create button to generate the Stateless form.


How To create Stateless form In Zoho Creator

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

To create a stateless form without data storage,

  • Goto Create new->form option
  • fill the form details such as form name.
  • Deselect optionData to be stored in Zoho Creator.(As shown in the image)
  • on Clicking create Stateless form will be created.

You can drag-n-drop fields in the form as per your requirement.

  • To add button with custom logic click on (+) in the form.

Types of Button

  • Button-Invokes ‘On click’ action specified on mouse click.
  • submit-Invokes ‘On click’ action if enter key is pressed.
  • Reset-We can’t add ‘on click ‘ action on this button as it just takes form to the initial phase.

Once added custom button

  • To perform any action on click of the form button, add the required deluge script in the Form Actions – < Form Button Name> – On Click block of the Workflows tab.
  • Save the script
  • Click on Access this application and enter data to the stateless form. On click of the form button, the script added to the“On Click” block will be executed.

Thank You!

How to play movie in iphone using unity3d

this is code used to play the video in iphone using unity 3d

using UnityEngine;

using System.Collections;
public class IntroMovie : MonoBehaviour {

void Start ()  {


iPhoneMovieControlMode.CancelOnTouch,iPhoneMovieScalingMode.AspectFit);   }


one important thing in order to play video files it should be placed in StreamingAssets folder

if the video placed outside it will not work


  keno winnings

Screen Orientations Methods in unity3d

There are 3 types of orientation in

Rotate only landscape

public void AutoOrientToLandScape() {

if(Vector3.Dot(Input.acceleration.normalized,new Vector3(1,0,0)) > 0.45)  { Screen.orientation=ScreenOrientation.LandscapeRight; }

else if(Vector3.Dot(Input.acceleration.normalized,new Vector3(-1,0,0)) > 0.45)  { Screen.orientation=ScreenOrientation.LandscapeLeft; } }

Rotate only Portrait

public void AutoOrientToPortrait() {

if(Vector3.Dot(Input.acceleration.normalized,new Vector3(1,0,0)) > 0.45)  { Screen.orientation=ScreenOrientation.Portrait; }

else if(Vector3.Dot(Input.acceleration.normalized,new Vector3(-1,0,0)) > 0.45)  { Screen.orientation=ScreenOrientation.PortraitUpsideDown; } }

Auto Orientation

public void AutoOrient() {

Screen.orientation=ScreenOrientation.AutoRotation; }

Converting Sencha Touch 2 in Android.

Requirement  –Android SDK Tools

Steps to package your Android application

1-     Obtain an appropriate Android ready certificate (debug or release) for signing the application

2-     Install Sencha SDK Tools (SenchaSDKTools 2.0).

3-     Create a packaging configuration file to be use with the packager.

4-     Run the packager to create a packaged .apk.

Create a packaging configuration file to be used with the native packager.

Code- Packager.json


“applicationName”: “<AppName>”,

“applicationId”: “<AppID>”,

“outputPath”: “<AppPackageOutputPath>”,

“iconName”: “<AppIconName>”,

“versionString”: “<AppVersion>”,

“inputPath”: “<PathToWebApp>”,

“configuration”: “<Release | Debug>”,

“platform”: “<Android | AndroidEmulator>”,

“certificatePath”: “<certificatePath>”,

“certificateAlias”: “<certificateAlias>”,

“sdkPath”: “/android-sdk-mac_86”,

“orientations”: [






“deviceType”: “<Not applicable for Android>”


If Our Application Name ListDemo then Code-
















“orientations”: [







Run the packager to create a packaged ListDemo.apk

Command –

sencha package run packager.json

it will create ListDemo.apk

Need more help?

Hi there, was your problem or query resolved? If not & need more assistance, please do reach out to us at, we'll be more than delighted to help. Nanostuffs has 7+ years of extensive Salesforce & iOS/Android experience.
Holler Box