• Ernie
  • NEWBIE
  • 0 Points
  • Member since 2006

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 5
    Replies

I'm trying to replace one of our many Case record type page layouts with a visualforce page so it can display the necessary fields depending on the exact case issue. The controlling picklist is wrapped in a actionsupport but whenever I have the event as onchange nothing seems to happen. If I change it to onblur I get the actionstatus to display for a split second but it still doesn't render my pageblocksection.

 

Visualforce :

 

<apex:page standardController="Case" extensions="CaseExtension" tabStyle="Case" sidebar="true"> 
<style>
textarea { width:65%; height:90px; }
</style>
    <apex:sectionHeader title="Case Edit" subtitle="New Case"/>
    <apex:form >
    <apex:outputPanel id="outputPanelRender">
        <apex:pageBlock title="Case Edit" id="dynamicBillingPageBlock" mode="edit">
            <apex:pageMessages />
            <apex:pageBlockButtons >
                <apex:commandButton action="{!save}" value="Save" />
                <apex:commandButton action="{!cancel}" value="Cancel" />
            </apex:pageBlockButtons>
            <apex:pageblockSection title="Almennar upplýsingar um mál" id="GeneralInfo" columns="2">
                <apex:outputField value="{!case.OwnerId}" title="Case Owner"/>
                <apex:inputField value="{!case.Status}" />
                <apex:inputField value="{!case.ParentId}" />
                <apex:inputField value="{!case.Priority}" />
                <apex:outputField value="{!case.casenumber}" />
                <apex:inputField value="{!case.Origin}" />
                <apex:inputField id="def_account_id" value="{!case.AccountId}"  />
                <apex:pageblockSectionItem >
                    <apex:outputLabel value="Case Record Type" />
                    <apex:outputText value="{!case.RecordType.Name}" />
                </apex:pageblockSectionItem>                
                <apex:inputField id="contactID" value="{!case.ContactId}"  />
                <apex:outputLabel ></apex:outputLabel>
                <apex:inputField value="{!case.plContactCustomer__c}"  />
            </apex:pageblockSection>           
            <apex:actionRegion >     
            <apex:pageblockSection title="Lýsing máls" id="DetailedInfo" columns="1" >
                <apex:inputField style="width:75%;" value="{!case.Subject}"  />                    
                <apex:inputField value="{!case.Description}" />                    
                <apex:inputField value="{!case.pl_BillingSupportCompany__c}"  />
                
                <apex:pageBlockSectionItem >
                
                	<apex:outputLabel value="[Reikningar] Flokkur máls"/>
                	<apex:outputPanel >     
                	   
                		<apex:inputField value="{!case.pBillingCaseCategory__c}">
                   			<apex:actionSupport event="onblur"
                   							action="{!renderIcmsSection}" 	                   							
                   							rerender="icms_section" 
                        					status="categoryChange" />
                   		</apex:inputField>
                  		    
                   	<apex:actionStatus startText="Athuga skilyrði" id="categoryChange"/>
                	</apex:outputPanel>
                
                </apex:pageBlockSectionItem>
                               
                <apex:inputField value="{!case.plBillingCaseNature__c}" />
                <apex:inputField value="{!case.pBillingCaseDetails__c}" />
            </apex:pageblockSection>
            </apex:actionRegion>                          
	           	<apex:pageBlockSection title="Fjarskiptaþjónusta og sjónvarp" id="icms_section" columns="2"	                                     
	                                   rendered="{!renderIcms}" >         
	                   <apex:inputField value="{!case.tServiceToRefund__c}" />         
	                   <apex:inputField value="{!case.tPayingCustomerName__c}" />
	                   <apex:inputField value="{!case.currAmount__c}" />
	                   <apex:inputField value="{!case.txCustomerKennitala__c}" />
	                   <apex:inputField value="{!case.Dagsetning_Lei_r_ttingar__c}" />
	                   <apex:inputField value="{!case.Dagsetning_Lei_r_ttingar_Til__c}" />
	                   <apex:inputField value="{!case.chkBillingDescision__c}" />
	                   <apex:inputField value="{!case.tExternalSystemNumberICMS__c}" />
	           	</apex:pageBlockSection>           	   
        </apex:pageBlock>
        </apex:outputPanel>
   </apex:form>
</apex:page>

 

Apex code :

 

public with sharing class CaseExtension {
	
	private final Case cas;
	
	public Boolean renderIcms {get; set;}
	
	public CaseExtension( ApexPages.StandardController stdController )
	{
		this.cas = (Case)stdController.getRecord();
	}
	
	public PageReference renderIcmsSection(){		
	
	    System.debug( Logginglevel.INFO, 'CATEGORY DEBUG : ' + cas.pBillingCaseCategory__c );
	    
	    if (ApexPages.currentPage().getParameters().get('pBillingCaseCategory__c') == 'Leiðrétting'){
    		System.debug( Logginglevel.INFO, 'Category change');
        	renderIcms = true;
    	}
    	else{
    		renderIcms = false;
    	}
    	
    	return null;
	}
	
	public Boolean getRenderIcms( ) {
		return renderIcms;
	}	

}

 

 

I've tried putting outputpanels around the pageblocksection I want to render when the correct value is selected in the picklist but with no luck. 

 

Best regards,

Orn

 

  • August 24, 2010
  • Like
  • 0

The Live Agent Developer's Guide has a section on "Customizing Chat Windows", which is awesome. I'm really glad that we have the ability to build a custom window using Visualforce components and HTML/CSS!

 

However, there seems to be a piece missing in that section, unless I just missed it. 

 

The section tells us how to build a custom window but it doesn't seem to indicate how to hook it up to our deployment. Therefore, how do we tell our deployment to use the custom Live Agent Chat Window?

 

Thanks!

 

///eks

I'm trying to replace one of our many Case record type page layouts with a visualforce page so it can display the necessary fields depending on the exact case issue. The controlling picklist is wrapped in a actionsupport but whenever I have the event as onchange nothing seems to happen. If I change it to onblur I get the actionstatus to display for a split second but it still doesn't render my pageblocksection.

 

Visualforce :

 

<apex:page standardController="Case" extensions="CaseExtension" tabStyle="Case" sidebar="true"> 
<style>
textarea { width:65%; height:90px; }
</style>
    <apex:sectionHeader title="Case Edit" subtitle="New Case"/>
    <apex:form >
    <apex:outputPanel id="outputPanelRender">
        <apex:pageBlock title="Case Edit" id="dynamicBillingPageBlock" mode="edit">
            <apex:pageMessages />
            <apex:pageBlockButtons >
                <apex:commandButton action="{!save}" value="Save" />
                <apex:commandButton action="{!cancel}" value="Cancel" />
            </apex:pageBlockButtons>
            <apex:pageblockSection title="Almennar upplýsingar um mál" id="GeneralInfo" columns="2">
                <apex:outputField value="{!case.OwnerId}" title="Case Owner"/>
                <apex:inputField value="{!case.Status}" />
                <apex:inputField value="{!case.ParentId}" />
                <apex:inputField value="{!case.Priority}" />
                <apex:outputField value="{!case.casenumber}" />
                <apex:inputField value="{!case.Origin}" />
                <apex:inputField id="def_account_id" value="{!case.AccountId}"  />
                <apex:pageblockSectionItem >
                    <apex:outputLabel value="Case Record Type" />
                    <apex:outputText value="{!case.RecordType.Name}" />
                </apex:pageblockSectionItem>                
                <apex:inputField id="contactID" value="{!case.ContactId}"  />
                <apex:outputLabel ></apex:outputLabel>
                <apex:inputField value="{!case.plContactCustomer__c}"  />
            </apex:pageblockSection>           
            <apex:actionRegion >     
            <apex:pageblockSection title="Lýsing máls" id="DetailedInfo" columns="1" >
                <apex:inputField style="width:75%;" value="{!case.Subject}"  />                    
                <apex:inputField value="{!case.Description}" />                    
                <apex:inputField value="{!case.pl_BillingSupportCompany__c}"  />
                
                <apex:pageBlockSectionItem >
                
                	<apex:outputLabel value="[Reikningar] Flokkur máls"/>
                	<apex:outputPanel >     
                	   
                		<apex:inputField value="{!case.pBillingCaseCategory__c}">
                   			<apex:actionSupport event="onblur"
                   							action="{!renderIcmsSection}" 	                   							
                   							rerender="icms_section" 
                        					status="categoryChange" />
                   		</apex:inputField>
                  		    
                   	<apex:actionStatus startText="Athuga skilyrði" id="categoryChange"/>
                	</apex:outputPanel>
                
                </apex:pageBlockSectionItem>
                               
                <apex:inputField value="{!case.plBillingCaseNature__c}" />
                <apex:inputField value="{!case.pBillingCaseDetails__c}" />
            </apex:pageblockSection>
            </apex:actionRegion>                          
	           	<apex:pageBlockSection title="Fjarskiptaþjónusta og sjónvarp" id="icms_section" columns="2"	                                     
	                                   rendered="{!renderIcms}" >         
	                   <apex:inputField value="{!case.tServiceToRefund__c}" />         
	                   <apex:inputField value="{!case.tPayingCustomerName__c}" />
	                   <apex:inputField value="{!case.currAmount__c}" />
	                   <apex:inputField value="{!case.txCustomerKennitala__c}" />
	                   <apex:inputField value="{!case.Dagsetning_Lei_r_ttingar__c}" />
	                   <apex:inputField value="{!case.Dagsetning_Lei_r_ttingar_Til__c}" />
	                   <apex:inputField value="{!case.chkBillingDescision__c}" />
	                   <apex:inputField value="{!case.tExternalSystemNumberICMS__c}" />
	           	</apex:pageBlockSection>           	   
        </apex:pageBlock>
        </apex:outputPanel>
   </apex:form>
</apex:page>

 

Apex code :

 

public with sharing class CaseExtension {
	
	private final Case cas;
	
	public Boolean renderIcms {get; set;}
	
	public CaseExtension( ApexPages.StandardController stdController )
	{
		this.cas = (Case)stdController.getRecord();
	}
	
	public PageReference renderIcmsSection(){		
	
	    System.debug( Logginglevel.INFO, 'CATEGORY DEBUG : ' + cas.pBillingCaseCategory__c );
	    
	    if (ApexPages.currentPage().getParameters().get('pBillingCaseCategory__c') == 'Leiðrétting'){
    		System.debug( Logginglevel.INFO, 'Category change');
        	renderIcms = true;
    	}
    	else{
    		renderIcms = false;
    	}
    	
    	return null;
	}
	
	public Boolean getRenderIcms( ) {
		return renderIcms;
	}	

}

 

 

I've tried putting outputpanels around the pageblocksection I want to render when the correct value is selected in the picklist but with no luck. 

 

Best regards,

Orn

 

  • August 24, 2010
  • Like
  • 0
Hi
The flash player 124 seems to be restricting cross domain requests to salesforce. I see the request from cross domain swf's are getting
sandbox violation error.

Error: Request for resource at https://na5.salesforce.com/services/Soap/u/10.0/462300D70000000IjhM by requestor from <externaldomain/swf>  is denied due to lack of policy file permissions.
*** Security Sandbox Violation ***
Connection to https://na5.salesforce.com/services/Soap/u/10.0/462300D70000000IjhM halted - not permitted from <externaldomain/swf>

how to resolve this issue ? Anybody from salesforce shed more light on this ?

More about this issue,

http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security_04.html



Message Edited by xraydeltaone on 04-16-2008 12:46 PM
I have a few flex controls embedded in Salesforce (Accounts and contacts). They used to work fine until recently. Now anytime a user goes to where the flex control is, they see a black box. If you hover the mouse over the control it shows "Click to activate and use this control." If I click on it then the flex control shows up and displays the data. This does not seem to be an issue with Firefox but only with IE6. Anyone else has experienced this? Any pointers on how to fix it?

Thanks
I heard that dojo is going to be supported in winter '07, but I found that in my pre-release environment they only have the version of 0.3.1.
I'd like to use some of 0.4 features in my apps (like FilteringTable widget - in 0.3.1, only SortableTable is available, and it's already deprecated).
Is salesforce.com hosting any newer version of dojo ?

Regards,
Shinichi.

  • January 01, 2007
  • Like
  • 0