• AravindBabu512
  • NEWBIE
  • 329 Points
  • Member since 2012

  • Chatter
    Feed
  • 13
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 16
    Questions
  • 73
    Replies

Hello,

 

Is there a way to remove the "Name at Company" text from the Home Tab?

  • March 15, 2013
  • Like
  • 0

Hi,

 

I met a problem when I install Force.com IDE in my computer.

I run the "force.com-ide-installer-win32.exe" and my OS is Windows 7.

 

The following is error log:

 

 

!SESSION Thu Aug 09 14:07:29 CST 2012 ------------------------------------------
!ENTRY org.eclipse.equinox.launcher 4 0 2012-08-09 14:07:29.089
!MESSAGE Invalid splash path entry: platform\:/base/plugins/org.eclipse.platform
!SESSION 2012-08-09 14:07:28.808 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_33
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -noPulseUpdate
Command-line arguments: -os win32 -ws win32 -arch x86 -noPulseUpdate

!ENTRY org.eclipse.osgi 4 0 2012-08-09 14:08:18.401
!MESSAGE Application error
!STACK 1
org.eclipse.swt.SWTException: Invalid image
at org.eclipse.swt.SWT.error(SWT.java:4083)
at org.eclipse.swt.SWT.error(SWT.java:3998)
at org.eclipse.swt.SWT.error(SWT.java:3969)
at org.eclipse.swt.internal.image.PngChunkReader.readNextChunk(PngChunkReader.java:46)
at org.eclipse.swt.internal.image.PNGFileFormat.readNextChunk(PNGFileFormat.java:89)
at org.eclipse.swt.internal.image.PNGFileFormat.loadFromByteStream(PNGFileFormat.java:75)
at org.eclipse.swt.internal.image.FileFormat.loadFromStream(FileFormat.java:48)
at org.eclipse.swt.internal.image.FileFormat.load(FileFormat.java:84)
at org.eclipse.swt.graphics.ImageLoader.load(ImageLoader.java:130)
at org.eclipse.swt.graphics.ImageDataLoader.load(ImageDataLoader.java:22)
at org.eclipse.swt.graphics.ImageData.<init>(ImageData.java:331)
at com.genuitec.pulse2.common.ui.CommonUIActivator.getImage(Unknown Source)
at com.genuitec.pulse2.client.launcher.ui.LauncherUIActivator.getImage(Unknown Source)
at com.genuitec.pulse2.client.launcher.ui.product.LauncherImageSupplier.getImage(Unknown Source)
at com.genuitec.pulse2.client.installer.ui.dialog.InstallerImageService.getImageFromBranding(Unknown Source)
at com.genuitec.pulse2.client.installer.ui.dialog.InstallerImageService.getDialogIcons(Unknown Source)
at com.genuitec.pulse2.client.installer.ui.dialog.ProgressMonitorDialog.createShell(Unknown Source)
at com.genuitec.pulse2.client.installer.ui.dialog.ProgressMonitorDialog.<init>(Unknown Source)
at com.genuitec.pulse2.client.installer.ui.application.PulseApplicationProvisioner.showDialog(Unknown Source)
at com.genuitec.pulse2.client.installer.ui.application.PulseApplicationProvisioner.showDialog(Unknown Source)
at com.genuitec.pulse2.client.launcher.ui.product.LauncherApplication.start(Unknown Source)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
at org.eclipse.equinox.launcher.Main.run(Main.java:1408)

 

 

So, does anyone meet the same problem before?

Hi,

 

I have created Configuration file to schedule Dataloader through CLI(Command Line Interface). I have setted Time Zone as "GMT", and Use Europian Format as a true. But it is taking one day less.

 

That means reading one day less from actual date.

 

 

Please provide me the solution for this.

 

 

  <map>
                <entry key="sfdc.debugMessages" value="true"/>
                <entry key="sfdc.debugMessagesFile" value="c:\dataloader\samples\status\accountMasterSoapTrace.log"/>
    
    <entry key="process.outputError" value="c:\Program Files\salesforce.com\Data Loader\Test\error.txt"/>
                <entry key="process.outputSuccess" value="c:\Program Files\salesforce.com\Data Loader\Test\success.txt"/>
    <entry key="sfdc.endpoint" value="https://login.salesforce.com"/>
                <entry key="sfdc.username" value="--"/>
                <!-- password below has been encrypted using key file, therefore it will not work without the key setting: process.encryptionKeyFile
                the password is not a valid encrypted value, please generate the real value using encrypt.bat utility -->
                <entry key="sfdc.password" value="--"/>
                <entry key="process.encryptionKeyFile" value="c:\Program Files\salesforce.com\Data Loader\Test\key.txt"/>
                <entry key="sfdc.timeoutSecs" value="600"/>
                <entry key="sfdc.loadBatchSize" value="200"/>
                <entry key="sfdc.externalIdField" value="AX_object__c"/>
                <entry key="sfdc.entity" value="AX_object__c"/>
                <entry key="process.operation" value="insert"/>
               <entry key="sfdc.timeZone" value="GMT"/>
              <entry key="process.useEuropeanDates" value="true"/>
              <entry key="dataAccess.name" value="c:\Program Files\salesforce.com\Data Loader\Test\SFData.csv"/>
              <entry key="process.mappingFile" value="c:\Program Files\salesforce.com\Data Loader\Test\axmapping.sdl"/>    
                <entry key="dataAccess.type" value="csvRead"/>
                <entry key="process.initialLastRunDate" value="2005-12-01T00:00:00.000-0800"/>
            </map>

 

 

Thank you.

 

Warm Regards,

Amol Dixit.

I am working on a search page where the user will search for an item, the page will return a list of results, the user will make a selection, and then a page block below will render. I have been looking at the dynamic edit example and have not been successful yet.

 

Here is my vf page:

<apex:page standardcontroller="Customer_Product_Line_Item__c" extensions="AddCustomerProductStage1vfhide" >
<!-- Javascript function to check all rows in the table -->
<script>
function checkAll(cb)
{
   var inputElem = document.getElementsByTagName("input");
   for(var i=0;i<inputElem.length;i++)https://c.cs4.visual.force.com/s.gif
     {
             if(inputElem[i].id.indexOf("selectLine1")!=-1)
                   inputElem[i].checked = cb.checked;
      }
}
</script>
<!-- End of Javascript function -->
<apex:form >
<apex:pageblock title="Choose Customer Product">
<apex:pageBlockSection columns="1"></apex:pageBlockSection>




    <!-- Panel grid to display boxes o accept user input values -->
    <apex:panelGrid columns="2">
        <apex:outputLabel style="font-weight:bold;" value="Customer Product" ></apex:outputLabel>
        <apex:inputText value="{!userinput}" />

    </apex:panelGrid>
    <!-- End of panelgrid -->
    <!-- Div to position the commandbutton appropriately -->
        <div style="position:relative;left:75px;">
             <apex:commandButton value="Search" action="{!cpsearch}"  />
        </div>

<!-- Display search results -->
<apex:pageblocksection columns="1" title="Customer Product Search Results" >
  <apex:outputpanel id="Contactlist">

        <apex:pageBlockTable value="{!results}" var="cp" >
             <apex:column width="25px" >
               <apex:outputPanel >
                    <apex:inputCheckbox value="{!cp.selected}" id="selectLine1"/>
            <apex:actionStatus startText="applying value..." id="status"/>
                        </apex:outputPanel>
            </apex:column>
            <apex:column headervalue="Customer Product">
                <apex:outputtext value="{!cp.con.Name}"/>
            </apex:column>
        </apex:pageBlockTable>  <br/><br/>

    </apex:outputpanel>
</apex:pageblocksection>
</apex:pageblock>
<apex:outputpanel >
<apex:pageblock title="Attributes for {!cpsel}" id="thePageBlock" rendered="{!cpsel}>0">
    <apex:pageblocksection columns="2">
        <apex:inputfield value="{!Customer_Product_Line_Item__c.Condition_1__c}" required="false"/>
        <apex:inputfield value="{!Customer_Product_Line_Item__c.Condition_2__c}" required="False"/>
        <apex:inputHidden />
        <apex:inputfield value="{!Customer_Product_Line_Item__c.Condition_3__c}" required="false"/>
        <apex:inputfield value="{!Customer_Product_Line_Item__c.Shape_1__c}" required="false"/>
        <apex:inputfield value="{!Customer_Product_Line_Item__c.Shape_2__c}" required="False"/>
        <apex:inputfield value="{!Customer_Product_Line_Item__c.Capacity__c}" required="false"/>
        <apex:inputHidden />
        <apex:inputfield value="{!Customer_Product_Line_Item__c.Size__c}" required="false"/>
        <apex:inputHidden />
        <apex:inputfield value="{!Customer_Product_Line_Item__c.Additional_Information__c}" required="false"/>
        <apex:inputHidden />
    </apex:pageblocksection>
</apex:pageBlock>
</apex:outputpanel>

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

 Apex class:

public class AddCustomerProductStage1vfhide{

/* Constructor Function. The CustomerProduct id is captured in this function */

public Customer_Product_Line_Item__c cpl {get;set;}
public Opportunity o;
public AddCustomerProductStage1vfhide(ApexPages.StandardController c)
{
            o = [select id from Opportunity where id =
                       :ApexPages.currentPage().getParameters().get('oppid')];
}

      public Opportunity getOpportunity() {
            return o;
      }

/* Variable declarations */

public List<cCustomer> cpList {get; set;}                              // Wrapper class which stores customer product data and a boolean flag.
public List<cCustomer> cpsel{get; set;}
public ID oid {get; set;}

public String userinput ='' ;                                                               // cp Name
public String userinp;  
pageReference test(){
    return null;
    }
Public List<Customer_Product__c> results = new List<Customer_Product__c>();                 // Customer_Product__c search results.

Public List<Customer_Product__c> selproduct = new List<Customer_Product__c>();                 // Customer_Product__c selectedproduct.

/* End of Variable declarations */

/* Getter and setter methods for getting the user input ie. Customer_Product__c name from the UI */

public String getuserinput(){return userinput;}
public void setuserinput(String userinp1)
{

this.userinput=userinp1;
system.debug('*****SFDC-TEST-1**********'+userinput+'='+userinp);
}
public String getselproduct(){return null;}

/*End of Getter and Setter methods */

/* Method to Search the Customer_Product__c database to return the query results */
public List<Customer_Product__c> cpsearch()
{
     cpList = new List<cCustomer>();
     for(Customer_Product__c c : [select id, name from Customer_Product__c where Name like :userinput+'%' order by Name asc])
     {
      cCustomer c1=new cCustomer(c);
      c1.Selected=false;
       //  cpList.add(new cCustomer(c));
      cpList.add(c1);
      }
system.debug('*****SFDC-TEST-2**********'+cpList);
 if(Test.isRunningTest())
 { getuserinput();
    getopportunity();
   getselproduct();
     }
return null;
}
/* End of method */


/* Method for returning the Customer Product search results to the UI */
public List<cCustomer> getresults()
{
 if(Test.isRunningTest())
 { 
 cpsearch();
 }
  
  System.debug('$$$$$$$$'+cpList);
  return cpList; 

}
    public PageReference processSelected() {

         //We create a new list of Customer Products that we be populated only with Customer Products if they are selected
        List<Customer_Product__c> selectedProduct = new List<Customer_Product__c>();
       System.debug('%%%%%%%%%%%%'+getresults());
        //We will cycle through our list of cCustomer and will check to see if the selected property is set to true, 
        //if it is we add the Customer Product to the selectedProduct list
        for(cCustomer cCon : getresults()) {
        
        System.debug('#####'+cCon.selected);
            if(cCon.selected == true) {
                selectedProduct.add(cCon.con);              
            }
        }
  
  if(test.isRunningTest()){
   getresults();
   
}
      
          
system.debug('*****SFDC-TEST-3**********'+selectedProduct);
        // Now we have our list of selected products and can perform any type of logic we want
        System.debug('These are the selected Products...');
        for(Customer_Product__c cCon : SelectedProduct ) {
            system.debug(cCon);
            
            selproduct.add(cCon);
        }
         system.debug('*****SFDC-TEST-4**********'+selproduct.size());

    cpsel = new List<cCustomer>();
     for(Customer_Product__c p : [select name from Customer_Product__c where id =:selproduct])
     {
     system.debug('*****SFDC-TEST-p**********'+p.name);
       cpsel.add(new cCustomer(p));
       
     }return null;

    }


/* Wrapper class to contain customer product record and a boolean flag */
public class cCustomer{
public Customer_Product__c con {get; set;}
public Boolean selected {get; set;}

public cCustomer (Customer_Product__c c)
{
     con = c;
     selected = false;
      }
}

/* end of Wrapper class */    

}

 Thank you

Hi Experts,

                  I am very new to SFDC and trying to update a field using apex data loader. First of all I can't find in list of fields I am searching to update in field mapping. Then I found the customised field  account_site_status has a formula like this CASE( $RecordType.Name , "Site", TEXT(Site_Account_Status__c),TEXT(Type)). I found both fields referred in formula are picklist values.  could you please kindly explain what this formula means? Secondly how to update these kinds of fields using apex data loader? This is very urgent.

 

 

Regards

Anupam

 

 

I am trying to write a simple query to acces the Live Chat Transcript table.

I know the api name is LiveChatTranscript, but when I execute the following simple query:

SELECT * FROM LiveChatTranscript LIMIT 100

I get the following error:

'INVALID_TYPE: sObject type 'LiveChatTranscript' is not supported.


Is there something I have to do to make it queryable?  I have also noticed I cannot access it in the Apex Data Loader, which seems odd as well.

hello,

 

 

I have few date fields in my objects. I m inserting the data using data loader from the excel sheet. But whatever date fields are there in the excel sheet, are not matching with those in the objects. All the values are 1 day less than what are entered. Any reason for this?

 

Thanks in advance.

I have a lookup of 10 items. Each item has a cost. And there is a quantity of each item which is packed.

I want to find total cost, i.e cost of item1*quantity of item 1 + cost of item 2* quantity of item 2 and so on..

Please help me out.

 

Thanks in advance

Hi All
i'm new to salesforce . I have been asked to display the records of the Account Object as multiple tabs along with their related lists in a VF layout .

Can anyone please help me out with the code

 

Thanks in Advance

 

There is a standard field Asset (a lookup) in the case object. I am trying to display the name of the asset on the VF page using standard controller. This works for any other field but not for the asset name

 

{!case.AssetId} > returns ID

{!case.Asset.Name} > returns nothing 

 

What am I missing?

 

Thanks.

Hi,

 

Is there any way to identify if the field is enabled for field history tracking using Apex?

 

DescribeFieldResult methods does not have any specific mention on the field history. If any of you can direct me towards something it would be very helpful for me.

 

Thanks,

Aravind

Hi,

 

This link says that we can set up outbound messages failure notice for every 24hrs. But I do not find the outbound message notifications in my setup menu. Am I missing something here..? Could any of you please help me out on this?

 

Note: My current org has outbound messages enabled and am sending messages to my other application. I need to configure failure notice to the existing setup

 

 

Hi,

 

I am doing data migration from my legacy system to Salesforce using CURL script. I have my accounts name as ABC Company "Terminated" And the migration scripts are failing to load this account, If i remove the double quotes from my source the migration is successful. But the account with the exact name as bolded during migration fails.

 

Has anyone faced a similar issue? And my delimter in the source file is comma, tried with pipe symbol too. But couldnt do it. Could anyone of you help me?

 

Thanks,

Aravind

Hi,

 

It seems pretty odd, but I am not able to export the data from my VF to an excel. The content-type argument of apex:page tag works fine with other browsers and not IE. But my business team uses only IE. Is this is a problem with Salesforce IE functionality. Or am I missing something.

 

<apex:page Controller="LSR" contentType="application/vnd.ms-excel">
  <apex:pageBlock >
    <apex:pageBlockTable value="{!lsrList}" var="l">
      <apex:column headerValue="Agency Name"> {!l.loc_name} </apex:column>
      <apex:column headerValue="Location Code"> {!l.loc_code} </apex:column>
      <apex:column headerValue="Status"> {!l.loc_status} </apex:column>         
      <apex:column headerValue="Evaluated Status"> {!l.ob_status} </apex:column>      
    </apex:pageBlockTable>    
  </apex:pageBlock>

</apex:page>

 This is my code, this works fine with other browsers but not in IE. Any workaround to get this done.

 

Thanks.

 

Hi,

 

Is it possible to implement a hierarchial level of approval in Salesforce. Say, i have a record. The record owner creates and submits the record for approval, the reviewer approves the record-Step 1. Step 2 will be the record will be sent for approval the the Manager. Step 3 will be the record will be sent for approval to the Group leader(say).

 

We only have the option of assigning multiple users, so the same record will be sent for approval to multiple users, but what i require is after step 1, step 2 approval should happen, after step 2, step 3 approval should happen. If in any level the record is rejected the record must go to the prev level for correction.

 

Please let me know if this is possible to achieve.

 

Thanks,

Aravind.

Hi,

 

Could any of you please help me on my requirement. My requirement is to send an email. The process is as follows

 

1- User creates a record and clicks save

2- On click, and pop up window an email template has to open with To , CC, Subject and email body

3- The user may or may not edit the detail on the pop up, and on click of 'SEND' the email has to be sent.

 

All I know is we have email templates and this can't be edited before sending. Can this be achieved??

 

Thanks,

Aravind.

Hi,

 

I am using the ParentGroupVal() in my report and one of the parameters to this function is my column (say #col) since the grouping in my report is based on #col when i change the grouping level the function does not show up in the report as the grouping has changed. User is changing the group level using 'Summarize information by' field in the Report Options section. Is there any possibility that i can set the parameter to parentgroupval function as the group by column dynamically?

 

 

Thanks,

Aravind.

Hi,

 

When we drag and drop the column(say #column) into Matrix report the summarized column becomes 'Sum of #column', is there a way to show it just as the column name.

 

Also is it possible to hide the Report details at the top of the page, details like 'Summarize Infomation by' 'Time frame'

 

Thanks in advance,

Aravind

Hi,

 

I have a joined report with 3 blocks and each block consisting of 12columns and 4formula fields each. I just need the summary information, hence i have given hide details. On giving hide details i could only see the formula fields and not the columns that are added to the report. But when i rerun the report with show details, i could see all the fields in the report.

 

Could any of you please let me know if there is any workaround to get all the fields in joined reports with hide details option?

 

Thanks in advance,

Aravind.

Hi,

 

Is it possible to rename the field name in reports? ie, we drag and drop the field and can we have a new name (as display name) for report alone. 

 

Thanks,

Aravind

Hi,

 

I have a requirement to generate a report and the report format is as below

 

Report       Col1             Col2           col3             col4

                 Formula1     Formula2    col1+col2    (Col1*Col2)/Col3

                 Formula3     Formula4    ........

 

I have different formula in each row and each column. Is it possibe to generate the report in this format.

 

The report data is loaded in SFDC and I was wondering if there is any possibility to generate such dynamic report in Salesforce

 

Thanks in advance,

Aravind

                

Hi,

 

I have a requirement where in i must schedule a report, extract the output as an excel and send it as an email attachement with a predefined template. On my initial understanding, my query is as below, 

 

1) Salesforce does not send report result as an attachment. So is there any workaround to achieve this.

2) Report scheduler sends an email of the result in salesforce predefined format, can i define a custom template and use the template to send across the scheduled report result?

3) The current report template has 5 sheets in it with images in first sheet and few pivot table in 2nd sheet. 3rd, 4th and 5th has the report data. I could understand that we need multiple reports, but is it possible to show them in same spreadsheet.

 

Any help is highly appreciated.

 

Thanks in advance,

Aravind

 

Hi,

 

Is it possible to integrate Salesforce with IBM DB2. I have already provided the option of CAST IRON Cloud integration and Apatar Oper Source Appexchange Component. But my client is not happy with it. Is there any other way to implement the integration? Is it possible to do this by API calls?

 

Thanks in advance,

Aravind

Hi,

 

Is it possible to create a custom object using APEX. This link says it cannot, was any changes deployed in the recent releases? Does any of you have any information on this?

 

Thanks,

Aravind

Hi,

 

My requirement is to schedule Salesforce to Salesforce integration. Connection will be established between 2 salesforce org and the user on creating a record will not be clicking the 'Forward to Connection' button. But on a daily basis the records created needs to be shared with the connections by some schedule mechanism. Could any of you please help me in this regard.

 

Thanks in advance,

Aravind Babu.

Hi,

 

My requirement is to schedule Salesforce to Salesforce integration. Connection will be established between 2 salesforce org and the user on creating a record will not be clicking the 'Forward to Connection' button. But on a daily basis the records created needs to be shared with the connections by some schedule mechanism. Could any of you please help me in this regard.

 

Thanks in advance,

Aravind Babu.

Hi,

 

This link says that we can set up outbound messages failure notice for every 24hrs. But I do not find the outbound message notifications in my setup menu. Am I missing something here..? Could any of you please help me out on this?

 

Note: My current org has outbound messages enabled and am sending messages to my other application. I need to configure failure notice to the existing setup

 

 

Hi,

 

It seems pretty odd, but I am not able to export the data from my VF to an excel. The content-type argument of apex:page tag works fine with other browsers and not IE. But my business team uses only IE. Is this is a problem with Salesforce IE functionality. Or am I missing something.

 

<apex:page Controller="LSR" contentType="application/vnd.ms-excel">
  <apex:pageBlock >
    <apex:pageBlockTable value="{!lsrList}" var="l">
      <apex:column headerValue="Agency Name"> {!l.loc_name} </apex:column>
      <apex:column headerValue="Location Code"> {!l.loc_code} </apex:column>
      <apex:column headerValue="Status"> {!l.loc_status} </apex:column>         
      <apex:column headerValue="Evaluated Status"> {!l.ob_status} </apex:column>      
    </apex:pageBlockTable>    
  </apex:pageBlock>

</apex:page>

 This is my code, this works fine with other browsers but not in IE. Any workaround to get this done.

 

Thanks.

 

Hello,

 

Is there a way to remove the "Name at Company" text from the Home Tab?

  • March 15, 2013
  • Like
  • 0

hi ,

iam new to salesforce and iam facing with the following issue... can anyone help me ...

i have 3 objects..

1.patient_details -> here i collect patient name and doctor name(lookup) they want to meet.

 

2.patient _traking -> i want to create track sheet  that has details like patient name(lookup), bed no , ward no, doctor name  after entering this details i want to save this record.

 

iam facing the pblm when creatin the scenario...

 

when i choose the patient name in lookup , the doctor they consulted should be displayed automatically...i don't know how to bring this...

my code is here...

 

PAGE:

 

<apex:page controller="track" >
<apex:form >
<apex:pageBlock >

<apex:pageBlockSection title="Patient Tracking System" columns="2">

<apex:inputField value="{!pt.Name__c}"/>
<apex:outputPanel id="out">
<apex:outputtext value="{!pt.staff_details__c}"/>
</apex:outputPanel>
<apex:inputField value="{!pt.Type_of_treatment__c}"/>
<apex:inputField value="{!pt.Status__c}"/>
<apex:inputField value="{!pt.Priority__c}"/>
<apex:inputField value="{!pt.Bed_No__c}"/>

</apex:pageBlockSection>

<apex:pageBlockSection title="Search">
<apex:outputLink value="{!URLFOR('https://c.ap1.visual.force.com/apex/tracksearch')}">
Track the patient
</apex:outputLink>

</apex:pageBlockSection>

 

<apex:pageBlockButtons location="bottom">
<apex:commandButton value="SAVE" action="{!savenew}"/>
<apex:commandButton value="CANCEL" action="{!cancelnew}"/>
<apex:commandButton value="CLEAR" action="{!clr}"/>
</apex:pageBlockButtons>
</apex:pageBlock>
</apex:form>
</apex:page>

 

 

CONTROLLER:

 

public class track
{
public Patient_tracking__c pt{set;get;}

public track()
{
pt= new Patient_tracking__c ();
Id ptId= ApexPages.currentPage().getParameters().get('ptId');

pt=(ptId==null)? new Patient_tracking__c ():

[select Name__c,Bed_No__c,Priority__c,staff_details__c,Status__c,Type_of_treatment__c from Patient_tracking__c where id=:ptId];

}
public pageReference savenew()
{
try
{
upsert pt;


ApexPages.addmessage(new ApexPages.message(ApexPages.severity.INFO, 'Your data was saved successfully'));
}

catch(Exception e)
{
ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR, e.getMessage()));
}


pageReference pg= new pageReference('/apex/trackview');
pg.getParameters().put('ptId',pt.id);
pg.setRedirect(true);
return pg;
}

public pageReference Edit()
{
pageReference pg= new pageReference('/apex/trackpatient');
pg.getParameters().put('ptId',pt.id);
pg.setRedirect(true);
return pg;
}

 

public pageReference clr()
{
pt= new Patient_tracking__c ();
return null;
}


public pageReference cancelnew()
{
pageReference pg = new pageReference ('https://ap1.salesforce.com/home/home.jsp');
pg.setRedirect(true);
return pg;
}


}

 

 

 

We have a custom field "Priority" of type Picklist in contact object.
If we execute query using Ajax  using sforce.connection.query in the VF page using special character then it gives an error in the case of picklist field

I give an example
Paste the following code in your org
For that first create a custom fild name Priority  of type Picklist Type in your Contact object having value "one", "two" ,"Folder~`!@#$%^$-&*()_+{}|":<>?/.,;'\][fsdsvghchx"
now create a contact in which Priority field having value "Folder~`!@#$%^$-&*()_+{}|":<>?/.,;'\][fsdsvghchx"
Page
-------
<apex:page standardController="contact" extensions="testclass" id="pg">
    <script src="/soap/ajax/16.0/connection.js" type="text/javascript"></script>
    <script src="/soap/ajax/16.0/apex.js" type="text/javascript"></script>    
    <apex:form id="frm">
        <p><b>text1</b></p><input type="text"  id="box"/>
        <input type="button" value="ClickMe" id="box12" onclick="callfun()"  />
        <apex:outputPanel id="inputhiddenfld2">
                <p><b>text2</b></p>
                <apex:inputText value="{!passdata}" id="hid2" />
        </apex:outputPanel>
        <script>
            sforce.connection.sessionId  = "{!$Api.Session_ID}";
            var check = '';
            function callfun()
            {
                try
                {
                    check = document.getElementById('box').value;
                    callname(check);
                }
                catch(err)
                {
                    alert(err);
                }
            }
            
            function calloncom()
            {
                try{       
                        var check1 = document.getElementById('pg:frm:hid2').value;
                        var query = "Select Id, LastName, FirstName From Contact where Contact.Priority__c like \'" +check1+"%\'";  //query2
                        var forerror = sforce.connection.query(query);
                        alert('forerror     '+forerror);
                    }
                catch(err)
                    {
                        alert('err   '+err);
                    }
            }
        </script>
        <apex:actionFunction name="callname" action="{!cont}" reRender="inputhiddenfld2,hid2" oncomplete="calloncom()">
            <apex:param name="passvalue" value="" assignTo="{!passvaluecont}"/>
        </apex:actionFunction>
    </apex:form>  
</apex:page>



class
-------

public with sharing class testclass
{
    public string passvaluecont{get; set;}
    public string passdata{get; set;}
    public testclass(ApexPages.StandardController controller)
    {
    }
    public void cont()
    {
        system.debug('-----------passvaluecont------------------'+passvaluecont);
        passdata = String.escapeSingleQuotes(passvaluecont.trim());
    }
}

Now Enter value "Folder~`!@#$%^$-&*()_+{}|":<>?/.,;'\][fsdsvghchx" in the text box named as "text1" and then click on button "ClickME"
it give an error, in normal case(without special character) it working fine
I just want to know how we handel the special character so that this query execute properly using Picklist having like operator
if any thing is not clear then please contact me on
Email- abhishek0674@gmail.com

Hi,

 

I am unable to drag the field which is of type longtextarea in Internet Explorer 8 but the same can be done in IE 9. Kindly advise.

 

Thanks in advance.

 

Regards,

 

abinaya.

Hi,

 

I've a list of Object's record (Department) and i'm able to apply crud on this object, could anyone please tell me how to apply crud on all the child records(SubDepartment) of its object(Department).

 

thanks in advance.

 

Hi,

 

Is it possible to implement a hierarchial level of approval in Salesforce. Say, i have a record. The record owner creates and submits the record for approval, the reviewer approves the record-Step 1. Step 2 will be the record will be sent for approval the the Manager. Step 3 will be the record will be sent for approval to the Group leader(say).

 

We only have the option of assigning multiple users, so the same record will be sent for approval to multiple users, but what i require is after step 1, step 2 approval should happen, after step 2, step 3 approval should happen. If in any level the record is rejected the record must go to the prev level for correction.

 

Please let me know if this is possible to achieve.

 

Thanks,

Aravind.

Hi,

 

There is requirement for sending report to a group of users as an attachment along with the email. Please let me know if any options/ work around available for this functionality.

 

Thanks in advance.

 

Thanks

Asish

  • September 04, 2012
  • Like
  • 0

Hi,

 

I have a joined report with 3 blocks and each block consisting of 12columns and 4formula fields each. I just need the summary information, hence i have given hide details. On giving hide details i could only see the formula fields and not the columns that are added to the report. But when i rerun the report with show details, i could see all the fields in the report.

 

Could any of you please let me know if there is any workaround to get all the fields in joined reports with hide details option?

 

Thanks in advance,

Aravind.

Hi,

 

I have a requirement to generate a report and the report format is as below

 

Report       Col1             Col2           col3             col4

                 Formula1     Formula2    col1+col2    (Col1*Col2)/Col3

                 Formula3     Formula4    ........

 

I have different formula in each row and each column. Is it possibe to generate the report in this format.

 

The report data is loaded in SFDC and I was wondering if there is any possibility to generate such dynamic report in Salesforce

 

Thanks in advance,

Aravind

                

Hi,

 

I have a requirement where in i must schedule a report, extract the output as an excel and send it as an email attachement with a predefined template. On my initial understanding, my query is as below, 

 

1) Salesforce does not send report result as an attachment. So is there any workaround to achieve this.

2) Report scheduler sends an email of the result in salesforce predefined format, can i define a custom template and use the template to send across the scheduled report result?

3) The current report template has 5 sheets in it with images in first sheet and few pivot table in 2nd sheet. 3rd, 4th and 5th has the report data. I could understand that we need multiple reports, but is it possible to show them in same spreadsheet.

 

Any help is highly appreciated.

 

Thanks in advance,

Aravind

 

Hi every body,

 

if you know the  my requirement to any one

please replay urgent......

  • August 22, 2012
  • Like
  • 0

<APEX:TABPANEL>

<APEX:TAB>

<APEX:SELECTLIST>

<APEX:SELECTOPTION ITEMVALUE="A" ITEMLABEL="B">

<APEX:SELECTOPTION ITEMVALUE="G" ITEMLABEL="C">

<APEX:SELECTOPTION ITEMVALUE="F" ITEMLABEL="D">

<APEX:SELECTOPTION ITEMVALUE="D" ITEMLABEL="E">

</APEX:SELECTLIST>

</APEX:TAB>

</APEX:TABPANEL>

 

Hi.

 

Can anyone plz tell me how can we have version control in salesforce.

 

Thanks,

Ipsita

Hi All,

 

I have the following:

 

1. A child object called Review under Opportunity object.

2. I have a custom visualforce page which overwrites the New Button. It's purpose is to prepopulates couple of fields. 

3. One of the fields that I am prepopulating is called ReadOnlyTest__c. It is populated with the text 'Testing ReadOnly'

4. The user has full access to the object

5. On the page layout I have made the field read Only.

 

What I am trying to archieve is prepopulate the field ReadOnlyTest__c with the value 'Testing ReadOnly' and make that field not editable by the user. But the user has to visually see this field. 

 

I do know I can do this with custom visualforce page.  But my goal is to do this with standard page layout. I expected the text to be pre-pulated. But what happens is the page renders fine and it shows the field as read only, but the text 'Testing ReadOnly' is missing. It's just empty. Can someone help me with what I might be doing wrong here?

 

Sanch

  • August 09, 2012
  • Like
  • 0

Hi,

 

I have a requirement to integrate peoplesoft with salesforce.

Can anyone please help me out with this.

 

Thanks in advance.

 

My organization has a lot of instances where someone needs to communicate a listview to another individual. Unfortunately, Salesforce does not refresh the listview's ID (my.salesforce.com/[This is the ID]) when a listview is selected. 

To facilitate communications, I'd like to place a custom button that pre-populates an email form with this ID in the send field. Many of us have seen how to "hack" the URL applications in Salesforce, and I was wondering if I could get something like {!$Currentpage.URL} to work for that field.

 

Is there any way to capture the current listview and place it in an email field?

 

 I've got a button that executes javascript like this: 

 

location.replace('/email/author/emailauthor.jsp?retURL=/{!Case.Id}&p3_lkid={!Case.Id}&rtype=003&p7=[ThisIsTheCurrentURL]&p2_lkid={!Case.ContactId}&template_id=00Xc0000000HrOk');

 

p7 refers to the field in which I'd like to insert the previous page's URL into, or at least listview ID into.

 

Here's a selection of the source code for the listview selection, I'm wondering if I can capture the selected value from here at least.

 

 

<option value="00B40000005UwDR">*****- Manager Open Overdue</option>
<option value="00B40000005UwDZ">*****- Manager Open ReadyActive</option>
<option value="00B40000005UwDe">*****- Manager RecentlyModified</option>
<option value="00B40000006FG3G"> ***** - AssignedBy Open</option>
<option value="00B40000006F9Yb" selected="selected">*****- AssignedTo Open ReadyActive</option>
<option value="00B400000063dc9">*****- AssignedBy Open</option>
<option value="00B400000063dc4">*****- AssignedBy Open Single Tasks</option>
<option value="00B400000063dbz">*****- AssignedBy RecentlyModified</option>
<option value="00B400000063dbu">*****- AssignedTo Open</option>


 

 

  • May 15, 2012
  • Like
  • 0