Reltio Connect

 View Only
  • 1.  Relation Ship Mandatory for an entity

    Posted 12-20-2023 07:22

    Hi Team,

    Can we make relationship as mandatory for any entity.

    Thanks,

    SubbaReddy

    Paccar



    ------------------------------
    SubbaReddy R
    Paccar
    ------------------------------


  • 2.  RE: Relation Ship Mandatory for an entity

    Posted 12-22-2023 13:13

    Hi SubbaReddy,

    A few options to look into

    1.  Create a reference attribute of the relationship and make the reference attribute mandatory. This will make the relationship mandatory in the UI but not the API.
    2. Create a reference attribute of the relationship and use a Data Validation Function to make the attribute mandatory. Set the LCA hook to "beforeSave" and it will be enforced by the API


    ------------------------------
    Joel Snipes
    Intel
    Savannah GA
    ------------------------------



  • 3.  RE: Relation Ship Mandatory for an entity

    Posted 12-28-2023 10:01

    Thanks Joel,

    But our plan is to remove the reference attribute if it is possible to make the relationship mandatory

    Thanks,

    SubbaReddy.



    ------------------------------
    SubbaReddy R
    Paccar
    ------------------------------



  • 4.  RE: Relation Ship Mandatory for an entity

    Posted 12-29-2023 10:59

    See if this helps you.

    What I have done is-

    Created two entities Project Collection and Project.

    Added the project as a reference in the project collection entity and marked it as required.

    Now in UI modeler- i have not shown the project in relations library rather I have shown it in the attributes library as shown below screen shots.

    Now when I create a project collection profile, I get a mandatory ask.



    ------------------------------
    Abhimanyu Kumar
    GSK
    Cary NC
    ------------------------------



  • 5.  RE: Relation Ship Mandatory for an entity

    Posted 01-30-2024 09:42

    Hi Abhimanyu,

    we can achieve through the  reference attribute but  user doesn't want see the reference attribute in UI.   So we want to know if there is a way to make the relationship mandatory.

    Thanks,

    SubbaReddy



    ------------------------------
    SubbaReddy R
    Paccar
    ------------------------------



  • 6.  RE: Relation Ship Mandatory for an entity

    Posted 01-30-2024 14:06

    Hi SubbaReddy,

      See if you can validate  through data validation function. if not,  beforeSave LCA is the best bet.



    ------------------------------
    Radhakrishnan Ramalingam
    Architect
    San Ramon CA
    ------------------------------



  • 7.  RE: Relation Ship Mandatory for an entity

    Reltio Employee
    Posted 01-16-2024 12:40

    SubbaReddy,

    If you remove the ref attribute, then I believe you will need to employ a more elaborate approach to make the relationship mandatory, which would involve external logic using either RIH, LCA, Lambda triggered from an event coming from the entity. The logic would fetch the entity, do a query to see if the relationship you wish already exists and if not, would take an action to advise the user or calling application that the entity still needs a relationship. E.g. you could create a boolean attribute perhaps called "Needs Relationship?" which is set by the external logic dynamically each time the logic checks for the existence of the proper relationship. By using an attribute for this purpose, the user or calling app can easily then query all the entities for any where the attribute is TRUE. 

    Interested to see what other ideas the community has. 



    ------------------------------
    Curt Pearlman
    ------------------------------