add colum

Hello,

I have this problem, I need to show a column in my search grid, but this column is in a relationship

I can do this?

Parents
  • Hi Eduardo,

    Yes, it is possible to link a relationship property to the search grid, however you will need to specify which relationship line you want to pull (do you want to pull the first row, last row, or something in the middle?).

    Here's an example: I made a property on Part called "_reltest" and made it a federated datatype. Then I made the below server method to pull the Actual property off of Part Goals, and set the Part server event to OnAfterGet. Also, in this example, the relationship I am pulling from is a Null Relationship, but I included code below that if you have a normal relationship as well.

    Let us know if you have any further questions.

    - Sam Poe

    Gist Link

Reply
  • Hi Eduardo,

    Yes, it is possible to link a relationship property to the search grid, however you will need to specify which relationship line you want to pull (do you want to pull the first row, last row, or something in the middle?).

    Here's an example: I made a property on Part called "_reltest" and made it a federated datatype. Then I made the below server method to pull the Actual property off of Part Goals, and set the Part server event to OnAfterGet. Also, in this example, the relationship I am pulling from is a Null Relationship, but I included code below that if you have a normal relationship as well.

    Let us know if you have any further questions.

    - Sam Poe

    Gist Link

Children