You need to sign in to do that
Don't have an account?
Manoprabha Palpandian
If it is correct or not any one help me
public void editfunction() {
system.debug('editfunction inside===>'+editid);
reg1=[SELECT Id,Name, FirstName__c, LastName__c, Email__c, (SELECT Id,Name, Check_In_Date__c, Check_Out_Date__c, Hotel_Commands__c FROM Hotels__r),
(SELECT Id,Name, Arrival__c, Departure__c, Air_Commands__c FROM AirTravels__r)
FROM Registration1__c where id=:editid];
hotel.get('id');
air.get('id');
}
how to get a child record values
system.debug('editfunction inside===>'+editid);
reg1=[SELECT Id,Name, FirstName__c, LastName__c, Email__c, (SELECT Id,Name, Check_In_Date__c, Check_Out_Date__c, Hotel_Commands__c FROM Hotels__r),
(SELECT Id,Name, Arrival__c, Departure__c, Air_Commands__c FROM AirTravels__r)
FROM Registration1__c where id=:editid];
hotel.get('id');
air.get('id');
}
how to get a child record values
try folowing code.
Above code is just a way to getting child records. In this way I simply add child records value into set. you can set it into map as well or whatever you want.
let me know if it helps you and marking it as best answer.
Thank you
try following code.
let me know if it helps you and marking it as best answer.
Thank you
try below query in queryEditor and checked records are comming there.
In Where Condition You replace your editid with current recordId and then check. If record is coming then make sure in code editid is not empty. you have to debug above loop or you can make sure in queryEditor that whatever recordId you are passing through editid, the record is coming or not.
let me know what is your status and if your problam has solved then mark it as best answer.
Thank you