• Raja236
  • NEWBIE
  • 145 Points
  • Member since 2013

  • Chatter
    Feed
  • 5
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 13
    Questions
  • 26
    Replies
Hello,

How is it possible to know the person who deleted the Tab.

Thanks
  • October 12, 2015
  • Like
  • 0
I'm using jquery ui tabs on my Visualforce page. Below is the code:
 
<div id="tabs" clas="ui-tabs ui-widget ui-widget-content ui-corner-all">
        <div>
            <ul class="nav nav-tabs">
                <li class="active">
                    <a href="#tab1" style="text-decoration:none; font-weight: 700; color:black">TAB_A</a>
                </li>
                <li>
                    <a href="#tab2" style="text-decoration:none; font-weight: 700;color:black">TAB_B</a>
                </li>
                <li>
                    <a href="#tab3" style="text-decoration:none; font-weight: 700;color:black">TAB_C</a>
                </li>
                <li>
                    <a href="#tab4" style="text-decoration:none; font-weight: 700;color:black">TAB_D</a>
                </li>
                <li>
                    <a href="#tab5" style="text-decoration:none; font-weight: 700;color:black">TAB_E</a>
                </li>
            </ul>   
        </div>
I have defined each tab as below:
 
        <section id="tab1" class="tab-content active">
            <div style="padding:12px;border-right: 1px solid #C0C0C0 !important;border-left: 1px solid #C0C0C0       !important;border-bottom: 1px solid #C0C0C0 !important;">
                Content in tab 1
            </div>
        </section>

In TAB_B tab, i have a radio buttons field "Are you sure" with vaues "Yes" or "No". Upon clicking on save, i'm saving this selected value to a checkbox field "proceed__c" on to the record. If it is Yes, then check box is checked on record. And if it is No, checkbox is unchecked on record.

Now depending on the value available on the checkbox for a record, i need to enable next tab i.e., TAB_C. If the checkbox is checked on the record, i need to enable TAB_C. If it is unchecked, then even if user clicks on TAB_C, nothing should happen.

Please help to code this.
I have a custom controller on a custom object and I am trying to write a test class. However, when I try to save the test class, I get the error:

Compile Error: Method does not exist or incorrect signature: [Deal_Summary__c].add(Deal_Summary__c) at line 39 column 9

Does anyone know how I can fix this?

Controller:
Public class DSReviewController {
    public Deal_Summary__c myDS;
    public DSReviewController(ApexPages.StandardController stdController){
        this.myDS = (Deal_Summary__c)stdController.getRecord();
    }
    public void review() {
        myDS.Manager_Review__c = TRUE; 
        update myDS;
    }
}
Test Class:
@Istest
private class TestDealSummController2
{
    static testMethod void testMyController1()
    {    
        Account acct1 = TestCreateRecords.createAcct(0);
        insert acct1;
    
        Opportunity opp1 = TestCreateRecords.createOppNew(acct1.Id);
        insert opp1;
      
        Deal_Summary__c DS1 = new Deal_Summary__c();
            DS1.Opportunity__c = opp1.Id;
            DS1.Publisher_s_Legal_Name__c = opp1.AccountId;
            DS1.Agreement_Effective_Date__c = date.newinstance(2025,1,31);
            DS1.Net_Payment_Term_Days__c = 60;

        ApexPages.StandardController DealSumm1 = new ApexPages.standardController(opp1);
        DSReviewController DealSummCont1 = new DSReviewController(DealSumm1);
        DealSummCont1.myDS.add(DS1);
        DealSummCont1.save();
    }
}


 

Hi,

Salesforce has a standard Icon for Case(Briefcase symbol). How will I access it in my Visualforce page?

 

I tried to inspect the Case Icon element and ended up with this:

<img src="/s.gif" alt="Case" class="pageTitleIcon" title="Case">

But when I use this I get different Icon not the briefcase which I want.

 

NOTE: I want to use the standard salesforce URL to access the Icon and don't want to store in Static Resources.

 

Any help or pointers in this regards are highlu appreciated.

Many Thanks :)

Hi,

I am unable to find any lightening component tabs in SF1 in DE , the existing ones also not visible now.


Thanks
Hi All,

 while i am using remote objects i am facing that i am unable to related fields information while retrieving such Owner.Name or some lookup__r.Name.

Please let me know weather it is known issue or am i doing some thing wrong here.

Thanks in advance

Raj
Hi,

How can we create flexi pages for Task/Events List views.

Thanks
Raja
Hello,

When i was trying with Formula in criteria for pick list, used Text function(as doing  normal WF rule), i am getting the following error.
Syntax : CONTAINS ( TEXT (  [Account].TestLightening8__Active__c ), "Yes")

Error: The formula expression is invalid: Incorrect parameter type for function 'TEXT()'. Expected Number, Date, DateTime, Picklist, received Text

Please let me know the correct syntax use to avoid the error

Thanks
Raja



 
Hi All,

I am facing one issue with lightening components, when i am working with lightening app look and feel is good
User-added image
if i added form component to Tab trying with SF1 simulator look and feel changing,
User-added image
Do we required to do additional customization to compact with SF1

Thanks 
Raja
Hi,

Currently we are working on cases, created queues and assingned users. One of the user from that queue is created a case, but after creating case we are getting following message instead of redircting to the list view or list of records

The case has been successfully saved and assigned to the appropriate user or queue according to the active assignment rules. you no longer have access view or edit the case.

please let me know any possible solution for this.

Thanks
Raj


 
Hi,

I am facing issue like, when am deleting record i need to get the warning pop up, that i am getting but along with that   URL like
'the page at https://c.cs18.visual.force.com says ' and next line warning message.

This issue i am facing firefox and Chrome not in IE

Please help me to resolve this issue.

Thanks
Raja
Hi,

we are planning to implement person account in our application, but before that  i want some real time advantages and disadvantages for Person Account/Account Contact relationships.


Thanks
Raja

HI,

 

Am facing the fallowing error while configuaring my aplication with heroku

 

Unknown propagation checking error: Bad Request: error=redirect_uri_mismatch&error_description=redirect_uri%20must%20match%20configuration

 

call back uri: https://radiant-sierra-3563.herokuapp.com/_auth

 


please suggest on above .

 

Hi,

 

Why SalesForce is  not providing error while we create other custom object with same Standard Object name

 

Thanks and Regards

Raja

Hi,

 

For Example i have code with multiple select options. if i select one options other would be disabled. please let me know how can i write this type of functionality in Apex code.

 

Thanks and Regards

Raja

Hi,

 

I  have one requirement that one custom field has has multiple values,when i select other value text box should be displayed

User enters the value in text box , while searching i found some solutions with formula fields , its not working

 

Please suggest

 

Thanks Regards

Raja

Hi,

 

am recently installing Force.com platform to Eclipse Helios 3.6 , getting instalation error as below

An error occurred while collecting items to be installed
session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Problems downloading artifact: osgi.bundle,com.salesforce.ide,28.0.1.201309101331.
MD5 hash is not as expected. Expected: 5fc867b480a95c996f042dc4954181b6 and found b14985d88c9dcc5378383dcf2bad22b7.
Problems downloading artifact: osgi.bundle,com.salesforce.ide.deployment,28.0.1.201309101331.
MD5 hash is not as expected. Expected: 8e92bfd537c5247cd12f2d34e0432120 and found 27f91dae3aa520fcaba218dad6e2ab84.
Unable to read repository at http://adnsandbox.com/tools/ide/install/plugins/com.salesforce.ide.documentation_28.0.0.201309101331.jar.
Read timed out

 Please suggest

 

Thanks Regards

Raja

 

Hi All,

I am facing one issue with lightening components, when i am working with lightening app look and feel is good
User-added image
if i added form component to Tab trying with SF1 simulator look and feel changing,
User-added image
Do we required to do additional customization to compact with SF1

Thanks 
Raja
Hi,

I am working on the ui framework and i also start work on the SLDS Framework , so what is best way for learning this ??? 

Thanks
Deny
Hello,

How is it possible to know the person who deleted the Tab.

Thanks
  • October 12, 2015
  • Like
  • 0
Hi all. Learning Apex here. Refere to code and question below:

Code:
public class myClass {
   static final Integer PRIVATE_INT_CONST;
   static final Integer PRIVATE_INT_CONST2 = 200;
   public static Integer calculate () {
          return 2 + PRIVATE_INT_CONST2;
   }
   static {
         PRIVATE_INT_CONST = calculate ();
   }

}

Trying to get this code [ see code below] to (run in Execute Anonymous and ) return what I think should be '202'.  At first I tried to run this code and added System.debug (PRIVATE_INT_CONST); and the error was that only top level class variables can be declared static. [ What is a top level class? Is this just an outer classs?] So I created the class as a new class. Now that the class is created, it seems that it is reconizing it. So I simply entered System.debug(myClass.PRIVATE_INT_CONST); in the Execute Anonymous window and the error is that the variable is not visible. Can anyone help me correct the code so that it will run? What am I doing wrong? Thanks! 

 
Hi all,
Here my requirement is i want to update account field from opportunity object,
Account is having picklist field (status__C) and values are Prospect, Customer, Dormant, New Landing.
 
Criterias# A:
1. On 10/Oct/2015: A New Oppty is Created, Oppty Stages != Closed
--> Acc.SW_Status__c = Prospect
(Ref: Oppty "CreatedDate" Date)

2. After 31 Days for still it is not closed,  lets say 11/Nov/2015 for other Oppty Stages != Closed
--> Acc.SW_Status__c = Customer
(Ref: Oppty "CreatedDate" Date)

3. After 24 Months for same Oppty (#2), lets say 12/Nov/2017 and Oppty Stages != Closed
--> Acc.SW_Status__c = Dormant
(Ref: Oppty "Customer" LOV Date)
and my second criteria is 
riterias# B:
4. On 25/Oct/2015, I changed manually the Oppty Stages == Closed,
--> Acc.SW_Status__c = New Landing
(Ref: Oppty "ClosedDate" Date)

5. After 24 Months for same Oppty (#4), lets say 26/Oct/2017 and Oppty Stages == Closed
--> Acc.SW_Status__c = Dormant
(Ref: Oppty "New Landing" Date)

Criterias# C:
6. After 24 Months for same Oppty (#1), lets say 11/Oct/2017 and Oppty Stages != Closed
PS: Here we are NOT changing anything on this Oppty.
--> Acc.SW_Status__c = Dormant
(Ref: Oppty "CreatedDate" Date)

Here i am not able to process..
So kindly please help me,. 

Thanks in Advance 
Anji

 

Hi Expers,

There is object called Triio Project (Master) in this object there is field called Type(Type__c) if this Type='Replacement'  then follwing profiles cannot edit the Work Order Number((Works_Order_Number__c) field which is there in the child object called  Triio Work Order(tRIIO_Works_Order__c) either creation or editing time, if they trying to do that error message should display (Work Order Number can't be amended. Please contact your Administrator).
these are the profiles.
Ferns Sub reinstator (UKPN, NG)
H&S Administration
NGA Commercial
NGA Op & MRS Op & PO Approval
NGA Operational
NGA Sub Reinstator
Sub Reinstator (EDF, NG)
tRIIO Commercial
tRIIO Operational
tRIIO Planners/Schedulers
tRIIO POS and Company
tRIIO POS Only
tRIIO Purchasing
tRIIO Sub Reinstator Admin
Hi all,
Here i want to display the date  in different format,
When i enterd the date, then automatically it could display like this 
October 10, 2015 

Thanks and Regards,
Anji reddy K
 
I'm using jquery ui tabs on my Visualforce page. Below is the code:
 
<div id="tabs" clas="ui-tabs ui-widget ui-widget-content ui-corner-all">
        <div>
            <ul class="nav nav-tabs">
                <li class="active">
                    <a href="#tab1" style="text-decoration:none; font-weight: 700; color:black">TAB_A</a>
                </li>
                <li>
                    <a href="#tab2" style="text-decoration:none; font-weight: 700;color:black">TAB_B</a>
                </li>
                <li>
                    <a href="#tab3" style="text-decoration:none; font-weight: 700;color:black">TAB_C</a>
                </li>
                <li>
                    <a href="#tab4" style="text-decoration:none; font-weight: 700;color:black">TAB_D</a>
                </li>
                <li>
                    <a href="#tab5" style="text-decoration:none; font-weight: 700;color:black">TAB_E</a>
                </li>
            </ul>   
        </div>
I have defined each tab as below:
 
        <section id="tab1" class="tab-content active">
            <div style="padding:12px;border-right: 1px solid #C0C0C0 !important;border-left: 1px solid #C0C0C0       !important;border-bottom: 1px solid #C0C0C0 !important;">
                Content in tab 1
            </div>
        </section>

In TAB_B tab, i have a radio buttons field "Are you sure" with vaues "Yes" or "No". Upon clicking on save, i'm saving this selected value to a checkbox field "proceed__c" on to the record. If it is Yes, then check box is checked on record. And if it is No, checkbox is unchecked on record.

Now depending on the value available on the checkbox for a record, i need to enable next tab i.e., TAB_C. If the checkbox is checked on the record, i need to enable TAB_C. If it is unchecked, then even if user clicks on TAB_C, nothing should happen.

Please help to code this.
Hi Everyone,

I have a requirement that is there is two objects ObjX,ObjY but no relation between objects ,My requirement is to update a amount field value in objX with Cash field value in ObjY,

ObjX                           ObjY

amount__c                Cash__c

Please suggest me how to write only batch class not trigger .
I have a custom controller on a custom object and I am trying to write a test class. However, when I try to save the test class, I get the error:

Compile Error: Method does not exist or incorrect signature: [Deal_Summary__c].add(Deal_Summary__c) at line 39 column 9

Does anyone know how I can fix this?

Controller:
Public class DSReviewController {
    public Deal_Summary__c myDS;
    public DSReviewController(ApexPages.StandardController stdController){
        this.myDS = (Deal_Summary__c)stdController.getRecord();
    }
    public void review() {
        myDS.Manager_Review__c = TRUE; 
        update myDS;
    }
}
Test Class:
@Istest
private class TestDealSummController2
{
    static testMethod void testMyController1()
    {    
        Account acct1 = TestCreateRecords.createAcct(0);
        insert acct1;
    
        Opportunity opp1 = TestCreateRecords.createOppNew(acct1.Id);
        insert opp1;
      
        Deal_Summary__c DS1 = new Deal_Summary__c();
            DS1.Opportunity__c = opp1.Id;
            DS1.Publisher_s_Legal_Name__c = opp1.AccountId;
            DS1.Agreement_Effective_Date__c = date.newinstance(2025,1,31);
            DS1.Net_Payment_Term_Days__c = 60;

        ApexPages.StandardController DealSumm1 = new ApexPages.standardController(opp1);
        DSReviewController DealSummCont1 = new DSReviewController(DealSumm1);
        DealSummCont1.myDS.add(DS1);
        DealSummCont1.save();
    }
}


 

Hi team,

I am sharing  snapshot of front and my apex class, visualforce page.

1.If i select checkbox and a value from picklist and click on save button i want to display the value of picklist in alertbox.
2.I have 2 pageblocksections, in that if the picklist values of 2 sections are Yes and corresponding checkbox is checked,i wantt a confirm dialog box saying do you want to proceed.

I dont want to make use of controller for adding logic to save button.

Thanks in advance. please help me out as i m learning i need some guidance in this to get good knowledge on javascript.


frontend of what i hav developed.

*************************************Apex class******************************************************

public class Movietable{


public List<Movie__c> mt{get;set;}
public List<Movie__c> mt1{get;set;}
public boolean b{get;set;}
public Movietable(ApexPages.standardController stdController) {

 mt=[select id, Values__c,select__c,Cinemas__c from Movie__c];
 mt1=[select id, Values__c,select__c,Cinemas__c from Movie__c where Cinemas__c='Bhajrangi Bhai jan'];


 for ( Movie__c mves : mt) {
  if(mves.Cinemas__c=='Bahubali')
  {
   system.debug('hello' +mves.Cinemas__c);
  }
 
  }
  
  for ( Movie__c mves : mt1) {
  if(mves.Cinemas__c=='Bhajrangi Bhai jan')
  {
   system.debug('hello1' +mves.Cinemas__c);
  }
 
  }

  
}
public PageReference save() { 
return null;
}

}



 

<apex:page standardController="Movie__c" extensions="Movietable" id="p">
  <apex:form id="f">
      <apex:pageBlock title="Movie Table" id="pageblock" >
          <apex:commandButton action="{!save}" id="cb"  value="Save" onclick="ss();"/>
      </apex:pageBlock>
     <apex:pageBlock id="pb1">
      <apex:pageBlockSection id="pbs" title="1st group" collapsible="false">
        <apex:dataTable id="dt" value="{!mt}" var="mlist" cellpadding="5" cellspacing="0"  width="100%">
        <apex:column id="c">
                 <apex:facet name="header"><center>Select to ADD</center></apex:facet>        
                 <apex:inputCheckbox value="{!mlist.select__c}" id="checkbox" > </apex:inputCheckbox>
                 </apex:column>          
       <apex:column >
                 <apex:facet name="header"><center>Select value</center></apex:facet>        
                 <apex:inputField id="markForTermCheckbox1" value="{!mlist.Values__c}" />
          </apex:column>

        </apex:dataTable>     
      </apex:pageBlockSection>   
      
      
       <apex:pageBlockSection id="pbs1" title="2nd group" collapsible="false">
        <apex:dataTable id="dt" value="{!mt1}" var="mlist" cellpadding="5" cellspacing="0"  width="100%">
        <apex:column >
                 <apex:facet name="header"><center>Select to ADD</center></apex:facet>        
                 <apex:inputCheckbox value="{!mlist.select__c}" id="checkbox1" > </apex:inputCheckbox>
                 </apex:column>          
       <apex:column >
                 <apex:facet name="header"><center>Select value</center></apex:facet>        
                 <apex:inputField id="markForTermCheckbox2" value="{!mlist.Values__c}" />
          </apex:column>

        </apex:dataTable>     
      </apex:pageBlockSection> 
      
      
        
     </apex:pageBlock> 
     
     <script>
     
     function ss(){
     
     alert("hi");
     var chk=document.getElementById('{!$Component.checkbox}');
     var val=document.getElementById('{!$Component.markForTermCheckbox1}');
     alert("val" +val);
     alert("cvdgjhd" +chk);
     if(chk.value==true && val=='Yes')
     alert("chk" +chk.value);

     var a=document.getElementById('{!$Component.p.f.pageblock}').cb;
     alert("a" +a);
     
     }
     
     
     </script>
     
     
     
     
      </apex:form>
  
</apex:page>
 




 


 


 

Hello,

When i was trying with Formula in criteria for pick list, used Text function(as doing  normal WF rule), i am getting the following error.
Syntax : CONTAINS ( TEXT (  [Account].TestLightening8__Active__c ), "Yes")

Error: The formula expression is invalid: Incorrect parameter type for function 'TEXT()'. Expected Number, Date, DateTime, Picklist, received Text

Please let me know the correct syntax use to avoid the error

Thanks
Raja



 
Hi,

Currently we are working on cases, created queues and assingned users. One of the user from that queue is created a case, but after creating case we are getting following message instead of redircting to the list view or list of records

The case has been successfully saved and assigned to the appropriate user or queue according to the active assignment rules. you no longer have access view or edit the case.

please let me know any possible solution for this.

Thanks
Raj


 
Hi,

I am facing issue like, when am deleting record i need to get the warning pop up, that i am getting but along with that   URL like
'the page at https://c.cs18.visual.force.com says ' and next line warning message.

This issue i am facing firefox and Chrome not in IE

Please help me to resolve this issue.

Thanks
Raja