I was asked the other day if I could present four different fields for the one SL field currently on RQ10 so that the user wouldn't have to add the values as comma seperated records.
Since I love a challenge...
I deleted the one SL field and added 4 labels and 4 text fields to the form at the line level. Each label listed what the field value should be.
When the user Inquires on the form my script retrieves the Segment Block value for each line presented and puts that into an array (by line) and then splits the array and assigns each value into the correct text field.
When the user Adds/Changes on the form my script takes the 4 text field values (by line), puts them into one comma seperated variable and then assigns that to the Segment Block value in the OnBeforeTransaction function.
The user was very happy with the ease of use that this provided to them and so, of course, asked for the ability to select Define on each of the 4 fields.
In order to add Define to a text field that you've added to a form, you must go into the Source tab, find the lines for each field and add hdef="1" and deftkn="SL40.6" to each of the 4 text field references. Now when the user right clicks on your text field, they get the option to select Define.
I've mentioned it in the past, but it bears repeating that if you add a text field to the detail line section of your form then you also have to update the field so that the system knows to track it by row. In this case you would find the line in the Source and update the field number from nbr="_f730" to nbr="_f730r0".
There you go. A simple solution that makes data entry much easier for clients using the Strategic Ledger system.