Apex_Item.Date_Popup APEX 4->; bug?
The Apex_Item.Date_Popup which comes with Oracle APEX 4 version has a bug.The date picker will always write the return value in the first row, independent for which line you open the date picker.
Is possible?
Any idea?
Lorenzo
If you use APEX_ITEM. DATE_POPUP in a multirow scenario, you need TO specify the p_item_id parameter.
Use #ROWNUM # as
APEX_ITEM.DATE_POPUP(n,null,col1,null,....,'f01_#ROWNUM#')
I did this back sometimes. I you can't always run with the p_item_id let me know, I will dig the code I used
Kind regards
Tags: Database
Similar Questions
-
apex_item.date_popup formtting question
This is my selection:
SELECT apex_item.hidden(11,col.c001).
apex_item.date_popup
(4, NULL
col.c004
'DD-MM-RRRR', 10, 10
,' title = 'YYYY-MM-DD' ' |
"onChange =" updateTabularForm (this, "SCOPESESS",'|)
Col.seq_id |', 4.18,' |
Decode (mod(rowNum,:P31_ROWCOUNT),
0,: P31_ROWCOUNT, mod(rownum,:P31_ROWCOUNT)) |') ; » »
) start_date
apex_item.date_popup
(5, NULL
col.c005
'DD-MM-RRRR', 10, 10
,' title = 'YYYY-MM-DD' ' |
"onChange =" updateTabularForm (this, "SCOPESESS",'|)
Col.seq_id |', 5.18,' |
Decode (mod(rowNum,:P31_ROWCOUNT),
0,: P31_ROWCOUNT, mod(rownum,:P31_ROWCOUNT)) |') ; » »
) end_date
THE NECK of the apex_collections
WHERE col.collection_name = 'TEST '.
The problem I have is that if the user inserts the date manually - IE 02/02/10 - it is stored in the database as February 2, 10.
Is there something obvious that I'm missing? The original mask was AAAA so we chnaged RRRR, but it has no effect.
Any help would be appreciated.
See you soon
Published by: Lisa from Aus 11/03/2010 17:163 test cases, just do:
1 insert into date_test values (to_date (February 2, 2002 ',' dd/mm/yyyy "")).
Select * from date_test
MY_DATE
02/02/20022 insert into date_test values (to_date (2 February 02 ',' dd/mm/yyyy ""))
Select * from date_test
MY_DATE
02/02/023 insert into date_test values (to_date (2 February 02 ', ' dd/mm/rrrr'))
Select * from date_test
MY_DATE
02/02/2002--
The apex element you create dynamically obviously know the format you want to appear in the date, but the insert statement does not work. So the best thing to do in your insert statement would be to specify the date format (because a collection is just a series of varchar columns).
that is, of the VALUES (: P31_IMPLEMENTATION_ID)
r_rec.session_name
, to_date (r_rec.start_date, ' dd/mm/rrrr')
, to_date (r_rec.end_date, ' dd/mm/rrrr')
);But of course, this still doesn't answer if users he entered in a different format. that is, what happens if they decide to enter in the format: YYMMDD or mm/dd/yy etc.
Van
Trent -
apex_item.date_popup does not get rendering
Hi all
I manually create a form as a table with a model named using the apex_item functions.
All elements are perfectly rendered, except apex_item.date_popup which displays as a dash '-'.
Code is:
Select...
apex_item.date_popup (51,
rownum,
ABSCHREIBUNGSDATUM,
"JJ. MM YYYY ',
11,
11,
'',
"datepicker_" | rownum
) as abschdat,
...
This problem is also visible if I use a standard template. So I guess there is something wrong with my function call.
Any ideas, tips or advice?
Thanks and greetings
MarkusMarkus:
When you use the apex_item API to 'index' value specified must be between 1 and 50. You have defined on 51.
http://download.Oracle.com/docs/CD/E14373_01/apirefs.32/e13369/apex_item.htm#insertedID2
CITY
-
APEX 4 Bug: time share at the date of display Gantt chart is a mess
Hello
A previous thread triggered bug 9861439 on dates in Gantt diagrams.
It seems that everything has been corrected, but I think that something is wrong.
When I on Date format dd-MMM-% YYYY % HH: mm %: %ss (current popup)
Part 'date' is right but the time part is weird: hours always display 12 ', minutes display number of the month and seconds always show '00'.
I tested twice in apex.oracle.com. You can test this?
OscarHi Oscar,.
Thank you for bringing this to my attention. I'll log a bug for this and should have a solution for it in our next release. Unfortunately, in implementing formatting dates in the component of the chart, the time slice is not properly treated. In the meantime, I suggest selecting a format where the component "hour" is not displayed. Sorry for the inconvenience that this may cause.
Kind regards
Hilary -
APEX 4 Bug: Export csv IR includes extra div
Hello
Export of IR, csv files includes a pair of extras div at the end.
Reports of clasic has no problem with csv export
Tested in apex.oracle.com
OscarHi Oscar,.
Thanks for reporting the issue. I was able to reproduce and created a bug to get fixed in the next version.
Christina
-
APEX 5 - bug Builder link when the action is redirect URL
Hello
I noticed a strange behavior of the designer of the Page - link generator when the action is redirect URL.
When I try to make a link to the request URL to report who is in form f? p = & APP_ID.:0 : & SESSION. : PRINT_REPORT = REPORT_NAME value is stored without problem.
After that when I click on the target to change the URL there is no display.
If you want to see URL previously entered, the solution is to switch from Page Designer component mode.
Is this a feature or a bug?
Hello
Thanks for reporting this.
I think that this reproduced only for the buttons, can you confirm that you were testing a link to a button?
And it is indeed a bug, where the button of "redirect url" action starting by ' f? p' load a value zero in the dialog link (filed bug #21517098 to follow it). Although it is a bug, it must be said that in the case you cite, I believe that this should rather be defined as an action to the button "Redirect to the page of this application", where you define just page = 0 and demand (in advance) as 'PRINT_REPORT = REPORT_NAME'. Which works very well in 5.0 and is easier to set than the raw URL.
Kind regards
Anthony.
-
Apex 4 Bug in conditional regions display?
I upgraded to Apex 4 and now face the following problem with one of my applications.
I have two regions of type HTML text on the same page, both with the same condition type (simple SQL exists query), but the second region are displayed. Any ideas?
ChristianHi Christian,
are you sure it worked before moving on to APEX 4.0? In which version it worked? I think how it behaves now is correct.
Page P2_UMFRAGE element has 'Used Source' the value ' Always, replace the value that exists in the session state "which will result in an assignment of the value specified by"Source Type"and" value Source or expression "each time only when the page is rendered. Note: The assignment is made when the item hidden page P2_UMFRAGE is actually 'rendered' in "region 1". The result is simply stored in the session state of memory and not in persistent session state which has reason why you always see "21" when you view session after the return of the page state.
If the flow is as follows:
(1) with the management on page 1, P2_UMFRAGE's persistent session state is set to the current value (eg. 21)
(2) the condition of the region 1 is evaluated, P2_UMFRAGE session state is always 21 why it is rendered
(3) P2_UMFRAGE is rendered as part of the 1st region, this triggers the evaluation of attributes 'Source '.
(4) because 'Source used' is equivalent to ' Always, replace the value that exists in the session state "the APEX engine will assign a new value to session memory to P2_UMFRAGE database state
Note: All of the values specified for a page element like 'Source', 'Default value', 'Post calculation' will always change only in memory session state. Only the calculations or PL/SQL process will write in permanent session state.
(5) the condition of the 2nd region is evaluated, the session state from P2_UMFRAGE has the value NULL is why the condition false reviewsHope that explains why zone 2 is not displayed. But I still wonder why it worked before APEX 4.0, because I'm not aware of any change in this area.
Concerning
Patrick
PS: I changed the Type of 'Source' to "Only when the current value in session state is zero" and now the two regions are displayed.Published by: Patrick Wolf3, July 14, 2010 11:08
-
apex_items and apex global tables
Hello
I use apex_item.checkbox and apex_item.text via a report sql like this:
and an after submit processes like this:SELECT id, apex_item.checkbox(1,id) " ", apex_item.text(2,name) "name" FROM APEX_APPLICATION_FILES WHERE REGEXP_LIKE(name,'txt');
I have two lines as sample data:DECLARE BEGIN --Loop through the selected id FOR i in 1..apex_application.g_f01.COUNT LOOP IF apex_application.g_f01(i) IS NOT NULL THEN INSERT INTO INC9_TEST(t2)values(apex_application.g_f02(i)); wwv_flow.debug('MY PROCESS:' || APEX_APPLICATION.G_F02(i)); END IF; END LOOP;
When I select the checkbox for Id 2, it keeps returning Id 1 in the global table of apex_applicaiton.g_f01 instead of Id 2. But if I select the two check boxes, then it correctly she travels with the id of 1 and 2. Anyone know why this is happening and what is the fix for this strange behavior?Id name 1 abc 2 def
Thank youOK - I explained that, on the thread I linked to. You must have the check box values set for line numbers. This can be done by using something like:
APEX_ITEM.CHECKBOX (1, '#ROWNUM#')
Now, if the user activates the boxes, the submitted values will be the line numbers.
You can then use this to retrieve the value of NAME to the same line:
DECLARE vROW NUMBER; vNAME VARCHAR2(100); BEGIN FOR i IN 1..APEX_APPLICATION.G_F01.COUNT LOOP vROW := APEX_APPLICATION.G_F01(i); vNAME := APEX_APPLICATION.G_F02(vROW); ... etc... END LOOP; END;
So, first get us the line number for each active element, and then use it to get the value of the corresponding row name.
Andy
-
I'm sure this has already been reported. Somehow I don't can't find it.
Apex Application Builder > Page > edit all regions
If you try to make a change in the form of tables and submit it will say 'Update page n s.', but it will not save those. Once the page is loaded, it will show the former status. I double checked it and it's the same behavior on apex.oracle.com and on my local installation.
Denes Kubicek
-------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Opal-consulting.de/training
http://Apex.Oracle.com/pls/OTN/f?p=31517:1
-------------------------------------------------------------------This was reported on 9 March 09 by Flavio. It will be corrected in the 3.2.1 patch.
Scott
-
APEX documentation bug: Application Builder user's Guide
Oracle Application Express Application Builder User® Guide version 4.0, Chapter 12
>
Look at debugging deport
>
Should read "display Debug reports."Please note this. I passed the information along the authors of application Express.
-
APEX_ITEM. DATE_POPUP returns NULL Version 4.2.6
I apologize in advance if I'm misunderstanding here, but should not return the following query a few HTML, etc. ?
SELECT APEX_ITEM. DATE_POPUP (1, rowNum, to_date(sysdate,'DD-mm-YYYY'), 'DD-mm-YYYY') date_html
OF the double
I am confirming my queries through SQL Developer first and then plan to add to a report of the APEX for a manual form. APEX_ITEM. TEXT Returns HTML can be used in SQL Developer, but I can't understand why APEX_ITEM. DATE_POPUP returns NULL regardless of any parameter combinations I try. Thanks in advance for the answers.
user10730448 wrote:
Please update your forum profile with a recognizable username instead of "user10730448": Video tutorial how to change username available
I apologize in advance if I'm misunderstanding here, but should not return the following query a few HTML, etc. ?
SELECT APEX_ITEM. DATE_POPUP (1, rowNum, to_date(sysdate,'DD-mm-YYYY'), 'DD-mm-YYYY') date_html
OF the double
Do not apply
to_date
conversionsysdate
. It's already a DATE value.I am confirming my queries through SQL Developer first and then plan to add to a report of the APEX for a manual form. APEX_ITEM. TEXT Returns HTML can be used in SQL Developer, but I can't understand why APEX_ITEM. DATE_POPUP returns NULL regardless of any parameter combinations I try.
It is the expected behavior. Some API calls can be used successfully since in a valid session of APEX. You can validate
apex_item.date_popup
query in the APEX SQL Workshop. Note thatapex_item.date_popup2
is the recommended method because it shows a more modern jQuery calendar. -
I would like to find a copy of the APEX tracker bug that used to be on the page web apex.oracle.com. Someone know where I can find that?
I know that moving to the cloud and I will address the question, but I join a local copy to experiment.I have a copy
source
https://docs.Google.com/open?ID=0B_eVXQ_oe4tsSXNXUVpGQkNURWF6TmthTEQ4NnpadwReadme file
https://docs.Google.com/document/d/1e3PerYZZ4K-lzMA85SCgVPpUyDSA2_I3ARuy0nQpJIQ/editScott
-
Apex_item.text dynamic item add or subtract value
I have a report that creates dynamic items using the package apex_item, like this:
In the latter type of element (where typ_id is 5) I want to have a textfield allowing only numberic values. If the user clicks on the image "add.gif" the value of the element must be added by 1, and when the user clicks on 'substract.gif' value must be lowerd by 1. How can I make this work? The images can be replaced by another element, if necessary.select id , apex_item.hidden(1,id) , label , decode(typ_id, 1, apex_item.text(p_idx=> 2, p_value=> null, p_attributes=> 'class="number"') || 'num', /*this should be a numberic field, isn't working jet*/ 2, apex_item.text(2), 3, apex_item.select_list_from_query(p_idx=> 2, p_query=> 'select label, id from list where prop_id = ' || id, p_show_null=> 'NO'), 4, apex_item.date_popup(2, 0), 5, apex_item.text(2,'0') || '<a href="f?p=&APP_ID.:1:&SESSION."><img src="#WORKSPACE_IMAGES#add.gif"/></a> <a href="f?p=&APP_ID.:1:&SESSION."><img src="#WORKSPACE_IMAGES#substract.gif"/></a>', descr ) value from properties order by id
Hi Mir,
My apologies for the restructuring of the query using case. I hope this would help you. The code could be much simpler if you could take the JS logic to a JS function on the page.
http://Apex.Oracle.com/pls/Apex/f?p=44973:2
See you soon
Ligon
PS: The code for formatting here has been driving me crazy so I have to put it in a page to show you :) -
detection of apex_item in javascript null value
Request Express 3.2.0.00.27
I have the javascript code that is called from a trigger of js on charge.
I have a manually created form tablur here is the code for the form region:
If the column that is passed to in ('f15') is not null I want to change the display type to hidden and the t20data class. This I hope that this makes it visible, but not updateble.SELECT APEX_ITEM.POPUP_FROM_LOV(15,c001,'AUTH_LOV',NULL,NULL,0,NULL,NULL,NULL,'YES','f15_' || '#ROWNUM#') authid, apex_item.hidden(16, c002, NULL,'f16_'|| '#ROWNUM#') empid, -- apex_item.display_and_save(16,c002,'f16_'|| '#ROWNUM#') empid, apex_item.date_popup(17, rownum, c003, 'DD-MON-YYYY',20,2000,NULL,'f17_' || '#ROWNUM#')deldate, apex_item.textarea(18,c004,5,40,NULL,'f18_'|| '#ROWNUM#') "Delegation scope", apex_item.textarea(19,c005,5,40,NULL,'f19_'|| '#ROWNUM#')"Delegation limits", apex_item.select_list_from_lov(20,c006,'YESNO_LOV',NULL,'NO','N','%','f20_'|| '#ROWNUM#')"ORA Signed", apex_item.date_popup(21, rownum, c007, 'DD-MON-YYYY', 20,2000,NULL,'f21_' || '#ROWNUM#') "Del expiry", apex_item.date_popup(22, rownum, c008, 'DD-MON-YYYY', 20,2000,NULL,'f22_' || '#ROWNUM#') "Date removed", apex_item.textarea(23,c009,5,40,NULL,'f23_'|| '#ROWNUM#') "Delegation comments", apex_item.POPUP_FROM_LOV(24,c010,'DELEGATION_LOV',NULL,NULL,0,NULL,NULL,NULL,'YES','f24_' || '#ROWNUM#') "Delegator", apex_item.display_and_save(25,c011,'f25_'|| '#ROWNUM#') status, -- apex_item.display_and_save(26,seq_id,'f26_'|| '#ROWNUM#') seq_id, apex_item.hidden(26, seq_id,NULL,'f26_'|| '#ROWNUM#') || apex_item.checkbox(27, seq_id,NULL,NULL,':','f27_'|| '#ROWNUM#') chkbx FROM apex_collections WHERE collection_name = 'DELEG_COLL' AND c011 IN ('O','N','U','D') --order by c001
Otherwise when rendering I want to render with default values of the api apex_item for a LOV.
I check a null like this:
function changeProp(pCol) { var elms = document.getElementsByName(pCol); for (i=0; i< elms.length; i++) { /* elms.style.backgroundColor = 'yellow'; */
if $v_IsEmpty(elms[i].value) {
alert('The value is' + elms[i].value);
}
}
}
function changeProp(pCol) {
var elms = document.getElementsByName(pCol);
for (i=0; i< elms.length; i++) {
/* elms[i].style.backgroundColor = 'yellow'; */
if (elms[i].value == null or elms[i].value == '%null%') {
alert('The value is' + elms[i].value);
}
}
}
The alert ( alert('The value is' + elms.value); is only used to verify I am readying the value correctly. WHen executed outside of the if clause it does show the correct value.
However the code above is not execting when a new row is created and hence f15 should be null. In the code above you can see I have tried to check for a null value in two different ways with no success.
Once it detects the null I would want to change the class to t20data and the type to hidden.I could do this in the report query, instead of using JavaScript, but nvl, nvl2and coalesce are better than decode for the treatment of NULL values:
nvl2( c001, apex_item.display_and_save(15,c001,'f15_'|| '#ROWNUM#'), apex_item.popup_from_lov(15, c001, 'AUTH_LOV', null, null, 0, null, null, null, 'YES', 'f15_' || '#ROWNUM#')) authid,
The error message is due to the use of page focus of the cursor attribute, or some custom JavaScript that attempts to set the focus of cursor in an element that cannot be entered. If the focus of the cursor is set to 'First element on the page', try replacing it "do not focus cursor. (If this corrects the problem, but you want to focus on the first entrable element at the entrance to the page that you need to write some custom JS to do this).
-
Update of the collection based on (wwv_flow.g_f01) report
Hi all
I have a page in my application that contains 3 standard reports based in a collection. There is a main report and from there you explore the other report, and from there you can go down to another (3rd report) that I'm trying to update a member of the collection based on an lov. I don't know how to insert the value from the lov in the 3rd report.
Select seq_id
IN CURR_SEQ_ID
of apex_collections
where collection_name = "ARGYLL_INVOICES."
and c001 | C002 =: P12_EPSB_JE_HEAD_LINE_NUM;
apex_collection.update_member_attribute (p_collection_name = > 'ARGYLL_INVOICES',)
p_seq = > CURR_SEQ_ID p_attr_number = > 17, p_attr_value = > "EDMO");
It works fine, but of course, it is hard coded. I would use the api wwv_flow.g_f01 but I can't make it work with my rudimentary understanding of this api call.
apex_collection.update_member_attribute (p_collection_name = > 'ARGYLL_INVOICES',)
p_seq = > CURR_SEQ_ID p_attr_number = > 17, p_attr_value = > wwv_flow.g_f01 (a few references here);
Any guidance would be most appreciated.
Thank youHere is an excerpt from a quick tutorial on the use of collections. I'm including the section of the report you can see the corresponding values:
SELECT rownum, apex_item.hidden(1, c001), --Key ID apex_item.text(2, c002, 8, 8) VALUE1, apex_item.text(3, c003, 3, 3) VALUE2, apex_item.text(4, c004, 8, 8) VALUE3, apex_item.date_popup(5, null,c005,'MMDDYYYY',10,10) MY_DATE FROM APEX_COLLECTIONS WHERE COLLECTION_NAME = 'MY_COLLECTION'
It will be a report as a SQL report - you are just pulling the data from the collection. You can always ask the nice formatting, naming, sorting, etc. of a standard report. In the report, the user will have 3 values 'text' and a Date with the date picker. You can change the format, make sure just to change all four procedures.
What is critical to note here are the numbers that come just before the column names. These numbers become identifier in the table used to capture data. What is APEX is creates an array of up to 50 items designated as F01 - F50. The F is static, but the number that follows, it matches the number on your tax report above, IE, F01 will contain the primary key value, F02 will contain the first numeric value, etc.. Although not strictly necessary, it is advisable to assign these values so you don't have to guess.
A note more: I try to align c00x values in the column with the values of F0X collection in the table to stand straight, but they are values that do NOT have to match. If you have a request that you think could get developed, you can leave gaps where you want. Remember, however, that you have only 50 columns of table to use for the data entry. It is the limit of F0X table even if a collection can have up to 1000 values.
Now, you need a way to capture the user input. I like to create this as a PRELIMINARY procedure CALCULATIONS/VALIDATIONS in this way the user can see what they changed (even if it is false). Use Validations to intercept errors.
declare j pls_integer := 0; begin for j1 in ( select seq_id from apex_collections where collection_name = 'MY_COLLECTION' order by seq_id) loop j := j+1; --VAL1 (number) apex_collection.update_member_attribute (p_collection_name=> 'MY_COLLECTION', p_seq=> j1.seq_id,p_attr_number =>2,p_attr_value=>wwv_flow.g_f02(j)); --VAL2 (number) apex_collection.update_member_attribute (p_collection_name=> 'MY_COLLECTION', p_seq=> j1.seq_id,p_attr_number =>3,p_attr_value=>wwv_flow.g_f03(j)); --VAL3 (text) apex_collection.update_member_attribute (p_collection_name=> 'MY_COLLECTION', p_seq=> j1.seq_id,p_attr_number =>4,p_attr_value=>wwv_flow.g_f04(j)); --VAL4 (Date) apex_collection.update_member_attribute (p_collection_name=> 'MY_COLLECTION', p_seq=> j1.seq_id,p_attr_number =>5,p_attr_value=>wwv_flow.g_f05(j)); end loop; end;
Clear as mud? Walk slowly through it. The syntax tells APEX Collection (p_collection_name) (p_seq) line, then what attribute/column (p_attr_number) updated with the value (wwv_flow.g_f0X (j)). The number of the attribute is the column number of the collection without the 'c' on the front (IE c004 in the collection = attribute 4).
See if this helps answer the question. You'll notice that I'm grabbing values SEQ_ID of the collection and a loop through them one at a time and using them to find the index of the JavaScript array holding the corresponding value, I need to use in the update part.
Maybe you are looking for
-
Photosmart C5380: After having changed all the cartridges printer still does not
My printer says there is a problem of ink cartridge, ink cartridges seem to be damaged or missing, so I just replaced all. However it did not help that the message still appears. It becomes quite frustrating. What can I do?
-
Pavilion 500-424: memory upgrade
My memory may be improved? I'm now 8 gig.
-
Pavilion tx1410us - error messages from the BIOS disk Test
My first post here so greetings and a happy new year to all. I have a Pavilion tx1410us who seems to have a hard drive problem. I have Vista (Partition 2 - 60 2 GB as/dev/sda2) and Ubuntu 10.10 64-bit (1-1 St 20 GB as/dev/sda1 Partition) on the first
-
Hi all I am trying to bring a map of ISM installed on ASR9K running 4.2.1. Card appears under inventory, but guard pop in and out of the "platform" show as well between the two below 2 States: 2/0/CPU0 A9K-ISM-100 (LCP) IOS XR PWR PREP, NSHUT, LUN An
-
New blackBerry in the world of Blackberry smartphones
Why does take so long to see my pictures that I have saved on my memory card? There are quite a few pictures, but it's REALLY slow. In addition, I know not how do I know what version of the software that I loaded my phone... I just bought an indivi