LOVs using cascading on the Page elements with values exceeding 4000 characters
A few days ago, I asked a question on the community, but it turned out that there was something wrong with my account and they have removed the item, so I'll just post the solution I found here now:
Well, I found a way to use LOVs cascading on page elements with values exceeding 4000 characters:
Let's say I have a shuttle named P1_ORGANISATIE with "List of values" box, a dynamic LOV named "Source: lists of values Query" containing the value:
Select NAAM as display_value, ID like return_value
of NINEHAM
order by 1
If the number of records-NINEHAM is insufficient, the length of the value of P1_ORGANISATIE, which is a list of concatenated with colon separated digital ID, can exceed 4000 characters.
Now, suppose I have a list of selection called P1_TEST that is connected through "List of values"-> "Cascading LOV Parent article (s)" with P1_ORGANISATIE, using a named LOV dynamic with "Source: lists of values Query" containing:
Select distinct TST. NAAM as display_value, TST.ID as return_value
of the OTE NINEHAM
Join the AFDELINGEN ADG ON (ADG. OTE_ID = OTE.ID)
Join the DEELNEMERS DNR ON (DNR. ADG_ID = ADG.ID)
Join TESTDEELNEMERS TDR WE (TDR. DNR_ID = DNR.ID)
Join TESTEN TST ON (TST.ID = RDT. TST_ID)
where instr (":" |: P1_ORGANISATIE |) '':'', '':'' || OTE.ID | :'') > 0
order by 1
In this case, when P1_ORGANISATIE exceeds 3998 characters, you'll get an "ORA-01704: string literal too long"-error and the P1_TEST will show an element called "undefined".
A way around this is possible because for a named LOV, you can use a "function that returns a sql query" instead of a simple sql query. In other words, we can apply in the context of PL/SQL and thus have maximum for expressions of 32767 instead of 4000 characters. In addition, it is possible to use the two APEX_UTIL. STRING_TO_TABLE and APEX_COLLECTION.
Setting "Source: lists of query values" on the LOV appointed to P1_TEST with the following code will work:
DECLARE
l_selected APEX_APPLICATION_GLOBAL. VC_ARR2;
l_qry varchar2 (32767): =.
"Select distinct TST. NAAM as display_value, TST.ID as return_value
of the OTE NINEHAM
Join the AFDELINGEN ADG ON (ADG. OTE_ID = OTE.ID)
Join the DEELNEMERS DNR ON (DNR. ADG_ID = ADG.ID)
Join TESTDEELNEMERS TDR WE (TDR. DNR_ID = DNR.ID)
Join TESTEN TST ON (TST.ID = RDT. TST_ID)
$1
order by 1';
BEGIN
IF: P1_ORGANISATIE IS NULL
OR LENGTH(:P1_ORGANISATIE) < = 4000
THEN RETURN
Replace (l_qry
,'$1'
,' where instr (":" |: P1_ORGANISATIE |) '':'', '':'' || OTE.ID | :'') > 0'
);
ON THE OTHER
l_selected: = APEX_UTIL. STRING_TO_TABLE(:P1_ORGANISATIE);
APEX_COLLECTION. CREATE_OR_TRUNCATE_COLLECTION (p_collection_name = > 'ORGANISATIE_COLLECTIE');
FOR id IN 1.l_selected.count
LOOP
APEX_COLLECTION.add_member (p_collection_name = > 'ORGANISATIE_COLLECTIE')
, p_n001 = > to_number (l_selected (id))
);
END LOOP;
RETURN
Replace (l_qry
,'$1'
,'join apex_collections ON APC (APC. COLLECTION_NAME = "ORGANISATIE_COLLECTIE" AND APC. N001 = OTE.ID)"
);
END IF;
END;
Andreas Groenevelt says:
A few days ago, I asked a question on the community, but it turned out that there was something wrong with my account and they have removed the item, so I'll just post the solution I found here now:
Something was wrong with the whole site: AP invoice tolerance
I don't post anything substantive until we find out what is happening.
Tags: Database
Similar Questions
-
Use LOV or research on the Input element
Hello:
Oracle EBS R12
I want to use a LOV or search for a digital input and then use the value chosen by the customer on a calculation in a Fastformula, but fields on the total compensation > basic > Item Description > entries are not available unless the entry is a text entry.
Is it possible to use a LOV or research on a text not yet?
Best regards
Hello
Regardless of what type allows you to set, the value (SCREEN_ENTRY_VALUE) is always stored as 'text' (field of type VARCHAR2).
So, if you want to restrict the ti of the digital input value and at the same time have a LOV (available only for values of type character entry), then you must implement the definition of your choice list (which is also a field of 'character' BTW).
For example, if you want to store only "numerical" values in your entry element, then set something like that in the codes of your list, in which case only the values 10, 20 or 30 could deduct:
Meaning of the code
10 Test1
20 Test2
30 Test3
Note: If you want to see only the numbers of the LOV, then simply replace the column 'meaning' with numerical values also.
Kind regards
Rajen -
How to use the value of the page element in other pages too?
Hi all
How to pass the value of the item P26_NO from 26 to all other pages (such as 1, 2, 3... 25) using the & P26_NO. ???
I set the default for this item.but I can't able to find value in the session state itself?
Please post your suggestion here!
Thank you and best regards,
Robette.Robette wrote:
Hi Amelia,.Through application process only we can able to save the page element value in session state? is there another way?
Since my requirement is like I need to display footer text in all the pages, I have the version number included in this text, so I created a table and my intention to create an item and passing the point value for all other pages and see that point value & P26_NO. in the text. Version number is dynamic, it will change at each deployment.
Is another way simple, other than my approach?Thank you best regards &,.
Robette.You should use point demand for it and an application process to fill
IF :APP_ITEM_NAME IS NULL THEN APEX_UTIL.SET_SESSION_STATE('APP_ITEM_NAME','myvalue'); END IF;
Published by: VC on June 25, 2012 13:48
-
Hello
Apex 5.
IR (departments) on page 2 I want to open a modal page 3 (classic report) with the detail data (from emp) for a Masters depno via a link on depno column.
In Page 3, I created two elements P3_DEPNO and P3_DNAME. These elements are defined in modal page 3 of page 2.
When I do these two visible elements on page 3 I can see, the values are set correct according to the value in column (depno) link on page 2.
However, I would like to place these element values in the page title of page 3
Title: PGE for DepNo: & P3_DEPNO., DepName: & P3_DNAME.It happens that the values mentioned in the title of the page are not the same (good) as in the items himself.
Initially, they are NULL. Only when I refresh page 2 the values change but remain the same (last called depno) as long as I'm doing a new refresh of page 2.I wonder how I can run to display the values of the correct point in the title of the page corresponding to the values of the correct page element (that I have hidden).
Y at - it something more to do, or it could be a small bug?
I've created a little demo app on
https://Apex.Oracle.com/pls/Apex/f?p=75955:2WS: AMLWS001
Demo/demo (developer is)
Please see the report 1.
Thank you in advance!
André
Hi andremi,
andreml wrote:
Hello
Apex 5.
IR (departments) on page 2 I want to open a modal page 3 (classic report) with the detail data (from emp) for a Masters depno via a link on depno column.
In Page 3, I created two elements P3_DEPNO and P3_DNAME. These elements are defined in modal page 3 of page 2.
When I do these two visible elements on page 3 I can see, the values are set correct according to the value in column (depno) link on page 2.
However, I would like to place these element values in the page title of page 3
Title: PGE for DepNo: & P3_DEPNO, DepName: & P3_DNAME.It happens that the values mentioned in the title of the page are not the same (good) as in the items himself.
Initially, they are NULL. Only when I refresh page 2 the values change but remain the same (last called depno) as long as I'm doing a new refresh of page 2.I wonder how I can make it work to display the values of the correct point in the title of the page corresponding to the values point right page (what I have hidden).
Y at - it something more to do, or it could be a small bug?
Page title is rendered before the page elements, that is why is not highlighted in your title.
I don't think directly, we can use the page as a page element value.
Creates a copy of yours and made the change it new App id - 45390
There, I created a static area without a model before your report area and put your article into that.
then displayed title PGE for DepNo: & P3_DEPNO, DepName: & P3_DNAME. for the area of your report.
Kind regards
Jitendra
-
Display the values of the Page element in HTML table
Hi all
could you please help me with the below? I want to have a table in the HTML area and to display in the table of elements of the Page of the page.
I got the code like this:
{
< table >
< tr > < td > & P1_ECEMEA_ASSISTANCE < table > < /tr >
< tr > < td > & P1_ECEMEA_WIP < table > < /tr >
< /table >
}
It shows the element of the Page names in the form of text, not the values.
However, this code without the tags table:
{
ECEMEA request for Assistance of the CQT: & P1_ECEMEA_ASSISTANCE.
ECEMEA CQT Work in Progress: & P1_ECEMEA_WIP.
}
Works and Page element values are displayed.
Is it possible to display the values of the Page element in the HTML table at all or should I use a different method to show the values in a table? The above is only an excerpt of the code. I need to display about 30 items in Page, put in shape in a table with headers.
Please let me know what kind of region is the best to use, or if I have to use only a few symbols of escape in the table code...
Thank you and best regards,
VladimirVladimir,
Looks like you're missing the period after the substitution variables.
{
&P1_ECEMEA_ASSISTANCE. &P1_ECEMEA_WIP. -D.
-
I downloaded several updates for vista (no critical updates) and since that time, I was not able to access my emails. I use netscape and the page opens and freezes. What should I try?
original title: EMAIL GEL
Hello
What updates do you have installed?
Check if the problem persists in the clean boot state.
From your computer by using a minimal set of drivers and startup programs so that you can determine if a background program is interfering with your game or program. This type of boot is known as a "clean boot".
Reference:
How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
http://support.Microsoft.com/kb/929135
When you are finished troubleshooting, follow these steps to reset the computer to start as usual:
1. click on start, type msconfig in the search box
2. press ENTER.The System Configuration Utility dialog box appears.
3. click on the general tab, click Normal startup - load all services and device drivers and then click OK.
4. When prompted, click on restart to restart the computer.Also, look for error messages in the event viewer. If you find error messages after return the exact error message so that we can help you better.
Measures to check the application event log:
a. click Start.
(b) in the search box type eventvwr.msc , and then on enter.
c. now, click Application in the event viewer (local).
d. now, looking for event log on the right side of the event viewer window.http://Windows.Microsoft.com/en-us/Windows-Vista/open-Event-Viewer
http://Windows.Microsoft.com/en-us/Windows-Vista/what-information-appears-in-event-logs-Event-Viewer -
Result passage of PL/SQL code for the page element
Hello
I have created a process in after the header to fill data to the page of the form elements. The pl/sql code is like bellows. Then I got the error message:
ORA-06502: PL/SQL: digital or value error: character number conversion
My question is that I do not see the difference in format between the page element and block pl/sql variables (e.g. : P31_STUDY_ID vs v_P31_STUDY_ID), they are either numeric or text field (in fact I have hidden field, but don't see conversion back to the digital field solved the problem). And don't see needs to set the format mask. Is there another way to detect the column that causes the problem, or if there is a syntax error with my assignment (from the variable element on the page)? Thank you very much!
============================
Declare
number of v_P31_STUDY_ID;
number of v_P31_STUDY_SITE_ID;
v_P31_STUDY_SITE_NAME VARCHAR2 (255);
v_P31_STUDY_SITE_NUM varchar2 (10);
number of v_P31_STUDY_SITE_NAME_NUM_ID;
number of v_P31_STUDY_SITE_OPEN_STATUS;
v_p31_comments VARCHAR2 (255);
Start
Select
tbl_study_site.study_id,
tbl_study_site.study_site_id,
study_site_name,
study_site_num,
STUDY_SITE_NAME_NUM_ID,
STUDY_SITE_OPEN_STATUS,
Comments
in
v_P31_STUDY_ID,
v_P31_STUDY_SITE_ID,
v_P31_STUDY_SITE_NAME,
v_P31_STUDY_SITE_NUM,
v_P31_STUDY_SITE_NAME_NUM_ID,
v_P31_STUDY_SITE_OPEN_STATUS,
v_p31_comments
of tbl_study_site, tbl_study_site_attrib
where tbl_study_site.study_id =: p30_study_name
and tbl_study_site.study_site_id = tbl_study_site_attrib. STUDY_SITE_ID
and tbl_study_site_attrib. STUDY_SITE_ATTRIB_ID =: P31_STUDY_SITE_ATTRIB_ID;
: P31_STUDY_ID: = v_P31_STUDY_ID;
: P31_STUDY_SITE_ID: = v_P31_STUDY_SITE_ID;
: P31_STUDY_SITE_NAME: = v_P31_STUDY_SITE_NAME;
: P31_STUDY_SITE_NUM: = v_P31_STUDY_SITE_NUM;
: P31_STUDY_SITE_NAME_NUM_ID: = v_P31_STUDY_SITE_NAME_NUM_ID;
: P31_STUDY_SITE_OPEN_STATUS: = v_P31_STUDY_SITE_OPEN_STATUS;
: P31_COMMENTS: = v_p31_comments;
end;
=============================
Identify the root cause. He's always on the format of the column, there is an error. Thanks for your help.
-
Can not set a value by the executed dynamic action on the page element "selection list."
I created an agenda of the page 'list of selection' and I want to when I change a value in another element of the page set only 'screen '.
I created a dynamic action on the page element "selection list" for this.
These are the dynamic action attribute:
When:
======
Event: change
Selection type: point
Article: P29_PURCHASE_ORDER
Condition: No strings attached
Advanced:
========
Scope of the event: static
Identification:
==========
Action: Set
The ' Action Page when the changed value "attribute of the element of 'list of selection' = 'None', and when I run form the dynamic action run and set the value for once and do not update the value according to the change in the article"list of selection. "
Note: when I change the previous attribute of 'Redirect and set', dynamic action run and properly value, but the value was hidden soon
I want to value when the value of change of select list according to this change successfully.
Please, advice me,
Best regards
Mustafa Ezzat
Hello
you set the value of the 'Page elements to submit' to P29_PURCHASE_ORDER?
Then, the SQL statement would use the current selected value.
This is the help text says: "specify a list separated by commas of the elements of the page that will be submitted to the server and therefore available for use in your"SQL statement"," PL/SQL Expression"or"Body of the PL/SQL function".»
Kind regards
Erik-jan
-
Validation of the element on the page to be less than 50 characters
Hello
I created the validation for the page element, her thong and I want to be not more than 50 letters,
I used PL/SQL expression and I used this one
V ('P55_MANAGER_NAME'). Length > 50
I got this error
ORA-06550: line 1, column 47: PLS-00487: invalid reference to the variable '< expression > NEW' ORA-06550: line 1, column 7: PL/SQL: statement ignored
Can someone help me what the right expression?Change your validation and set error display location Inline in the Notification
-
How to add the drop through customization on page sown with value
Hi all
I have tried adding adding menu drop down through customization of page sown with value
I have spend with block anill passi
always I'm getting problem to createHello
-U mean you are nt finds the element in the page in Jdev.
-See areas extends to other areas, try to download the same open from Jdev.there you can find.Concerning
Meher irk -
JavaScript allows you to change the value of the page element?
How to use JavaScript to change the value of the page element?
I can read the value of the page element.
I can change it by JavaScript?
Thank you.
DavidDepends on what is the type of page element - for text/no Select something like:
function setValue(){ $x('P1_FIELD').value = 'Oracle'; }
For a select element, something like this:
function setSelectValue(){ html_setSelectValue('P1_SELECT', 'Oracle'); }
-
When you use find on the page (ctrl + F on Windows) it is a message indicating the total number of matches. What does the first number?
I'm more interested in the case when this number is smaller than the total.Hello
I think you mean the text stating "x of there matches", to the right of the box where you entered the search term.
The first number ("x" in my example above) indicates the current entry highlighted on the page that matches the search phrase. If you use the upper and down arrows to navigate through the instances of this term on the page, you will see this number go up and down.
I hope this helps, but if not please come back here and we can look at another solution for you.
-
I m trying to install first pro, but beside the page to inform that the download is in progress, nothing happens. The page remains with the message... that.
You MUST have a 64-bit computer and operating system... What is your computer?
-http://windows.microsoft.com/en-AU/windows7/find-out-32-or-64-bit
-
How to position the page element?
Hello
I created a report in the same region, has also created a page element in the same region. The page element is now on the top of the report, but I need to show in the report. How can I achieve that?
Thank you
Victor
Depends on your version of the apex. 4.1/4.2ish there is an attribute on the region of the "Position of the display element.
Enter this below content.
-
Each Adobe Mobile App I want to install from the game store Android Google indicates that it is not compatible with my Samsung Galaxy Note 10.1 tablet, but some are compatible with my phone Samsung Galaxy Note 4. I prefer to use mobile apps on my tablet on not on my phone. Can someone explain why I can't use mobile apps on my tablet. I thought that mobile applications are compatible with the tablets and phones?
(Double Post)
Maybe you are looking for
-
10.2.3 FCPX create a backup of the library
When you create a new library yesterday, FCPX has not created a backup of the library at the specified location. Other existing libraries are saved correctly. Even after the creation of duplicate projects and closing and reopening of the new library,
-
I can't access my hotmail account among some other sites since the upgrade to 3.6.8 on my macbook. I get the following message: "the proxy server refuses connections. Firefox is configured to use a proxy server refusing connections. Check the proxy s
-
Service exception C50-A-157 - BSOD - (Netio.sys) satellite system
Hi, I recently had random stops, and I got this error message. Service system (Netio.sys) exception Any help would be appreciated.
-
I want to improve my Vista system!
Hello! I have W500 4062-36U I have windows xp sp3 on it! I want to upgrade to vista the question is how? ... is ' t ok to install vista normally and the ThinkPad applications will not be deleted or what? and if we got removed them... what to do? Anot
-
Windows 7 does not recognize Fallout 3 DVD - can not browse or run the Launcher
I have a version of Fallout 3, I could make it work fine on my Vista system. Now I have Windows 7 on a new machine and went for a new installation. The CPU does not seem to recognize the contents of the drive - unable to sail on him, does nothing whe