• lilian.moncade
  • NEWBIE
  • 25 Points
  • Member since 2012

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

Hello,

I explain my problem.

 

I need to clone a record, with a multi-step for the record creation.

My multi step is already working correctly. ( with multiples VF pages )

I create a copy of clone button using : 

<apex:commandButton action="{!URLFOR($Action.Operation__c.Clone,Operation__c.id)}" value="Renouvellement" rendered="{!isRenouvellement}"/>

 

But when I override the clone button, in the configuration of this object, the redirection is set correctly to my custom layout, but it is not a clone of my object. When I save, it updates my record, instead of creating a new.

 

I guess i missed something , but i don't know what.

I wanted to use parameters, but param does not work correctly with buttons.

Any help would be appreciated.

 

Thx

 

 

Hello,

 

I have an object with a lot of fields, and i wanted to know if it is possible to create a multi step record creation.

For example, the section Information in a first screen, then a button "next" with a new screen with another section.

 

Thx.

Hello,
I have a problem with integrating a visualforce component on a dashboard.
I created a visualforce page with a custom controller, and i have the corresponding result by testing my page BUT
when i integrate my page with a drag & drop into a vf component, this displays only the code of my page.

Does this problem already occurs to somebody ?
And how can i solve it ?
I give you my code :
<apex:page controller="InactiveContactReport" showHeader="true" sidebar="true" showChat="true">
   <apex:includeScript value="https://www.google.com/jsapi"/>
    <apex:messages />
    <apex:image url="/img/icon/reports32.png" title="Tableau de Bord"/>
    <apex:outputText id="myId" value="Dashboard" style="font-weight:bold; font-size: 1.5em" />
    <style type='text/css'>
        .weight{
            text-align:center;
            width: 300px;
        }
        
        .width{
         width: 300px;
        }
    </style>
    
     <script   type ="text/javascript">
     
         var cssStyle =  {'tableCell' : 'weight', 'headerCell' : 'width' };   
             
         google.load('visualization', '1', {packages:['table']});
         google.setOnLoadCallback(drawInactiveContacts);
         
         function drawInactiveContacts(){
               
              
                 // Create and populate the data table.
     
       
          var data = new google.visualization.DataTable();
          data.addColumn('string', 'Name');
          data.addColumn('date', 'Last Sale Date');
          <apex:repeat value="{!InactiveContacts}" var="v">
           
            data.addRow(['{!v.contact}', new Date({!v.year}, {!v.month}, {!v.day})]);
          </apex:repeat>

          // Draw our data
          var table = new google.visualization.Table(document.getElementById('dateformat_div'));
          table.draw(data, {showRowNumber: true,
                            allowHtml: true,  
                            cssClassNames: cssStyle
          
          });
      }
         
     </script>
     
     <apex:pageBlock >
      
        <apex:pageBlockSection title="Inactive Contacts List" >
           <div id="dateformat_div">
           </div>
       </apex:pageBlockSection>
    </apex:pageBlock>             
</apex:page>

Sorry for my english, i hope this is nevertheless understandable.

Regards,
Lilian Moncade

 

Hello,

I explain my problem.

 

I need to clone a record, with a multi-step for the record creation.

My multi step is already working correctly. ( with multiples VF pages )

I create a copy of clone button using : 

<apex:commandButton action="{!URLFOR($Action.Operation__c.Clone,Operation__c.id)}" value="Renouvellement" rendered="{!isRenouvellement}"/>

 

But when I override the clone button, in the configuration of this object, the redirection is set correctly to my custom layout, but it is not a clone of my object. When I save, it updates my record, instead of creating a new.

 

I guess i missed something , but i don't know what.

I wanted to use parameters, but param does not work correctly with buttons.

Any help would be appreciated.

 

Thx

 

 

Hello,

 

I have an object with a lot of fields, and i wanted to know if it is possible to create a multi step record creation.

For example, the section Information in a first screen, then a button "next" with a new screen with another section.

 

Thx.

Hello,
I have a problem with integrating a visualforce component on a dashboard.
I created a visualforce page with a custom controller, and i have the corresponding result by testing my page BUT
when i integrate my page with a drag & drop into a vf component, this displays only the code of my page.

Does this problem already occurs to somebody ?
And how can i solve it ?
I give you my code :
<apex:page controller="InactiveContactReport" showHeader="true" sidebar="true" showChat="true">
   <apex:includeScript value="https://www.google.com/jsapi"/>
    <apex:messages />
    <apex:image url="/img/icon/reports32.png" title="Tableau de Bord"/>
    <apex:outputText id="myId" value="Dashboard" style="font-weight:bold; font-size: 1.5em" />
    <style type='text/css'>
        .weight{
            text-align:center;
            width: 300px;
        }
        
        .width{
         width: 300px;
        }
    </style>
    
     <script   type ="text/javascript">
     
         var cssStyle =  {'tableCell' : 'weight', 'headerCell' : 'width' };   
             
         google.load('visualization', '1', {packages:['table']});
         google.setOnLoadCallback(drawInactiveContacts);
         
         function drawInactiveContacts(){
               
              
                 // Create and populate the data table.
     
       
          var data = new google.visualization.DataTable();
          data.addColumn('string', 'Name');
          data.addColumn('date', 'Last Sale Date');
          <apex:repeat value="{!InactiveContacts}" var="v">
           
            data.addRow(['{!v.contact}', new Date({!v.year}, {!v.month}, {!v.day})]);
          </apex:repeat>

          // Draw our data
          var table = new google.visualization.Table(document.getElementById('dateformat_div'));
          table.draw(data, {showRowNumber: true,
                            allowHtml: true,  
                            cssClassNames: cssStyle
          
          });
      }
         
     </script>
     
     <apex:pageBlock >
      
        <apex:pageBlockSection title="Inactive Contacts List" >
           <div id="dateformat_div">
           </div>
       </apex:pageBlockSection>
    </apex:pageBlock>             
</apex:page>

Sorry for my english, i hope this is nevertheless understandable.

Regards,
Lilian Moncade