How to autopopulate fields in an interface?

Scenario:Suppose there are 3 fields(A,B,C). Field  A is a custompicker, i want to autopopulate B & C fields on selecting the value in field A. How is it possible,Please help.

Basically, i have created an integration to get details from API, then i am fetching A,B,C fields from the response using expression rule.and then saving them into Datastore using a!writeToDataStore(). Now i want an interface in which if i select value in A field, B& C should autopopulate with the values saved in datastore. or if there is any other approach of getting the value directly from API.

  Discussion posts and replies are publicly visible

Parents Reply Children
  •  a!textField(
                      label: "GEID",
                      labelPosition: "ABOVE",
                      value:if(not(isnull(ri!replacement_soeid)),rule!ONB_GeidFromAPI(ri!replacement_soeid),""),
                      saveInto: a!save(ri!geid,clean(save!value)),
                      refreshAfter: "UNFOCUS",
                      readonly: true,
                      validations: {}

    I have a following code in which there is a text field "GEID" , which is displaying a correct value, fetched from API call "rule!ONB_GeidFromAPI". But it is not getting saved into rule input, can you please guide or give a sample code that would be really helpful. Thanks