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

Metadata card configuration: Inserting properties based on value list

Is it possible to configure the metadata card so, that when user chooses certain value from value list, spesific set of properties appear into metadata card?
For example user chooses supplier instead of customer, supplier bank account information would appear. And vice versa when user chooses customer, the bank account information does not appear.
I have gone through the metadata card configuration material and I couldn't find anything regarding this.
If this is possible, could someone post an example code.

Thanks.
Parents
  • Hi

    It is definitely possible. Unfortunately, I think you have to use the list value's GUID (it seems to only work when I've done this). You can find this out by exporting the value list and it's content, and opening up the VLI_Content.xml file.

    I have this working for one of my classes like below. Product Type is the value list, and if value "Software" is selected, it brings up an additional property to enter information into (in this case, a list of available software to choose from).

    Rule condition:
    {
    "Properties": {
    "PropertyDefs.ProductType": "47A2361C-0E1B-4FDC-BE89-3554C48BDFB3"
    }
    }


    Rule behaviour:
    {
    "Properties": {
    "PropertyDefs.Software": {
    "IsAdditional": true,
    "IsRequired": true
    }
    }
    }
Reply
  • Hi

    It is definitely possible. Unfortunately, I think you have to use the list value's GUID (it seems to only work when I've done this). You can find this out by exporting the value list and it's content, and opening up the VLI_Content.xml file.

    I have this working for one of my classes like below. Product Type is the value list, and if value "Software" is selected, it brings up an additional property to enter information into (in this case, a list of available software to choose from).

    Rule condition:
    {
    "Properties": {
    "PropertyDefs.ProductType": "47A2361C-0E1B-4FDC-BE89-3554C48BDFB3"
    }
    }


    Rule behaviour:
    {
    "Properties": {
    "PropertyDefs.Software": {
    "IsAdditional": true,
    "IsRequired": true
    }
    }
    }
Children
No Data