我有一个带有复选框列的报告查询,在这里,当我们检查一些值并累加后,它将移至下一页,而在第二页中,有一个选项可以返回,当我单击“返回”按钮时,它必须检查先前已检查并显示为已选中的值。
如何在顶点上进行处理
我的报告查询:
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);
答案 0 :(得分:0)
当您前进时,您可以将所选的复选框(ASSOCIATED_PARTY_ID)保存在Apex_collection中。
如果用户返回,则可以从集合中加载选定的内容。
答案 1 :(得分:0)
答案 2 :(得分:0)
<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>