ID정보를 입력하면 해당 ID의 이름을 갖고옴
<script language="JavaScript1.1" type="text/javascript">
function GET_SNATIVE_NM_P1()
{
var ajaxRequestN = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=GET_SNATIVE_NM_P1',0);
ajaxRequestN.add('P1_LEAD_ID',document.getElementById('P1_LEAD_ID').value);
ajaxResultN = ajaxRequestN.get();if (ajaxResultN.indexOf("sqlerrm") >= 0)
{
document.getElementById('P1_LEAD_ID').value = '*******';
}
else
{
document.getElementById('P1_LEAD_NAME').value = ajaxResultN;
}
ajaxRequestN = null;
}</script>
--------------------------------------------------------------
이름을 입력하면 해당되는 사람의 ID정보 LIST를 볼수 있는 기능
<script language="JavaScript1.1" type="text/javascript">
function getMemberList ()
{
var ajaxRequest = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=GET_NAME_ALL_P1',0);
ajaxRequest.add('P1_LEAD_NAME',html_GetElement('P1_LEAD_NAME').value);
ajaxResult = ajaxRequest.get();
if(ajaxResult)
{ html_GetElement('MemberListDiv').innerHTML = ajaxResult }
else
{ html_GetElement('MemberListDiv').innerHTML = 'null' }
ajaxRequest = null;
}
</script>
======================================================================
Shared Components 의 Application Processes
GET_NAME_ALL_P1
declare
lv_Name_List varchar2(30000) := '';begin
begin
for i in (Select SNATIVE_NM, SMEMBER_ID, SGROUP_ID, STELPERSONAL from VIEW_CHURCHMEMBER
where Upper(SNATIVE_NM) like upper(:P1_LEAD_NAME) || '%'
order by SNATIVE_NM)
loop
lv_Name_List := lv_Name_List || i.SNATIVE_NM || '*' || i.SMEMBER_ID || '*' || '#' || i.SGROUP_ID || '*' || case when substr(I.STELPERSONAL, 1,3) = '111' then ' ' else to_char (i.STELPERSONAL) end || '<br />';
end loop;exception when no_data_found then null;
when others
then
null;end;
htp.prn(lv_Name_List);
end;---------------------------------------------------------------------
GET_SNATIVE_NM_P1
declare
lv_Member_List varchar2(30000) := '';
BEGIN
begin
select SNATIVE_NM into lv_Member_List from VIEW_CHURCHMEMBER where upper (SMEMBER_ID) = upper (:P1_LEAD_ID) ;exception when no_data_found then null;
end;
htp.prn(lv_Member_List);
end;
==============================================
* Application Processes GET_NAME_ALL_P1 이 실행되는 item의 Region Source
<div id="MemberListDiv"> </div>
No. | Subject | Author | Date | Views |
---|---|---|---|---|
86 | FOR LOOP | admin | 2016.05.20 | 268 |
85 | SUBSTR | admin | 2016.05.26 | 271 |
84 | CAPTCHA PLUG-IN | admin | 2016.05.27 | 291 |
83 | Access Control List (ACL) | admin | 2016.06.07 | 335 |
82 | Oracle 11g Access Control List for External Network Services | admin | 2016.06.07 | 294 |
81 | ACL 보기 | admin | 2016.06.07 | 307 |
80 | CREATE_ACL (1st STEP) | admin | 2016.06.07 | 305 |
79 | ADD_PRIVILEGE (2nd STEP) | admin | 2016.06.07 | 339 |
78 | Assign a network host to Access Control List | admin | 2016.06.07 | 291 |
77 | DBMS_NETWORK_ACL_ADMIN | admin | 2016.06.07 | 325 |
76 | DBMS_NETWORK_ACL_ADMIN | admin | 2016.06.07 | 344 |
75 | APEX Web Services Proxy Settings | admin | 2016.06.07 | 351 |
74 | How to set a proxy in UTL_HTTP | admin | 2016.06.07 | 310 |
73 | function get area | admin | 2016.06.08 | 314 |
72 | Membership Management | admin | 2016.06.09 | 425 |
71 | control break | admin | 2016.06.25 | 388 |
70 | SQL | admin | 2016.07.15 | 387 |
» | JavaScript for Member List | admin | 2016.08.17 | 427 |
68 | APEX Password Change | admin | 2016.08.26 | 452 |
67 | SQL Basics - Lesson 1 - Introduction | admin | 2017.06.17 | 96 |