• sreenath
  • NEWBIE
  • 50 Points
  • Member since 2010

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

Hi developers,

                         It's really a challenge thinking....i want to hide child records & again i want to show the records in the relatedlist for a parent object. No relationship should be deleted for this scenario...

 

Any Idea from side it's helpful

 

Thanks

Sreenath

Hi developers,

 

                     I upload territories from csv file & need to categorize based on parent id's after uploading this territories. how to do this through apex.

Hi Developers,

                        I hope my question is clearly to all. In a custom object I have an account lookup field. when I select account, I need some values auto populate from account. 

 

I did this from a trigger, but these values are populating after saving. But, I need when i selected an account at that time i need this values populated into related fields of custom object.

 

How can i do this?

                         

Hi Developers,

 

                     I know to encrypt field data like credit card number, social security number not to visible. But, in one sfdc account this field data encrypted to admin user & not encrypted to normal user profile. How it is possible & what is the reason that only not displaying for the administrator & displaying to normal user.

 

If any one knows this issue, please tell me the reason.

 

Thanks

Sreenath

HI developers,

 

                      I need only one value from the set of values in an address field. This is standard field, how to split this value to get the required value.

 

 

Thanks

Sreenath

Hi developers,

                  I am getting 302, 401 & 404 status code errors from authentication to google api. what i am missing please help me 

                 

public class GoogleCalendar
{
public void detail()
{
Http h = new Http();
HttpRequest req = new HttpRequest();
final string username = 'sreenath.sfdc@gmail.com';
final string password = 'Password';
//final string apikey='AIzaSyDaQK60dlM-7icVukY0sbaOHae9eLn3dKk';
Blob headerValue = Blob.valueOf(username + ':' + password);
String authorizationHeader = 'BASIC ' +EncodingUtil.base64Encode(headerValue);
// auth url is https://www.googleapis.com/auth/calendar
req.setHeader('Authorization',authorizationHeader);
req.setHeader('Connection','keep-alive');
req.setHeader('Host','googleapis.com');
req.setHeader('Content-Type', 'application/Json');
req.setMethod('GET');
req.setbody('https://www.googleapis.com/auth/calendar?key=AIzaSyDaQK60dlM-7icVukY0sbaOHae9eLn3dKk');
//req.setbody(apikey);
req.setEndpoint('https://www.googleapis.com/calendar/v3/calendars/calendarId');
//req.setEndpoint('https://www.googleapis.com/calendar/v3/calendars/sreenath.sfdc@gmail.com/events/tea%20time?pp=1&key=AIzaSyDaQK60dlM-7icVukY0sbaOHae9eLn3dKk');
HttpResponse res = h.send(req);
system.debug('********'+res.getbody());
}


}

Hi Developers,

 

                         In multi-select picklist 25 values are there. In that 25 values, 10 values are different. In this 10 values when selecting only one value need to get an error to choose more than one value(when selected from this 10 values only need to get an error) remaining values need to allow as usual.

 

And in another case when selecting one value from 15 values & one value from this 10 values then need not throw an error.

 

This process need to be work, when one checkbox is checked.

 

 

Any help.....

 

Hi developers,

 

                      I need only to get 5,10,15 & 20 value of dates must be valid. other dates should not be valid in a date field for user entry.

 

eg: i can enter 2/5/2012, 2/10/2012, 2/15/2012, 2/20/2012 only.other dates should not be allowed

Hi developers,

 

                       How to do this type? I have a page & controller, to fetch records between two dates by user input & downloaded records in csv. User view need to be different. In an org. role based record creation & role based record need to be view

 

eg: Normal user can create today's date record.

      team lead of users can create today's & tomorrow records

 

viewing records:

    

            In role hierarchy , user can view only his records, teamlead can view group of user records of their team, admin can view all records

      

Hi developers,

 

                       I created a field in custom object with Number data type. But, I changed this field type from Number data type to Text type. But the value in that field displaying as a decimal value. how to resolve this value without decimal number.

Hi,

 

I want to disable the collapsible option for only one section of object. If i uncheck the enable collapsible from user interface. It will disable the collapsible for all sections. How can i disable the collapsible for only one section.  Remaining section want to collapsible. Please any one help me.

 

Thanks,

Sreenath.

Hi developers,

                          I am using visual workflow for showing lead conversion process based on lead values need to send as a parameter. How can we do this flow? Any help on this issue. 

 

 

 

 

 

 

Hi developers,

 

                        Here I didn't find any way to write a validation for enter only alphabets & no other symbols, numbers should not able to enter into the fields.

I tried different methods using OR(Contains(field_name__c, "/"),...........)

I think its not the proper way. getting errors when validating braces,dot,comma etc.

 

any suggestions please.

 

Thanks

Sreenath 

Hi Developers, I need a process related to lead conversion process in professional edition without using workflows. a. when a Lead is converted to a Account, the Account Type should be set to "Prospect". b. when the first opportunity is Won, the Account type should be set to "Customer". How can I achieve this..... Thanks In Advance for suggestions & help.

Hi All,

 

           I need salesforce help ballon image after inputtext field in visualforce page.

 

 

Thanks

Sreenath

Hi developers,

 

                     Need help regarding tabpanel tabs need to select when we given input name of the tab in inputtext of vfpage. I found this code in community & i modified slightly as per inputtext tag.

 

if i gave onetab in textfield then firsttab need to select

if i gave secondtab name in textfield the second tab need to select ...............so on.

page

--------

<apex:page controller="testTabController" sidebar="false" showheader="true">
 <p>tabInFocus: &lt;{!TabInFocus}&gt;</p> <apex:tabPanel switchType="client" value="{!TabInFocus}" id="testTabs">    <apex:tab label="onetab" name="oneTab" id="tab1" >   <p>This is number one</p>  </apex:tab>    <apex:tab label="twotab" name="twoTab" id="tab2" >   <p>This is number two</p>  </apex:tab>    <apex:tab label="threetab" name="threeTab" id="tab3" >   <p>This is number three</p>  </apex:tab>   </apex:tabPanel><apex:form> <apex:inputText value="{!name}">  <apex:actionSupport event="onchange" action="{!display1}"/>  </apex:inputText></apex:form></apex:page>

 

controller

--------------

public class testTabController { String inputValue = System.currentPageReference().getParameters().get('tab'); public string name{set;get;} public boolean display_form{set;get;} public boolean text2{set;get;} public String getinputValue() {  return inputValue; } public void setinputValue( String s1 ) {  this.inputValue = s1; } String tabInFocus = System.currentPageReference().getParameters().get('tab'); public String getTabInFocus() {  return tabInFocus; } public void setTabInFocus( String s ) {  this.tabInFocus = s; } public void display1(){text2=true;display_form=true;
}}

 

Hi developers, Can any one come across with this type of requirement, please guide me.... 1) Can we put a visualforce page in edit page of custom object or standard object in a separate section. 2) I don't need to show some fields in edit page, but display in detail page. How to set field visibility settings or another way to display. waiting for a appreciative response............... Thanks Sreenath

Hi,

 

           In professional edition, I want to display records of custom object related list of a contact, In a separate visualforce page. Is there any solution for this.

HI,

      I want to integrate salesforce & Aweber. I have sample Aweber account. I am getting bad error, 400  in my system log

passing url's, you can find here.

https://labs.aweber.com/docs/authentication

Please give me suggestions regarding connection between both accounts

 

 

 

public class Aweberoauth
{
public void invokeExternalWs()
{
Http h = new Http();
   HttpRequest req = new HttpRequest();
        final string username = 'aweber provided some keys as consumer'; 
        Blob headerValue = Blob.valueOf(username);
     String authorizationHeader = 'oauth' +EncodingUtil.base64Encode(headerValue);
     
     req.setHeader('Authorization',authorizationHeader);
      
     req.setHeader('Host','https://auth.aweber.com/1.0/oauth/request_token');
    req.setHeader('Connection','keep-alive');
    req.setHeader('Content-Type', 'application/atom+xml');
    req.setMethod('POST');
     
     HttpResponse res = h.send(req);
      system.debug(res.getbody());
}
}

 

Hi All,

 

It is in global class. testcoverage is 18% now. Here only first start method is under coverage. I have 7 methods in execute method.

 

 Webservice static void execute()
    {
    ScheduleJob_UpdateOpportunityInit.start();
    ScheduleJob_UpdateOpportunityInit.start2();
    ScheduleJob_UpdateOpportunityInit.start3();

}

 

@istest
private class Scheduledjob_test{
public static testMethod void Scheduledjobs()
{
Test.StartTest();
try{StartScheduledTasks.execute();     }
catch(Exception e7){System.debug('An Exception has Occured: '+e7);}
Test.stopTest();
}
}

 

 

need help...............Thanks in advance.

Hi developers,

                        how can we change the default Salesforce CRM UI.

defaultly some look and feel is observing in CRM but is possible to change as we customize some social networks themes. How can we? plz suggest options.

Hi developers,

                         It's really a challenge thinking....i want to hide child records & again i want to show the records in the relatedlist for a parent object. No relationship should be deleted for this scenario...

 

Any Idea from side it's helpful

 

Thanks

Sreenath

HI developers,

 

                      I need only one value from the set of values in an address field. This is standard field, how to split this value to get the required value.

 

 

Thanks

Sreenath

Hi developers,

                  I am getting 302, 401 & 404 status code errors from authentication to google api. what i am missing please help me 

                 

public class GoogleCalendar
{
public void detail()
{
Http h = new Http();
HttpRequest req = new HttpRequest();
final string username = 'sreenath.sfdc@gmail.com';
final string password = 'Password';
//final string apikey='AIzaSyDaQK60dlM-7icVukY0sbaOHae9eLn3dKk';
Blob headerValue = Blob.valueOf(username + ':' + password);
String authorizationHeader = 'BASIC ' +EncodingUtil.base64Encode(headerValue);
// auth url is https://www.googleapis.com/auth/calendar
req.setHeader('Authorization',authorizationHeader);
req.setHeader('Connection','keep-alive');
req.setHeader('Host','googleapis.com');
req.setHeader('Content-Type', 'application/Json');
req.setMethod('GET');
req.setbody('https://www.googleapis.com/auth/calendar?key=AIzaSyDaQK60dlM-7icVukY0sbaOHae9eLn3dKk');
//req.setbody(apikey);
req.setEndpoint('https://www.googleapis.com/calendar/v3/calendars/calendarId');
//req.setEndpoint('https://www.googleapis.com/calendar/v3/calendars/sreenath.sfdc@gmail.com/events/tea%20time?pp=1&key=AIzaSyDaQK60dlM-7icVukY0sbaOHae9eLn3dKk');
HttpResponse res = h.send(req);
system.debug('********'+res.getbody());
}


}

Hi Developers,

 

                         In multi-select picklist 25 values are there. In that 25 values, 10 values are different. In this 10 values when selecting only one value need to get an error to choose more than one value(when selected from this 10 values only need to get an error) remaining values need to allow as usual.

 

And in another case when selecting one value from 15 values & one value from this 10 values then need not throw an error.

 

This process need to be work, when one checkbox is checked.

 

 

Any help.....

 

Hi developers,

 

                      I need only to get 5,10,15 & 20 value of dates must be valid. other dates should not be valid in a date field for user entry.

 

eg: i can enter 2/5/2012, 2/10/2012, 2/15/2012, 2/20/2012 only.other dates should not be allowed

Hi developers,

 

                       I created a field in custom object with Number data type. But, I changed this field type from Number data type to Text type. But the value in that field displaying as a decimal value. how to resolve this value without decimal number.

 

Hello Board,

 

I have created  tab for custom object Job__c, which is overidden by VF page.

 

The overrided page show Job information in <apex:Tabpanel>

 

The first tab in tabpanel is used to display Job detail information.

 

The other tabs are used to display related list for that Job.

 

The tabpanel is structure is like this:

 

<apex:page>
<apex:form>
<apex:tapanel>
<apex:tab label="Detail">
<apex:detail/>
</apex:tab>

<apex:tab label="Related List 1">
<apex:relatedList subject="{!Job__c}" list="Job_Specs__r"/> 
</apex:tab>

<apex:tab label="Related List 1">
<apex:include pageName="VF_page1"/> 
</apex:tab>
</apex:tabpanel>
</apex:form>
</apex:page>

 

I want to switch on-off these tabs based on User requirement. Is there any way to do this?

As, these tabs are from displayed using visualforce page Tabpanel.

 

Thanks,
Devendra

 

 

Hi developers,

                          I am using visual workflow for showing lead conversion process based on lead values need to send as a parameter. How can we do this flow? Any help on this issue. 

 

 

 

 

 

 

Hi developers,

 

                        Here I didn't find any way to write a validation for enter only alphabets & no other symbols, numbers should not able to enter into the fields.

I tried different methods using OR(Contains(field_name__c, "/"),...........)

I think its not the proper way. getting errors when validating braces,dot,comma etc.

 

any suggestions please.

 

Thanks

Sreenath 

Hi Developers, I need a process related to lead conversion process in professional edition without using workflows. a. when a Lead is converted to a Account, the Account Type should be set to "Prospect". b. when the first opportunity is Won, the Account type should be set to "Customer". How can I achieve this..... Thanks In Advance for suggestions & help.

Hi developers,

 

                     Need help regarding tabpanel tabs need to select when we given input name of the tab in inputtext of vfpage. I found this code in community & i modified slightly as per inputtext tag.

 

if i gave onetab in textfield then firsttab need to select

if i gave secondtab name in textfield the second tab need to select ...............so on.

page

--------

<apex:page controller="testTabController" sidebar="false" showheader="true">
 <p>tabInFocus: &lt;{!TabInFocus}&gt;</p> <apex:tabPanel switchType="client" value="{!TabInFocus}" id="testTabs">    <apex:tab label="onetab" name="oneTab" id="tab1" >   <p>This is number one</p>  </apex:tab>    <apex:tab label="twotab" name="twoTab" id="tab2" >   <p>This is number two</p>  </apex:tab>    <apex:tab label="threetab" name="threeTab" id="tab3" >   <p>This is number three</p>  </apex:tab>   </apex:tabPanel><apex:form> <apex:inputText value="{!name}">  <apex:actionSupport event="onchange" action="{!display1}"/>  </apex:inputText></apex:form></apex:page>

 

controller

--------------

public class testTabController { String inputValue = System.currentPageReference().getParameters().get('tab'); public string name{set;get;} public boolean display_form{set;get;} public boolean text2{set;get;} public String getinputValue() {  return inputValue; } public void setinputValue( String s1 ) {  this.inputValue = s1; } String tabInFocus = System.currentPageReference().getParameters().get('tab'); public String getTabInFocus() {  return tabInFocus; } public void setTabInFocus( String s ) {  this.tabInFocus = s; } public void display1(){text2=true;display_form=true;
}}

 

Hi,

 

I have few questions:

 

Is it possible to display the reports and dashboards in the visualforce page? If yes, can anybody provide me with some refernce.

 

Is it possible to mail the Reports and dashboards?  If yes, then who can be the reciepients. Is it only the salesforce users present in the org. or can we provide any email address?

 

How can we show reports and dashboards in a section of an objects page layout or in the related lists of the object?

 

Thanks.

On my VF page, when I leave a must-field empty, it nicely displays the error message next to the field which throws that error.

 

I have a few fields which have a validation rule defined. If the validationrule fails, it does not show the error next to my VF input field.

 

This is how I treat my errors:

 

In the controller:

try{

    upsert contact;
	            
} catch (Exception e){
     ApexPages.addMessages(e);
}
        	

 At the moment, this error can only be displayed when I use a <apex:pageMessages /> tag.

 

But I really need to display the error messages at field level.

 

 

Hi All,

 

I have a requirement that i have to run a report from a visual force page.

I am presently hard coding the report id in the URL.

Can anyone suggest me how to avoid the hard coding and query for the report id.

 

Regards,

Anil