Shubham Sharma
IndividualForum Replies Created
-
To show VF page as inline, firstly make sure that your VF page must be using Standard controller of any particular sObject.
Then go to a particular record of that sObject that you specified in your VF page. Click > Edit Layout > Click VisualForce Pages in top left list > Drag and Drop Your VF page to the page layout > Click Save.
-
Shubham
MemberJune 1, 2016 at 3:04 pm in reply to: How to make read-only text field in visualforce page without using javascript?You can use this attribute <apex:outputText value="{!Your Value}" /> on VF page, the value displayed will be read only.
-
Shubham
MemberJune 1, 2016 at 2:43 pm in reply to: How do you expose the page editor? User preference developer mode?To enable developer mode from Setup go to User, select your profile and click edit from there check the Developer mode checkbox and click save.
-
Shubham
MemberApril 29, 2016 at 12:09 pm in reply to: Why do we use Salesforce Translation Workbench?Hi @satyakam
The Translation Workbench lets you specify languages you want to translate, assign translators to languages, create translations for customizations you’ve made to your Salesforce organization, and override labels and translations from managed packages. Everything from custom picklist values to custom fields can be translated so your global users can use all of Salesforce in their language.
You can get more info here : https://help.salesforce.com/apex/HTViewHelpDoc?id=customize_wbench.htm
-
-
You can refer to this link : https://help.salesforce.com/apex/HTViewHelpDoc?id=matching_rule_map_of_reference.htm&language=en_US
-
Shubham
MemberApril 29, 2016 at 11:49 am in reply to: Is it possible to create a PDF from a report in salesforce?No creating a pdf from report is not possible as of right now. Maybe you can do is to create a VF page, embed the standard report in your page and use the renderAs="pdf" attribute to achieve this.
-
Shubham
MemberApril 28, 2016 at 10:06 am in reply to: What are the benefits of the “One Trigger per Object” design pattern? -
you can use a Set of Id and before upsert dml iterate over list and collect all ids
`set
accIds = new set ();
for(Account accObj : accountList){
if(accObj.Id != null) accIds.add(accObj.Id);
}
upsert accountList Eid__c;for(Account insertedAccount : accountList){
if(!accIds.contains(insertedAccount.Id))
{
system.debug('*** Id = ' + insertedAccount.id);
}
}` -
Shubham
MemberApril 26, 2016 at 8:03 am in reply to: Datalist Compatibility for all browsers in SalesforceYou will probably want to use a native SF component so you don't have to worry about compatibility (as long as you only support what Salesforce supports).
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_repeat.htm is pretty easy to use.
-
Shubham
MemberMarch 29, 2016 at 12:43 pm in reply to: Refresh parent after child action on inline Visualforce PageHello Abhinav,
You can achieve this by adding this javascript code snippet into your parent VF page.
var popupwindow;
var timer;
//call this function onclick of custom button
function popup(){
popupwindow = open('/apex/ChlidPageName','Popup','height=400,width=400,left=100,top=100,scrollbars=yes,toolbar=no,status=no');
timer = setInterval(checkWindow, 500);
}
function checkWindow(){
if(popupwindow.closed){
alert("Child window closed");
clearInterval(timer);
window.location.reload();
}
}I hope this might help you.
-
Hello @abhinav-bhatia , thanks for the reply but I have doubt that why validation rules are executed after the 'before trigger' ?
-
Shubham
MemberMarch 23, 2016 at 7:41 am in reply to: Accidently splitting an empty string on some specific character returns a list of size OneSplit always returns at least one element.
In the case that a separator is not found, the entire input (empty String) is returned as a single-element in the List. For that reason the List size will be always one. -
Shubham
MemberMarch 22, 2016 at 1:23 pm in reply to: How to execute Apex from Custom button or Javascript?In this case you can use apex action function.
-
Example
VF Page---
<apex:page Controller="myController">
<apex:form>
<apex:actionFunction name="callAction" action="{!myFunction}" />
<button type="button" onclick="callAction()">Call My Function</button>
<apex:outputPanel rendered="{!panel}">
Controller function Called.
</apex:outputPanel>
</apex:form>
</apex:page>Apex Class---
public class myController {
public Boolean panel {get;set;}
public myController(){
panel = false;
}
public void myFunction(){
panel = true;
}
}