• JDegner
  • NEWBIE
  • 50 Points
  • Member since 2010

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

I'm having a problem using actionsupport in my component. I think this should be simple, but for the life of me I can't figure it out!! Any help is greatly appreciated!

 

I have the actionsupport running onchange of a selectList. When I change the selectList, a Salesforce page with this on it comes up:

 

URL No Longer Exists You have attempted to reach a URL that no longer exists on salesforce.com.

 

<apex:component id="LFIUpload" controller="LFIUtilities">
<apex:attribute type="StringCarrier" name="theString" description="The string to update" assignTo="{!stringVal}"/>
<apex:attribute type="IdCarrier" name="theID" description="The string to update" assignTo="{!stringID}"/>
         
<style>
    fileFont {color:#27408B;font-size: 11pt;font-bold;aling:left;}
    messageFont {color:#B40404;font-size: 11pt;font-bold;}
    h1 {color:#27408B;font-size: 18pt;font-bold;}
    searchFont {color:gray;font-size: 12pt;}
</style>

<apex:panelGrid columns="3" id="theGrid" cellpadding="0">
<apex:panelGroup id="theGroup">
    <fileFont><apex:outputLabel value="Document Name"/></fileFont>
    <apex:inputtext id="name" value="{!docName}"/>
</apex:panelGroup>

<apex:panelGroup id="theGroup2">
    <fileFont>
        <apex:outputLabel value="Folder"/>
        <apex:selectList value="{!LFFolder}" size="1" id="selectListServiceType" multiselect="false">
            <apex:selectOptions id="listOptions" value="{!items}"/> 
                    <apex:actionSupport event="onchange" action="{!clearTheMessage}" reRender="messageGroup"/>
        </apex:selectList>
    </fileFont>
</apex:panelGroup>

  <apex:panelGroup id="theGroup3">
    <div style="background-color:#EEEEEE;padding: 5px">
        <fileFont><apex:outputLabel value="Upload or Drag & Drop Document"/></fileFont><br></br>
        <apex:inputFile value="{!docFile}" filename="{!nameFile}"/> 
    </div>
</apex:panelGroup>
</apex:panelGrid>


    <apex:panelGrid columns="2" id="theMessageGrid" cellpadding="0">
        <apex:panelGroup id="theGroup4">
             <apex:commandButton style="fileFont" action="{!callLFI}" value="Save" id="theButton"/>
        </apex:panelGroup>
        <apex:panelGroup id="messageGroup">
                <messageFont>{!theMessage}</messageFont>
        </apex:panelGroup>
    </apex:panelGrid>
</apex:component>

 

 public Void clearTheMessage(){
        theMessage='';
    }

 

trigger timecardGetUser on SFDC_Service_Timecard__c (before insert, before update){
    SFDC_Service_Timecard__c a = Trigger.new[0];
    a.User__c = UserInfo.getName(); 
}

 I'm trying to update a custom lookup field with a trigger. I have the code included. When I create a new timecard, the User__c filed isn't being updated! Any ideas?

Is it possible to display Partners on Cases? I thought I could write a SOQL select statement inside of a custom formula field, but I haven't been able to get that to work. Any help is really appreciated!

Thanks

Jerri

Is it possible to create custom buttons that aren't page specific? The button doesn't interact with Salesforce, it only invokes a third-party applicaiton. I know I can create Custom buttons, but I'd need to go to each page I want to add it to and create the custom button, then add it to each page layout. I'd prefer to only create the buttons once.

Thanks

Jerri

I'm reposting here because I'm not getting any responses in the Apex Code Development board. And Salesforce doesn't provide support unless you have a premier account.

 

I deleted the starthere and xmldom class, along with the start here page and tab. I am trying to remove all unnecessary classes so I could complete my testing for code coverage. However, now when I log in I receive an error page. Obviously, something is still referencing the start here page/tab. Can anyone help me figure out how to completely remove the reference to the Start_Here components?


Visualforce Error

Page LFI__Start_Here does not exist
    Create Page LFI__Start_Here

 

 

I followed the below steps, and I still get the same error when logging into my DE org.

 

http://apex-commons.github.com/remove-code-from-fresh-salesforce-org/

Steps to clear fresh developer edition org
Why would you want to do this? A better question is why does salesforce clutter a new developer org with custom components you didn't create?
  1. Go to Setup | Administration Setup | Manage Users | Profiles | System Administrator

  2. Click Edit

  3. Under “Custom App Settings”, change the “Default” to something other than Force.com

  4. Click Save

  5. Go to Setup | App Setup | Create | Apps

  6. Delete Force.com

  7. Go to Setup | App Setup | Create | Tabs

  8. Delete “Start Here”

  9. Go to Setup | App Setup | Develop | Pages

  10. Delete “Start Here”

  11. Go to Setup | App Setup | Develop | Classes

  12. Delete startHereController and XMLDom.

I deleted the starthere and xmldom class, along with the start here page. I was trying to remove all unnecessary classes so I could complete my testing for code coverage. However, now when I log in I receive an error page. Obviously, something is still referencing the start here page. Can anyone help me figure out how to completely remove these?

 

Visualforce Error


Page LFI__Start_Here does not exist

Create Page LFI__Start_Here

I added a Namespace Prefix this morning. Since I've done that, I get this error when using my existing integration:

System.CalloutException: Web service callout failed: Unable to find Apex package for LFI:ebService

Class.LFI.LFIWebService.LFIWebServiceSoap.LFSearch: line 88, column 1 Class.LFI.LFIPageBlockContact.callLFI: line 75, column 1 Class.LFI.LFIPageBlockContact.OnLoadController: line 34, column 1

I've verified that the web service is working, and it was working fine before adding a Namespace Prefix. Any help in resolving is greatly appreciated!

Thanks
Jerri

I'm new to Salesforce development, so please forgive my ignorance.

 

What I'm trying to do: Receive data from my web service and format it into a data table

 

When I test my web service in the browser, it returns the data I need:

 

<?xml version="1.0" encoding="UTF-8"?>

<ArrayOfLFIDoc xmlns="http://webservices.cpgnet.com/LFIWebService/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<LFIDoc>

<lfdocid>19</lfdocid>

<lfdocname>CD451796 - Edge Communications - Account</lfdocname>

<lfdocpages>1</lfdocpages>

<lfdoctemplate>Account</lfdoctemplate>   

<lfdocpath>\Accounts</lfdocpath>

</LFIDoc>

<LFIDoc>

<lfdocid>21</lfdocid>

<lfdocname>CD451796 - Edge Communications - Contact</lfdocname>

<lfdocpages>1</lfdocpages>

<lfdoctemplate>Account</lfdoctemplate>

<lfdocpath>\Accounts</lfdocpath>

</LFIDoc>

<LFIDoc>

<lfdocid>10</lfdocid>

<lfdocname>CD451796 - Edge Communications - History</lfdocname>

<lfdocpages>1</lfdocpages>

<lfdoctemplate>Account</lfdoctemplate>

<lfdocpath>\Accounts</lfdocpath>

</LFIDoc>

<LFIDoc>

<lfdocid>23</lfdocid>

<lfdocname>CD451796 - Edge Communications - Location</lfdocname>

<lfdocpages>1</lfdocpages>

<lfdoctemplate>Account</lfdoctemplate>

<lfdocpath>\Accounts</lfdocpath>

</LFIDoc>

<LFIDocxsi:nil="true"/>

</ArrayOfLFIDoc>

 

I created the class by using the WSDL:

//Generated by wsdl2apex

public class LFIWebService {
    public class LFSearch_element {
        public String LFServer;
        public String LFRepo;
        public String LFUser;
        public String LFPassword;
        public String strID;
        public String strName;
        private String[] LFServer_type_info = new String[]{'LFServer','http://www.w3.org/2001/XMLSchema','string','0','1','false'};
        private String[] LFRepo_type_info = new String[]{'LFRepo','http://www.w3.org/2001/XMLSchema','string','0','1','false'};
        private String[] LFUser_type_info = new String[]{'LFUser','http://www.w3.org/2001/XMLSchema','string','0','1','false'};
        private String[] LFPassword_type_info = new String[]{'LFPassword','http://www.w3.org/2001/XMLSchema','string','0','1','false'};
        private String[] strID_type_info = new String[]{'strID','http://www.w3.org/2001/XMLSchema','string','0','1','false'};
        private String[] strName_type_info = new String[]{'strName','http://www.w3.org/2001/XMLSchema','string','0','1','false'};
        private String[] apex_schema_type_info = new String[]{'http://webservices.cpgnet.com/LFIWebService/','true','false'};
        private String[] field_order_type_info = new String[]{'LFServer','LFRepo','LFUser','LFPassword','strID','strName'};
    }
    public class LFIWebServiceSoap {
        public String endpoint_x = 'http://webservices.cpgnet.com/LFIWebService/LFIWebService.asmx';
        public Map<String,String> inputHttpHeaders_x;
        public Map<String,String> outputHttpHeaders_x;
        public String clientCertName_x;
        public String clientCert_x;
        public String clientCertPasswd_x;
        public Integer timeout_x;
        private String[] ns_map_type_info = new String[]{'http://webservices.cpgnet.com/LFIWebService/', 'LFIWebService'};
        public LFIWebService.ArrayOfLFIDoc LFSearch(String LFServer,String LFRepo,String LFUser,String LFPassword,String strID,String strName) {
            LFIWebService.LFSearch_element request_x = new LFIWebService.LFSearch_element();
            LFIWebService.LFSearchResponse_element response_x;
            request_x.LFServer = LFServer;
            request_x.LFRepo = LFRepo;
            request_x.LFUser = LFUser;
            request_x.LFPassword = LFPassword;
            request_x.strID = strID;
            request_x.strName = strName;
            Map<String, LFIWebService.LFSearchResponse_element> response_map_x = new Map<String, LFIWebService.LFSearchResponse_element>();
            response_map_x.put('response_x', response_x);
            WebServiceCallout.invoke(
              this,
              request_x,
              response_map_x,
              new String[]{endpoint_x,
              'http://webservices.cpgnet.com/LFIWebService/LFSearch',
              'http://webservices.cpgnet.com/LFIWebService/',
              'LFSearch',
              'http://webservices.cpgnet.com/LFIWebService/',
              'LFSearchResponse',
              'LFIWebService.LFSearchResponse_element'}
            );
            response_x = response_map_x.get('response_x');
            return response_x.LFSearchResult;
        }
    }
    public class ArrayOfLFIDoc {
        public LFIWebService.LFIDoc[] LFIDoc;
        private String[] LFIDoc_type_info = new String[]{'LFIDoc','http://webservices.cpgnet.com/LFIWebService/','LFIDoc','0','-1','true'};
        private String[] apex_schema_type_info = new String[]{'http://webservices.cpgnet.com/LFIWebService/','true','false'};
        private String[] field_order_type_info = new String[]{'LFIDoc'};
    }
    public class LFSearchResponse_element {
        public LFIWebService.ArrayOfLFIDoc LFSearchResult;
        private String[] LFSearchResult_type_info = new String[]{'LFSearchResult','http://webservices.cpgnet.com/LFIWebService/','ArrayOfLFIDoc','0','1','false'};
        private String[] apex_schema_type_info = new String[]{'http://webservices.cpgnet.com/LFIWebService/','true','false'};
        private String[] field_order_type_info = new String[]{'LFSearchResult'};
    }
    public class LFIDoc {
        public String lfdocid;
        public String lfdocname;
        public String lfdocpages;
        public String lfdoctemplate;
        public String lfdocpath;
        private String[] lfdocid_type_info = new String[]{'lfdocid','http://www.w3.org/2001/XMLSchema','string','0','1','false'};
        private String[] lfdocname_type_info = new String[]{'lfdocname','http://www.w3.org/2001/XMLSchema','string','0','1','false'};
        private String[] lfdocpages_type_info = new String[]{'lfdocpages','http://www.w3.org/2001/XMLSchema','string','0','1','false'};
        private String[] lfdoctemplate_type_info = new String[]{'lfdoctemplate','http://www.w3.org/2001/XMLSchema','string','0','1','false'};
        private String[] lfdocpath_type_info = new String[]{'lfdocpath','http://www.w3.org/2001/XMLSchema','string','0','1','false'};
        private String[] apex_schema_type_info = new String[]{'http://webservices.cpgnet.com/LFIWebService/','true','false'};
        private String[] field_order_type_info = new String[]{'lfdocid','lfdocname','lfdocpages','lfdoctemplate','lfdocpath'};
    }
}

 

When I get the return data into Salesforce, it looks like this:

 

LFIWebService.ArrayOfLFIDoc:[LFIDoc=(LFIWebService.LFIDoc:[apex_schema_type_info=(http://webservices.cpgnet.com/LFIWebService/, true, false), field_order_type_info=(lfdocid, lfdocname, lfdocpages, lfdoctemplate, lfdocpath), lfdocid=19, lfdocid_type_info=(lfdocid, http://www.w3.org/2001/XMLSchema, string, 0, 1, false), lfdocname=CD451796 - Edge Communications - Account, lfdocname_type_info=(lfdocname, http://www.w3.org/2001/XMLSchema, string, 0, 1, false), lfdocpages=1, lfdocpages_type_info=(lfdocpages, http://www.w3.org/2001/XMLSchema, string, 0, 1, false), lfdocpath=\Accounts, lfdocpath_type_info=(lfdocpath, http://www.w3.org/2001/XMLSchema, string, 0, 1, false), lfdoctemplate=Account, lfdoctemplate_type_info=(lfdoctemplate, http://www.w3.org/2001/XMLSchema, string, 0, 1, false)], LFIWebService.LFIDoc:[apex_schema_type_info=(http://webservices.cpgnet.com/LFIWebService/, true, false), field_order_type_info=(lfdocid, lfdocname, lfdocpages, lfdoctemplate, lfdocpath), lfdocid=21, lfdocid_type_info=(lfdocid, http://www.w3.org/2001/XMLSchema, string, 0, 1, false), lfdocname=CD451796 - Edge Communications - Contact, lfdocname_type_info=(lfdocname, http://www.w3.org/2001/XMLSchema, string, 0, 1, false), lfdocpages=1, lfdocpages_type_info=(lfdocpages, http://www.w3.org/2001/XMLSchema, string, 0, 1, false), lfdocpath=\Accounts, lfdocpath_type_info=(lfdocpath, http://www.w3.org/2001/XMLSchema, string, 0, 1, false), lfdoctemplate=Account, lfdoctemplate_type_info=(lfdoctemplate, http://www.w3.org/2001/XMLSchema, string, 0, 1, false)], LFIWebService.LFIDoc:[apex_schema_type_info=(http://webservices.cpgnet.com/LFIWebService/, true, false), field_order_type_info=(lfdocid, lfdocname, lfdocpages, lfdoctemplate, lfdocpath), lfdocid=10, lfdocid_type_info=(lfdocid, http://www.w3.org/2001/XMLSchema, string, 0, 1, false), lfdocname=CD451796 - Edge Communications - History, lfdocname_type_info=(lfdocname, http://www.w3.org/2001/XMLSchema, string, 0, 1, false), lfdocpages=1, lfdocpages_type_info=(lfdocpages, http://www.w3.org/2001/XMLSchema, string, 0, 1, false), lfdocpath=\Accounts, lfdocpath_type_info=(lfdocpath, http://www.w3.org/2001/XMLSchema, string, 0, 1, false), lfdoctemplate=Account, lfdoctemplate_type_info=(lfdoctemplate, http://www.w3.org/2001/XMLSchema, string, 0, 1, false)], LFIWebService.LFIDoc:[apex_schema_type_info=(http://webservices.cpgnet.com/LFIWebService/, true, false), field_order_type_info=(lfdocid, lfdocname, lfdocpages, lfdoctemplate, lfdocpath), lfdocid=23, lfdocid_type_info=(lfdocid, http://www.w3.org/2001/XMLSchema, string, 0, 1, false), lfdocname=CD451796 - Edge Communications - Location, lfdocname_type_info=(lfdocname, http://www.w3.org/2001/XMLSchema, string, 0, 1, false), lfdocpages=1, lfdocpages_type_info=(lfdocpages, http://www.w3.org/2001/XMLSchema, string, 0, 1, false), lfdocpath=\Accounts, lfdocpath_type_info=(lfdocpath, http://www.w3.org/2001/XMLSchema, string, 0, 1, false), lfdoctemplate=Account, lfdoctemplate_type_info=(lfdoctemplate, http://www.w3.org/2001/XMLSchema, string, 0, 1, false)], LFIWebService.LFIDoc:[apex_schema_type_info=(http://webservices.cpgnet.com/LFIWebService/, true, false), field_order_type_info=(lfdocid, lfdocname, lfdocpages, lfdoctemplate, lfdocpath), lfdocid=null, lfdocid_type_info=(lfdocid, http://www.w3.org/2001/XMLSchema, string, 0, 1, false), lfdocname=null, lfdocname_type_info=(lfdocname, http://www.w3.org/2001/XMLSchema, string, 0, 1, false), lfdocpages=null, lfdocpages_type_info=(lfdocpages, http://www.w3.org/2001/XMLSchema, string, 0, 1, false), lfdocpath=null, lfdocpath_type_info=(lfdocpath, http://www.w3.org/2001/XMLSchema, string, 0, 1, false), lfdoctemplate=null, lfdoctemplate_type_info=(lfdoctemplate, http://www.w3.org/2001/XMLSchema, string, 0, 1, false)]), LFIDoc_type_info=(LFIDoc, http://webservices.cpgnet.com/LFIWebService/, LFIDoc, 0, -1, true), apex_schema_type_info=(http://webservices.cpgnet.com/LFIWebService/, true, false), field_order_type_info=(LFIDoc)]



I've tried multiple different routines to loop through the array being returned so I can display my data, however I just can't get it! I'm lost, and can use any help!

Thanks in advance :-)

Jerri

I'm having a problem using actionsupport in my component. I think this should be simple, but for the life of me I can't figure it out!! Any help is greatly appreciated!

 

I have the actionsupport running onchange of a selectList. When I change the selectList, a Salesforce page with this on it comes up:

 

URL No Longer Exists You have attempted to reach a URL that no longer exists on salesforce.com.

 

<apex:component id="LFIUpload" controller="LFIUtilities">
<apex:attribute type="StringCarrier" name="theString" description="The string to update" assignTo="{!stringVal}"/>
<apex:attribute type="IdCarrier" name="theID" description="The string to update" assignTo="{!stringID}"/>
         
<style>
    fileFont {color:#27408B;font-size: 11pt;font-bold;aling:left;}
    messageFont {color:#B40404;font-size: 11pt;font-bold;}
    h1 {color:#27408B;font-size: 18pt;font-bold;}
    searchFont {color:gray;font-size: 12pt;}
</style>

<apex:panelGrid columns="3" id="theGrid" cellpadding="0">
<apex:panelGroup id="theGroup">
    <fileFont><apex:outputLabel value="Document Name"/></fileFont>
    <apex:inputtext id="name" value="{!docName}"/>
</apex:panelGroup>

<apex:panelGroup id="theGroup2">
    <fileFont>
        <apex:outputLabel value="Folder"/>
        <apex:selectList value="{!LFFolder}" size="1" id="selectListServiceType" multiselect="false">
            <apex:selectOptions id="listOptions" value="{!items}"/> 
                    <apex:actionSupport event="onchange" action="{!clearTheMessage}" reRender="messageGroup"/>
        </apex:selectList>
    </fileFont>
</apex:panelGroup>

  <apex:panelGroup id="theGroup3">
    <div style="background-color:#EEEEEE;padding: 5px">
        <fileFont><apex:outputLabel value="Upload or Drag & Drop Document"/></fileFont><br></br>
        <apex:inputFile value="{!docFile}" filename="{!nameFile}"/> 
    </div>
</apex:panelGroup>
</apex:panelGrid>


    <apex:panelGrid columns="2" id="theMessageGrid" cellpadding="0">
        <apex:panelGroup id="theGroup4">
             <apex:commandButton style="fileFont" action="{!callLFI}" value="Save" id="theButton"/>
        </apex:panelGroup>
        <apex:panelGroup id="messageGroup">
                <messageFont>{!theMessage}</messageFont>
        </apex:panelGroup>
    </apex:panelGrid>
</apex:component>

 

 public Void clearTheMessage(){
        theMessage='';
    }

 

Trying to view the code coverage of class labeled as "managed" by clicking on the number in the Column "Codecoverage" in the overview of all my Apex-Classes I only get an empty page!

Viewing the Codecoverage for a class which is not labeled as "managed" does work fine!

Does anyone have a solution for this?

It is a bit annoying writing tests for a class without beeing able to see what is not yet covered...

Thank you!

I'm reposting here because I'm not getting any responses in the Apex Code Development board. And Salesforce doesn't provide support unless you have a premier account.

 

I deleted the starthere and xmldom class, along with the start here page and tab. I am trying to remove all unnecessary classes so I could complete my testing for code coverage. However, now when I log in I receive an error page. Obviously, something is still referencing the start here page/tab. Can anyone help me figure out how to completely remove the reference to the Start_Here components?


Visualforce Error

Page LFI__Start_Here does not exist
    Create Page LFI__Start_Here

 

 

I followed the below steps, and I still get the same error when logging into my DE org.

 

http://apex-commons.github.com/remove-code-from-fresh-salesforce-org/

Steps to clear fresh developer edition org
Why would you want to do this? A better question is why does salesforce clutter a new developer org with custom components you didn't create?
  1. Go to Setup | Administration Setup | Manage Users | Profiles | System Administrator

  2. Click Edit

  3. Under “Custom App Settings”, change the “Default” to something other than Force.com

  4. Click Save

  5. Go to Setup | App Setup | Create | Apps

  6. Delete Force.com

  7. Go to Setup | App Setup | Create | Tabs

  8. Delete “Start Here”

  9. Go to Setup | App Setup | Develop | Pages

  10. Delete “Start Here”

  11. Go to Setup | App Setup | Develop | Classes

  12. Delete startHereController and XMLDom.

I deleted the starthere and xmldom class, along with the start here page. I was trying to remove all unnecessary classes so I could complete my testing for code coverage. However, now when I log in I receive an error page. Obviously, something is still referencing the start here page. Can anyone help me figure out how to completely remove these?

 

Visualforce Error


Page LFI__Start_Here does not exist

Create Page LFI__Start_Here

I added a Namespace Prefix this morning. Since I've done that, I get this error when using my existing integration:

System.CalloutException: Web service callout failed: Unable to find Apex package for LFI:ebService

Class.LFI.LFIWebService.LFIWebServiceSoap.LFSearch: line 88, column 1 Class.LFI.LFIPageBlockContact.callLFI: line 75, column 1 Class.LFI.LFIPageBlockContact.OnLoadController: line 34, column 1

I've verified that the web service is working, and it was working fine before adding a Namespace Prefix. Any help in resolving is greatly appreciated!

Thanks
Jerri

Anyone ever receive this error before?

 

The full error is "Web service callout failed: Unable to find Apex package for Knotice:ervice"

 

I have an apex class that I created from a wsdl.  I've already verified that the web service is working fine, it's just puking when I try to use the apex class.  

 

Thank you,

 

Matti