Recently, I faced an interesting requirement in my project. I thought it would be worth sharing. In an APEX page, a Popup LOV with multi-select is used. Based on the end user's selection, Interactive Grid rows are generated dynamically, and the selected values are set into an IG column at the same time. If the user selects more than one value, multiple rows are generated and each selected value is set into a different row. For example, if the end user selects 10, 20, and 30 from the Popup LOV, the Interactive Grid generates three rows, and the Dept No column is set to 10, 20, and 30 respectively. Step 1: Create a Popup LOV with multiple selection enabled (colon-separated delimited list). Step 2: Create an Interactive Grid with the static ID EMP . Step 3: Create a Submit button and add the below code in a Dynamic Action on the Click event. var region = apex.region("EMP"); var actions = region.call("getActions"); var view = region.call("getCurre...
Paste the following function code at the page level (Function and Global Variable Declaration), or create a region in the Global Page using the Blank template. In that region, select Source and paste the function code enclosed within <script></script> tags. function setPostTextCounter (itemId) { var item = apex.item(itemId); var inputEl = item.element; var maxLen = inputEl.attr("maxlength") || 100; var curLen = item.getValue().length; var counterId = itemId + "_counter"; var postText = inputEl.siblings(".t-Form-itemText--post"); if (postText.length === 0) { postText = $('<span class="t-Form-itemText t-Form-itemText--post"></span>'); inputEl.after(postText); } if (postText.find("#" + counterId).length === 0) { postText.append('...