• indicator
  • NEWBIE
  • 0 Points
  • Member since 2008

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 5
    Replies
I'd like to be able to create a custom button or link that allows you to dynamically pass in a parameter to a view in much the same way you can with reports.
 
 
I was hoping it would take the view (from the fcf parameter) and then show all the contacts with first name Tim.  This is just a test to see if you can even pass a parameter to a view.
 
Is it feasible to pass a parameter into a view?
"Cross-Object Formulas" can only reference related merge fields from their 'parent' records.

I don't think it would be so hard to extend this functionality and allow for 'child' referencing as well.

So why hasn't it been done?  Why wasn't this function implimented at the same time?

Is it a pricing scheme?  Or is my understanding of the system just flawed?

I'd love to have some enlightenment on this issue, your comments are very welcome!

BC
I'd like to be able to create a custom button or link that allows you to dynamically pass in a parameter to a view in much the same way you can with reports.
 
 
I was hoping it would take the view (from the fcf parameter) and then show all the contacts with first name Tim.  This is just a test to see if you can even pass a parameter to a view.
 
Is it feasible to pass a parameter into a view?
Hello!
 
I cannot find anything in your help pages referring to this so I logged a case. They couldn't answer, they said the question required a hire level of expertise, and suggested I post here. 

I would like to know how to reference a field in another object record within the same account.

I have a formula in a custom field that is calculated to give value to one of my fields in the ASSET object. It figures out that if the expiration date for an asset is greater than TODAY() then it is covered under the support agreement, else it's not. This is the formula:
IF( Expiration_Date__c > TODAY() , "Yes", "No")

That's great, but the expiration dates that I want to upload will not be manually entered in the asset.
There will be a field in a contract that defines the expiration date
We have an object called CONTRACT where these details are uploaded.  Within the same account (that owns the asset) I want to use the expiration date defined in a field in the contract record.
 
I want to grab the value of Expiration_Date_c in a CONTRACT record if there is not one in Expiration_Date_c in the ASSET record and execute my IF statement.

In the forumula above, Expiration_Date_c comes from the ASSET object not the CONTRACT object within the same account. I want to connect the two in a new formula.
That formula should read, in pseudo code:

IF ASSET.Expiration_Date_c != <Blank> then
IF( ASSET.Expiration_Date__c > TODAY() then Yes else No)
Else
IF( CONTRACT.Expiration_Date__c > TODAY() then Yes else No)
Else
No


How can I do this?
Thanks,
Constantine
Hi,

I have two picklist REGION and TERRITORY and the TERRITORY picklist values are dependent on REGION. I have used the following link to make my depending picklist http://wiki.apexdevnet.com/index.php/Extended_Functionality_of_Visualforce_-_Part_2 but the refresh happens only once. The second time I change my REGION value the TERRITORY does not get refreshed.

Here is  the piece of code
Code:
    <apex:pageBlock title="Section 2" rendered="{!showSecondSection}">
                        <p>To what geography does this rate apply— </p>
                        Region: <span style="padding:10px;"/>
                           <apex:actionFunction action="{!refreshPage}" name="refreshPage"/>
                         <apex:selectList value="{!contractTerms.REGION__c}" id="region" size="1">
                              <apex:selectOptions value="{!regionList}"/>
                              <apex:actionSupport event="onchange" rerender="territory"/>
                           
                         </apex:selectList>
                        
                        <p> Territory: <span style="padding:10px;"/>
                         <apex:selectList value="{!contractTerms.TERRITORY__c}" multiselect="true" id="territory" disabled="{!ISNULL(contractTerms.REGION__c)}">
                            <apex:selectOptions value="{!territories}"/>
                        </apex:selectList><p/>
                       <!-- <apex:inputField id="territory" value="{!contractTerms.TERRITORY__c}"/> --></p>
                        <p><span style="padding:10px;"/><apex:commandButton action="{!showSection3}" value="Continue" styleClass="btn"></apex:commandButton></p><br/>
                </apex:pageBlock>


Controller

 
    public List<SelectOption> getTerritories()
    {
        REGION__c region = null;
        List<REGION_TERRITORY__c> territoryList = new List<REGION_TERRITORY__c>();
        List<SelectOption> options = new List<SelectOption>();
        options.add(new SelectOption('','--None--'));
    
       if(contract_terms.REGION__c != null)
        {
           
            region = [select id, Name from REGION__c where Id =:contract_terms.REGION__c];
            territoryList = [select id, Name from REGION_TERRITORY__c where Region__c=:region.Id];
        }
          
        for(REGION_TERRITORY__c territory: territoryList )
        {
        
             options.add(new SelectOption(territory.Id,territory.Name));
        }
       
        return options ;
    
    }
    public List<SelectOption> getRegionList()
    {
        List<SelectOption> options = new List<SelectOption>();
        options.add(new SelectOption('','--None--'));
        List<REGION__c> regionList = [select id, Name from REGION__c];
        
        for( REGION__c region:regionList)
        {
               options.add(new SelectOption(region.Id,region.Name));
       
        }
        return options;
    
    }
   


Can anyone please help me ?

Thanks
Jina
 

I have been doing this with reports for quite a while, and recently tried to do this with views with no success.

Here is my URL:

https://na1.salesforce.com/003?div_filter=&fcf=00B30000002nZwy&pv3=JFink

I also tried this which also did not work:

https://na1.salesforce.com/003?&pv3=JFink÷_filter=&fcf=00B30000002nZwy

I am using Ajax to pull a list of Users for a particular region and then I am trying to pass in the Owner Alias of the user they select into a view. I can see the alias in the URL but it does not seem to be passing the value into the view criteria.

Any help would be GREATLY appreciated.

Thanks,

Heather