function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sangeeta BhatiaSangeeta Bhatia 

How to set value of a variable from the value of a field from opened record

Hi All I am very new to Apex and VF code.I am new to VF. I have a custom object called 'Installed Base' with a field called parent IB. I want that when someone opens an Install Base record, all the siblings should be displayed, meaning records where parent IB value is the same should be listed out/displayed.I have  VF page displayed via a custom button. I am not a coder but able to write a VF page and display it as button on record layout. Able to display the record values from the record that is open but not able to filter out the list to show only the records where the parent field value is same as the record opened. I just need a little help with how to set the varaible to use the value of the parent field from the record opened and how to add that to my query filter.