qGuide: Batch Input Frequent Combination

qGuide: Batch Input Frequent Combination

translate qGuide: 頻出の組み合わせを一括入力

Button for batch input to multiple form elements allows popular combinations of input values to be implemented as a single button, reducing input costs and the risk of incorrect input. In this example of setting a delivery destination, options such as “Select: Kyoto Head Office”, “Select: Management Department”, and “Select: No delivery time specified” can be entered with just one click.

Input / Output

  • → qSelect (SELECT_SINGLE) q_Office
  • → qSelect (SELECT_SINGLE) q_Dept
  • → qSelect (SELECT_SINGLE) q_Time

Code Example

HTML/JavaScript (click to close)
<span style="color:#FFC69B; font-size:x-large; font-style:italic;"
>One-Click Input</span><a title="
arrArg[0] → q_Office, 
arrArg[1] → q_Dept,
arrArg[2] → q_Time
"> <span style="font-size: x-large;" class="material-icons">help_outline</span></a><br>

<button type="button" onclick="user_batchInputDest( 'kyoto', 'mgmt', 'any' )">
 Kyoto-Mgmt-Anytime <span class="material-icons">apartment</span></button>
<button type="button" onclick="user_batchInputDest( 'tokyo', 'rd', '08' )">
 Tokyo-R&D-AM <span class="material-icons">location_city</span></button>

<script>
function user_batchInputDest ( ...arrArg ) {
  qbpms.form.set( 'q_Office', arrArg[0] );  // ★★★ EDIT (Field Name) ★★★
  qbpms.form.set( 'q_Dept',   arrArg[1] );  // ★★★ EDIT (Field Name) ★★★
  qbpms.form.set( 'q_Time',   arrArg[2] );  // ★★★ EDIT (Field Name) ★★★
}
</script>
warning Freely modifiable HTML/JavaScript code, MIT License. No warranty of any kind.
(Decoration using JavaScript is only available in the Professional edition: M213)

Capture

Button for batch input to multiple form elements allows popular combinations of input values to be implemented as a single button, reducing input costs and the risk of incorrect input. In this example of setting a delivery destination, options such as "Select: Kyoto Head Office", "Select: Management Department", and "Select: No delivery time specified" can be entered with just one click.

See Also

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: