• simson
  • NEWBIE
  • 0 Points
  • Member since 2010

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

Hi All,

 

We have a lookup of Address__c object on various Objects like Account, Contact etc.

When the user opens the lookup dialog box of Address object and tries to search using some keywords, it does not provide all the results.
However , when we query the same object in workbench we see all the required results.

Eg: On GUI: After we click and open the Lookup Dialog object from Contact record, we enter the "Street Name" in the Search Textbox and click Go.

Then we refine the search using filter criteria  on some fields like HouseNumber  Field (say 123) and Post Code field (say 1008)  we get 1record.
When we do the same query on workbench using Street Name = 'StreetName' and PostCode__c = '1008' and housenumber__c = 123, we get 3 records.

Also, The Record type is same for all the records.

Any reasons why we do not see all the results in GUI as this impacts the search the  Users perform due to their inability to search for their records?

Thanks 

Simson

  • February 19, 2013
  • Like
  • 0

Hi All,

From past few weeks we are facing a problem that command button seldom  calls the controller action associated with it.

Most of the time instead of calling the action(post back request) it makes a get request call to the controller(constructor).

This occurs only in IE and is working fine in Chrome browser.

The same scenario also happens sometimes for the commandLinks.

 

/Simson

 

  • December 24, 2010
  • Like
  • 0

Hi All,

Running in thru a requirement where we need to migrate the passwords of the users from the existing system to salesforce system.

I know its not possible to do this through DataLoader.

But is there some way through which we can acheive the task?

Please suggest if you know a way out.

 

Thanks,

Simson

  • December 21, 2010
  • Like
  • 0

Is it possible to show the images on the customer portal?

The requirement is to show  portal users a photograph of their Company contact person.

In the Company contact's attachment section i have attached a image as an attachment.

Once the portal user clicks on the link to show the companys contact person a visual force opens up to show the contact photo.

The visual force code is as follows:

<apex:page controller="ViewContactImages" showHeader="false"> 
Showing the Image with Id {!mainImage}
<apex:image url="{!URLFOR($Action.Attachment.Download, mainImage)}"/>
</apex:page>

 

The controller is as follows:

public class ViewContactImages{

    public Id mainImage;
    public Id getMainImage(){
    	system.debug('getting the mainImageId =='+mainImage);
    	return mainImage;
    }
    
    public void setMainImage(Id imageId){
    	this.mainImage = imageId;
    }
    
    public ViewContactImages(){
        mainImage = 
        [select Id from Attachment 
        	where ParentId = :ApexPages.currentPage().getParameters().get('conId')].Id;
    }
}

 When i get into the customer portal and get to the visual page that shud show the image i cannot see the image.

Any heads up appreciated.

Thanks'

Simson

Hi All,

 

We have a lookup of Address__c object on various Objects like Account, Contact etc.

When the user opens the lookup dialog box of Address object and tries to search using some keywords, it does not provide all the results.
However , when we query the same object in workbench we see all the required results.

Eg: On GUI: After we click and open the Lookup Dialog object from Contact record, we enter the "Street Name" in the Search Textbox and click Go.

Then we refine the search using filter criteria  on some fields like HouseNumber  Field (say 123) and Post Code field (say 1008)  we get 1record.
When we do the same query on workbench using Street Name = 'StreetName' and PostCode__c = '1008' and housenumber__c = 123, we get 3 records.

Also, The Record type is same for all the records.

Any reasons why we do not see all the results in GUI as this impacts the search the  Users perform due to their inability to search for their records?

Thanks 

Simson

  • February 19, 2013
  • Like
  • 0

Hi All,

From past few weeks we are facing a problem that command button seldom  calls the controller action associated with it.

Most of the time instead of calling the action(post back request) it makes a get request call to the controller(constructor).

This occurs only in IE and is working fine in Chrome browser.

The same scenario also happens sometimes for the commandLinks.

 

/Simson

 

  • December 24, 2010
  • Like
  • 0

Hi All,

Running in thru a requirement where we need to migrate the passwords of the users from the existing system to salesforce system.

I know its not possible to do this through DataLoader.

But is there some way through which we can acheive the task?

Please suggest if you know a way out.

 

Thanks,

Simson

  • December 21, 2010
  • Like
  • 0

Hi,

 

I have a requirement to generate UUIDs for associating IDs that are unique across 2 apps - one SF and another external app. There is a Java utility that allows creation of UUIDs. Is there a similar API that can be used for generating UUIDs in Apex?

 

Regards,

Ram

Is it possible to show the images on the customer portal?

The requirement is to show  portal users a photograph of their Company contact person.

In the Company contact's attachment section i have attached a image as an attachment.

Once the portal user clicks on the link to show the companys contact person a visual force opens up to show the contact photo.

The visual force code is as follows:

<apex:page controller="ViewContactImages" showHeader="false"> 
Showing the Image with Id {!mainImage}
<apex:image url="{!URLFOR($Action.Attachment.Download, mainImage)}"/>
</apex:page>

 

The controller is as follows:

public class ViewContactImages{

    public Id mainImage;
    public Id getMainImage(){
    	system.debug('getting the mainImageId =='+mainImage);
    	return mainImage;
    }
    
    public void setMainImage(Id imageId){
    	this.mainImage = imageId;
    }
    
    public ViewContactImages(){
        mainImage = 
        [select Id from Attachment 
        	where ParentId = :ApexPages.currentPage().getParameters().get('conId')].Id;
    }
}

 When i get into the customer portal and get to the visual page that shud show the image i cannot see the image.

Any heads up appreciated.

Thanks'

Simson

 

 

I am trying to add a visualforce page as a section item in my standard layout of account.

I need to do this to show a image formula field.

 

My problem is that its not coming aligned to other content

 

Pls help

 

here's the code:

 

 

 

<apex:page Standardcontroller="Account">
  
<apex:outputlable>Status</apex:outputlable>
  <apex:image url="/servlet/servlet.FileDownload?file=015A0000000SgGh" alt="Active" />
   
</apex:page>

 

 

I am trying to show up user last login date in a visualpage  but its not showing. Any reason?

Hi All,

I want a input text in my visualforce page. On clicking this inputbox the standard salesforce calendar should popup. Is this possible.

Please note that i need only a input text and not a input field.

I got the below code from the forums.

What are the values that i have to pass in the highlighted part of the code. Is this possible in Visualforce.

Code:
<a href="javascript&colon;openPopupFocus

('/home/calendar.jsp—form=form1&field=sdate&mo=0&callonchange=true', '_blank', 186, 170, 'width=186,height=170,resizable=yes,toolbar=no,status=no,scrollbars=no,menubar=no,directories=no,location=no,dependant=yes', true, true);"

class="datePicker"

title="Pick A Date (New Window)"

onclick="setLastMousePosition(event)"

id="sdatePopCal">

<img src="/s.gif" alt="Pick A Date (New Window)" class="datePickerIcon">

</a>

 Thanks,
Edwin