ALERT! The community will be read-only on April 19, 8am Pacific as the migration begins. Read more for important details.
ALERT! The community will be read-only on April 19, 8am Pacific as the migration begins.Read more for important details.
Absent Member.
Absent Member.
4159 views

Populate a field with dependent information

I have a multi-relational field that I use as a dependent field with values managed in an auxiliary table. When a user makes a choice in the independent field, I'd like to populate the dependent field with the values that correspond, rather than make the user actually select them. Has anyone found a way to do that?

For example: If a user selects "Application" in the independent field, they would see the names of three applications in the left side of the dependent field that they have to select to move to the right side to populate the field. I want the system to go ahead and populate the field with the names of the applications without the user having to do anything.
0 Likes
4 Replies
Absent Member.
Absent Member.

Can you display the values to be selected using Sub-relational field to the Aux table item, then set them in the current item using an post-transition AppScript?
0 Likes
Absent Member.
Absent Member.

Thanks for responding, Jeff. I'll have to think about whether it would be ok to populate the field after the transition. What would the post-transition AppScript do?
0 Likes
Absent Member.
Absent Member.

Yes, thanks, that behavior would work for me. I see in the AppScript guide information (and a sample script) on copying information from one field and putting it in another. Hopefully, I can figure out a way to use the sample script as a starting point and edit it to populate the same field.
0 Likes
Absent Member.
Absent Member.

The sub-relational would display the field which will be set when the user presses OK. The Post-transition script would actually retrieve and set the field value in the current item.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.