How to disable the date picker in manualy Tabular form?
I develope an application with apex 3.2 , I builded a tabular form manualy with APEX API and I have an item 'date picker' , I want that once user want insert the date , he can do it only by clicking on the date picker and not into the item
I try to use the code that was provided by 'Desnes Kubicek' on his blog , but it does not works
Any help!!!!!
I used this code , but that is for an one item form
<script type="text/javascript">
function disFormItems(item1){
disItem = document.getElementById(item1);
disItem.style.background = '#eeeeee';
disItem.disabled = true;
</script>
2. Region Footer javascript:
<script type="text/javascript">
disFormItems('P18_DATE_PICKER');
</script>
Hi,
Try something like this
SELECT
APEX_ITEM.DATE_POPUP(4,rownum,hiredate,'dd-mon-yyyy',12,15,'readonly="readonly"','f04_' || ROWNUM) hd
FROM EMP;Thanks,
Manish
Similar Messages
-
Is there a way to use the minimum and maximum dates in date picker in a tabular form? It does not appear that this is available in a tabular form and I am finding it very difficult to come up with a way to limit the date selection to a particular month when using the tabular form. Any suggestions would be appreciated.
I hadn't accounted for the addRow, and datepickers on newly added rows are indeed not restricted. Datepickers on existing rows are still being restricted, but since you had no rows there anymore you could only add rows.
Could it be that in your local solution you have no rows too, and thus can only add rows, which has no date restriction?
To restrict the datepicker for new rows I changed the "Add Row" button's URL. In 4.2 I'd set it to be defined by a dynamic action, but since you're on 4.0 I set the URL to:
javascript:myAddRow();In the page edit i added this to "Javascript > Function and Global Variable Declaration"
function myAddRow(){
apex.widget.tabular.addRow();
$("td[headers='DETAIL_DATE'] input:last")
.datepicker("option","changeMonth",false)
.datepicker("option","minDate",$v("P2_MASTER_MONTH_MINDATE"))
.datepicker("option","maxDate",$v("P2_MASTER_MONTH_MAXDATE"));
};This will first add a new row, and then the restriction will be applied to the last input item matching the selector. Indeed, on your local instance you will have to change the "apex.widget.tabular.addRow()" to just "addRow();", since the apex.widget.tabular namespace is new in 4.2.
Some more notes of importance:
- the column header: in the demo your column is "DETAIL_DATE". If this column is called differently in your local solution, you will need to change the jQuery selector to reflect this!
- the P2_MASTER_MONTH_MIN/MAXDATE columns do some date arithmetic. It is important to take a look at their value if the datepicker is not being restricted, and also what language your application runs in. The default english application will set a date format for the jQuery datepicker to be dd-M-y, and it will take '01-JAN-2013' as a valid value. If your field however would contain something like '01/01/2013' it would not work. So for safety, take a look at the values of these items! -
How to use the date picker in Web dynpro java
Hi,
I want to add date picker to enter a date while developing webdynpro application.
How can i do that.
Regards,
H.V.SwathiHi,
its very simple...
take a input field and map it to the attribute which data type is of "date". thats it at runtime you will see a input filed with date picker.
i.e. Add an inputField and bind the context attribute of Type Date to it
this will show the date picker on screen.
PradeeP -
How to adjust the Date picker size
how to change the size of the Date Picker.
I am using time inside the data picker and window is too small.
I cannot see the OK and Cancel buttons.
Let me know
thanksIt is an known APEX 3.1 issue metioned in the "Oracle Application Express 3.1 Known Issues & Limitations" Page([http://www.oracle.com/technology/products/database/application_express/html/3.1_known_issues.html]).
There is a workaround posted in forum, see Re: Date popup problem in APEX 3.1 and this post was also mentioned in the "Oracle Application Express 3.1 Known Issues & Limitations" Page.
JT -
How to set the date picker to display only months?
I am trying to set the date picker in SSRS 2012 to allow the user just to select the months: and when I run my store procedure I get a can't convert data type from nvarchar to datetime. If I don't comment out of the Where Clause, nothing
is returned if I leave the Where Clause in.
Alter
PROCEDURE RollingReportList
AS
BEGIN
SET NOCOUNT
ON;
SELECT
distinct
[ItemDescription]
,[QuantityOrdered]
,QuanitityCost
= [QuantityOrdered]
* [Price]
,Convert(datetime,(CONVERT(CHAR(4),PE.[LastUpdated],107)
+ '-'
+ (right(CONVERT(CHAR(4),PE.[LastUpdated],112),2))))
as CurrentMonth
,Convert(datetime,(CONVERT(CHAR(3),Datename(MONTH,DATEADD(MONTH,1,PE.LastUpdated)),107)
+ '-'
+ (right(CONVERT(CHAR(4),PE.[LastUpdated],112),2))))
as NextMonth
,Name
FROM
[HQStore].[dbo].[PurchaseOrderEntry]
as PE
inner join
[HQStore].[dbo].[PurchaseOrder]
as PO
on PE.[PurchaseOrderID]
= PO.[ID]
inner join
[HQStore].[dbo].[Store]
as ST
on PE.[storeid]=ST.ID
Where
(@Start
= '01/01/2009'
and @Last
= '12/31/2010')
End
Go
Exec
RollingReportList
Any Help?Try the below....
Where (@Start = '20090101' and @Last = '20101231')
SELECT FORMAT(getdate(), 'MM')
02
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence -
How to save the session states for a tabular form WITHOUT using check boxs?
Greeting guys,
As you know that we can use collections to save the session states of a tabular forms, described in the how-to doc of manual tabular forms. However, what I am trying to do ( or have to do) is to provide a manual tabular form, and save the session states for validation, without using the check boxes. Because a user can put contents into some columns in a row without checking the corresponding checkbox, according to the requirements. So basically what I tried is to loop over all the rows and save Every entry into a collection. However, sometimes I got "no data found" error with unknown reasons.
My current solution is to use the "dirty" Retry button that gets back the history, which IMO is not a good workabout. So, I'd appreciate if somebody can shed some light on a better solution, especially if it is close to the one in that how-to doc.
Thanks in advance.
LucThe following is the first collection solutin I've tried:
htmldb_collection.create_or_truncate_collection('TEMP_TABLE');
for i in 1..p_row_num loop -- Loop on the whole form rows
if (htmldb_application.g_f01(i) is not null) or (htmldb_application.g_f05(i) <> 0)
--If either of them has some input values, the row should be saved into the colleciton.
then
htmldb_collection.add_member(
p_collection_name => 'TEMP_TABLE',
p_c001 => htmldb_application.g_f01(i),
p_c002 => htmldb_application.g_f03(i),
p_c003 => htmldb_application.g_f04(i),
p_c004 => htmldb_application.g_f05(i),
p_c005 => htmldb_application.g_f06(i),
p_c006 => htmldb_application.g_f08(i)
end if;
end loop;
Some of columns have null values, but I don't think that's the reason. Because once I clicked all the check boxes, there would be no error no matter what values were in other columns.
Another issue would be extract the values FROM the collection, which has been tried because I had problem to store the data into the collection. I used "decode" functions inside the SQL to build the tabular form. I am not sure whether it will be the same as a regular SQL for a tabular form, like the example in the How-to doc.
Also I didn't use the checksum, for it is not an issue at the current stage. I am not sure whether that's the reason which caused the NO DATA FOUND error. -
How to disable the back button when displaying a form
Hi ,
i have form A calling form B, when form B is displayed i want to disable the
back button in the explorer so as not to allow the user from going back to
form A.
thanks.When you open a new window, call following javascript function also to disable the "back" button.
window.history.forward(1);
It will work. -
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 -
I can create a date field (with date picker) in a tabular form created manually. However, I cannot change the format to mm/dd/yyyy. I am using the wwv_flow_item.date_popup package. Thanks!
our online doc would be a good place to start. try...
http://htmldb.oracle.com/i/doc/mvl_api.htm#sthref1316
...for instance.
regards,
raj -
How do you add a format to the "Date Picker Format Mask" available formats?
Hi,
When I select the Date Picker Format Mask or "Number / Date Format" they doen't have YYYYMMDD or others that may be desired...
How do you add a format to the available formats?
Thank you, BillBill - From the popup help text:
If you need to create a Date Picker item, but the format you need does not appear in the Display As list, select Date Picker (use application format mask). When an application uses this type of date picker, the Application Express engine derives the date format from an item named PICK_DATE_FORMAT_MASK. You can populate this item in two ways:
- By defining an application substitution string named PICK_DATE_FORMAT_MASK
- By creating an application-level item named PICK_DATE_FORMAT_MASK
See the doc for more details.
Scott -
In the Date Picker, How can I default to select * dates if the user does ..
In the Date Picker, How can I default to select * dates if the user does not select a date.
Thanks,
DougDoug,
Now lets say l want everythingCould you post some sample data and the output that you want to get..? It would be much easy to understand the requirements...
When you mean everything, I am assuming you need all possible dates possible between date1 and date2.
you can use... (from asktom.oracle.com).
1 select to_date('12-jan-2009','DD-MON-YYYY') + rownum -1
2 from ALL_OBJECTS
3 where rownum <= (to_date('20-jan-2009','dd-mon-yyyy') -
4* to_date('12-jan-2009','DD-MON-YYYY') +1 )
sql> /
TO_DATE('
12-JAN-09
13-JAN-09
14-JAN-09
15-JAN-09
16-JAN-09
17-JAN-09
18-JAN-09
19-JAN-09
20-JAN-09
9 rows selected.
For your case, since you have date1 and date2...
select to_date(:p12_date1,'DD-MON-YYYY') + rownum -1
from ALL_OBJECTS
where rownum <= (to_date(:p12_date2,'dd-mon-yyyy') -
to_date(:p12_date1,'DD-MON-YYYY') +1 )Should work.. in my opinion...Haven't tested the second one in Apex .
Is this what you were looking for ..?? If not, please elaborate...
Thanks,
Rajesh. -
How can we restrict the date range in the date picker
While selecting any date a pop up date picker appears. In this date picker the users can select any future dates which can be 30-40 yrs ahead. How can customize this date picker so that the users are not allowed to slected date beyond certain range. ...??
Hi user570596,
I think there is no method to actually restrict the date picker popup, but you can use the ApexLib Framework (http://apexlib.sourceforge.net/) to define a min/max value for your date field. This will prevent the user from submitting the page when the date value is outside the defined range.
See http://inside-apex.blogspot.com/2007/03/min-max-value-validation-in-browser.html
for details.
Patrick
Check out my APEX-blog: http://inside-apex.blogspot.com
Check out the ApexLib Framework: http://apexlib.sourceforge.net -
How can I customize the date-picker inline popup
Hi All,
I have a customer who want to customize the <af:inputDate>. He want a additional button appear under the calendar box in the date-picker popup.
Document http://docs.oracle.com/cd/E23549_01/apirefs.1111/e12419/tagdoc/af_inputDate.html mentions org.apache.myfaces.trinidad.convert.ClientConverter interface, is it a right way to do that ? If yes where can I get a sample ?
Regards and Thanks.
JerryHi,
add the af:convertDateTime tag to see the exploded dialog. Note that this doesn't allow you to add custom buttons to the dialog. Its just extends the functionality
http://docs.oracle.com/cd/E23943_01/apirefs.1111/e12419/tagdoc/af_convertDateTime.html
<af:inputDate label="Label 1" id="id1">
<af:convertDateTime type="both"/>
</af:inputDate>
Frank -
How to load the data from excel file into temprory table in Forms 11g?
Hi
How to Load the data from excel file(Extension is .CSV) into the temporary table of oracle in Forms11g.
My Forms Version is - Forms [64 Bit] Version 11.1.2.0.0 (Production)
Kindly Suggest the Solution.
Regards,
SachinDeclare
v_full_filename varchar2(500);
v_server_path varchar2(2000);
v_separator VARCHAR2(1);
v_filename VARCHAR2(400);
filename VARCHAR2 (100);
v_stop_load varchar2 (2000);
v_rec_error_log varchar2(4000);
v_error_log varchar2(4000);
ctr NUMBER (12);
cols NUMBER (2);
btn number;
RES BOOLEAN;
application ole2.obj_type;
workbooks ole2.obj_type;
workbook ole2.obj_type;
worksheets ole2.obj_type;
worksheet ole2.obj_type;
cell ole2.obj_type;
cellType ole2.OBJ_TYPE;
args ole2.obj_type;
PROCEDURE olearg
IS
args ole2.obj_type;
BEGIN
args := ole2.create_arglist;
ole2.add_arg (args, ctr);
ole2.add_arg (args, cols);
cell := ole2.get_obj_property (worksheet, 'Cells', args);
ole2.destroy_arglist (args);
END;
BEGIN
v_full_filename := client_get_file_name(directory_name => null
,file_name => null
,file_filter => 'Excel files (*.xls)|*.xls|'
||'Excel files (*.xlsx)|*.xlsx|'
,message => 'Choose Excel file'
,dialog_type => null
,select_file => null
If v_full_filename is not null Then
v_separator := WEBUTIL_CLIENTINFO.Get_file_Separator ;
v_filename := v_separator||v_full_filename ;
:LOAD_FILE_NAME := substr(v_filename,instr(v_filename,v_separator,-1) + 1);
RES := Webutil_File_Transfer.Client_To_AS(v_full_filename,"server_path"||substr(v_filename,instr(v_filename,v_separator,-1) + 1));
--Begin load data from EXCEL
BEGIN
filename := v_server_path||substr(v_filename,instr(v_filename,v_separator,-1) + 1); -- to pick the file
application := ole2.create_obj ('Excel.Application');
ole2.set_property (application, 'Visible', 'false');
workbooks := ole2.get_obj_property (application, 'Workbooks');
args := ole2.create_arglist;
ole2.add_arg (args, filename); -- file path and name
workbook := ole2.get_obj_property(workbooks,'Open',args);
ole2.destroy_arglist (args);
args := ole2.create_arglist;
ole2.add_arg (args, 'Sheet1');
worksheet := ole2.get_obj_property (workbook, 'Worksheets', args);
ole2.destroy_arglist (args);
ctr := 2; --row number
cols := 1; -- column number
go_block('xxx');
FIRST_RECORD;
LOOP
--Column 1 VALUE --------------------------------------------------------------------
olearg;
v_stop_load := ole2.get_char_property (cell, 'Text'); --cell value of the argument
:item1 := v_stop_load;
cols := cols + 1;
--Column 2 VALUE --------------------------------------------------------------------
olearg;
:item2 := ole2.get_char_property (cell, 'Text'); --cell value of the argument
cols := cols + 1;
--<and so on>
ole2.invoke (application, 'Quit');
ole2.RELEASE_OBJ (cell);
ole2.RELEASE_OBJ (worksheet);
ole2.RELEASE_OBJ (worksheets);
ole2.RELEASE_OBJ (workbook);
ole2.RELEASE_OBJ (workbooks);
ole2.RELEASE_OBJ (application);
END;
--End load data from EXCELPlease mark it as answered if you helped. -
How to disable the reminding dialog when close the webi report viewer
Dear all
How to disable the reminding dialog when close the webi report viewer
Background
When user close the webi report viewer in inforview by click the button in the right-top of the webi report viewer frame. It always prompt a dialog to remind user that the modification will be lost without saving.
But customer need to disable this dialog, and can clost the report viewer directly.
So is there any ways to modify this?
I think it shoule modify some .js file under tomcat, but can not find the solution.
Thanks a lot, any information woulde be appreciated.
David ZhangI've had the same issue bugging me since installing Snow, er, lion, er, cat, er, cougar, er, Mountain Lion. Incredibly ANNOYING.
It's stupid stuff like this and reverse scrolling that really turn long-timer users off. I'm personally glad Forstall got fired for blunders such as these.
I'm serious peeved that turning off iCloud Documents & Data actually deletes documents and data locally. That's just incredibly stupid.
MANY thanks mende1 for the answer on how to fix it.
Maybe you are looking for
-
To restrict the change of quantity of component
Hi, What is the most effective way to restrict the change of quantity of reserve material after the MO is release. Considering the create , release and processing of the MO is done by separate user. My requirement is after the release of the maintena
-
How do I change twm to fvwm2 window manager switch?
Apple's X11 offering uses twm, which unfortunately I don't really like, and would like to replace it with fvwm2. I've tried this little trick, and boy, so far, no luck. Too bad I'm not a better systems admin. Does anyone have a howto on getting the A
-
Command + Tab is not working
Starting today, the Command + Tab function is not working (this usually allows you to switch to another application with ease). I have tried changing the settings under "System Preferences," "Keyboard and Mouse," "Keyboard Shortcuts," however I have
-
Function Invoking Another Function
Trying to invoke 1 function from another function, using same parameters for each. Trying to invoke 1 function from another function. MasterFunction has parameterX which is a dictionary Name. When attempting to call ChildFunction from within MasterFu
-
GetQueryViewData multiple values
Hi, I don't know how to set values for multi value parameters; a request like this always returns the error below. Any suggest? REQUEST: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:sap-com:document:sap:s