• Ravi Narayanan 2
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 6
    Replies

Hi,

has anyone sucessfully integrated google prediction api with salesforce?

i had seen a dreamforce video regarding this but unfortunately i couldnt find the Source code repo .

If any of you has sucessuly implemented prediction api in salesforce, can you please share the code?

Thanks,
Ravi Narayanan

Hi Guys,

Recently i gone thru various blogs about Telerick's new platform NativeScript for building Native Mobile applications using Pure JS. There is also a new tool named FUSETOOLS which is also aimed at creating native mobile application using JS.

I personally feel the above mentioned tools will definitely improve perfomance of mob applications when compared with phonegap as there are no DOM involved in nativescript/fuse tools.

Does anyone know how to conenct to Salesforce with these tools?  Are there any working examples? Please help ! ! 

Thanks,

Ravi Narayanan

Hi Guys,

Recently i gone thru various blogs about Telerick's new platform NativeScript for building Native Mobile applications using Pure JS. There is also a new tool named FUSETOOLS which is also aimed at creating native mobile application using JS.

I personally feel the above mentioned tools will definitely improve perfomance of mob applications when compared with phonegap as there are no DOM involved in nativescript/fuse tools.

Does anyone know how to conenct to Salesforce with these tools?  Are there any working examples? Please help ! ! 

Thanks,

Ravi Narayanan

Controller:-
public with sharing class Project1 {

    public Project1() {

    }



//Declaration
private ApexPages.StandardController controller;
public Project__c proj{get;set;}
public String projectId{get;set;}
public Id currentProjectId{get; set;}
public Project__c ProjectRec{get;set;}
public boolean isRendered{get;set;}
public boolean isNew_s{get;set;}


//Constructor
public Project1(ApexPages.StandardController stdController) {
projectId = ApexPages.currentPage().getParameters().get('Id'); 
if(projectId != null)        
        {
            this.ProjectRec= [   SELECT  Name,
                                          Description__c,
                                          Area_of_focus__c,
                                          Expected_Output_Outcomes__c,
                                          Achievements__c,
                                          Country__c,
                                          Budget__c,
                                          Project_s_Start_date__c,
                                          Project_s_End_date__c
                                          FROM    Project__c 
                                          WHERE   Id = : projectId];  
        }
        else
        {
            this.ProjectRec= new Project__c ();

        }   
}
        

    
    
  public PageReference page2(){
  system.debug('Hi am here!!!!!!!'); 
        return Page.Project2;  
        
    }
}

Page 1:-
<apex:page standardController="Project__c" extensions="Project1" >
<apex:form >
<apex:pageBlock >
<apex:pageBlockSection title="Project Details" >
<apex:inputField value="{!Project__c.Name}" id="name" required="true"/><br></br>
<apex:inputField value="{!Project__c.Description__c}" id="des"/><br></br>
<apex:inputField value="{!Project__c.Area_of_focus__c}" id="aof"/><br></br>
<apex:inputField value="{!Project__c.Expected_Output_Outcomes__c}" id="eoo"/><br></br>
<apex:inputField value="{!Project__c.Achievements__c}" id="achi"/><br></br>
<apex:inputField value="{!Project__c.Country__c}" id="country"/><br></br>
<apex:inputField value="{!Project__c.Budget__c}" id="bud"/><br></br>
<apex:inputField value="{!Project__c.Project_s_Start_date__c}" id="psd"/><br></br>
<apex:inputField value="{!Project__c.Project_s_End_date__c}" id="ped"/><br></br>
</apex:pageblockSection> </apex:pageBlock> </apex:form>
<apex:pageblock > <apex:pageBlockButtons location="bottom">
<apex:form > <apex:commandButton action="{!page2}" value="Save"/>
<apex:commandButton action="{!}" value="Save & new"/>
<apex:commandButton action="{!}" value="Cancel"/> </apex:form>
</apex:pageBlockButtons> </apex:pageBlock>


Page 2:-
<apex:page standardController="Project__c" extensions="Project1" >
<apex:form > <apex:pageBlock >
<apex:pageBlockSection title="Organizational Contact Details">
<apex:outputField value="{!Project__c.Name}" id="name" /><br></br>
<apex:outputField value="{!Project__c.Description__c}" id="des"/><br></br>
<apex:outputField value="{!Project__c.Area_of_focus__c}" id="aof"/><br></br>
<apex:outputField value="{!Project__c.Expected_Output_Outcomes__c}" id="eoo"/><br></br>
<apex:outputField value="{!Project__c.Achievements__c}" id="achi"/><br></br>
<apex:outputField value="{!Project__c.Country__c}" id="country"/><br></br>
<apex:outputField value="{!Project__c.Budget__c}" id="bud"/><br></br>
<apex:outputField value="{!Project__c.Project_s_Start_date__c}" id="psd"/><br></br>
<apex:outputField value="{!Project__c.Project_s_End_date__c}" id="ped"/><br></br>
</apex:pageBlockSection> </apex:pageBlock>
<apex:pageBlock > <apex:pageblockSection title="Project Team">
<apex:commandButton action="{!}" value="Add Project Team"/>
<apex:commandButton action="{!}" value="Edit"/> </apex:pageblockSection> </apex:pageblock> </apex:form> </apex:page>

Hi,

has anyone sucessfully integrated google prediction api with salesforce?

i had seen a dreamforce video regarding this but unfortunately i couldnt find the Source code repo .

If any of you has sucessuly implemented prediction api in salesforce, can you please share the code?

Thanks,
Ravi Narayanan

Hi Guys,

Recently i gone thru various blogs about Telerick's new platform NativeScript for building Native Mobile applications using Pure JS. There is also a new tool named FUSETOOLS which is also aimed at creating native mobile application using JS.

I personally feel the above mentioned tools will definitely improve perfomance of mob applications when compared with phonegap as there are no DOM involved in nativescript/fuse tools.

Does anyone know how to conenct to Salesforce with these tools?  Are there any working examples? Please help ! ! 

Thanks,

Ravi Narayanan

Hi experts,
                I am new to salesforce.I have a requirement where i need to provide search for FromDate and Todate on this range the closeDate should be displayed.I have tried as below but i am getting error.Please help.

 VF page
<apex:page Controller="GVWS_RegionCountry">

<apex:sectionHeader title="Reports" subtitle="Generate Report" id="sectionHeaderId"/>

 <apex:form id="ReportRegion">
    <apex:outputPanel id="msgPanel">
        <apex:pageMessages ></apex:pageMessages>
    </apex:outputPanel>
    <apex:pageblock id="pb">
    
        <apex:pageBlockSection id="SearchPanel" showHeader="true" columns="2">
            <apex:outputLabel value="Region"/>
            <apex:inputtext id="rname" value="{!region}"/>
            <apex:outputLabel value="Country"/>
            <apex:inputtext id="cname" value="{!country}" />
           <apex:outputLabel value="Close Date:"/>
           <br/>
               <apex:outputLabel value="From"/>
               <apex:inputtext id="cdfrom" value="{!fromDate}"/>
               <apex:outputLabel value="To"/>
               <apex:inputtext id="cdto" value="{!toDate}"/>
               
               
         
        </apex:pageBlockSection>      
        <apex:pageBlockButtons location="bottom">
            <apex:commandButton action="{!displayReport}"  value="Generate Report" ID="ENTER_BUTTON"/>
        </apex:pageBlockButtons>
    </apex:pageblock>
    
    <apex:pageBlock id="pbb">
    <apex:pageBlockTable value="{!opportunityRecords}" var="opp">  >  
        <apex:column headerValue="Opportunity Name">{!opp.name}
        </apex:column> 
        <apex:column headerValue="Opportunity Owner">{!opp.owner.name}</apex:column>
        <apex:column headerValue="Region">{!opp.GEBRegion__c}</apex:column>
        <apex:column headerValue="Country">{!opp.Country__c}</apex:column>
        <apex:column headerValue="Broker/Partner">{!opp.Broker__c}</apex:column>
        <apex:column headerValue="Estimated Premium(Converted)"></apex:column>
        <apex:column headerValue="Close date">{!opp.CloseDate}</apex:column>
        <apex:column headerValue="Stage">{!opp.StageName}</apex:column>
        <apex:column headerValue="Created stage"></apex:column>
    </apex:pageBlockTable>

    </apex:pageblock>

 </apex:form>
</apex:page>

Controller
public class GVWS_RegionCountry 
{
  public String region{get;set;}
  public String country{get;set;}
  public String closeDate{get;set;}
  //public Date from{get;set;}
  public Date fromDate{get;set;}
  public Date toDate{get;set;}
  public List<Opportunity> opportunityRecords{get;set;}
  
   ApexPages.StandardSetController regionStandardSetController{get;set;}
  
  public GVWS_RegionCountry()
  {
    opportunityRecords = new list<Opportunity>();
    regionStandardSetController=new ApexPages.StandardSetController(new list<Opportunity>());
  
  }
  
   
 
   //List<Opportunity> reportQuery=new List<Opportunity>();
   //reportQuery='SELECT Id,Name,Owner,Broker__c,GVWS_Region__c,GVWS_Country__c ,CloseDate,StageName FROM Opportunity';
   String reportQuery1 ='SELECT Id,Name,Owner.Name,Broker__c,Country__c,GEBRegion__c,CloseDate,StageName FROM Opportunity WHERE StageName NOT IN (';
   String reportQuery2 = 'Ommitted';
   String reportQuery3 = 'Inforce';
   String reportQuery4 = 'Lost';
   String reportQuery5 = 'Declined';
   String reportQuery6 = ')';
   String reportQuery = reportQuery1+':'+'reportQuery2'+','+':'+'reportQuery3'+','+':'+'reportQuery4'+','+':'+'reportQuery5'+reportQuery6;
  
   
     
    
   public void displayReport()
 {
        String checkQuery = reportQuery;
        String checkInput = reportQuery;
        if(region!= null && !region.equalsIgnoreCase(''))
        {
          
            checkQuery = checkQuery + 'and GEBRegion__c like :region';
            system.debug('***********1'+checkQuery);
        }
        
        if(country!= null && !country.equalsIgnoreCase(''))
        {
         
            checkQuery = checkQuery + ' '+'and Country__c like :country';
            system.debug('***********2'+checkQuery);
        }
        
        if((fromDate!= null)&&(toDate!=null))
        {
          checkQuery=checkQuery+' '+'and (closeDate>=:fromDate AND closeDate<= :toDate+1)';
          system.debug('************3'+checkQuery);
        }
      
        if(checkQuery.equals(checkInput)){
            ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.Info,'Please Enter value in at least one search criteria'));
            opportunityRecords = new list<Opportunity>();
            return;
        }
      //   system.debug('***********1'+checkQuery);
      
       
       regionStandardSetController=new ApexPages.StandardSetController(Database.getQueryLocator(checkQuery));
       
        opportunityRecords= regionStandardSetController.getRecords();
        
}
      
}

Please help me with this.


Thanks & regards,
Lahari

 
Hi,

We are seeking an app developer to create a business to consumer mobile app, in which customers will be booking, and paying for various services offered by various vendors.

For those interested, please provide your contact info.

Dan

Hello Guys,

i tried to create a hybrid remote app with sf mobile sdk and cordova using forcedroid npm package.
But when i try to build the app and run in emulator using cordova emulate android, the application is not opening and i am getting an error 

"Unfortunately app has been stopped" .
Can someone please help me with this?