我有一个报告查询有复选框列,这里当我们检查一些值并且sumbiteed它将在下一页上移动而在第二页有一个选项可以返回,当我点击返回按钮时它必须检查值是之前已选中并显示为已选中
如何在顶点工作
我的报告查询:
SELECT DISTINCT APEX_ITEM.checkbox (1, ASSOCIATED_PARTY_ID) Select_Checkbox,
FIRST_NAME || LAST_NAME AS Associated_Party,
EMAIL AS Associated_Party_Email,
associated_party_id,
EMPLOYMENT_STATUS,
LOCATION AS Current_Location,
CITY || STATE_PROVISION AS City_State_Provision,
MANAGER
FROM ASSOCIATED_PARTIES
WHERE associated_party_id IN (SELECT associated_party_id
FROM matters_associated_parties
WHERE matter_id = :P10_MATTER_ID);
当你走向前面时,你可以将选中的复选框(ASSOCIATED_PARTY_ID)保存在Apex_collection中。
如果用户返回,您可以从集合中加载选定的。
<pre>
apex_item.checkbox2(p_idx => 1,
p_value => blc.blc_id,
p_attributes => 'class="blc_id" id="f01_'|| rownum|| '"',
p_checked_values =>:p604_blc_id,
p_checked_values_delimiter => ',')"Select All",
<input type="checkbox" onclick="$f_CheckFirstColumn(this)" id="check_all"/>
// Created by parthiban on 11-5-2016
var
//Checkbox that was changed
$checkBox = $(this.triggeringElement),
//DOM object for APEX Item that holds list.
apexItemIDList = apex.item(this.affectedElements.get(0)),
//Convert comma list into an array or blank array
//Note: Not sure about the "?" syntax see: http://www.talkapex.com/2009/07/javascript-if-else.html
ids = apexItemIDList.getValue().length === 0 ? [] : apexItemIDList.getValue().split(','),
//Index of current ID. If it's not in array, value will be -1
idIndex = ids.indexOf($checkBox.val())
;
//If box is checked and it doesn't already exist in list
if ($checkBox.is(':checked') && idIndex < 0) {
ids.push($checkBox.val());
}
//If box is unchecked and it exists in list
else if (!$checkBox.is(':checked') && idIndex >= 0){
ids.splice(idIndex, 1);
}
//Convert array back to comma delimited list
apexItemIDList.setValue(ids.join(','));
</pre>