• Sonya Dhand 3
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 7
    Questions
  • 9
    Replies
Hi

I have created a flow to clone an opportunity and products using a custom button 

The flow clones the original opportunity but the cloned opportunity products are made negative e.e. quantity and total price. 

This works fine if the original qantity is 1 or above howver if the qantiy is 0.5 for example the flow will error with the message

Error Occurred: INSERT --- INSERT FAILED --- ERRORS : (FIELD_INTEGRITY_EXCEPTION) field integrity exception: Quantity (quantity must be nonzero)

I can however change the quantity manually to a minus 0.5 weith no issues but not using a flow.

I tried a formula in the flow to add a minus before the quantiy variable to no avail.

Any ideas?

Mnay thanks

Sonya
Hi I have a vf page on a custom object and I can edit it and click on the save button and it looks like the changes have been made until I refresh the whole page and then my changes are no longer saved to my vf page block

Here is my code
 
<apex:page cache="false" standardController="Employee__c" tabStyle="Employee__c" showHeader="false" sidebar="false">
    <apex:form id="all" >
        <apex:pageMessages />
     
        <apex:pageBlock title="Worker Licence Record Section" mode="inlineEdit">
     
        
           <apex:pageBlock mode="maindetail">
           
           
           

           
            <apex:pageBlockButtons location="top">
                
             
                
                <button onclick="location.href='/apex/Worker_Section?id={!Employee__c.Id }'" id="saveButton">
                    Save
                </button>
                
                <button onclick="location.href='/apex/Worker_Section?id={!Employee__c.Id }'" id="cancelButton">
                    Cancel
                </button>
                
            </apex:pageBlockButtons>
            <style>
                     .bPageBlock {
                                background-color: white !important;
                     }
                     
                     .pbHeader{

        color:grey;

        width:100%;

        font-size:90%;

        }

               </style>
               
               
            
            
            <apex:outputPanel styleClass="white" layout="block">
                
                <apex:pageBlockSection collapsible="true" columns="3">
                
                    <apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%"  >
                        <apex:outputLabel >SIA Licence Type</apex:outputLabel>
                        <apex:inputField value="{!Employee__c.SIA_LICENCE__c}" style="width:80px"/>
                    </apex:pageBlockSectionItem>
                    
                    
                    <apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%"  >
                        <apex:outputLabel >SIA Licence #</apex:outputLabel>
                        <apex:inputField value="{!Employee__c.Licence_No__c}" style="width:125px"/>
                    </apex:pageBlockSectionItem>
                    
                    <apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%"  >
                        <apex:outputLabel >Expiry Date</apex:outputLabel>
                        <apex:inputField value="{!Employee__c.Expiry__c}" style="width:100px"/>
                    </apex:pageBlockSectionItem>
                    
                    <apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%"  >
                        <apex:outputLabel >CSCS Card?</apex:outputLabel>
                        <apex:inputField value="{!Employee__c.CSCS_Card__c}" style="width:80px"/>
                    </apex:pageBlockSectionItem>
                    
                    <apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%"  >
                        <apex:outputLabel >CSCS Licence #</apex:outputLabel>
                        <apex:inputField value="{!Employee__c.CSCS__c}" style="width:125px"/>
                    </apex:pageBlockSectionItem>
                    
                    <apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
                        <apex:outputLabel >Expiry Date</apex:outputLabel>
                        <apex:inputField value="{!Employee__c.CSCS_Expiry_Date__c}" style="width:100px"/>
                    </apex:pageBlockSectionItem>
                    
                    <apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%"  >
                        <apex:outputLabel >CCTV Licence?</apex:outputLabel>
                        <apex:inputField value="{!Employee__c.CCTV_Licence_Type__c}" style="width:80px"/>
                    </apex:pageBlockSectionItem>
                    
                    <apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
                        <apex:outputLabel >CCTV Licence #</apex:outputLabel>
                        <apex:inputField value="{!Employee__c.CCTV_Licence__c}" style="width:125px"/>
                    </apex:pageBlockSectionItem>
                    
                    
                    <apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%"  >
                        <apex:outputLabel >Expiry Date</apex:outputLabel>
                        <apex:inputField value="{!Employee__c.CCTV_Expiry__c}" style="width:100px"/>
                    </apex:pageBlockSectionItem>
                    
                    
                    <apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
                        <apex:outputLabel >Driving Licence?</apex:outputLabel>
                        <apex:inputField value="{!Employee__c.Driving_Licence__c}" style="width:80px"/>
                    </apex:pageBlockSectionItem>
                    
                    
                    <apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
                        <apex:outputLabel >Driving Licence #</apex:outputLabel>
                        <apex:inputField value="{!Employee__c.Driving_Licence_Number__c}" style="width:125px"/>
                    </apex:pageBlockSectionItem>
                    
                    
                    <apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%"  >
                        <apex:outputLabel >Expiry Date</apex:outputLabel>
                        <apex:inputField value="{!Employee__c.Driving_Licence_Expiry__c}" style="width:100px"/>
                    </apex:pageBlockSectionItem>
                    
                    
                    
                    
                </apex:pageBlockSection>
            </apex:outputPanel>
            
            </apex:pageBlock>
        </apex:pageBlock>
    </apex:form>
</apex:page>

Any ideas?
Hi 

I have a visual force page for a custom object and is in in line edit mode and has 2 buttons one to Save and one to Cancel.  The problem is I can edit my page and click save and the changes stay on the page but when i refresh the whole page the changes do not save

Here is my code
 
<apex:page cache="false" standardController="Employee__c" tabStyle="Employee__c" showHeader="false" sidebar="false">
    <apex:form id="all" >
        <apex:pageMessages />
     
        <apex:pageBlock title="Worker Licence Record Section" mode="inlineEdit">
     
        
           <apex:pageBlock mode="maindetail">
           
           
           

           
            <apex:pageBlockButtons location="top">
                
             
                
                <button onclick="location.href='/apex/Worker_Section?id={!Employee__c.Id }'" id="saveButton">
                    Save
                </button>
                
                <button onclick="location.href='/apex/Worker_Section?id={!Employee__c.Id }'" id="cancelButton">
                    Cancel
                </button>
                
            </apex:pageBlockButtons>
            <style>
                     .bPageBlock {
                                background-color: white !important;
                     }
                     
                     .pbHeader{

        color:grey;

        width:100%;

        font-size:90%;

        }

               </style>
               
               
            
            
            <apex:outputPanel styleClass="white" layout="block">
                
                <apex:pageBlockSection collapsible="true" columns="3">
                
                    <apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%"  >
                        <apex:outputLabel >SIA Licence Type</apex:outputLabel>
                        <apex:inputField value="{!Employee__c.SIA_LICENCE__c}" style="width:80px"/>
                    </apex:pageBlockSectionItem>
                    
                    
                    <apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%"  >
                        <apex:outputLabel >SIA Licence #</apex:outputLabel>
                        <apex:inputField value="{!Employee__c.Licence_No__c}" style="width:125px"/>
                    </apex:pageBlockSectionItem>
                    
                    <apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%"  >
                        <apex:outputLabel >Expiry Date</apex:outputLabel>
                        <apex:inputField value="{!Employee__c.Expiry__c}" style="width:100px"/>
                    </apex:pageBlockSectionItem>
                    
                    <apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%"  >
                        <apex:outputLabel >CSCS Card?</apex:outputLabel>
                        <apex:inputField value="{!Employee__c.CSCS_Card__c}" style="width:80px"/>
                    </apex:pageBlockSectionItem>
                    
                    <apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%"  >
                        <apex:outputLabel >CSCS Licence #</apex:outputLabel>
                        <apex:inputField value="{!Employee__c.CSCS__c}" style="width:125px"/>
                    </apex:pageBlockSectionItem>
                    
                    <apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
                        <apex:outputLabel >Expiry Date</apex:outputLabel>
                        <apex:inputField value="{!Employee__c.CSCS_Expiry_Date__c}" style="width:100px"/>
                    </apex:pageBlockSectionItem>
                    
                    <apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%"  >
                        <apex:outputLabel >CCTV Licence?</apex:outputLabel>
                        <apex:inputField value="{!Employee__c.CCTV_Licence_Type__c}" style="width:80px"/>
                    </apex:pageBlockSectionItem>
                    
                    <apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
                        <apex:outputLabel >CCTV Licence #</apex:outputLabel>
                        <apex:inputField value="{!Employee__c.CCTV_Licence__c}" style="width:125px"/>
                    </apex:pageBlockSectionItem>
                    
                    
                    <apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%"  >
                        <apex:outputLabel >Expiry Date</apex:outputLabel>
                        <apex:inputField value="{!Employee__c.CCTV_Expiry__c}" style="width:100px"/>
                    </apex:pageBlockSectionItem>
                    
                    
                    <apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
                        <apex:outputLabel >Driving Licence?</apex:outputLabel>
                        <apex:inputField value="{!Employee__c.Driving_Licence__c}" style="width:80px"/>
                    </apex:pageBlockSectionItem>
                    
                    
                    <apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
                        <apex:outputLabel >Driving Licence #</apex:outputLabel>
                        <apex:inputField value="{!Employee__c.Driving_Licence_Number__c}" style="width:125px"/>
                    </apex:pageBlockSectionItem>
                    
                    
                    <apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%"  >
                        <apex:outputLabel >Expiry Date</apex:outputLabel>
                        <apex:inputField value="{!Employee__c.Driving_Licence_Expiry__c}" style="width:100px"/>
                    </apex:pageBlockSectionItem>
                    
                    
                    
                    
                </apex:pageBlockSection>
            </apex:outputPanel>
            
            </apex:pageBlock>
        </apex:pageBlock>
    </apex:form>
</apex:page>
Does anyone have any ideas?

Thanks

Sonya 
 
Hi 

I have created a custom clone button on a custom object to pull over most of the same detail from the cloned record.  I have created on this custom object a lookup filed to lookup the id of the cloned record.  However I am getting an error when i clone the record at the cloned id lookup field which shows the error Error: Cloned ID: id value of incorrect type: 00000025.  The code is below but this is the line (last line) cloning the cloned record id.  If i click on the magigying glass on the page to lookup the record id then save it is ok, but will not clone the id over autmatically and let me save the new record without error

CF00N8E000000bgJd={!Lettings__c.Name}&CF00N8E000000bgJd_lkid={!Lettings__c.Id}
 
/a05/e?00N8E000000gdzR={!Lettings__c.Monthly_Rent__c}&
CF00N8E000000gh2x={!Lettings__c.Landlord_1__c}&CF00N8E000000gh2x_lkid={!Lettings__c.Landlord_1Id__c}&
CF00N8E000000gh37={!Lettings__c.Landlord_2__c}&CF00N8E000000gh37_lkid={!Lettings__c.Landlord_2Id__c}&
CF00N8E000000gh3H={!Lettings__c.Landlord_3__c}&CF00N8E000000gh3H_lkid={!Lettings__c.Landlord_3Id__c}&&
CF00N8E000000gglm={!Lettings__c.Tenant_s_Name_1__c}&CF00N8E000000gglm_lkid={!Lettings__c.Tenant_s_Name_1Id__c}&
CF00N8E000000gfq7={!Lettings__c.Unit__c}&CF00N8E000000gfq7_lkid={!Lettings__c.UnitId__c}&
00N8E000000gdyx={!Lettings__c.Estimated_Commencement_Date__c}&
CF00N8E000000ggrB={!Lettings__c.Tenant_s_Name_2__c}&CF00N8E000000ggrB_lkid={!Lettings__c.Tenant_s_Name_2Id__c}&
CF00N8E000000ggtR={!Lettings__c.Tenant_s_Name_3__c}&CF00N8E000000ggtR_lkid={!Lettings__c.Tenant_s_Name_3Id__c}&
CF000N8E000000ggtW={!Lettings__c.Tenant_s_Name_4__c}&CF00N8E000000ggtW_lkid={!Lettings__c.Tenant_s_Name_4Id__c}&
00N8E000000gdz2={!Lettings__c.Actual_Tenancy_Commencement_Date__c}&
00b8E000000MKY6={!Lettings__c.Tenancy_End_Date__c}&
00N8E000000gdzM={!Lettings__c.Tenancy_Term__c}&
00N8E000000gfr0={!Lettings__c.Break_Clause__c}&
00N8E000000ggpZ={!Lettings__c.Additional_Notes__c}&
00N8E000000gdzb={!Lettings__c.Tenancy_Deposit__c}&
00N8E000000gfqg={!Lettings__c.Registered_Date__c}&
01I8E0000004kc4={!Lettings__c.Service__c}&
00N8E000000gdzv={!Lettings__c.Fee__c}&
00N8E000000gfsI={!Lettings__c.Specially_Agreed_Clauses__c}&
01I8E0000004kc4={!Lettings__c.Tenancy_Agreement_Signed__c}&
00N8E000000gfvg={!Lettings__c.Prescribed_Information_Signed__c}&
00N8E000000ggoq={!Lettings__c.Bank_Building_Society__c}&
00N8E000000ggov={!Lettings__c.Account_Name__c}&
00N8E000000ggpP={!Lettings__c.International_Bank_Account_Number_IBAN__c}&
CF00N8E000000bgJd={!Lettings__c.Name}&CF00N8E000000bgJd_lkid={!Lettings__c.Id}

 
Hi

I have a custom button on Case object that when clicked on starts a flow .  What I want to do is close the pop up window when the flow finishes and return to the orignal page which is refreshed so the record is updated with the new data .

I have this code on my button which is calling a flow and the following vf page forceclose to close the window but now I need it to refresh the page.  It is currently refreshing the home page and not the page where i call the flow from i.e my Case record

 
<apex:page showChat="false" showHeader="false" sidebar="false" applyBodyTag="false" applyHtmlTag="false">
<html>
    <head>
        <title>ESCAPE</title>
        <script>
        
            function closeWindow(){      
            window.opener.location.href="/{!$CurrentPage.parameters.id}";
            window.top.close();
      
            }
        </script>       
    </head>
    <body onload="closeWindow()">
      
   
      
    
 
       
    </body>
</html>
</apex:page>


And my button custom button code is 
 
/flow/Restart_Case_Milestones?CaseID={!Case.Id}&retURL=https://cs86.salesforce.com/{!Case.Id}


 
Hi Community

I have a VF page section on a standard page for a custom object and when I edit and save some fields the section will refresh as expected by returning back to the VF page.  However some field will refresh and then display the home page and standard desktop view of the whole standard page within the vf section as below
User-added image

I have attached my code as well, I would appreciate any help? :)
 
<apex:page standardController="Employee__c">
<apex:form >
<apex:pageMessages />
<apex:pageBlock mode="inlineEdit" id="all"  >
<apex:actionFunction action="{! save }" name="saveChanges" reRender="all" oncomplete="location.reload()"/>
<apex:pageBlockButtons >

           


                <apex:commandButton id="saveButton" value="Save" onclick="saveChanges()"/>

                 <apex:commandButton onclick="resetInlineEdit()" id="cancelButton" value="Cancel" immediate="true"/> 

            </apex:pageBlockButtons>

    <style>
          
           body .bPageBlock .pbBody .grey .pbSubheader{
               background-color:#fbf8f8;
          
           }
            body .bPageBlock .pbBody .grey .pbSubheader h3{
               color:#000;
           }
           
       </style>
       <apex:outputPanel styleClass="grey" layout="block">
<apex:pageBlockSection columns="3">

<apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
<apex:outputLabel >SIA Licence Type</apex:outputLabel>
<apex:inputField value="{!Employee__c.SIA_LICENCE__c}" style="width:80px"/>
</apex:pageBlockSectionItem>


<apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
<apex:outputLabel >SIA Licence #</apex:outputLabel>
<apex:inputField value="{!Employee__c.Licence_No__c}" style="width:120px"/>
</apex:pageBlockSectionItem>
      
<apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
<apex:outputLabel >Expiry Date</apex:outputLabel>
<apex:inputField value="{!Employee__c.Expiry__c}" style="width:80px"/>
</apex:pageBlockSectionItem>

<apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
<apex:outputLabel >CSCS Card?</apex:outputLabel>
<apex:inputField value="{!Employee__c.CSCS_Card__c}" style="width:80px"/>
</apex:pageBlockSectionItem>

<apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
<apex:outputLabel >CSCS #</apex:outputLabel>
<apex:inputField value="{!Employee__c.CSCS__c}" style="width:120px"/>
</apex:pageBlockSectionItem>
      
<apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
<apex:outputLabel >Expiry Date</apex:outputLabel>
<apex:inputField value="{!Employee__c.CSCS_Expiry_Date__c}" style="width:80px"/>
</apex:pageBlockSectionItem>

<apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
<apex:outputLabel >CCTV Licence?</apex:outputLabel>
<apex:inputField value="{!Employee__c.CCTV_Licence_Type__c}" style="width:80px"/>
</apex:pageBlockSectionItem>

<apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
<apex:outputLabel >CCTV Licence #</apex:outputLabel>
<apex:inputField value="{!Employee__c.CCTV_Licence__c}" style="width:120px"/>
</apex:pageBlockSectionItem>

       
<apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
<apex:outputLabel >Expiry Date</apex:outputLabel>
<apex:inputField value="{!Employee__c.CCTV_Expiry__c}" style="width:80px"/>
</apex:pageBlockSectionItem>


<apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
<apex:outputLabel >Driving Licence?</apex:outputLabel>
<apex:inputField value="{!Employee__c.Driving_Licence__c}" style="width:80px"/>
</apex:pageBlockSectionItem>


<apex:pageBlockSectionItem dataStyle="width:3%" labelStyle="width:30%" >
<apex:outputLabel >Driving Licence #</apex:outputLabel>
<apex:inputField value="{!Employee__c.Driving_Licence_Number__c}" style="width:120px"/>
</apex:pageBlockSectionItem>

       
<apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
<apex:outputLabel >Expiry Date</apex:outputLabel>
<apex:inputField value="{!Employee__c.Driving_Licence_Expiry__c}" style="width:80px"/>
</apex:pageBlockSectionItem>


                    
                        
</apex:pageBlockSection>
</apex:outputPanel>
</apex:pageBlock>
</apex:form>
 </apex:page>

 
<apex:page standardController="Employee__c">
<apex:form >
<apex:pageBlock mode="inlineEdit" >
<apex:pageBlockButtons >

                <apex:commandButton action="{!edit}" id="editButton" value="Edit"/>

                <apex:commandButton action="{!save}" id="saveButton" value="Save"/>

                <apex:commandButton onclick="resetInlineEdit()" id="cancelButton" value="Cancel"/>

            </apex:pageBlockButtons>

    <style>
          
           body .bPageBlock .pbBody .grey .pbSubheader{
               background-color:#c0c0c0;
          
           }
            body .bPageBlock .pbBody .grey .pbSubheader h3{
               color:#000;
           }
           
       </style>
       <apex:outputPanel styleClass="grey" layout="block">
<apex:pageBlockSection title="Worker Licence Details" columns="3">

<apex:pageBlockSectionItem dataStyle="width:0%" labelStyle="width:10%" >
<apex:outputLabel >SIA Licence Type</apex:outputLabel>
<apex:inputField value="{!Employee__c.SIA_LICENCE__c}" style="width:80px"/>
</apex:pageBlockSectionItem>


<apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
<apex:outputLabel >Licence #</apex:outputLabel>
<apex:inputField value="{!Employee__c.Licence_No__c}" style="width:95px"/>
</apex:pageBlockSectionItem>
      
<apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
<apex:outputLabel >Expiry Date</apex:outputLabel>
<apex:inputField value="{!Employee__c.Expiry__c}" style="width:80px"/>
</apex:pageBlockSectionItem>

<apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
<apex:outputLabel >CSCS Card?</apex:outputLabel>
<apex:inputField value="{!Employee__c.CSCS_Card__c}" style="width:80px"/>
</apex:pageBlockSectionItem>

<apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
<apex:outputLabel >CSCS #</apex:outputLabel>
<apex:inputField value="{!Employee__c.Licence_No__c}" style="width:95px"/>
</apex:pageBlockSectionItem>
      
<apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
<apex:outputLabel >Expiry Date</apex:outputLabel>
<apex:inputField value="{!Employee__c.CSCS_Expiry_Date__c}" style="width:80px"/>
</apex:pageBlockSectionItem>

<apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
<apex:outputLabel >CCTV Licence?</apex:outputLabel>
<apex:inputField value="{!Employee__c.CCTV_Licence__c}" style="width:80px"/>
</apex:pageBlockSectionItem>

<apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
<apex:outputLabel >Licence #</apex:outputLabel>
<apex:inputField value="{!Employee__c.Licence_No__c}" style="width:95px"/>
</apex:pageBlockSectionItem>

       
<apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
<apex:outputLabel >Expiry Date</apex:outputLabel>
<apex:inputField value="{!Employee__c.Expiry__c}" style="width:80px"/>
</apex:pageBlockSectionItem>


<apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
<apex:outputLabel >Driving Licence?</apex:outputLabel>
<apex:inputField value="{!Employee__c.Driving_Licence__c}" style="width:80px"/>
</apex:pageBlockSectionItem>


<apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
<apex:outputLabel >Licence #</apex:outputLabel>
<apex:inputField value="{!Employee__c.Driving_Licence_Number__c}" style="width:95px"/>
</apex:pageBlockSectionItem>

       
<apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
<apex:outputLabel >Expiry Date</apex:outputLabel>
<apex:inputField value="{!Employee__c.Driving_Licence_Expiry__c}" style="width:80px"/>
</apex:pageBlockSectionItem>

<apex:inlineEditSupport showOnEdit="saveButton, cancelButton"

                        hideOnEdit="editButton" event="ondblclick"

                        resetFunction="resetInlineEdit"/>
</apex:pageBlockSection>
</apex:outputPanel>
</apex:pageBlock>
</apex:form>
 </apex:page>

 
Hi

I have a custom button on Case object that when clicked on starts a flow .  What I want to do is close the pop up window when the flow finishes and return to the orignal page which is refreshed so the record is updated with the new data .

I have this code on my button which is calling a flow and the following vf page forceclose to close the window but now I need it to refresh the page.  It is currently refreshing the home page and not the page where i call the flow from i.e my Case record

 
<apex:page showChat="false" showHeader="false" sidebar="false" applyBodyTag="false" applyHtmlTag="false">
<html>
    <head>
        <title>ESCAPE</title>
        <script>
        
            function closeWindow(){      
            window.opener.location.href="/{!$CurrentPage.parameters.id}";
            window.top.close();
      
            }
        </script>       
    </head>
    <body onload="closeWindow()">
      
   
      
    
 
       
    </body>
</html>
</apex:page>


And my button custom button code is 
 
/flow/Restart_Case_Milestones?CaseID={!Case.Id}&retURL=https://cs86.salesforce.com/{!Case.Id}


 
Hi Community

I have a VF page section on a standard page for a custom object and when I edit and save some fields the section will refresh as expected by returning back to the VF page.  However some field will refresh and then display the home page and standard desktop view of the whole standard page within the vf section as below
User-added image

I have attached my code as well, I would appreciate any help? :)
 
<apex:page standardController="Employee__c">
<apex:form >
<apex:pageMessages />
<apex:pageBlock mode="inlineEdit" id="all"  >
<apex:actionFunction action="{! save }" name="saveChanges" reRender="all" oncomplete="location.reload()"/>
<apex:pageBlockButtons >

           


                <apex:commandButton id="saveButton" value="Save" onclick="saveChanges()"/>

                 <apex:commandButton onclick="resetInlineEdit()" id="cancelButton" value="Cancel" immediate="true"/> 

            </apex:pageBlockButtons>

    <style>
          
           body .bPageBlock .pbBody .grey .pbSubheader{
               background-color:#fbf8f8;
          
           }
            body .bPageBlock .pbBody .grey .pbSubheader h3{
               color:#000;
           }
           
       </style>
       <apex:outputPanel styleClass="grey" layout="block">
<apex:pageBlockSection columns="3">

<apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
<apex:outputLabel >SIA Licence Type</apex:outputLabel>
<apex:inputField value="{!Employee__c.SIA_LICENCE__c}" style="width:80px"/>
</apex:pageBlockSectionItem>


<apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
<apex:outputLabel >SIA Licence #</apex:outputLabel>
<apex:inputField value="{!Employee__c.Licence_No__c}" style="width:120px"/>
</apex:pageBlockSectionItem>
      
<apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
<apex:outputLabel >Expiry Date</apex:outputLabel>
<apex:inputField value="{!Employee__c.Expiry__c}" style="width:80px"/>
</apex:pageBlockSectionItem>

<apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
<apex:outputLabel >CSCS Card?</apex:outputLabel>
<apex:inputField value="{!Employee__c.CSCS_Card__c}" style="width:80px"/>
</apex:pageBlockSectionItem>

<apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
<apex:outputLabel >CSCS #</apex:outputLabel>
<apex:inputField value="{!Employee__c.CSCS__c}" style="width:120px"/>
</apex:pageBlockSectionItem>
      
<apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
<apex:outputLabel >Expiry Date</apex:outputLabel>
<apex:inputField value="{!Employee__c.CSCS_Expiry_Date__c}" style="width:80px"/>
</apex:pageBlockSectionItem>

<apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
<apex:outputLabel >CCTV Licence?</apex:outputLabel>
<apex:inputField value="{!Employee__c.CCTV_Licence_Type__c}" style="width:80px"/>
</apex:pageBlockSectionItem>

<apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
<apex:outputLabel >CCTV Licence #</apex:outputLabel>
<apex:inputField value="{!Employee__c.CCTV_Licence__c}" style="width:120px"/>
</apex:pageBlockSectionItem>

       
<apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
<apex:outputLabel >Expiry Date</apex:outputLabel>
<apex:inputField value="{!Employee__c.CCTV_Expiry__c}" style="width:80px"/>
</apex:pageBlockSectionItem>


<apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
<apex:outputLabel >Driving Licence?</apex:outputLabel>
<apex:inputField value="{!Employee__c.Driving_Licence__c}" style="width:80px"/>
</apex:pageBlockSectionItem>


<apex:pageBlockSectionItem dataStyle="width:3%" labelStyle="width:30%" >
<apex:outputLabel >Driving Licence #</apex:outputLabel>
<apex:inputField value="{!Employee__c.Driving_Licence_Number__c}" style="width:120px"/>
</apex:pageBlockSectionItem>

       
<apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
<apex:outputLabel >Expiry Date</apex:outputLabel>
<apex:inputField value="{!Employee__c.Driving_Licence_Expiry__c}" style="width:80px"/>
</apex:pageBlockSectionItem>


                    
                        
</apex:pageBlockSection>
</apex:outputPanel>
</apex:pageBlock>
</apex:form>
 </apex:page>

 
<apex:page standardController="Employee__c">
<apex:form >
<apex:pageBlock mode="inlineEdit" >
<apex:pageBlockButtons >

                <apex:commandButton action="{!edit}" id="editButton" value="Edit"/>

                <apex:commandButton action="{!save}" id="saveButton" value="Save"/>

                <apex:commandButton onclick="resetInlineEdit()" id="cancelButton" value="Cancel"/>

            </apex:pageBlockButtons>

    <style>
          
           body .bPageBlock .pbBody .grey .pbSubheader{
               background-color:#c0c0c0;
          
           }
            body .bPageBlock .pbBody .grey .pbSubheader h3{
               color:#000;
           }
           
       </style>
       <apex:outputPanel styleClass="grey" layout="block">
<apex:pageBlockSection title="Worker Licence Details" columns="3">

<apex:pageBlockSectionItem dataStyle="width:0%" labelStyle="width:10%" >
<apex:outputLabel >SIA Licence Type</apex:outputLabel>
<apex:inputField value="{!Employee__c.SIA_LICENCE__c}" style="width:80px"/>
</apex:pageBlockSectionItem>


<apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
<apex:outputLabel >Licence #</apex:outputLabel>
<apex:inputField value="{!Employee__c.Licence_No__c}" style="width:95px"/>
</apex:pageBlockSectionItem>
      
<apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
<apex:outputLabel >Expiry Date</apex:outputLabel>
<apex:inputField value="{!Employee__c.Expiry__c}" style="width:80px"/>
</apex:pageBlockSectionItem>

<apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
<apex:outputLabel >CSCS Card?</apex:outputLabel>
<apex:inputField value="{!Employee__c.CSCS_Card__c}" style="width:80px"/>
</apex:pageBlockSectionItem>

<apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
<apex:outputLabel >CSCS #</apex:outputLabel>
<apex:inputField value="{!Employee__c.Licence_No__c}" style="width:95px"/>
</apex:pageBlockSectionItem>
      
<apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
<apex:outputLabel >Expiry Date</apex:outputLabel>
<apex:inputField value="{!Employee__c.CSCS_Expiry_Date__c}" style="width:80px"/>
</apex:pageBlockSectionItem>

<apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
<apex:outputLabel >CCTV Licence?</apex:outputLabel>
<apex:inputField value="{!Employee__c.CCTV_Licence__c}" style="width:80px"/>
</apex:pageBlockSectionItem>

<apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
<apex:outputLabel >Licence #</apex:outputLabel>
<apex:inputField value="{!Employee__c.Licence_No__c}" style="width:95px"/>
</apex:pageBlockSectionItem>

       
<apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
<apex:outputLabel >Expiry Date</apex:outputLabel>
<apex:inputField value="{!Employee__c.Expiry__c}" style="width:80px"/>
</apex:pageBlockSectionItem>


<apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
<apex:outputLabel >Driving Licence?</apex:outputLabel>
<apex:inputField value="{!Employee__c.Driving_Licence__c}" style="width:80px"/>
</apex:pageBlockSectionItem>


<apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
<apex:outputLabel >Licence #</apex:outputLabel>
<apex:inputField value="{!Employee__c.Driving_Licence_Number__c}" style="width:95px"/>
</apex:pageBlockSectionItem>

       
<apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
<apex:outputLabel >Expiry Date</apex:outputLabel>
<apex:inputField value="{!Employee__c.Driving_Licence_Expiry__c}" style="width:80px"/>
</apex:pageBlockSectionItem>

<apex:inlineEditSupport showOnEdit="saveButton, cancelButton"

                        hideOnEdit="editButton" event="ondblclick"

                        resetFunction="resetInlineEdit"/>
</apex:pageBlockSection>
</apex:outputPanel>
</apex:pageBlock>
</apex:form>
 </apex:page>

 

Is there a way to change the Finish button default on a VWF run from a custom button URL that's not referencing a VFP?  Basically I have a simple flow that starts with a button click from a detail page, which opens a new browser window and shows some data along with the standard VWF Finish button. 

 

What I'd like is for finish to close the window, not restart the workflow.

 

 

Hi, i am creating a custom visual force page and I want calendar popup or suggestion.

 

<apex:page standaqrdcontroller="Contact" extensions="infoControler">

 

<apex:inputField value="{!con.BirthDate}"/>

 

in controlller,

Contact con;

 

public void setCon(Contact newCon)

{

   con=newCon;

}

 

Iam not getting any popup calendar but todays date beside field is coming. I see in the Contact  Page when we click mouse inside the box, it is giving us calendar . but not in my case.

 

 

Can someone  help me out here .   Thanku

 

public Contact getCon()

{

  return con;

}