how to pass the record in read only grid through the record type?

i have created record for time sheet ,

but now i need to create read only grid and  show the details over their ??

  Discussion posts and replies are publicly visible

Parents
  • You have to reference the record type in the "data" parameter and then reference each field using a record type field reference in your columns. For instance, your expression could look something like this:

    a!gridField(
      label: "Read-Only Grid",
      labelPosition: "ABOVE",
      data: recordType!Timesheet,
      columns: {
        a!gridColumn(
          label: "Employer Name",
          sortField: recordType!Timesheet.fields.employerName,
          value: a!linkField(
            links: a!recordLink(
              label: fv!row[recordType!Timesheet.fields.employerName],
              recordType: recordType!Timesheet,
              identifier: fv!row[recordType!Timesheet.fields.employeeId]
            )
          )
        )
      }
    )

Reply
  • You have to reference the record type in the "data" parameter and then reference each field using a record type field reference in your columns. For instance, your expression could look something like this:

    a!gridField(
      label: "Read-Only Grid",
      labelPosition: "ABOVE",
      data: recordType!Timesheet,
      columns: {
        a!gridColumn(
          label: "Employer Name",
          sortField: recordType!Timesheet.fields.employerName,
          value: a!linkField(
            links: a!recordLink(
              label: fv!row[recordType!Timesheet.fields.employerName],
              recordType: recordType!Timesheet,
              identifier: fv!row[recordType!Timesheet.fields.employeeId]
            )
          )
        )
      }
    )

Children