• Raja236
  • NEWBIE
  • 145 Points
  • Member since 2013

  • Chatter
    Feed
  • 5
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 13
    Questions
  • 26
    Replies
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
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