• NIK_USA
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies
Hi
I am trying to override a new Contact page and Record Type Page. It is working fine in SF1 mobile but in browser it is not doing anything. Here is the code. The result will return RT ID and it is working fine. The problem is redirecting in browser. Any Help is really appreciated.

Thanks
NIK

<apex:page tabStyle="Contact" standardController="Contact" extensions="ControllerNewContactRedirect" title="Select Record Type" action="{!redirectPage}" id="L1">
    <apex:form id="L2">
        <script type="text/javascript">  
            function validate() {
               var vSelectedItem = (document.getElementById('L1:L2:L3:L4:L5:textRT')).selectedIndex;
               var vFieldName = document.getElementById('L1:L2:L3:L4:L5:textRT').options[vSelectedItem].value;
               Visualforce.remoting.Manager.invokeAction(
                    '{!$RemoteAction.ControllerNewContactRedirect.submitRecordType}',vFieldName, 
                    function(result, event){    
                        if (event.status) {
                            alert(result);
                                if( (typeof sforce != 'undefined') && (sforce != null) ) {
                                     sforce.one.createRecord('Contact',result);
                                 }
                                else{
                                    window.location.href ='www.google.com';
                                    //window.location.href ='apex/newCustomVFPage';
                                }
                        } else if (event.type === 'exception') {
                            alert(event.message);
                        } else {
                            alert(event.message);
                        }
                    }
                );
            }
        </script>
        
        <apex:pageblock id="L3">
            <apex:pageBlockButtons >
                <input type="button" value ="Submit" class="btn" onclick="validate();" />
            </apex:pageBlockButtons>            
            <apex:pageBlockSection id="L4">    
                <apex:pageBlockSectionItem id="L5">
                    <apex:outputLabel value="Select Record Type" for="textRT"/>
                        <apex:selectList value="{!selectedRT}" id="textRT" size="1">
                            <apex:selectOptions value="{!RT}"/>
                        </apex:selectList>
                </apex:pageBlockSectionItem>
            </apex:pageBlockSection> 
        </apex:pageblock>
    </apex:form>
</apex:page>
Hi

I am looking few hrs of consulting help in debugging an ipad app written xcode and uses rest api to connect to Salesforce. It does some basic functions like creating contacts and sync them tp/from Salesforce. This is a hybrid app written in Cordova. I need to make some changes but I am new to xcode. I need someone who can spend some time may be 2-3 hrs to go thru the code and explain. I am a salesforce developer and familiar with basics. Just need where to change and how to debug breakpoints etc. Appreciate your help.
  • September 29, 2014
  • Like
  • 0
I'm looking for someone to customize our salesforce.com database to meet unique needs of our business.  We currently have a software platform running on SQL that I believe we can accomplish the same daily tasks using salesforce.  The short range goal is to integrate data from our SQL program to populate reports & dashboards and make the information available on a customer portal.  The long range goal is to migrate off the SQL program and perform all functions within salesforce.

Short term needs are for someone who knows how to develop a customer portal that matches our website and to publish data from our SQL database.  Our clients should be able to login and see all of the reports assigned to their account.

Our long term goal is to migrate our operation to salesforce.com platform.  The SQL platform that we use is a software program that merges demographic data onto forms that are submitted to insurance companies. These forms are to credential and contract healthcare providers with insurance networks.  Our software stores all demographics, education, training, licensing, and other data about each provider client and then we are able to output all the data onto different carrier forms by having the forms mapped.  My overall thought is that some sort of case management could be used to manage each of these "applications".