This is a public Forum  publicRSS

Topic

    Cristian Nieva
    after changing a field value, how to set another field value...Answered
    Topic posted January 24, 2017 by Cristian NievaRegular 
    78 Views, 6 Comments
    Title:
    after changing a field value, how to set another field value that depends on the first value
    Content:

    Hi All,

    In a custom console workspace, I'm trying to set a second field value, that depends on the first field value.

    For example, when I select an employee from the list, I want to auto populate the manager of it.

    Is it possible to do a query to get the manager in a rule? or is there any other way to do it?

    Thanks,

    Cristian

    Best Answer

    Anurag Mittal

    The cleaner way of doing this is through Add-in, you get greater control and flexibility.

    JavaScript API is another way of doing it,  but you won't be able to run connect PHP API directly from JavaScript either you to call Ajax or you have store employer-manager relationship in PHP array on script load.

    Answer

     

    • Narendra Muttineni

      Use the Workspace Rules to achieve this functionality.

      Thanks,

      Narendra

    • Cristian Nieva

      Hi Narendra,

      I tried to use the rules, but on them I need to hardcode the values, and I'm looking for a way to do it dynamically, otherwise I'll need to generate multiples rules, one for each employee name/ID, and it will be hard to maintain.

      Thanks,

      Cristian

    • Pramod V

      You can use Javascript API and set it accordingly, advantage here is there will be only one script in workspace. No need of multiple rules.

      Use custom script for connect PHP API if needed.

      - VIP

    • Anurag Mittal

      The cleaner way of doing this is through Add-in, you get greater control and flexibility.

      JavaScript API is another way of doing it,  but you won't be able to run connect PHP API directly from JavaScript either you to call Ajax or you have store employer-manager relationship in PHP array on script load.

    • Cristian Nieva

      Thanks all for your help, I'll go with the .Net add-in.

    • Danette Beal

      Thanks for the update Cristian!

      Glad the Community could help.