Sorting on date (date_popup2) in manual tabular form does not work
Hi All,
I created a manual tabular form (based on a collection) with 1 date_popup2 field in it. This field is defined in the query as follows:
, apex_item.date_popup2( p_idx => 18
, p_value => c004
, p_date_format => 'dd-mm-yyyy'
, p_item_id => 'f18_' || lpad (rownum, 4, '0')
, p_item_label => 'Start date'
) as tf_br_start_date
In the report attributes I marked this column to be sortable.
However, in the page the sorting is not working. It looks like it's always sorted in the order of the seq_id.
Can anyone tell me how to solve this?
Regards,
René
I'd call it a bug/missing feature.
It appears that within a Basic report, sorting on a column created using APEX_ITEM.DATE_POPUP2() does not sort by date.
I'd file this with Oracle Support and see what they say.
Include a link to this thread and your workspace login information.
I got something to work by: (probably not what you want.)
using the C004 column directly. (I just added it to the SQL code)
setting the column's attribute "Display As" to "Date Picker"
setting the column's attribute "Number /Date Format" to DD-MM-YYYY
I suspect: since you don't start with p_idx => 1, this column becomes "1" ==> g_f01
MK
Similar Messages
-
Insert in Tabular form does not work after the upgrade to APEX 4.0
Hi all,
Thx in advance for looking into the issue.
We are running into following issue when we upgraded APEX 3.2 to APEX 4.02
1) The Tabular form insert does not work.
2) We are fatching the value of the Global variable APEX_APPLICATION.g_XXXX in a procedure and we get null for this value after submit for new row to be inserted.
The tabular form was working fine in APEX 3.2.
The Update and Delete works just fine.
Any help in this regard is highly appreciated.
Thx and regards,
MaheshHere is my workaround to get the ADDROW/SUBMIT working again if you have a legacy Tabular Form:
1 PAGE ATTRIBUTES
JAVASCRIPT
FUNCTION AND GLOBAL VARIABLE DECLARATION
var htmldb_delete_message='"DELETE_CONFIRM_MSG"';
2 DELETE BUTTON
ACTION WHEN BUTTON CLICKED
URL Target change to
javascript:apex.confirm(htmldb_delete_message,'MULTI_ROW_DELETE');
3 ADDROW BUTTON
ACTION WHEN BUTTON CLICKED
Action
redirect to URL
URL Target
javascript:addRow();
4 PROCESS
APPLYMRU (activitated by button ADDROW)
CONDITION
never or delete
5 PROCESS
ADDROWS
CONDITION
never or delete
6 CHANGE PAGE TEMPLATE to e.g. THEME 13 One Level Tabs.
7 IF YOU WANT ADD FUNCTIONALITY TO GOTO BOTTOM OF PAGE AFTER ADDROW
1. In the page footer put <a name="bottom_of_page"></a>
2. Amend the action when the "ADD" button is clicked to scroll down to the new region by doing the following:
- edit "ADD" button
- Go to "Action when button Clicked" section
- Amend "URL Target" from
javascript:addRow();
to
javascript:addRow();window.location='#bottom_of_page' ;
regards
PaulP -
Updating a table through a manually created tabular form does not work.
Hi Friends,
I don't know why the "On submit - After computations and validations" process does not update the referenced table. May I miss something. Here is my source :
select
apex_item.hidden(1,eqp_id) id,
apex_item.hidden(2,tcs_tcs_id) tcs,
apex_item.text(3,eqp_equip_name,50) name,
apex_item.text(4,eqp_equip_ident,50) ident,
apex_item.text(5,eqp_equip_type,15) type
from equip_physical
where tcs_tcs_id = :P1_TCS_ID
and here is the process source
FORALL i IN 1..apex_application.g_f01.count
UPDATE equip_physical
SET eqp_equip_name=apex_application.g_f03(i),
eqp_equip_ident=apex_application.g_f04(i),
eqp_equip_type=apex_application.g_f05(i)
WHERE eqp_id=apex_application.g_f01(i);
No error message is displayed and my success message associated to the process is displayed. But the modified text field value is erased and the database table is not updated.I'd call it a bug/missing feature.
It appears that within a Basic report, sorting on a column created using APEX_ITEM.DATE_POPUP2() does not sort by date.
I'd file this with Oracle Support and see what they say.
Include a link to this thread and your workspace login information.
I got something to work by: (probably not what you want.)
using the C004 column directly. (I just added it to the SQL code)
setting the column's attribute "Display As" to "Date Picker"
setting the column's attribute "Number /Date Format" to DD-MM-YYYY
I suspect: since you don't start with p_idx => 1, this column becomes "1" ==> g_f01
MK -
Add rows to tabular form does not work
When two user try to "Add row" simultaneously then nothing happens i.e no new row is added.
When one of the user clicks on the "Previous" pagination buttons then only its possible to add a new row. The following pagination options is used in the report:
Row Ranges 1-15 16-30 in select list (with pagination)
I use internal Application Express account credentials and login page in this application as my authentication scheme.Any idea, what is not working here.
Help! -
Hi
I use Adobe Livecycle Designer7.0 English and Acrobat7.0.8 Japanese. I made forms to upload to Workflow Server. One form I made does not work at all when the form is opened in the Form Manager.
It is strange that the PDF preview of the Designer works well.
1. Page Counter
In the master page of the form I set a page counter field from the custom library. In the preview it works well but when the form is opened from Form Manager it does not work. It looks like "Page ##/##".
2. Font is not shown
I put a button in the form. The font of the button is set to "MS UI Gothic", but when the form is opened from Form Manager the font of the button is "KozukaMincho".
3. JavaScript does not work
I wrote javascript to change the caption of fields like this.
----- form1.#subform[0].Button1::click - (Javascript, client)
FieldA.rawValue = "test";
FieldB.rawValue = "test2";
This script does not work too when the form is opened.
These issues are basic but I do not know where is wrong. Because no error message appears when I test the form in the PC.
Please advise about these issues.
Thanks,
AkiraHi Jared,<br /><br />I am very glad to read your reply. <br />I added a button with the script you wrote in previous reply and found that Form Manager changed the root tag. <br /><br />The xsd file I define to the data is like this<br /><br />b <Message> //rootnode name <br /><br /> <Heade></Header><br /> <Contents><br /> <FieldA></FieldA><br /> ......<br /> </Contents><br /> <Footer><Footer><br /></Message><br /><br />So, I set the structure of the form like this.<br /><br />b <Message> //This is name of contents area<br /><br /> <Header></Header> //Subform name<br /> <Contents> //Subform name<br /> <FieldA></FieldA><br /> ......<br /> </Contents><br /> <Footer></Footer> // Subform name<br /></Message> <br /><br />But the saveXML script write out like this:<br /><br />b <fields><br /><br /> <Header></Header><br /> <Contents><br /> <FieldA></FieldA><br /> ......<br /> </Contents><br /> <Footer></Footer><br /></fields> <br /><br />So I changed all of the Javascript using relative path and I upload this form again to the FM, but this form does not work...<br />I am not sure that it must be the same name between the rootnode of the xsd file and the name of the contents area. <br /><br />Jared and all, would you let me know whatever you find about this issues.<br /><br />Best regards,<br />Akira
-
Date Picker on Manual Tabular form not working on 4.1 upgrade from 4.0
Hi
my application is upgrade from Apex 4.0 to 4.1 .
Oracle DB is 11g.
I have a manual tabular form with a date field:- apex_item.text(12,null,15,15,'class="datepicker3"') as end_date, After upgrade to 4.1 it's not working .
I changed the code to:- apex_item.date_popup2(12,null,15,15) as end_date, still not working .
I have to use apex_item.date_popup2 .
Thanks in advance !!!
-AmuHi Diana,
Is this you are trying to achieve:
piepdate = startdate + typeduration
The id attribute of the items in normal or APEX_ITEM based tabular form are of the type:
fxx_xxxx
For example: f10_0001, f10_0002, ..., f10_0010.
So, correct the vRow variable accordingly
>
// get row
var vRow = pThis.id.substr(pThis.id.indexOf('_')+1);
>
Hope it helps!
Regards,
Kiran -
Manual Tabular Form - Items not rendered
Hi,
i'm trying to build a manual tabular form:
I added a blnak page with a Report Region using a SQL Query in a Classic Report:
select apex_item.text(1,"EMPNO") as "EMPNO",
apex_item.text(2,"ENAME") as "ENAME",
apex_item.text(3,"JOB") as "JOB",
apex_item.text(4,"MGR") as "MGR",
apex_item.text(5,"HIREDATE") as "HIREDATE"
from "EMP" "EMP"The items are not rendered in the report, but the HTML Text is displayed instead.
See http://tinypic.com/r/2e6bqdu/5
I played around with "Display As" in the Column Attributes - no luck.
I used this links as reference:
http://apex.oracle.com/pls/otn/f?p=31517:170:2228543603318893:::::
http://www.oracle.com/technetwork/developer-tools/apex/tabular-form-090805.html (To build a tabular form manually:)
http://apexjscss.blogspot.com/2010/05/manual-tabular-form.html
Am i missing something ?
APEX 4.1 on 11gr2
regards,
gwThe "Display As" for each column should be "Standard Report Column".
Seems the default "Display as" for standard reports has changed:
I created your standard report in a 3.2 environment and the report defaulted the "Display As" for each column to "Standard Report Column".
I created your standard report in my own 4.0 environment and in the hosted apex.oracle.com environment and the report defaulted the "Display As" for each column to "Display as Text (escape special characters, does not save state)" -
Use member on data form does not work
Hello,
"Use member on data" option does not work on composite Data Form. Business rule associated with composite form.
Who is resolve this problem?
Version hyperion: 11.1.2
ThanksI don't have a solution for you but more steps to solve the problem
You are ultimately on the right track in some ways but break it down into it's components.
The problem could like in the business rule, the form connection, the variables, even the order of operations could all be in play.
So I would strip this baby down to its bare bones then build it back up.
1) Run the business rule. Each one separately and only after the previous ones is complete without variables and without touching the form
Is it successful: go to 2
If it isn't successful: trouble shoot the calc and or try running in EAS natively to see if that gives you ideas
2) Run the calc outside the form but with variables included. Did it prompt you correctly.
Is it successful: go to 3
If it isn't. What is wrong with the variable
3) Now attach it to the form but don't hide the prompts
Still good go to 4
4) hide the prompts and run on save
And if it fails on step four then it's not picking up the right variables in the prompt. And you need to look at why it wouldn't grab the right item.
This will isolate your problem for you and give you steps to fix it. Ultimately 99% of the time something did change in the structure for example that is impacting the calc. And when you isolate the problem this will reveal itself quite quickly. -
Manually dispatching a keyboard tab event on a form does not work
Hi,
I am trying to solve the following issue:
I have a form that is sitting on a TitleWindow. This is a popup window. I have a TextInput field. After clicking on the TextInput field when I try to paste something on it, nothing happens the first time and it works i.e. I am able to paste when I do a cntrl V the second time (I am trying to solve this weired behavior). When I use the keyboard to tab to the TextInput field I am able to paste using cntrl V the first time itself.
Therefore, I am trying to manually dispatch a tab keyboard event on a form using the following code and this does not work. I have 2 TextInput component on the form and I want the cursor to be on the second TextInput component.
I have a have a key down handler and I can see that the event that comes in is a tab event, but on the UI the cursor does not position itself correctly.
myForm.setFocus();
myForm.dispatchEvent(
new KeyboardEvent(KeyboardEvent.KEY_UP, true, false, Keyboard.TAB,Keyboard.TAB ))
Am I missing something?
Appreciate your help.
Thanks
LillyNo I am not trying to change the text programmatically. I have added a click event handler and a paste event handler on the textinput. I checked the differences in the properties of event and did not see anything that is different.
I have a hunch that it has something to do with the fact that this form is sitting on a popup window. -
Setting default value to columns on tabular form is not working.
Hi,
I created a tabular form and i want to set some default values to columns based on the values in page items.
so i set the page item to column value in tabular form attributes by selecting the Default type as PLSQL Expression & Function DEFAULT value &P24_ISSUE_ID. it worked fine but
in the similar way i tried for the another column by selecting the default type as pl/sql expression & function and default value &P24_CASE_NAME.
but it throwing an error for this like failed to parse SQL query: ORA-00904: "C254DB": invalid identifier
i don't understand where i gone wrong even i checked for the data types of the columns, everything is fine.
so please help me out of this problem.Tulasi 1243 wrote:
for the first column
i selected
DEFAULT TYPE as PL/SQL Expression & FUNCTION
Default as *&P24_ISSUE_ID.* This is a number data type column
2nd column
Default Type as PL/SQL Expression & Function
Default as *&P24_CASE_NAME.* This is Varchar2 data type column.The appropriate options for a default value from a page item are Item (application or page item name) for Default Type and the item name ( P24_ISSUE_ID, P24_CASE_NAME etc) for Default.
*&P24_ISSUE_ID.* is not a "PL/SQL Expression or Function".
but it throwing an error for this like failed to parse SQL query: ORA-00904: "C254DB": invalid identifierWhat you are doing results in the APEX engine substituting the P24_CASE_NAME value "C254DB" into the default value and then trying to evaluate this string as a piece of PL/SQL. Outside of a block in which it is defined as a variable, constant or function "C254DB" is not a valid PL/SQL expression. -
Tabular Form Validation not working in tabular form APEX 4.0
Hi,
I am using APEX 4.0. I have a tabular form with Tabular form validation done with it.
Item not null is the validation.. so if I dont type any value in the any of the fields in the tabular form and press the Submit button, the first time error is shown... but when I click the Submit button again, with still the empty rows the page is submitted.
How to resolve this issue?
Edited by: Suzi on Oct 5, 2010 11:13 AMLook at this thread - Re: Validations of tabular forms in 4.0
-
I don't have a problem, but I would like to offer a solution to people who might make the same mistake as I did:
When you build a tabular form on a table and the submit button does not seem to work, check whether your table has a primary key.
I created a table, triggers and all the other constraints and for some reason the (tabular) form I created did not update the table, even though I had told it that the primary key was the ID in the table and it was filled by a trigger (which was true).
I tried creating a different form on a different table and then I noticed that the primary key was filled in for me this time, and that this hadn't been the case in the first form. I added the primary key to the table and voila, problem solved.
Is this intended behavior ? I wonder why the user is allowed to specify the primary key when the wizard does not find it, because this does not seem to have any effect. So why not try to find the primary key and warn the user when it is not present?
Just my 2 cents....Sloger,
if this is your tabular form
SELECT apex_item.checkbox (30,
...and this is your update statement
FOR i IN 1..APEX_APPLICATION.G_f*30*.COUNT
...Then you will only ever update records that have been checked. Unchecked checkboxes are not passed back in the global array. You need to have a hidden column with the ID's for the record and loop through that when you are updating/inserting. That is why the built in tabular form has a MRU and a MRD. the MRU loops through the hidden ID column. The MRD loops through the checkbox.
Thanks,
Tyson Jouglet -
ExternalInterface in C# form does not work with debug ActiveX control
Hello,
I have a C# form that is a container for the Flash ActiveX
control. Everything works find as far as communication between the
two (container and Actionscript) if I use the release version of
the ActiveX control. If I use the debug version, the container does
not receive call events. Obviously I need to be able to debug both
the C# and actionscript code simultaneously. I have searched this
forum (and others) for any insight, but nothing glares out at me.
Could this possibly be a security issue?
BradI thing I have a solution for you. I created a note on it end of November (unfortunately, our systems have not replicated it to the outside yet). Here is the content of the note:
Symptom
Using Visual Studio .NET, database logon code is not recognized.
Crystal reports Viewer database logon parameter screen prompts for login.
This symptom is only observed when using Crystal Reports 2008 Service Pack 2.
Crystal Reports 2008 with Service Pack 1 works as expected.
Reproducing the Issue
Use Crystal Reports 2008 SP2 to create a report with dynamic parameter(s)
Use the following code from the Crystal Reports SDK for VS .NET
Dim crDatabase As Database
Dim crTables As TablesDim crTable As Table
Dim crTableLogOnInfo As TableLogOnInfo
Dim crConnectionInfo As ConnectionInfo
crReportDocument.Load("<path>")
crReportDocument.Refresh()
crConnectionInfo = New ConnectionInfo()
With crConnectionInfo
.ServerName = "<New Server Name>"
.Password = "<password>"
End With
crDatabase = crReportDocument,Database
crTables = crDatabase.Tables
For Each crTable In crTables
crTableLogOnInfo = crTable.LogOnInfo
crTableLogOnInfo.ConnectionInfo = crConnectionInfo
crTable.ApplyLogOnInfo(crTableLogOnInfo)
Next
CrystalReportViewer1.ReportSource = crReportDocument
The above code works with Crystal Reports 2008 SP 1
Resolution
Add .DataSourceConnections(0).SetConnection to the code as follows:
For Each crTable In crTables
crTableLogOnInfo = crTable.LogOnInfo
crTableLogOnInfo.ConnectionInfo = crConnectionInfo
crTable.ApplyLogOnInfo(crTableLogOnInfo)
Next
''This is the line of code to be added ****
crReportDocument.DataSourceConnections(0).SetConnection("Sever Name", "Database Name", "Use ID", "Password")
CrystalReportViewer1.ReportSource = crReportDocument
The issue has been submitted for a resolution.
Tracking number is ADAPT01333806. -
Don't have proper privilege to change the date and time. Group Policy does not work
Hello All,
I have configure group policy to change date and time only administrator. The problem is Windows XP machine cannot view the calendar but windows 7 can. So i need to view the calender for windows XP machine.
Error: you do not have proper privilege to change the date and time.
Please suggest.
ThanksHi Parvez,
Before going further:
I applied a VM Windows XP pro. When I logged in as a local admin, I can view the calendar from the right corner of desktop or from control
panel. However, when I logged in as a normal user account, I received the same message as yours.
For now:
I know this is not what you want. However, for normal users to view calendar, we can consider to give
Change System Time permissions to these users.
In addition, regarding this topic, the following article and thread can be referred to for more information.
You cannot set the date, time, or time zone on your computer
http://support.microsoft.com/kb/300022/en-us
Check windows calendar in XP pro without admin rights
http://community.spiceworks.com/topic/100116-check-windows-calendar-in-xp-pro-without-admin-rights
Please Note: Since the second website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
Best regards,
Frank Shen -
This one is for Nancy o contact form does not work for me. please help
http://alpenawebdesigns.com/form1.html
for css i have form1.css and for php i have vsi2.php
when i submit the form i get a 404 error and requested url/form-to-email.php not found
i like the form and for the life in me i can not see the obvious
thank you
allen macfaldaI changed the vsi2.php to form-to-email.php and it appears to work exceppt that it does not send a return email
allen macfalda
Maybe you are looking for
-
Itunes incurred an error and no longer works?
Hello, I have windows XP one day while snycing my Ipod 160G I tunes stopped working and now gives me a message everytime I try to open it saying "iTunes has encountered a problem and needs to close. We are sorry for the inconvenience." Send error rep
-
How to use a variable between interfaces or class?
Hello All; Far by now I can say that the forum is very helpful for me. Thanks for all the people who have the time and generosity to help our problems. Thank you. Unfortunately I have a problem <Again :( > I want to use a variable in two different *.
-
Problem in compiling oracle 8i procedures
Hi Rupinder, I have a complex problem and need your help in fixing it. I'm trying to setup our test environment (Application & database) both in Pentium 4 desktop. The platform is windows 2003 server installed in the desktop without any problem and u
-
LCD monitor too dark on Mac Mini
I have tried both a Viewsonic VP730b and a Samsung 740BX and both are way too dark. Here's the wierd thing. If you unplug the DVI connector in the back, and plug it back in, the image looks good. But if you then restart the mini, the image goes back
-
Hi there, I checked the forum, and find many different possible answers...but got a bit lost... My point is: I updated to Safari 5, and since then the application is not even able to start. I'm running on an iMac 20" with Mac OS X 10.5.8. All I get i