This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Get properties of an existing object in another metadata card

Hi everybody. I need some help please.
I have an object in my metadata card, and I would like to get the properties of this object.
How could I do this?

I will give an example. I have a class called "Invoice". I have some properties in the "invoice" class: number, date, amount and creator.
"Creator" is an object with the name, the ID, and the cell phone of an employee.
How could I please get the creator info in the invoice metadata card?
I hope it's clear enough. Thanks for your help!

Parents
  • In an M-Files view of the world you typically would not do this. If you need to view the creator details then you would click on the object in the invoice metadata card and view it separately.

    I concede that this is not what users want sometimes, though.

    You have a couple of options:

    1. You "copy" values from the creator across to the invoice. You could create dummy properties ("Creator cell phone") and use the "simple concatenation of property values" to populate the value from the related object. The problem with this "copy" is maintaining it, though: if the cell phone number changes then the invoice will only be updated if it's modified; the value isn't "live".

    2. You write a user interface extension ("UIX") that adds a separate/new tab which is shown when an invoice is selected. This tab could be programmed to display data from the invoice and creator directly. Unfortunately this is not a small amount of code, so it unrealistic for installations that do not have access to software development resources.

    Regards,

    Craig.
Reply
  • In an M-Files view of the world you typically would not do this. If you need to view the creator details then you would click on the object in the invoice metadata card and view it separately.

    I concede that this is not what users want sometimes, though.

    You have a couple of options:

    1. You "copy" values from the creator across to the invoice. You could create dummy properties ("Creator cell phone") and use the "simple concatenation of property values" to populate the value from the related object. The problem with this "copy" is maintaining it, though: if the cell phone number changes then the invoice will only be updated if it's modified; the value isn't "live".

    2. You write a user interface extension ("UIX") that adds a separate/new tab which is shown when an invoice is selected. This tab could be programmed to display data from the invoice and creator directly. Unfortunately this is not a small amount of code, so it unrealistic for installations that do not have access to software development resources.

    Regards,

    Craig.
Children
No Data