Problem filling APEX 4.1 Collections
Using APEX 4.1
Oracle 11g
I'm having a devil of a time of filling of a multivalued collection. I can easily fill c001 but can't figure out how to get value c002. I checked the web, but I shouldn't be asking the question in the right way. Any help would be appreciated. It won't let me attach JPEG files so I hope I described it well.
I have a report that contains a check box, a link change, a number of store and a language.
A bank may have several languages.
< code >
SELECT apex_item.checkbox (1, WL. SELECT_STORE STORE_CD),
"EDIT_TZ,.
WL. STORE_CD,
L.LANGUAGE_NM,
etc...
< code >
I tried SELECT apex_item.checkbox (1, WL. STORE_CD, 2, L.LANGUAGE_NM) SELECT_STORE,
I tried apex_item.display_and_save (2,L.LANGUAGE_NM) language_nm
Using the checkboxes, populates a collection and redirects to a form of multi line edit.
in the processing of the page I have:
< code >
Start
apex_collection.create_or_truncate_collection ('store_list');
If apex_application.g_f01.count > 0 then
apex_collection.add_members ('store_list', apex_application.g_f01);
end if;
end;
< code >
I tried apex_collection.add_members ('store_list', apex_application.g_f01, apex_application.g_f02, apex_application.g_f03, apex_application.g_f04 ) and such and always get the same result
After redirection, I get to my form and it has all the records for each store (several languages), but I only need to edit and update a
Looking at the State of session, collections, I see two rows with c001 filled for each store.
Collection name sequence C001-C002
Store_list 1 - 15
Store_list 2 - 18
However, I would like to fill c002 bearing the name of the language, so I can use it as a filter on the form. something like this:
< code >
SELECT WL. STORE_CD,
L.LANGUAGE_NM,
S.CITY_NM,
S.ST_PRVN_CD,
WL. TIME_ZONE_NM,
WL. STATUS_DESC
OF MDM_DATA. MD_STORE_WEB_LANGUAGES WL, MDM_DATA. REF_WEB_LANGUAGES L, MDM_DATA. MD_STORE S, apex_collections c
WHERE WL. STORE_CD = S.STORE_CD (+)
AND WL. L.LANGUAGE_ID = OPPORTUNITY
and c.c001 = s.store_cd
and c.c002 = l.language_nm
and c.collection_name = 'STORE_LIST. '
< code >
Thanks for the reply. I read all the Oracle documentation on collections, but it's like reading a dictionary. Good information but nothing on how to use it in a sentence. Thanks for placing it in a sentence. I'll work with that and see if I can get him.
Tags: Database
Similar Questions
-
APEX 4.01 collections rendering problem
I'm creating a collection using apex 4.01.
I created an application with a blank page.
I then added a region on the page.
I've created a report in the region with a source of the sql query. I then placed the query in the source section.
I created a load on before the header process which loads the EMP table collection.
When I run instead of getting my output display as intended in the collection, it displays the data in the html tags. Its as if the HTML is not be stripped.
I see where in the attributes report there is an option to strip HTML. I set to Yes. Its in the section layout and pagination of the attributes of the rpt.
Here is an example of what the report is rendered:
< input type = "hidden" name = "f01" value = "7934" / > < span > </span > 7934 < input type = "text" name = "f02" size = "10" maxlength = value "2000" = "MILLER" / >Make sure the column attribute display as for the report column is column of Standard report.
-
Join the ApEx Oracle's Collections at the real Tables
Hoping that someone can help, but within Oracle ApEx is it possible to join a real table in your schema with a Collection of Oracle ApEx, I can't do?
Basically, I have the following scenario:
Select c001,-employee id for collection
C002,
C003 - used dept no collection
to apex_collections,
EMP
where collection = "MY_COOLECTION."
and emp.id = c001
and emp.deptno = c003;
Is the highest possible, or I missed something?
Thank you.
Published by: Tony F. on July 18, 2011 01:05I suppose that you have created the data in the collection using create_collection_From_query().
Let me know if you still experience the problem.
Thank you
Sukarna -
Fill() return empty ArrayCollection collection
Hello
I'm new to SDS and do not know why the fill() method returns nothing, even if the assembler returns a list of 3 items. I know the list is back nothing because when I see the length of the ArrayConnection, it is 0.
I'm Tournai on the debugging logs and see the 3 items returned. Do you have tips on how I can solve this problem?
Is there somewhere in the configuration where I specify the Java class maps to ActionScript class B? I just deleted my corresponding ActionScript class and always the same newspapers. I suspect that the SDS does not know how to map the Java class in the ActionScript class so that it gives me an empty list and throws the results. Does this sound right? If there is some sort of automatic mapping, I was expecting to see an error in the log after I deleted the ActionScript class.
Thank you
Jamie
[Flex] 18/05/2007 12:19:31.443 [DEBUG] [DataService.Transaction] committed trans
action
[Flex] 18/05/2007 12:19:31.443 [DEBUG] [Message.Data.fill] after calling a service:
data service
answer: Flex Message (flex.data.messages.SequencedMessage)
sequenceId = 0
sequenceSize = 3
(no proxy sequence)
clientId = null
correlationId = null
destination = company
messageId = 7A2A0D8F-C32B-80BC-D593-4551B71320F1
timestamp = 1179515971443
timeToLive = 0
body =
[
Company (companyId = 100, name = null, address = null, status = null, zip = null undue
Try = null),
Company (companyId = 101, name = null, address = null, status = null, zip = null undue
Try = null),
Company (companyId = 102, name = null, address = null, status = null, zip = null undue
Try = null)
]I found the answer to my own question. It was just a race condition. You can not read the size of the ArrayCollection collection immediately. The list takes some time to complete.
-
Problem while setting team project collection
Hello
I am facing a problem in trying to fix a Collection of Project Team (PTC) to a centralized server TFS. the error is error in tracking work items.
Error description:
Transaction (process ID 570) has been blocked on the resources of locking with another process and has been chosen as the deadlock victim. Rerun the transaction.
We took the PTC TFS 2010 Server database backup and restored in centrallized TFS break and tried to reach it, but it is causing a problem above mentined.
This error occurs very often (every time), but a few times it will work without causing any trouble.Helpme to reslve the issue.
Thank you
Prashantgouda.
Hey Prashantgouda,
Please join experts from developers in the MSDN (Microsoft Developers Network) for assistance with this problem. The link below will bring you to the MSDN forums that specialize in Visual Studio Team System:
MSDN - Visual Studio Team System -
How can overcome the problem with ' Apex 4.2
Hi team,
I created as a result of things in our application, as mentioned below
1 created a "Key Source" text element
2 concept own popup LOV created for this item as
Under the Post element
3 defined as java script code
function callMySrckey () { var url; url = 'f?p=&APP_ID.:3:&APP_SESSION.::::'; w = open(url,"winLov","Scrollbars=1,resizable=1,width=800,height=600"); if (w.opener == null) w.opener = self; w.focus(); }
4. he wants to say when they click on the img icon it will redirect to the #3 page.
5. now on the page #3, I had created an interactive report by the query in the form
select distinct sourcekey SrcKey from t_src_key order by 1;
6. in the report to column link attributes
Under the text link I had selected
#SRCKEY #.Selected as a URL target
javascript:passBackSkey('#SRCKEY#');
7. under Java script defined as
<script language="JavaScript1.1" type="text/javascript"> function passBackSkey(passKey) { opener.document.getElementById("P34_SRC_KEY").value = passKey; close(); } </script>
8. now, on page 3, we see data as shown below
Consumer-city gate of energy | Gate of the city of energy to consumers
WALC Mead
CÔTE D'IVOIRE
9. when I click on these data, it will be passback and store in key source point i., text element e p34_src_key.
10. given above if we look at we see "appearing in"Ivory COAST", in this case passback does not work do not display this value in text."
Could someone help me how to solve this problem when we have a ' data.
Kind regards
Sruthitamiri
Sruthi Tamiri wrote:
fac586,
Please find the #2 approach, could you please let me know if I'm missing something here.
URl #https://apex.oracle.com/pls/apex/f?p=51537:1:121524763711746:
#cts_demo workspace
user name # [email protected]
password # tamiriseshu
For example if we have data in the emp table
In the main screen see us data that is to show that \u002FA and other.
When I click on page #2 values are not pass on screen #1.
Use two columns in the report:
select ename, apex_escape.js_literal(ename) js from (select distinct ename ename from emp) order by ename
View ENAME, then assign the column hidden JS. Use #JS # in the target URL.
-
upgrade to 12 c causing problems with APEX 4.2.5
Hey everyone, our dba updated our database this past weekend at 12 c. Today, we have problems with one of our more complex pages. Here's our software configuration where after upgrade:
APEX: Application Express 4.2.5.00.08
Database: Oracle Database Enterprise Edition Release 12.1.0.2.0 - 64 bit Production 12 c
The page in question has dynamic actions which fire when a user clicks a button. The action has 3 processes related to it. The first is javascript that runs that changes some css classes. That seems to work. The second is supposed to be executing pl/sql code (with a dynamic process page element). This does not appear be to fire. I watched with firebug and chrome dev tools, but it seems that no ajax call is sent when I click on the button.
The page seems to generate exceptions in the scenes. I see the following in newspapers several times on the page.
ORA-20987: APEX - ORA-00001: unique constraint (APEX_040200.WWV_FLOW_COLLECTIONS_UK) violated
Unfortunately, I can't determine if what is happening on the loading of the page or under dynamic actions. Apparently not loading the linked page cause I can't recreate it all by refreshing the page. But I don't see how it could be created by the dynamic action since they don't seem to be calling the server either. (no ajax call I see)
Does anyone know of none known between 4.2.5 and 12 c? Everything worked well Fri/Sat, so the upgrade must be the cause.
Thank you!
It looks like given the scope of the implemented dynamic actions in dynamic instead of static electricity was the problem. Their transition to static seems to have fixed everything. Not sure if it "just worked" under the previous version and 12 c was somehow more special or if the parameter got reversed somehow in the process, but it was certainly before.
Well. I'll consider it fixed!
-
Problem with apex.confirm
I use Express application 4.1.0.00.32
I have a region defined by this source:
SELECT 'Remove' delrow.
a.ID,
Description a.desc_ob_strat,
a.fl_attivita_ordinarie,
a.set_linee,
a.Linea,
a.Priorita,
a.data_dal,
a.data_al,
Link_dettaglio NULL,
a.ROWID r_id
OF pdp_ob_strat one
In the report of the attributes in the links column 'DELROW' properties, I have:
'Target': URL
'URL ':
JavaScript:apex.confirm ("are you sure you want to delete this record?', {request: 'DEL_OBSTRAT', value: {'P225_ROWID_OBSTRAT': #R_ID #}}");
In other words, I want that when the user clicks on "Delete" string in a line, it is requested, and if he wants, a shipment is started, the application name would be "DEL_OBSTRAT" and the point P225_ROWID_OBSTRAT would be set with the value of r_id.
On the Page, I have a conditional process, "on submit and before calculation", it is conditional based on the name of the application, and here I have:
DELETE pdp_ob_strat
WHERE ROWID =: P225_ROWID_OBSTRAT;
My problem is that when I click on the word "Delete" nothing happens. I do not see an alert box, I see no page sent.
I tried a few test change "with" but without success.
Any help? Thank you very much.
Hi Francois,.
Francesco wrote:
TO
https://Apex.Oracle.com/pls/apex/
I created the account and ask for following:
Workspace: TESTTRACCIA
Username: [email protected]
Password: matera2019
Application 69273 - Fcoretti 1
In Page 2, I created a situation like mine, and when I try to delete a line, the confirmation box appears, then an error message is displayed.
Thank you.
I checked your application, you have missed the rowid in a statement select it is therefore passing invalid rowid for the erase process.
now added rowid in your State sql query, delete works now, please take a look.
Kind regards
Jitendra
-
Problem (bug?) with smart collections
Hello
I have LR (standalone) 6.1 and I want to create a smart collection to select images that are not in the collections (stardard). As I find anything better, I created a smart collection where I need the name of the collection of the image does begin with 'A', 'B', etc...
This works as long as the collection names are long of 1 Word. I'm intrigued by this behavior. Is this a bug? Is there another way to achieve what I want?
Thank you.
[It may take awhile for someone who knows the answer to read your messages.]
The operator "starts by" is buggy. The criterion of the "Collection starts with a' will match any collection whose name contains a word that begins with"a ". For example it will not match "A big red pony", 'It's a pony of reading', 'ponies are large animals. Adobe has acknowledged this bug four years ago in the Adobe official feedback forum: Lightroom: problems with "begins with" text filtering. You can add your vote and review on it in the vain hope that Adobe can fix before the next ice age.
Meanwhile, to find all photos that are not in the collection, you can use these rules:
Match any of the following rules
Collection contains a, b, c,... z 1 0... 9
-
Generation XML problem in APEX ORA-06502
Hi, I have a problem with the generation of XML, I developed an application in the APEX, and in an html page, I have this process: +.
declare
l_XML varchar2 (32767).
Start
.......
Select xmlElement
(
"iva"
xmlElement ("numeroRuc", J.RUC),
xmlElement ("razonSocial", J.RAZON_SOCIAL),
xmlElement ("idRepre", J.ID_REPRE),
xmlElement ("rucContador", J.RUC_CONTADOR),
xmlElement ("anio", J.ANIO),
xmlElement ("my", J.MES),
xmlElement
(
"shopping."
(
Select xmlAgg
(
xmlElement
(
"detalleCompra,"
-xmlAttributes (K.ID_COMPRA like "COMPRA"),
xmlForest
(
K.COD_SUSTENTO as "codSustento."
K.TPLD_PROV as "tpldProv."
K.ID_PROV as "idProv."
K.TIPO_COMPROBANTE as "tipoComprobante."
TO_CHAR (K.FECHA_REGISTRO, ' DD/MM/YYYY "") as "fechaRegistro."
K.ESTABLECIMIENTO as "food."
K.PUNTO_EMISION as "puntoEmision."
K.SECUENCIAL as "secuencial".
TO_CHAR (K.FECHA_EMISION, ' DD/MM/YYYY "") as "fechaEmision."
K.AUTORIZACION as 'autorizacion. "
TO_CHAR (K.BASE_NO_GRA_IVA, 9999999999.99) as "baseNoGraIva."
TO_CHAR (K.BASE_IMPONIBLE, 9999999999.99) as "baseImponible."
TO_CHAR (K.BASE_IMP_GRAV, 9999999999.99) as "baseImpGrav."
TO_CHAR (K.MONTO_ICE, 9999999999.99) as "montoIce."
TO_CHAR (K.MONTO_IVA, 9999999999.99) as "montoIva."
TO_CHAR (K.VALOR_RET_BIENES, 9999999999.99) as "valorRetBienes."
TO_CHAR (K.VALOR_RET_SERVICIOS, 9999999999.99) as "valorRetServicios."
TO_CHAR (K.VALOR_RET_SERV_100, 9999999999.99) as 'valorRetServ100 '.
),
xmlElement
(
'air ',.
(
Select xmlAgg
(
xmlElement
(
"detalleAir,"
xmlForest
(
P.COD_RET_AIR as "codRetAir."
TO_CHAR (P.BASE_IMP_AIR, 9999999999.99) as "baseImpAir."
TO_CHAR (P.PORCENTAJE_AIR, 999.99) as "porcentajeAir."
TO_CHAR (P.VAL_RET_AIR, 9999999999.99) as 'valRetAir '.
)
)
)
ANEXO_COMPRAS p
where P.ID_COMPRA = K.ID_COMPRA
AND P.ID_INFORMANTE_XML = K.ID_INFORMANTE_XML
)
),
xmlElement ("estabRetencion1", K.ESTAB_RETENCION_1),
xmlElement ("ptoEmiRetencion1", K.PTO_EMI_RETENCION_1),
xmlElement ("secRetencion1", K.SEC_RETENCION_1),
xmlElement ("autRetencion1", K.AUT_RETENCION_1),
xmlElement ("fechaEmiRet1", to_char(K.FECHA_EMI_RET_1,'DD/MM/YYYY'));
xmlElement ("docModificado", K.DOC_MODIFICADO),
xmlElement ("estabModificado", K.ESTAB_MODIFICADO),
xmlElement ("ptoEmiModificado", K.PTO_EMI_MODIFICADO),
xmlElement ("secModificado", K.SEC_MODIFICADO),
xmlElement ("autModificado", K.AUT_MODIFICADO)
)
)
SRI_COMPRAS k
WHERE K.ID IS NOT NULL
AND K.ID_INFORMANTE_XML = J.ID_INFORMANTE
AND K.ID BETWEEN 1 AND 25
)
)
). getClobVal()
in l_XML
ANEXO_INFORMANTE j
where J.ID_INFORMANTE =: P3_MES
and J.RUC =: P3_ID_RUC
and J.ANIO =: P3_ANIO
and J.MES =: P3_MES;
-HTML
sys.owa_util.mime_header('Text/XML',false);
sys. HTP.p ("Content-Length: ' |") length (l_XML));
sys.owa_util.http_header_close;
sys. HTP. Print (l_XML);
end;
Now my table contains over 900 lines and only when I specifically chose 25 rows of the table "ANEXO_COMPRAS" in the case (AND K.ID BETWEEN 1 AND 25) the generated XML.
I think the problem may be with the data type that is declared 'varchar2', but I tried with "CLOB" data type, and the error is the same. +
declare
l_XML CLOB.
Start
-View XML
sys. HTP.init;
wwv_flow.g_page_text_generated: = true;
wwv_flow.g_unrecoverable_error: = true;
-Select XML
Select xmlElement
( .......
)
SRI_COMPRAS k
WHERE K.ID IS NOT NULL
AND K.ID_INFORMANTE_XML = J.ID_INFORMANTE
.........
). getClobVal()
in l_XML
ANEXO_INFORMANTE j
where J.ID_INFORMANTE =: P3_MES
and J.RUC =: P3_ID_RUC
and J.ANIO =: P3_ANIO
and J.MES =: P3_MES;
-HTML
sys.owa_util.mime_header('Text/XML',false);
sys. HTP.p ("Content-Length: ' |") length (l_XML));
sys.owa_util.http_header_close;
sys. HTP. Print (l_XML);
end;
The error generated is ORA-06502: PL/SQL: digital error or value+ _
Please I need your help. I don't know how to solve this problem, how to use the 'CLOB' data type to the XML file can be generating+.
Published by: JohannaCevallos07 on 26-sep-2012 10:52In the DECLARE section:
l_xml clob; chunk_size pls_integer := 32767;
then replace
htp.print(l_XML);
with the loop:
for i in 0..trunc((dbms_lob.getlength(l_xml) - 1) / chunk_size) loop htp.prn( dbms_lob.substr(l_xml, chunk_size, 1 + i*chunk_size) ); end loop;
-
GTT - Global temporary Table - problem with Apex
Hello
I'm having a problem using TWG with Apex. The data generated by a session can be selected by another user in another session. How can this happen?
Thank you
Márcio GoncalezSounds like the connection pooling. You might want to try to change your TWG flush on the end of session to flush the commit.
-
Problem with APEX 4.1, DBLink and NLS_LANG
Hello
I get an error message:
"ORA-12705: unknown or invalid NLS parameter value specified.
When access to the content stored in another database of APEX via a DBLink
I use Application Express 4.1 on the Oracle 11 g XE database
I have an application that uses the dblink to access data on an Oracle 9i server.
NLS_LANG in database 11g: SPANISH_SPAIN. AL32UTF8
NLS_LANG in the 9i database: SPANISH_SPAIN. WE8ISO8859P1
I changed the NLS_LANG 11 g to SPANISH_SPAIN value. WE8ISO8859P1 but nothing happens.
What can I do?
Thank you!Hello
Oracle 9i supports all Format of Date masks supported a 10g database. If you use a database connection, the database tries to set the same NLS settings on the remote database as defined in the current database session.
When you get the error? Do you get in report designer or in your own application? If it's in your own application, check the masks of date format of "globalization application-level attributes."
You must also ensure you actually close the database link in the ' Code from PL/SQL to cleaning "security-Session of database to avoid problems of links of open database in your database session pool. Because otherwise, database sessions that do not need the link database are also affected by this problem, as the generator,...
Concerning
Patrick
-----------
My Blog: http://www.inside-oracle-apex.com
APEX Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolf -
Hi all
I have a tabular presentation on Collection (APEX 4). I want to only update the records that are checked, but it valid and updated all regarless of documents in the saved files. How do I get this (page collection) to update only the selected records. Any help is greatly appreciated.
***********************
It comes to my table to the collection:
DECLARE
l_collection_name VARCHAR2 (50);
l_query VARCHAR2 (32767).
BEGIN
l_collection_name: = 'WORK_TABLE ';
IF (l_collection_name) apex_collection.collection_exists
THEN
() apex_collection.delete_collection
p_collection_name = > l_collection_name);
END IF;
l_query: = 'select seq_no', - c001 = > f01
|| 'fk_paygrade,' - c002 = > f02
|| 'annual_hour,' - c003 = > f03
|| 'A1,' - c004 = > f04
|| "A2," - c005 = > f05
|| "A3," - c006 = > f06
|| "A4," - c007 = > f07
|| "A5," - c008 = > f08
|| "A6," - c009 = > f09
|| "A7," - c010 = > f10
|| "A8," - c011 = > f11
|| "A9,' - c012 = > f12
|| 'A10,"- c013 = > f13
|| "A11," - c014 = > f14
|| 'A12,"- c015 = > f15
|| "A13," - c016 = > f16
|| "A14,' - c017 = > f17
|| "H1,"-= c018 > f18
|| "H2," - c019 = > f19
|| "H3," - c020 = > f20
|| "H4," - c021 = > f21
|| "H5," - c022 = > f22
|| "H6,' - c023 = > f23
|| "H7," - c024 = > f24
|| "H8," - see c025 = > f25
|| 'H9,"- c026 = > f26
|| "H10,' - c027 = > f27
|| "H11," - c028 = > f28
|| "H12,' - c029 = > f29
|| "H13,' - c030 = > f30
|| 'H14,' - c031 = > f31
|| 'NULL' - c032 = > f32
|| 'NULL' - c033 = > f33
|| 'NULL' - c034 = > f34
|| 'NULL' - c035 = > f-35
|| 'NULL' - c036 = > f36
|| 'NULL' - c037 = > f37
|| 'NULL' - c038 = > f38
|| 'NULL' - c039 = > f39
|| 'NULL' - c040 = > f40
|| 'NULL' - c041 = > f41
|| 'NULL' - c042 = > f42
|| 'NULL' - c043 = > f43
|| 'NULL' - c044 = > f44
|| 'NULL' - c045 = > f45
|| 'NULL' - c046 = > f46
|| '' O',' - c047 = > f47
|| ' wwv_flow_item.md5 (seq_no, fk_paygrade, annual_hour, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, H1, H2, H3, H4, H5, H6, H7, H8, H9, H10, H11, H12, H13, H14) '-c048
|| "of paygrade_increase."
() apex_collection.create_collection_from_query_b
p_collection_name = > l_collection_name,
p_query = > l_query);
IF: REQUEST = 'ADD '.
THEN
() apex_collection.add_member
p_collection_name = > l_collection_name
);
END IF;
END;
******************************
The collection to tabular report in the form of:
SELECT APEX_ITEM. HIDDEN (47, c047, NULL, 'f47_' |) ("#ROWNUM #")
|| APEX_ITEM. HIDDEN (48, c048, NULL, 'f48_' |) ("#ROWNUM #")
|| APEX_ITEM. HIDDEN (49, seq_id, NULL, 'f49_' |) ("#ROWNUM #")
|| APEX_ITEM. HIDDEN (1, c001, NULL, 'f01_' |) ("#ROWNUM #")
|| APEX_ITEM. (CHECKBOX
50,
seq_id,
NULL,
CASE
WHEN c047 = 'U' THEN seq_id
END,
':',
"f50_" | "#ROWNUM #
) AS update_checkbox,
APEX_ITEM. (TEXT)
2,
C002,
20,
50,
NULL,
"f02_" | "#ROWNUM #
) as fk_paygrade,
APEX_ITEM. (TEXT)
3,
C003,
20,
50,
NULL,
"f03_" | "#ROWNUM #
) AS annual_hour,
APEX_ITEM. (TEXT)
4,
C004,
20,
50,
NULL,
"f04_" | "#ROWNUM #
) AS A1,.
APEX_ITEM. (TEXT)
5,
C005,
20,
50,
NULL,
"f05_" | "#ROWNUM #
) AS A2.
APEX_ITEM. (TEXT)
6,
C006,
20,
50,
NULL,
"f06_" | "#ROWNUM #
), A3,.
APEX_ITEM. (TEXT)
7,
C007,
20,
50,
NULL,
"f07_" | "#ROWNUM #
), A4,.
APEX_ITEM. (TEXT)
8,
C008,
20,
50,
NULL,
"f08_" | "#ROWNUM #
), A5,
APEX_ITEM. (TEXT)
9,
C009,
20,
50,
NULL,
"f09_" | "#ROWNUM #
), A6,.
APEX_ITEM. (TEXT)
40I
C010,
20,
50,
NULL,
"f10_" | "#ROWNUM #
), A7,.
APEX_ITEM. (TEXT)
11,
C011,
20,
50,
NULL,
"f11_" | "#ROWNUM #
), A8,.
(apex_item). Text
42(I))
C012,
20,
50,
NULL,
"f12_" | "#ROWNUM #
), A9,
(apex_item). Text
13,
C013,
20,
50,
NULL,
"f13_" | "#ROWNUM #
), A10.
(apex_item). Text
44I
C014,
20,
50,
NULL,
"f14_" | "#ROWNUM #
), A11.
(apex_item). Text
15,
C015,
20,
50,
NULL,
"f15_" | "#ROWNUM #
), A12,.
(apex_item). Text
46I
C016,
20,
50,
NULL,
"f16_" | "#ROWNUM #
), A13,
(apex_item). Text
17,
c017,
20,
50,
NULL,
"f17_" | "#ROWNUM #
), A14,
APEX_ITEM. (TEXT)
48I
C018,
20,
50,
NULL,
"f18_" | "#ROWNUM #
) as H1.
APEX_ITEM. (TEXT)
19,
C019,
20,
50,
NULL,
"f19_" | "#ROWNUM #
) as H2.
APEX_ITEM. (TEXT)
20,
C020,
20,
50,
NULL,
"f20_" | "#ROWNUM #
) as H3,.
APEX_ITEM. (TEXT)
21,
C021,
20,
50,
NULL,
"f21_" | "#ROWNUM #
) as H4,.
APEX_ITEM. (TEXT)
22,
C022,
20,
50,
NULL,
"f22_" | "#ROWNUM #
) as H5.
APEX_ITEM. (TEXT)
23,
c023,
20,
50,
NULL,
"f23_" | "#ROWNUM #
) as H6.
APEX_ITEM. (TEXT)
24,
C024,
20,
50,
NULL,
"f24_" | "#ROWNUM #
) as H7.
APEX_ITEM. (TEXT)
25,
see C025,
20,
50,
NULL,
"f25_" | "#ROWNUM #
) as H8.
APEX_ITEM. (TEXT)
26,
C026,
20,
50,
NULL,
"f26_" | "#ROWNUM #
) as H9.
APEX_ITEM. (TEXT)
27,
c027,
20,
50,
NULL,
"f27_" | "#ROWNUM #
) as the H10.
APEX_ITEM. (TEXT)
28,
c028,
20,
50,
NULL,
"f28_" | "#ROWNUM #
) as H11.
APEX_ITEM. (TEXT)
29,
c029,
20,
50,
NULL,
"f29_" | "#ROWNUM #
) as H12.
APEX_ITEM. (TEXT)
60I
C030,
20,
50,
NULL,
"f30_" | "#ROWNUM #
) as H13.
APEX_ITEM. (TEXT)
31,
C031,
20,
50,
NULL,
"f31_" | "#ROWNUM #
) as H14
Of apex_collections
WHERE collection_name = "WORK_TABLE."
***********************************
Page to the collection:
DECLARE
l_collection_name APEX_COLLECTIONS. COLLECTION_NAME % TYPE;
l_original_md5 VARCHAR2 (3000);
l_latest_md5 VARCHAR2 (3000);
BEGIN
l_collection_name: = 'WORK_TABLE ';
FOR x IN 1... apex_application.g_f49. Count
LOOP
IF apex_application.g_f01 (x) IS NOT NULL - ID exists, check to see if the record has been updated
THEN
SELECT C048
IN l_original_md5
Of apex_collections
WHERE collection_name = l_collection_name
AND seq_id = apex_application.g_f49 (x);
l_latest_md5: = wwv_flow_item.md5)
apex_application.g_f01 (x),
apex_application.g_f02 (x),
apex_application.g_f03 (x),
apex_application.g_f04 (x),
apex_application.g_f05 (x),
apex_application.g_f06 (x),
apex_application.g_f07 (x),
apex_application.g_f08 (x),
apex_application.g_f09 (x),
apex_application.g_f10 (x),
apex_application.g_f11 (x),
apex_application.g_f12 (x),
apex_application.g_f13 (x),
apex_application.g_f14 (x),
apex_application.g_f15 (x),
apex_application.g_f16 (x),
apex_application.g_f17 (x),
apex_application.g_f18 (x),
apex_application.g_f19 (x),
apex_application.g_f20 (x),
apex_application.g_f21 (x),
apex_application.g_f22 (x),
apex_application.g_f23 (x),
apex_application.g_f24 (x),
apex_application.g_f25 (x),
apex_application.g_f26 (x),
apex_application.g_f27 (x),
apex_application.g_f28 (x),
apex_application.g_f29 (x),
apex_application.g_f30 (x),
apex_application.g_f31 (x)
);
IF l_original_md5! = l_latest_md5
THEN
() apex_collection.update_member
p_collection_name = > l_collection_name,
p_seq = > apex_application.g_f49 (x),
p_c001 = > apex_application.g_f01 (x),
p_c002 = > apex_application.g_f02 (x),
p_c003 = > apex_application.g_f03 (x),
p_c004 = > apex_application.g_f04 (x),
p_c005 = > apex_application.g_f05 (x),
p_c006 = > apex_application.g_f06 (x),
p_c007 = > apex_application.g_f07 (x),
p_c008 = > apex_application.g_f08 (x),
p_c009 = > apex_application.g_f09 (x),
p_c010 = > apex_application.g_f10 (x),
p_c011 = > apex_application.g_f11 (x),
p_c012 = > apex_application.g_f12 (x),
p_c013 = > apex_application.g_f13 (x),
p_c014 = > apex_application.g_f14 (x),
p_c015 = > apex_application.g_f15 (x),
p_c016 = > apex_application.g_f16 (x),
p_c017 = > apex_application.g_f17 (x),
p_c018 = > apex_application.g_f18 (x),
p_c019 = > apex_application.g_f19 (x),
p_c020 = > apex_application.g_f20 (x),
p_c021 = > apex_application.g_f21 (x),
p_c022 = > apex_application.g_f22 (x),
p_c023 = > apex_application.g_f23 (x),
p_c024 = > apex_application.g_f24 (x),
p_c025 = > apex_application.g_f25 (x),
p_c026 = > apex_application.g_f26 (x),
p_c027 = > apex_application.g_f27 (x),
p_c028 = > apex_application.g_f28 (x),
p_c029 = > apex_application.g_f29 (x),
p_c030 = > apex_application.g_f30 (x),
p_c031 = > apex_application.g_f31 (x),
p_c047 = > 'U,'
p_c048 = > apex_application.g_f48 (x)
);
END IF;
Else - ID does not exist, it must be new record
() apex_collection.update_member
p_collection_name = > l_collection_name,
p_seq = > apex_application.g_f49 (x),
p_c001 = > apex_application.g_f01 (x),
p_c002 = > apex_application.g_f02 (x),
p_c003 = > apex_application.g_f03 (x),
p_c004 = > apex_application.g_f04 (x),
p_c005 = > apex_application.g_f05 (x),
p_c006 = > apex_application.g_f06 (x),
p_c007 = > apex_application.g_f07 (x),
p_c008 = > apex_application.g_f08 (x),
p_c009 = > apex_application.g_f09 (x),
p_c010 = > apex_application.g_f10 (x),
p_c011 = > apex_application.g_f11 (x),
p_c012 = > apex_application.g_f12 (x),
p_c013 = > apex_application.g_f13 (x),
p_c014 = > apex_application.g_f14 (x),
p_c015 = > apex_application.g_f15 (x),
p_c016 = > apex_application.g_f16 (x),
p_c017 = > apex_application.g_f17 (x),
p_c018 = > apex_application.g_f18 (x),
p_c019 = > apex_application.g_f19 (x),
p_c020 = > apex_application.g_f20 (x),
p_c021 = > apex_application.g_f21 (x),
p_c022 = > apex_application.g_f22 (x),
p_c023 = > apex_application.g_f23 (x),
p_c024 = > apex_application.g_f24 (x),
p_c025 = > apex_application.g_f25 (x),
p_c026 = > apex_application.g_f26 (x),
p_c027 = > apex_application.g_f27 (x),
p_c028 = > apex_application.g_f28 (x),
p_c029 = > apex_application.g_f29 (x),
p_c030 = > apex_application.g_f30 (x),
p_c031 = > apex_application.g_f31 (x),
p_c047 = > 'n',.
p_c048 = > apex_application.g_f48 (x)
);
END IF;
END LOOP;
IF: REQUEST = 'DELETE '.
THEN
FOR x IN 1... apex_application.g_f50. Count
LOOP
() apex_collection.update_member_attribute
p_collection_name = > l_collection_name,
p_seq = > apex_application.g_f50 (x),
p_attr_number = > '47',.
p_attr_value = > has '
);
END LOOP;
END IF;
END;
****************************
The table collection
DECLARE
l_table_md5 VARCHAR2 (32);
l_collection_name APEX_COLLECTIONS. COLLECTION_NAME % TYPE;
l_del_count PLS_INTEGER: = 0;
l_upd_count PLS_INTEGER: = 0;
l_ins_count PLS_INTEGER: = 0;
l_success_message VARCHAR2 (32767).
CURSOR op_lock_check_cur (p_id in NUMBER)
IS
SELECT wwv_flow_item.md5 (seq_no, fk_paygrade, annual_hour, a1, a2, a3, a4, a5, a6, a7, a8,
A9, a10, a11, a12, a13, a14, h1, h2, h3, h4, h5, h6, h7, h8, h9,
H10, h11, h12, h13, h14)
OF paygrade_increase
WHERE seq_no = op_lock_check_cur.p_id
UPDATE;
BEGIN
l_collection_name: = 'WORK_TABLE ';
FOR x IN)
SELECT *.
Of apex_collections
WHERE collection_name = l_collection_name
AND IN c047 (', 'U' ' d ' ")
)
LOOP
IF x.c047 = ' don't
THEN
INSERT INTO PAYGRADE_INCREASE)
seq_no,
fk_paygrade,
annual_hour,
A1,
A2,
A3,
A4,
A5,
A6,
A7,
A8,
A9,
A10,
A11,
A12,
A13,
A14,
H1,
H2,
H3,
H4,
H5,
H6,
H7,
H8,
H9,
H10,
H11,
H12,
H13,
H14
) (VALUES
users_seq.nextval,
x.C002,
x.C003,
x.C004,
x.C005,
x.C006,
x.C007,
x.C008,
x.C009,
x.C010,
x.C011,
x.C012,
x.C013,
x.C014,
x.C015,
x.C016,
x.c017,
x.C018,
x.C019,
x.C020,
x.C021,
x.C022,
x.c023,
x.C024,
x.C025,
x.C026,
x.c027,
x.c028,
x.c029,
x.C030,
x.C031
);
l_ins_count: = l_ins_count + 1;
ELSIF x.c047 = "U".
THEN
-Control of optimistic locking
-MD5 should be identical to the collection of initialization proc
OPEN op_lock_check_cur (x.c001);
SEEK op_lock_check_cur INTO l_table_md5;
-Compare checksum values and if they are different, trigger an error.
IF l_table_md5! = x.c048
THEN
raise_application_error)
-20001,
"Current version of the data in the database has changed."
|| "since the process of update initiated by the user."
);
END IF;
UPDATE paygrade_increase
SET fk_paygrade = x.c002,
annual_hour = x.c003,
A1 = x.c004,
A2 = x.c005,
A3 = x.c006,
A4 = x.c007,
A5 = x.c008,
A6 = x.c009,
A7 = x.c010,
A8 = x.c011,
A9 = x.c012,
A10 = x.c013,
A11 = x.c014,
A12 = x.c015,
A13 = x.c016,
A14 = x.c017,
H1 = x.c018,
H2 = x.c019,
H3 = x.c020,
H4 = x.c021,
H5 = x.c022,
H6 = x.c023,
H7 = x.c024,
H8 = x.c025,
H9 = x.c026,
H10 = x.c027,
H11 = x.c028,
H12 = x.c029,
H13 = x.c030,
H14 = x.c031
WHERE CURRENT OF op_lock_check_cur;
CLOSE Op_lock_check_cur;
l_upd_count: = l_upd_count + 1;
ELSIF x.c047 = '
THEN
DELETE FROM paygrade_increase
WHERE seq_no = x.c001;
l_del_count: = l_del_count + 1;
END IF;
END LOOP;
apex_collection.delete_collection (p_collection_name = > l_collection_name);
l_success_message: =.
l_ins_count | "rows inserted." |
l_upd_count | "the lines updated." |
l_del_count | "deleted rows";
: PX_SUCCESS_MESSAGE: = l_success_message;
END;
Thank you very much
MTHello
You need to change your "Page-to-collection: 'code so that you mark the collection member c047 as update (U) only if the checkbox of that particular line has been activated." Given that the global checkbox APEX_APPLICATION variable contains only values checked, you need to perform a loop on the variable in the box for each line determine if the box has been activated.
Here's the pseudocode:
-- Your "Page-to-collection:" code -- continues until this below line... IF l_original_md5 != l_latest_md5 THEN -- -- additional check: mark collection member -- as updated only if checkbox is checked -- -- Loop through checked values array -- to see if the current row checkbox was checked -- FOR y IN 1 .. apex_application.g_f50.count LOOP -- -- compare SEQ_ID stored in hidden item (f49) -- against SEQ_ID stored in checkbox (f50) -- IF apex_application.g_f49(x) = apex_application.g_f50(y) THEN apex_collection.update_member( p_collection_name => l_collection_name, p_seq => apex_application.g_f49(x), p_c001 => apex_application.g_f01(x), p_c002 => apex_application.g_f02(x), p_c003 => apex_application.g_f03(x), p_c004 => apex_application.g_f04(x), p_c005 => apex_application.g_f05(x), p_c006 => apex_application.g_f06(x), p_c007 => apex_application.g_f07(x), p_c008 => apex_application.g_f08(x), p_c009 => apex_application.g_f09(x), p_c010 => apex_application.g_f10(x), p_c011 => apex_application.g_f11(x), p_c012 => apex_application.g_f12(x), p_c013 => apex_application.g_f13(x), p_c014 => apex_application.g_f14(x), p_c015 => apex_application.g_f15(x), p_c016 => apex_application.g_f16(x), p_c017 => apex_application.g_f17(x), p_c018 => apex_application.g_f18(x), p_c019 => apex_application.g_f19(x), p_c020 => apex_application.g_f20(x), p_c021 => apex_application.g_f21(x), p_c022 => apex_application.g_f22(x), p_c023 => apex_application.g_f23(x), p_c024 => apex_application.g_f24(x), p_c025 => apex_application.g_f25(x), p_c026 => apex_application.g_f26(x), p_c027 => apex_application.g_f27(x), p_c028 => apex_application.g_f28(x), p_c029 => apex_application.g_f29(x), p_c030 => apex_application.g_f30(x), p_c031 => apex_application.g_f31(x), p_c047 => 'U', p_c048 => apex_application.g_f48(x) ); END IF; END LOOP; -- end checkbox loop END IF; -- end UPDATE check ELSE --ID does not exist, must be new record -- -- rest of the code for "Page-to-collection:" --
Thank you!
JMcG
-
Problem with Apex 3.2 export
Hello world
A few days ago, I upgraded my APEX of 3.1 to 3.2. It was easy and I had no problem.
After a few tests, everything seems to be right. Cams then the time to make a backup. I use the export as a backup tool utility.
After reading an excellent article by Jan Huyzentruyt "automatically backup your Apex Application", I built a batch file that calls the java class APEXExport. This package works well on Apex 3.1 but in 3.2 gives this error:
Exception in thread "main" java.lang.UnsupportedClassVersionError:
Oracle/apex/APEXExport (unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0 (Native Method)
to the java.lang... etc.
I said: well, no problem, I can always do an export of APEX interface... and it worked, but just for the curious, I compared my last 3.1 export with this recently generated 3.2 export and am surprised: it seems that export 3.2 loses some characters in the generated scripts.
For example. where should say "wwv_flow_api.g_id_offset", sometimes I randomly get "wwv_flow_ap.g_id_offset" (I miss) or "wwv_flow_ai.g_id_offset" (lack of P).
Play with the export options in the interface of the APEX, change of Format from UNIX to BACK, seems to give good export stuff, but File Format is about how lines end (LF or CR/LF) in the resulting file, for things or worse.
A deeper check SEEMS to show that occurs when characters missing when I use accented characters in the object what script is generated.
To work around these problems, I always use 3.1 APEXExport class from java to batch export.
Does anyone have the same problem?
Oscar
BTW: export-> File Format, in addition to the option UNIX and BACK, there is an option of database, but is not documented in the help file and the Application Builder User Guide. Can someone tell me what this option is for?Oscar - Install PL/SQL Web Toolkit 10.1.2.0.6 or higher. See for a recent example of success.
Scott
-
I have installed oracle 10g and oracle application server 10g (http server)
and I install apex and I use the guide as appendxed with apex intallation for intallation
After you run the scripts
I edited the file dads with the following information
Alias is "g:/apex/images / '.
AddType text/xml xbl
AddType text/x-component htc
< apex/pls/location >
Order deny, allow
Docs PlsqlDocumentPath
AllowOverride None
PlsqlDocumentProcedure wwv_flow_file_mgr.process_downloadd
Apex of nasser: 7777:service_name PlsqlDatabaseConnectString
PlsqlNLSLanguage AMERICAN_AMERICA. AL32UTF8
PlsqlAuthenticationMode Basic
SetHandler pls_handler
PlsqlDocumentTablename wwv_flow_file_objects$
PlsqlDatabaseUsername APEX_PUBLIC_USER
Apex PlsqlDefaultPage
PlsqlDatabasePassword pub
PlsqlRequestValidationFunction wwv_flow_epg_include_modules.authorize
Allow all the
< / location >
After that, I ask the url http://nasser:7777/pls/apex
but I got "Internal Server Error"
What is the problem
If there is an error in the file of dads
Help me please
Published by: user3683976 on February 9, 2009 15:19If I understand correctly, you are using the Windows environment, right? So, your alias images should not be 'g:\apex\images/ '?
Hope this helps.
-------------------------
Alias is-"g:/apex/images /"-"g:\apex\images/".
AddType text/xml xbl
AddType text/x-component htc
Order deny, allow
Docs PlsqlDocumentPath
AllowOverride None
PlsqlDocumentProcedure wwv_flow_file_mgr.process_download - d-
Apex of nasser: 7777:service_name PlsqlDatabaseConnectString
PlsqlNLSLanguage AMERICAN_AMERICA. AL32UTF8
PlsqlAuthenticationMode Basic
SetHandler pls_handler
PlsqlDocumentTablename wwv_flow_file_objects$
PlsqlDatabaseUsername APEX_PUBLIC_USER
Apex PlsqlDefaultPage
PlsqlDatabasePassword pub
PlsqlRequestValidationFunction wwv_flow_epg_include_modules.authorize
Allow all the
Maybe you are looking for
-
In 12.4.1.6, where do you see the total number of songs in your iTunes library?
-
Need of repair for Toshiba T4600c
HelloIs it not possible to be sent the service manual for this laptop, because I'm fixing one for a friend, which went well, but I can't understand how the case will get back together!Thanks in advance!
-
Typical time a request for interruption takes between RT LV and LV FPGA.
Currently, I don't have the equipment to test it, and I was looking for some statistics calendar all the time it takes for a request for interruption to process between LV RT and FPGA LV (LV RT generate the interrupt request, waiting LV RT on ack, LV
-
Recently I got a video card break down. Repair technology installed a new and created a new Documents and Settings folder, which is now using my user account. I don't want these settings, I want the 'old'.
-
1DX / Windows 10 wired LAN pairing problems
Since I updated to Windows 10 I can't my LAN WFT matching to work with my 1Dx. There is no report error code. After having reached the matching point in the Connection Wizard, the camera keeps trying to connect but never does. I tried to use the sett