Profound Pro Tips is a blog series focused on issues that our support team receives and questions our Profound Logic customers have. Have a topic you’d like to see a Profound Pro Tip for? Please contact our team or leave us a comment below. We’re here to help!
Today’s Topic: Using Genie Customizations to Configure Subfiles
Genie does not contain a built in option to automatically adjust your subfiles, but it is possible to use Genie Customizations to manually configure your subfile. Below is an example on how to modify your subfiles to submit a response when clicking on a row.
In this example, we will use the Work with Active Jobs screen, as the base screen of a subfile with options, but any subfile screen with options should work. The first step is to hide the combo box widgets where you would normally insert your choice:
Using CTRL+Left Click, you can select all of the combo box widgets at once and change their visibility as a group.
Note how the grid widget was first selected so that the drag boxes appeared around the widget. This example is using option 5 (Work With) as the option for submitting the row but any value will work.
Below is the code for easier access:
// First lets get the ID of the combo box we want to change the setting for.
// All widgets in Genie have the ID of the following format: [Letter for type of field]_[row number]_[column number]
// So for the screen all of the combo boxes have the same Letter and column number so we just need to calculate the row number
// This can be done with the row variable of the Onrowclick Event, and the 'starting row' property of the grid.
// The first row will be row 1 in the on row variable so we need to take the starting row -1 and add the row variable
var my5250Row = parseInt(getObj('subfile').grid.dataProps['starting row']) - 1 + row;
// construct our ID with our caluclated row
var comboBoxID = 'I_' + my5250Row + '_2';
// set the value of the combo box (in this example I am using 5 for work with but you can use any value here)
//submit the screen
After this you will want to set up a Screen Identifier and saved your screen. If you would like more information on how to save a screen you can find that on our documentation page here:
And when you click on an option you will get the following:
Thanks for reading this issue of Profound Pro Tips! Please comment below with any questions you might have, or if you have any ideas on the next topic, we should cover. You can also ask questions and find solutions on our Profound Logic Forum.