• Naresh Krishna.ax1176
  • NEWBIE
  • 50 Points
  • Member since 2011

  • Chatter
    Feed
  • 2
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 48
    Questions
  • 29
    Replies

Hi All,

 

Can anyone please explain me with the below:

1. I have created one custom object.

2. Created 3 triggers of same event. Let us say after insert

3. Which trigger will invoke first ?

4. Is there any way to stop other 2 triggers after first one invoked ?

 

Thanks

Hi All,

 

By using dynamicComponent concept am able to create visualforce component (inputText).

But how to get the entered text value when I click on commandButton 'test' ?

 

Please see the code below:

Page:

<apex:page controller="SimpleDynamicController" sidebar="false" >
<apex:form >
<apex:dynamicComponent componentValue="{!sampleInputTxt}" /> 

<apex:commandButton action="{!testSampleInputTxt}" value="test"/>

</apex:form>
</apex:page>

 

Controller:

public class SimpleDynamicController {


public Component.Apex.inputText getSampleInputTxt() {
Component.Apex.inputText inText = new Component.Apex.inputText();
inText.id = 'TextId';
return inText;
}


public PageReference testSampleInputTxt() {

 

//Print the inputText value entered

return null;
}

}

 

Could anyone please help me on this.

 

Thanks.

 

 

Hi All,

 

I have created a web tab for the url https://login.salesforce.com

 

It is showing blank screen when i accessed the created web tab.

I tried for http://www.google.com and faced same issue.

And for url http://www.salesforce.com working fine but unable to process request for Login button, for Free Trial working fine.

 

Could you please anyone help me with this.

 

Thanks.

 

Hi All,

 

 I'm trying to display fields from objects in my visualforce page, but when i'm trying to display an standard fields like CreatedBy the fields are shown as lookup (like anchor tag). When I clicked  on lookup field it navigates to lookup object.

  can we able to disable the navigation to that object. 

 

here is my controller code:

 

appsReport = [select Name,XXXXXXXX,CreatedByID,CreatedDate from XXXXXXX]; 

 

and here is my apex page:

 

<apex:pageBlockTable value="{!appsReport}" var="report" >
<apex:column value="{!report.Name}">
</apex:column>
<apex:column value="{!report.XXXXXX}">
</apex:column>
<apex:column value="{!report.CreatedByID}" />
</apex:column>
<apex:column value="{!report.CreatedDate}">
</apex:column>
</apex:pageBlockTable>

 

Could you please help me on this issue.

 

Thanks.

Hi All,

 

I need to create hundreds of custom labels.

 

I have these labels in properties file as below.

UserName=User Name

Password=Password

 

Can we create them using apex code or we need to create them one by one from App Setup -> Custom Labels -> New Custom Label ?

 

Could anyone please help me on this

 

Thanks.

Hi All,

 

Can any one please provide template for the documentation of security review.

 

Thanks.

Hi All,

 

I have created a salesforce account and upon receiving the Salesforce.com login confirmation, through the given link i had set the password, logged in.

When I signed out from account and tried to login again thorugh https://login.salesforce.com, unable to login.

But when tried to login through the link in Salesforce.com login confirmation,able to logged in.

 

Please help me here.

 

Thanks.

Hi All,

 

I have generated the apex classes using "Generate from WSDL".

How can we create test methods for these generated classes.?

 

Could anyone please give any idea to do this.

 

Thanks.

Hi All,

 

Is there any way to create excel document which contains multiple sheets ?

 

Thanks.

Hi All,

 

Below is my sample code:

 

Page:-

<apex:page sidebar="false" controller="sampleCtrl">
  <apex:dataTable id="example" value="{!numbers}" var="number">
  <apex:column >  
      <apex:facet name="header">Numbers</apex:facet>
      {!number}
  </apex:column>
  </apex:dataTable>
</apex:page>

 

Controller:-

public with sharing class sampleCtrl {

    public List<String> numbers { get; set; }
    
    public sampleCtrl()
    {
        numbers = new List<String>();
        numbers.add('One');
        numbers.add('Two');
        numbers.add('Three');
    }
    
}

 

Issue here is:

I have declared the id of the dataTable as 'example' but it becomes 'j_id0:example'.


Is there any way to eliminate this prior string of example in the id?

 

Thanks.

Hi All,

 

I need to upload a file to an external server through salesforce.

In more clear, take a input file from visualforce page using apex:inputFile and upload the file to server.

 

can anyone help me with this please.

 

Thanks.

Hi All,

 

Is there any way to insert remote site setting using any query instead of this procedure: http://ap1.salesforce.com/help/doc/en/configuring_remoteproxy.htm ?

 

Thanks.

Hi All,

 

I have a list of 25 records.

I need to display them in 5 pages (5 records in each page). i.e, with pagination.

 

Is there any way to do pagination without using StandardSetController ?

 

Please help me with the above.

 

Thanks.

Hi All,

 

I can able replace a string with empty string in controller with String.replace().

 

Is there any way to replace a specified string with empty string directly in visualforce page ?

 

Ex:-

String sample = 'Sample_Program';

 

I need to display the sample variable as 'Program' only.

 

Please help me with the above to do the logic in the visualforce page.

 

Thanks.

Hi All,

 

I am using below piece of code to open the window in new tab:

 

<apex:dataList  value="{!displayWindows}" var="window">

    <apex:commandLink style="text-decoration:none" action="{!openwindow}" target="__blank{!window.windowId}" >

       {!window.windowName} 

    </apex:commandLin>

</apex:dataList >

Its not working completly.

When i click on commandLink first time,  it opens in new tab.

But i click on again, it refreshes the previously opened tab but not opened in new tab.

 

Can anyone please help me with this.

 

Thanks.

Hi All,

 

We can login to salesforce from any OS like Windows, IMac, Android, etc.

I need to do some specific task based on the logged in user's OS.

 

Can any one please help me with this.

 

Thanks.

Hi All,

 

I am repeating list and displaying the list items.

On each iteration am appending the comma ( , ) for separation.

But there is an extra "," at the end of the text.

 

code used:-

 

<apex:repeat value="{!ulist.userGroups}" var="userGroups">
   <apex:commandLink action="{!groupDetails}" style="text-decoration: none;color: #0066CC;">
     <apex:outputText value="{!userGroups.groupName}"/>
     <apex:outputText rendered="{!(ulist.userGroups.size > 1)}"> , </apex:outputText>                                   
   </apex:commandLink>                                
</apex:repeat>

 

how can I know is there a next item exists or not in apex:repeat ?

 

Thanks

Hi All,

 

I need to validate the website url which user entered in the apex page.

On salesforce docs, I found Website Extension validation rule (in it only checks for few extensions)

And also it is only to check extension.

 

Is there any procedure to validate website url in salesforce ?

 

Can anyone please help me with this.

 

Thanks.

Hi All,

 

I have designed a page to upload file but am not able to upload from ipad.

 

When i click on "Choose file" button, there is no response (no popup to upload file).

Looks like button is in disable state.

 

Can anybody please help me with this issue or is there anyway to upload file from salesforce on ipad.

 

Thanks.

Hi All,

 

I need to create hundreds of custom labels.

 

I have these labels in properties file as below.

UserName=User Name

Password=Password

 

Can we create them using apex code or we need to create them one by one from App Setup -> Custom Labels -> New Custom Label ?

 

Could anyone please help me on this

 

Thanks.

Hi All,

 

Is there any way to create excel document which contains multiple sheets ?

 

Thanks.

Hi All,

 

Below is my sample code:

 

Page:-

<apex:page sidebar="false" controller="sampleCtrl">
  <apex:dataTable id="example" value="{!numbers}" var="number">
  <apex:column >  
      <apex:facet name="header">Numbers</apex:facet>
      {!number}
  </apex:column>
  </apex:dataTable>
</apex:page>

 

Controller:-

public with sharing class sampleCtrl {

    public List<String> numbers { get; set; }
    
    public sampleCtrl()
    {
        numbers = new List<String>();
        numbers.add('One');
        numbers.add('Two');
        numbers.add('Three');
    }
    
}

 

Issue here is:

I have declared the id of the dataTable as 'example' but it becomes 'j_id0:example'.


Is there any way to eliminate this prior string of example in the id?

 

Thanks.

Hi All,

 

I have a image in Visualforce pdf and i want it to display according to the field selection 

 

I have used the following code but it is not working

<apex:image url="{!$Resource.Image1}" rendered="{!Opportunity.Project_l__c='East Point'}" />

 

Project_I__c is a lookup field in Opportunity.

when i select this field as East Point it should show the image.

 

Please help me...

Thanks in advance.

  • July 02, 2012
  • Like
  • 0

Hi All,

 

I have a list of 25 records.

I need to display them in 5 pages (5 records in each page). i.e, with pagination.

 

Is there any way to do pagination without using StandardSetController ?

 

Please help me with the above.

 

Thanks.

Hi All,

 

I can able replace a string with empty string in controller with String.replace().

 

Is there any way to replace a specified string with empty string directly in visualforce page ?

 

Ex:-

String sample = 'Sample_Program';

 

I need to display the sample variable as 'Program' only.

 

Please help me with the above to do the logic in the visualforce page.

 

Thanks.

Hi All,

 

I am using below piece of code to open the window in new tab:

 

<apex:dataList  value="{!displayWindows}" var="window">

    <apex:commandLink style="text-decoration:none" action="{!openwindow}" target="__blank{!window.windowId}" >

       {!window.windowName} 

    </apex:commandLin>

</apex:dataList >

Its not working completly.

When i click on commandLink first time,  it opens in new tab.

But i click on again, it refreshes the previously opened tab but not opened in new tab.

 

Can anyone please help me with this.

 

Thanks.

Hi All,

 

I am repeating list and displaying the list items.

On each iteration am appending the comma ( , ) for separation.

But there is an extra "," at the end of the text.

 

code used:-

 

<apex:repeat value="{!ulist.userGroups}" var="userGroups">
   <apex:commandLink action="{!groupDetails}" style="text-decoration: none;color: #0066CC;">
     <apex:outputText value="{!userGroups.groupName}"/>
     <apex:outputText rendered="{!(ulist.userGroups.size > 1)}"> , </apex:outputText>                                   
   </apex:commandLink>                                
</apex:repeat>

 

how can I know is there a next item exists or not in apex:repeat ?

 

Thanks

Hi all,

 

<c:EnterButton/>

<apex:commandButton action="{!searchFor}" accesskey="enter" value="search" />

 

Below is the EnterButton component used:-

 

<apex:component selfClosing="true">
  <script type="text/javascript">
    function replaceEnter(e){
      if (e.keyCode == 13){
        var allElements = document.getElementsByTagName('*');
        for (var i = 0; i < allElements.length; i++){
          if (allElements[i].id.indexOf("ENTER_BUTTON") !=-1){
            allElements[i].click();
          }
        }
        return false;
      }else{
        return true;
      }
    }
    window.onkeypress = replaceEnter;
  </script>
</apex:component> 

 

when I pressed on enter key in IE8 browser, nothing was done and the page simply refreshed.

 

Can anyone help me with fixing this issue ?

 

Thanks.

 

 

 

Hi All,

 

I have to input two ip addresses from apex page. i.e., ipFrom and ipTo

for example:

ipFrom - 10.35.34.90

ipTo - 10.35.34.80

 

Above is incorrect range.

 

Is there any method to validate the ip address range as above ?

 

Thanks.

Hi All,

 

  I want to create a date as input with calendar if I enter date value like today date or tomorrow date this date I need get in apex conroller.

 

 Any help is Appreciated.

  • April 04, 2012
  • Like
  • 0

Hi All,

 

I need to show the certificate value in specfic width but couldn't able to word-wrap the text.

Code used:

 

<apex:outputPanel layout="block" style="width: 750px; word-wrap: break-word;">

{!certInfo}
</apex:outputPanel>

 

Could any one please help me with this.

 

Thanks.

HI,

I want to know that how would i refresh Parent Window on Clicking of Save/Submit button on PopUp window or we can say Child window.

For this I used JavaScript &colon;

 

<script language="JavaScript" type="text/javascript">
 function CloseAndRefresh(){

      opener.location.reload(true);
      self.close();
  }
</script>

On Submit :

 

<apex:commandButton action="{!save}" onclick="CloseAndRefresh()" value="Save"/>

 

But It doesn't Work .

Please Help ..

 

 

  • March 17, 2011
  • Like
  • 0

We are rendering a page as the pdf in visualforce.

 

As a part of an interface, this pdf needs to be sent a response to a web service. 

 

Any pointers on how this can be done?

 

are there any salesforce.com specific restrictions or implementation considerations that need to be thought about before implementing the interface?

 

 

 

Thanks a lot,

Pooja