• JTec
  • NEWBIE
  • 5 Points
  • Member since 2007

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 20
    Questions
  • 12
    Replies

Hi,


We have developed a visualforce page to replace the Send email funcionality from a determinate custom object to give it more funcionallity.


Is ther any way to use a email template like in the standard "Send email"? Can we load in our VF page a template email and load the dinamyc field before to send this? We are trying this since some days and there is no way.


Thanks for all

  • May 27, 2010
  • Like
  • 0

Hi,

 

We see in other post that we can format a outputtext to transform a double to a currency value. We do this

 

<code>

             <apex:outputPanel styleClass="dataCol" style="padding-right:15px">
                <apex:outputText value="{0,number,currency}" id="iPrecioPro" >
                    <apex:param value="{!sPrecioPro}" />
                </apex:outputText>                
            </apex:outputPanel>

</code>

 

This code format our Double inCurrency but the Currency is something like this: $ 152,000.00 and we have select Europe configuration, weexpected something like 152.000,00 . It is non configurable by some param like Local or something simeless in java?

 

Thank you

  • March 09, 2010
  • Like
  • 0
Hi, I have a vf page with a code like this

<apex:actionRegion > <apex:outputPanel id="oP" ondblclick="cambioDetalle(this.id, 'input')" > <apex:inputText value="{!sub.detalle}" style="display:none" id="iDetalle" /> <apex:actionSupport event="onchange" rerender="oP" /> <apex:outputText value="{!sub.detalle}" style="display:block" id="tDetalle" /> <script> eval("tDetallesT['{!$Component.oP}'] = document.getElementById('{!$Component.tDetalle}')"); eval("tDetallesI['{!$Component.oP}'] = document.getElementById('{!$Component.iDetalle}')"); </script> </apex:outputPanel> </apex:actionRegion>

 

The actionsupport is runing ok in firefox and opera but don't run in IE. It is like IE don't fire the event, why? Some Idea?

 

Thanks for all

  • February 11, 2010
  • Like
  • 0

Hi,

 

We had implemented Google Adwords integration and this run fine if we use the sfga.js in a html page but when we have test this traking code in a Page to Force.com Sites this don't work. Our VisualForce Page have 

 

The input <input type=hidden name="sfga" value="xxxxxxxxxxxxx" />  in the form and

 

This lines before the tag <body/>

         <SCRIPT type="text/javascript" src="https://lct.salesforce.com/sfga.js"></SCRIPT>
        <SCRIPT type="text/javascript">__sfga();</SCRIPT>

 

 

Thanks for the help.

  • November 03, 2009
  • Like
  • 0
We had develop a page in visulaforce, this do a filter Accounts crossing with other objects. This page is for one client, they have arround 600.000 records in the Account Table, we have controled the limits governors but the result of a normal filter will can return more than 8000 records. We try to show the result with a component that paginates all the records but when the result have more than 1200 records aprox visualforce gives us this error:

 

Maximum view state size limit (128K) exceeded. Actual viewstate size for this page was  131,375K.

 

How can we control this limit to show a custom message or how we can do to show all the records?

 

thanks for all.
  • September 16, 2009
  • Like
  • 0
Hi,

 

We have implemented email2case service and it run ok but I have a question.

 

Is there any form to have email2case configure to many email address? We have a email for support and this is redirected to our Email Services Address but when of the user respond to a email from salesforce and the clients respond to this email, thisresponse goes to the email address of the user that is not the same address that support.  Is associate all of address of the user who work with cases with Email Services the only solution?

 

thanks
  • April 15, 2009
  • Like
  • 0
In the apex language reference manual i read this:

"Note: A trigger invoked by an insert, delete or update, of a recurring event results in a runtime error when
the trigger is called in bulk from the Force.com API."

I need to do a mass update in Events and any of this events can be recurring and I have a trigger asociate to Event, what should I change or control to avoid this runtine error?


Thanks for All
  • July 29, 2008
  • Like
  • 0
I have seen the link about Dynamic SOQL
We are developing a apliccation in visualforce and we need to activate D SOQL. We have done a petition to sfdc support but, is there anyway to activate this option by code? Or by configuration?
We need do this because we are partners and we want do this job for several of our clients.

Thanks for all.
  • July 23, 2008
  • Like
  • 0
Is it possible access to Login history from the Api in the new veersion???
  • July 22, 2008
  • Like
  • 0
    Hi,

We need to obtain the ascii character of a number in a trigger. Something like chr(65) ===> A.
Is this posible in Apex language?

Thanks

 
  • June 20, 2008
  • Like
  • 0
    Hi,

We need to obtain the ascii character of a number in a trigger. Something like chr(65) ===> A.
Is this posible in Apex language?

Thanks
  • June 20, 2008
  • Like
  • 0
I have developed a new Apex/page but, how can I open this new page by a buttom?? From a sControl???

Thanks
Regrads
  • June 12, 2008
  • Like
  • 0
Hi,

We are trying to do queries filtering by a date field, the query is something like this:

"Select count() From Lead l where l.Status = 'Qualified' and LeadSource in ('Marketing','Database','Research') and OwnerId in ('00520000000kwBIAAY') and ConvertedDate >= 2008-01-01 and ConvertedDate <= 2008-01-31"

But this query don't count field with ConvertedDate = 2008-01-31, is this a error? It is correcly? we are doing tests and we have saw that don't filter registers when we filter for ConvertedDate = "some value"


???????


Thanks
  • May 26, 2008
  • Like
  • 0
    Hi,

We are trying to develope a scontrol in wich we need to query for the Events creat in a determinate date and those will be relation with a opportunities that have a determinate LeadSource. The problem is when i use the e.What.LeadSource in the where clause the appi return this error:

"No such column 'LeadSource' on entity 'Name'"

This a example of the query of we try to run:

Select e.What.Type, e.What.Name, e.What.Id, e.WhatId
From Event e
where e.What.Name <> '' and e.What.Type = 'Opportunity' and  e.What.LeadSource = 'Database' 
limit  25

Can we do?
Thanks.
  • May 23, 2008
  • Like
  • 0
       Hi for all,

We are develing a sControl and it have to show many records of a query. We must paging this result to show the records correctly.

What is the best way to this?

Is correct use pagin in client side,  or in "server side"?


Thanks
  • May 22, 2008
  • Like
  • 0
Hi,

We are developing a SControl that use a custom field with lookup this is the code:
Code:
<td class="data2Col" style="width:82%;border-bottom:1px solid #E3DEB8">
    <input id="camp_lkid" type="hidden" value="000000000000000" name="camp_lkid" onchange ="cargarEstados();" />
 <input id="camp_lkold" type="hidden" value="" name="camp_lkold" />
 <input id="camp_lktp" type="hidden" value="701" name="camp_lktp"/>
 <input id="camp_lspf" type="hidden" value="0" name="camp_lspf"/>
 <input id="camp_mod" type="hidden" value="0" name="camp_mod"/>
 <span class="lookupInput">
  <input id="camp" type="text" value="" tabindex="2" size="20" onchange="getElementByIdCS('camp_lkid').value='';getElementByIdCS('camp_mod').value='1';"   name="camp" maxlength="255"/>
  <a id="camp_lkwgt" title="Campaña" tabindex="2" onclick="setLastMousePosition(event);" href="JavaScript: openLookup('/_ui/common/data/LookupPage—lkfm=editPage&lknm=camp&lktp=' + document.getElementById('camp_lktp').value,670,document.getElementById('camp_mod').value,'&lksrch=' + escapeUTF(document.getElementById('camp').value));">
  <img alt="Buscar" src="{!Scontrol.JavaArchive}"/>
  </a>
 </span>
</td>

 Our problem is when the value search is inserted. The onchange of the input camp_lkid don't work.

Is there any problem in the code? is it no posible to use onchange in the camp_lkid field? How can we captured this event?

Thanks for all.

  • May 20, 2008
  • Like
  • 0
Hi,

I need to control tht users don´t change de Email Name of "My Email Settings". Can i create a  trigger to do this? the Email Name of this page is the same of the User Object?


Thanks
  • February 12, 2008
  • Like
  • 0
    Hi, this is my problem:

I redirect de new buttom to the new page but i give two values to two fileds but one of this fileds is a lookup field and this executed the shearch and it return a error. I understand the error but can i give values to shearch field within execute the search when load the page.


Thanks
  • January 30, 2008
  • Like
  • 0
    Hi,

I want to copy some field of a new Event to a Case, i have modified the button 'new' event and now when click "save" i cal to  a SControl,my idea is to copy the values to the Case from this SControl but  how i capture the values? How i collect the values of the New Event?


Thanks and  sorry for my poor English
  • August 13, 2007
  • Like
  • 0
Hi,

I need to do a query in SOQL like this in SQL:

Select SUM(field1), field2 From Table Where condition Group By field2

I Know that It isn't posible, but is there a way to do something seemed?

I would like do something not to calculate this "SUM" by code.

Thanks
  • August 03, 2007
  • Like
  • 0
Hi, I have a vf page with a code like this

<apex:actionRegion > <apex:outputPanel id="oP" ondblclick="cambioDetalle(this.id, 'input')" > <apex:inputText value="{!sub.detalle}" style="display:none" id="iDetalle" /> <apex:actionSupport event="onchange" rerender="oP" /> <apex:outputText value="{!sub.detalle}" style="display:block" id="tDetalle" /> <script> eval("tDetallesT['{!$Component.oP}'] = document.getElementById('{!$Component.tDetalle}')"); eval("tDetallesI['{!$Component.oP}'] = document.getElementById('{!$Component.iDetalle}')"); </script> </apex:outputPanel> </apex:actionRegion>

 

The actionsupport is runing ok in firefox and opera but don't run in IE. It is like IE don't fire the event, why? Some Idea?

 

Thanks for all

  • February 11, 2010
  • Like
  • 0
Hi,

 

We have implemented email2case service and it run ok but I have a question.

 

Is there any form to have email2case configure to many email address? We have a email for support and this is redirected to our Email Services Address but when of the user respond to a email from salesforce and the clients respond to this email, thisresponse goes to the email address of the user that is not the same address that support.  Is associate all of address of the user who work with cases with Email Services the only solution?

 

thanks
  • April 15, 2009
  • Like
  • 0
In the apex language reference manual i read this:

"Note: A trigger invoked by an insert, delete or update, of a recurring event results in a runtime error when
the trigger is called in bulk from the Force.com API."

I need to do a mass update in Events and any of this events can be recurring and I have a trigger asociate to Event, what should I change or control to avoid this runtine error?


Thanks for All
  • July 29, 2008
  • Like
  • 0
Is it possible access to Login history from the Api in the new veersion???
  • July 22, 2008
  • Like
  • 0
Hi,

We are trying to do queries filtering by a date field, the query is something like this:

"Select count() From Lead l where l.Status = 'Qualified' and LeadSource in ('Marketing','Database','Research') and OwnerId in ('00520000000kwBIAAY') and ConvertedDate >= 2008-01-01 and ConvertedDate <= 2008-01-31"

But this query don't count field with ConvertedDate = 2008-01-31, is this a error? It is correcly? we are doing tests and we have saw that don't filter registers when we filter for ConvertedDate = "some value"


???????


Thanks
  • May 26, 2008
  • Like
  • 0
    Hi,

We are trying to develope a scontrol in wich we need to query for the Events creat in a determinate date and those will be relation with a opportunities that have a determinate LeadSource. The problem is when i use the e.What.LeadSource in the where clause the appi return this error:

"No such column 'LeadSource' on entity 'Name'"

This a example of the query of we try to run:

Select e.What.Type, e.What.Name, e.What.Id, e.WhatId
From Event e
where e.What.Name <> '' and e.What.Type = 'Opportunity' and  e.What.LeadSource = 'Database' 
limit  25

Can we do?
Thanks.
  • May 23, 2008
  • Like
  • 0
       Hi for all,

We are develing a sControl and it have to show many records of a query. We must paging this result to show the records correctly.

What is the best way to this?

Is correct use pagin in client side,  or in "server side"?


Thanks
  • May 22, 2008
  • Like
  • 0
Hi,

We are developing a SControl that use a custom field with lookup this is the code:
Code:
<td class="data2Col" style="width:82%;border-bottom:1px solid #E3DEB8">
    <input id="camp_lkid" type="hidden" value="000000000000000" name="camp_lkid" onchange ="cargarEstados();" />
 <input id="camp_lkold" type="hidden" value="" name="camp_lkold" />
 <input id="camp_lktp" type="hidden" value="701" name="camp_lktp"/>
 <input id="camp_lspf" type="hidden" value="0" name="camp_lspf"/>
 <input id="camp_mod" type="hidden" value="0" name="camp_mod"/>
 <span class="lookupInput">
  <input id="camp" type="text" value="" tabindex="2" size="20" onchange="getElementByIdCS('camp_lkid').value='';getElementByIdCS('camp_mod').value='1';"   name="camp" maxlength="255"/>
  <a id="camp_lkwgt" title="Campaña" tabindex="2" onclick="setLastMousePosition(event);" href="JavaScript: openLookup('/_ui/common/data/LookupPage—lkfm=editPage&lknm=camp&lktp=' + document.getElementById('camp_lktp').value,670,document.getElementById('camp_mod').value,'&lksrch=' + escapeUTF(document.getElementById('camp').value));">
  <img alt="Buscar" src="{!Scontrol.JavaArchive}"/>
  </a>
 </span>
</td>

 Our problem is when the value search is inserted. The onchange of the input camp_lkid don't work.

Is there any problem in the code? is it no posible to use onchange in the camp_lkid field? How can we captured this event?

Thanks for all.

  • May 20, 2008
  • Like
  • 0
    Hi, this is my problem:

I redirect de new buttom to the new page but i give two values to two fileds but one of this fileds is a lookup field and this executed the shearch and it return a error. I understand the error but can i give values to shearch field within execute the search when load the page.


Thanks
  • January 30, 2008
  • Like
  • 0
I need help about setting link at URLFOR. Can salesforce do that? I want to use that scontrol when I click 'save' at opportunity and point it to another url. The use of URLFOR I know is with retURL :

window.parent.location.href="{! URLFOR($Action.Opportunity.Edit,Opportunity.Id,
[retURL=URLFOR($Action.Opportunity.View,Opportunity.Id)],true)}";

I can't override button 'save', so I override button 'edit' at opportunity. If only I can use trigger and set url to location I want. Anyone has idea or suggestion? It would be appreciated.