선택 목록 apex 4.2를 기반으로 필드를 동적으로 추가 (Dynamically add fields based on select list apex 4.2)


문제 설명

선택 목록 apex 4.2를 기반으로 필드를 동적으로 추가 (Dynamically add fields based on select list apex 4.2)

I'm developing in apex 4.2 and currently I'm having some issues with my form. I want to (dynamically) add textfields/regions based on the number that is selected in a selectlist.

So when I select 6, i want to see 6 regions with the same kind of textfields in it. Now i've made 6 regions myself and I have added some show/hide dynamic actions on it, but isn't there some kind of way to do this without having to manually add regions ?


참조 솔루션

방법 1:

I think you should create a process on your page when a button is pressed and run this PL/SQL anonymous procedure

BEGIN
FOR i IN 1..limit LOOP
APEX_ITEM.TEXT(P_IDX        => 1,
   p_value      =>'array element '||i ,
   p_size       =>32,
   p_maxlength  =>32);
END LOOP;
END;

the variable "limit" is catched from you're select list. this example is for creating textfileds dynamicaly althougth you can what ever item you want from the APEX_ITEM API , so here is the link http://docs.oracle.com/cd/E37097_01/doc.42/e35127/apex_item.htm#AEAPI192.

(by Elvira Taoufik RIFAI)

참조 문서

  1. Dynamically add fields based on select list apex 4.2 (CC BY‑SA 2.5/3.0/4.0)

#add #regions #selectlist #oracle-apex






관련 질문

웹 사이트에 글꼴 추가 (Add a font to a website)

배열에 대한 자체 "추가" 메서드 작성 (Write Own "Add" Method For An Array)

산점도에 점을 추가하고 파이썬에서 그 옆에 컬러바를 그립니다. (Add points to scatterplot and plot a colorbar beside it in python)

Angularjs는 클릭할 때 DOM에 요소를 추가합니다. (Angularjs add element to DOM when clicking)

값이 없는 경우 HTML5 로컬 저장소 개체는 무엇을 반환합니까? (What does the HTML5 Local Storage object return if there is no value?)

R / ggplot2 / 채워진 각 값으로 막대 그래프 위에 총 값(합계) 추가 (R / ggplot2 / add total value(sum) above barplot with each value in fill)

Python에서 문자열 유형 변수에 문자열을 추가할 수 없습니다. (Can't add string to a string type variable in Python)

Ruby 레일은 Ruby on Rails의 여러 열에 인덱스를 추가하기 위해 마이그레이션 공통을 생성합니다. (Ruby rails generate migration commond to add Index on multiple columns in Ruby on Rails)

JSON 목록의 입력으로 생성된 사전 추가 (Add a dictionary created with inputs in a JSON list)

Powershell에서 문자열 분할 및 추가 (Splitting and Adding String in Powershell)

javascript로 요소의 클래스별로 모든 값을 추가하려면 어떻게 해야 합니까? (How can I add all the values by the class of the element with javascript?)

Java의 null ArrayList에 사용자 입력이 있는 요소 추가 (Add elements with user Input in a null ArrayList in Java)







코멘트