• Kunal Bindal
  • NEWBIE
  • 0 Points
  • Member since 2014
  • Senior Developer
  • Extentor Tquila


  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 7
    Replies
i have a vf page on a custom object , and in the vf page i have a custom button so let me know that on click of button how can i recognize that the page is open in system(desktop or laptop) or this is in mobile salesforce 1 app,, so how can i find out
Hi all
Variable does not exist: Student__c.class__r
this error has occur in my trigger please tell me what is problem
here is my trigger


trigger copyying on class__c (after insert)
{
    List<Student__c> parentObjList = new List<Student__c>();
    List<Id> listIds = new List<Id>();
    for (class__c childObj : Trigger.new) 
    {  
        listIds.add(childObj.Student__c);
    }

    parentObjList = [SELECT id,Name,(SELECT ID, Roll_No__c FROM class__r) FROM Student__c WHERE ID IN :listIds];

    for (Student__c opp : parentObjList)
    {
        for (class__c quote: Student__c.class__r)
        {
            opp.Roll_No__c = quote.Roll_No__c;
        }
    update parentObjectList;
     }
}    
thanks 
Deoo   
Hi,

We have a link called 'Help' on Visualforce page, which is created by Javascript.
<li><a href="{!$Page.MyWSEHelp}" title="Help">Help</a></li>

Now, we have a requirment where this link 'Help' should be hidden from the page for te users who log in with Profile X. How can I make it Hidden in this case. Please help thank You. 
 
Hi All

Can u describe how to deploy from eclipse to developer org.
I have export backup file from sandbox and saved in my local system.i want to delpoy that back up in my developer org.

i has import that file and go to force.com -->deploy to server but its throwing error like

File Name:    objects/Account.object
   Full Name:  Account.PersonTitle
   Action:  NO ACTION
   Result:  FAILED
   Problem: Could not resolve standard field's name.

 File Name:    objects/Point_of_Contacts__c.object
   Full Name:  Point_of_Contacts__c.Phone_formula__c
   Action:  NO ACTION
   Result:  FAILED
   Problem: Field PersonMobilePhone does not exist. Check spelling.

   File Name:    objects/SocialPersona.object
   Full Name:  SocialPersona
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid fullName, must end in a custom suffix ( for ex. __c )

 File Name:    objects/Transaction__c.object
   Full Name:  Transaction__c.New_Loan_From_Cheque
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: page - no ApexPage named New_Transaction_CHQ_page found

can any describe deeply how to resolve this in healthy way....





 
Hi 

I am attempting to write a Test Class for a trigger I wrote.  However, I keep getting the following errors, "TriggerTest2.validateUpdateBedspaceWithNewNomTen(), Details: System.QueryException: List has no rows for assignment to SObject Class.TriggerTest2.validateUpdateBedspaceWithNewNomTen: line 6, column 1" and  "System.QueryException: List has no rows for assignment to SObject
Stack Trace: Class.TriggerTest2.validateUpdateBedspaceWithNewNomTen: line 6, column 1".  Can anyone help me to figure out where I've gone wrong?

@isTest
Private class TriggerTest2 {
   
    static testMethod void validateUpdateBedspaceWithNewNomTen() {
     
      String rtBed = [SELECT Id FROM RecordType WHERE DeveloperName = 'Bedspace' AND SobjectType = 'Bedspace__c' LIMIT 1].Id;
      Bedspace__c ref = new Bedspace__c(Scheme__c = 'a052000000Hcpg2', RecordTypeId = rtBed); 
    insert ref;
     
      ref = [SELECT Id, Current_nomination_tenancy__c FROM Bedspace__c WHERE Id =:ref.Id];
     
      String rtNom = [SELECT Id FROM RecordType WHERE DeveloperName = 'Nomination_Tenancy' AND SobjectType = 'Nomination_Tenancy__c' LIMIT 1].Id;
      Nomination_Tenancy__c ra = new Nomination_Tenancy__c(Bedspace__c = ref.Id, Client__c = 'a052000000Hcpg2', RecordTypeId = rtNom); 
    insert ra;
   
    ref = [SELECT Id, Current_nomination_tenancy__c FROM Bedspace__c WHERE Id =:ref.Id];
   
    System.assertEquals(ref.Current_nomination_tenancy__c, ra.Id);
    } 

}

Many Thanks,

Mike