UIX 2.1.21: Date OnBlurValidator automatically add current month or year?
Would be nice if the OnBlurValidator for a UIX Date field could automatically add a missing month or year.
e.g. Format dd.mm.yyyy
When the user enters 01.01. the current year could be added automatically.
Or when the users only enters 01. the current month and year could be added.
Would be a nice feature additionally to the already existing lenient-date-formats = true.
Really great would be to allow entering values like "now" / ".", "yesterday" / "-" or "tomorrow" / "+" that are evaluated to the according dates (of course internationalized).
Thanks, Markus
hey mill1640,
Did you ever get your iPhone to register with iTunes? I just upgraded as well to Snow Leopard, and my my isn't recognized at all also.
If you did get this resolved, I would appreciate a little suggestion in the right direction.
Many thanks,
Josh
Similar Messages
-
How to Automatically update current months figure in 9ke5
Hi all
I am working on a report that will run in the background and then update the current month figure in 9ke5
Such as for month October for plant xxx and profit center xxx
I know all the necessary parameters such as the comp code, period year, controlling area
Do you know which table the statistical key figures use?
When i do f1 i see an internal structure
Please let me know
CheersKarthick_Arp wrote:
978184 wrote:
Hi.
I have a table :
PAYMENT_PERIOD
ID char(10()
DUE_DATE date
VALID Char(1)
In above table ID is customer's ID, DUE_DATE field contains date greater than Current Date and VALID field can contain either 'V' or 'I'. Initially when I insert row in table VALID is V and DUE_DATE is any date greater than Current Date.
My Problem is
When Due_Date becomes less than Current Date then VALID field should be automatically updated by 'I'.
How can I do that?
Thanks.Use a TRIGGER or even better have a custom Transaction-API to do the job.And what event causes said trigger to fire?
From what we know so far, the only thing that makes the row "invalid" is the passing of time and the relation of DUE_DATE to SYSDATE. As John said, don't store VALID at all, just calculate it when needed. -
Date must be truncated to month and year
Hi,
I have a date field
after the user gives F4 help I need to truncate the date , i.e I want only month and year
For Ex.
If the user selects as 12/12/2009
I must display as 12/2009
How can It be done?Hi,
go thru this threads
Re: Date validation and conversion
Re: Is DD/MM/YYYY supported in webdynpro for abap application
it might provide you some guidance -
Force date to be stored as month 01, year
I have a date field in a report.
When I input or edit, a datepicker calender pops up and the user click on a date.
What I like to do is when the user pick on any date, the database stored as the 1st of the month.
So no matter what the date picked, the data captured is month 01, year.
Is there a way to do this?
Thanks.Hi,
Maybe you could set up an insert/update trigger on your table.
Something like this
CREATE or REPLACE TRIGGER trigger_name
BEFORE INSERT OR UPDATE
ON table_name
[ FOR EACH ROW ]
DECLARE
v_Month VARCHAR2(20);
v_Year VARCHAR2(4);
BEGIN
v_Month := TO_CHAR(:new.date_column, 'Month');
v_Year := TO_CHAR(:new.date_column, 'YYYY');
:new.date_column:= TO_DATE (v_Month|| ' 01 ' || v_Year, 'Month DD YYYY');
EXCEPTION
WHEN ...
-- exception handling
END;--
Paulo Vale
http://apex-notes.blogspot.com -
Get all the back schedule start date except last and current month
Hi All;
Below gives me last month schedule start
scheduledstart >= DATEADD(mm,DATEDIFF(mm,0,GETDATE())-1,0)
AND scheduledstart < DATEADD(mm,DATEDIFF(mm,0,GETDATE()),0)
Below gives me current month schedule start
scheduledstart >= DATEADD(MONTH, DATEDIFF(MONTH, 0, GETDATE()), 0)
AND scheduledstart < DATEADD(MONTH, DATEDIFF(MONTH, 0, GETDATE())+1, 0)
I need to find all the schedule start excluding current month and last month
Any help on this much appreciated
Thanks
Pradnya07Hi,
You could use NOT BETWEEN with the start date of last month and the end date of the current month:
AND schedulestart NOT BETWEEN DATEADD(mm,DATEDIFF(mm,0,GETDATE())-1,0)
AND DATEADD(MONTH, DATEDIFF(MONTH,
0, GETDATE())+1,
0)
Hope this helps, -
Calculator does not work, does not add weekly, monthly or yearly correctly
Hi I am making a calculator where the user inputs his/her income (wages, loans, other) and spending (rent, food, other). I am an if else statement to add up the input fields as the user can input the numbers according to weekly, monthly or yearly. It allos me to run the code but when I input 10 pounds in each of the 3 fields the result is 30 but it should have calculated as 10 * 4.3333333 for each of the three fields.
The if else statement is below;
double totalIncome = num1 + num2 + num3;
double totalSpending = num4 + num5 + num6;
double result = 0;
if (op1.equals("Weekly"))
result = num1 * 4.3333333;
else if (op1.equals("Monthly"))
result = num1;
else if (op1.equals("Yearly"))
result = num1 / 12;
else if
(op2.equals("Weekly"))
result = num2 * 4.3333333;
else if (op2.equals("Monthly"))
result = num2;
else if (op2.equals("Yearly"))
result = num2 / 12;
else if
(op3.equals("Weekly"))
result = num3 * 4.3333333;
else if (op3.equals("Monthly"))
result = num3;
else if (op3.equals("Yearly"))
result = num3 / 12;
TotalIncomeField.setText( "" + totalIncome);
THE WHOLE STATEMENT LOOKS LIKE;
try {
double num1 = Double.parseDouble(LoansField.getText());
double num2 = Double.parseDouble(WagesField.getText());
double num3 = Double.parseDouble(OtherField.getText());
double num4 = Double.parseDouble(RentField.getText());
double num5 = Double.parseDouble(FoodField.getText());
double num6 = Double.parseDouble(OtherField2.getText());
String op1 = (String)LoanComboBox.getSelectedItem();
String op2 = (String)WagesComboBox.getSelectedItem();
String op3 = (String)OtherComboBox.getSelectedItem();
String op4 = (String)RentComboBox.getSelectedItem();
String op5 = (String)FoodComboBox.getSelectedItem();
String op6 = (String)Other2ComboBox.getSelectedItem();
double totalIncome = num1 + num2 + num3;
double totalSpending = num4 + num5 + num6;
double result = 0;
if (op1.equals("Weekly"))
result = num1 * 4.3333333;
else if (op1.equals("Monthly"))
result = num1;
else if (op1.equals("Yearly"))
result = num1 / 12;
else if
(op2.equals("Weekly"))
result = num2 * 4.3333333;
else if (op2.equals("Monthly"))
result = num2;
else if (op2.equals("Yearly"))
result = num2 / 12;
else if
(op3.equals("Weekly"))
result = num3 * 4.3333333;
else if (op3.equals("Monthly"))
result = num3;
else if (op3.equals("Yearly"))
result = num3 / 12;
TotalIncomeField.setText( "" + totalIncome);
if
(op4.equals("Weekly"))
result = num4 * 4.3333333;
else if (op4.equals("Monthly"))
result = num4;
else if (op4.equals("Yearly"))
result = num4 / 12;
else if
(op5.equals("Weekly"))
result = num5 * 4.3333333;
else if (op5.equals("Monthly"))
result = num5;
else if (op5.equals("Yearly"))
result = num5 / 12;
else if
(op6.equals("Weekly"))
result = num6 * 4.3333333;
else if (op6.equals("Monthly"))
result = num6;
else if (op6.equals("Yearly"))
result = num6 / 12;
TotalSpendingField.setText( "" + totalSpending);
} catch (NumberFormatException ex) {
}First of all, you are calculating 'result', but you don't use it anywhere. Instead you use 'totalIncome' and 'totalSpending', which are calculated without the daily/yearly corrections.
Also, there are some 'else' keywords that should not be there. If (op1.equals("Weekly")) will be true, no other part of the if block for num1, num2, num3 will execute. It should look like this:
if (op1.equals("Weekly")) {
num1 *= 4.3333333;
} else if (op1.equals("Yearly")) {
num1 /= 12;
if (op2.equals("Weekly")) {
num2 *= 4.3333333;
} else if (op2.equals("Yearly")) {
num2 /= 12;
if (op3.equals("Weekly")) {
num3 *= 4.3333333;
} else if (op3.equals("Yearly")) {
num3 /= 12;
double totalIncome = num1 + num2 + num3;
TotalIncomeField.setText( "" + totalIncome);Similarly for the spending. -
Automatically add current date to contact sheet?
Is there some code/script that can be added to the footer text area that will cause a date to be automatically added to the footer like there is in Microsoft products?
For instance in Word you can put &date, &time to have the date and time added automatically in the footer.
I use the contact sheet feature to print out screen shots of items that may change on a regular basis and having a date will let me know which is the most recent. I can type it in maually, but thought there might be a way to have the application do this instead.
Thanks for any help!You could try looking in the Bridge Scripting forum at http://forums.adobe.com/community/bridge/bridge_scripting
-
Line Item text to updated automatically with current month
In this trxn, we have to always set the Posting variant every month, in spro.(set up line item text).
spro->payroll india -> Reporting for Posting Payroll Results to Accounting->Activities in the AC System->Set Up Line Item Text.
1000 Salary for the month of June08
Whatever text, we give at ID 1000, it gets updated in the accounting entries. What we require, that can it be automated , based on the payroll area/period. I mean, if I give Novu201907, then the text should be u201CSal for the month of Novu201907u201D.
PC00_M99_CIPE - Execute run
Document Date
Posting variant SAP Standard variantHI,
a text change in general ledger line item will not be forwarded to spec. ledger automatically (as the change of a line item text triggers no posting to spec. ledger).
But as you know the document relationship from GL doc. to SL doc go to the corresponding SL doc. and change the text if this is really needed (don't understand why the line item text is that important).
Best regards, Christian -
Is there a way to create a calendar for keynote that automatically updates to current month?
I use keynote presentations for teaching foreign languages and wanted a calendar that updates automatically to current month everytime I present it rather than making it manually each month. I'm wondering if it can be done using the keynote date/time functions? Thank you.
Creating a whole interactive calendar for a month in a table could be done I suppose, but it's an awful lot of work for something that might be solved more easily in other ways.
IF you have a constant internet connection when you're teaching, create a Hyperlink on a blank Keynote slide to a web calendar, such as Google Calendar (or perhaps a school district calendar?) and enable it in the slide with Inspector, Hyperlink (blue circle with arrow icon 2nd from the right).
If you don't have web access on your teaching computer while you're teaching, I'd still probably capture a screenshot of the each monthly calendar and use that, updating to the current slide once a month. If you're usually too busy to remember to capture a new calendar on the first of the month, create a whole year of screen captured calendars at one time, add them to separate Keynote slides, and then just 'Skip Slide' all the months you aren't using. Not cool and interactive, but it would solve the problem. You might want to rename the screen captures to the month name before adding them as slides for ease of locating them later.
Since you're teaching foreign languages, in my sample below, I changed my default Google Calendar language to German. (Unfortunately, I left US Holidays enabled, so they aren't 'auf Deutsch', but you get the idea.) Understand that when you switch language in Google Calendar (or other Google app), it will switch ALL of your Google screens to that language, so be sure you remember which 'buttons' to push to change it back to English later!
Bring up your calendar onscreen in your browser and use Command+Shift+3 to capture the whole screen or Command+Shift+4 to capture just a portion of the screen. Once saved, insert the saved calendar into a Keynote slide.
Now, if that's more than you need, if you just want to display the date information in English as current weekday name, monthname, date number, and year, that's pretty simple.
Use the now() or today() function, you can create a simple table and add the following functions in separate cells, beginning each cell entry with the = sign (so the table 'knows' it's a function, and not just text:
=DAYNAME(NOW())
=MONTHNAME(MONTH(NOW()))
=DAY(NOW())
=YEAR(NOW())
And it displays like this on a slide:
Hope that helps!
Message was edited by: kostby -
Expression - First date and last date of current month, current year
Hi
I need to have 2 ssrs expression as I can use as default parameters in my report where I can - out from my Time dimension, get the
first date of the current, current year - and one where I get last date, current month, current year.
My data source is a SSAS cube and my timedimension is structured like this:
[Time].[Days].&[2009-01-16T00:00:00]
Any suggestions how to solve this ?Hi ,
You can use below in Default Values in ssrs ;
for first Day of current month and year
="[Time].[Days].&[" +Format(dateadd("m",0,dateserial(year(Today),month(Today),1)), "yyyy-MM-dd")+"T00:00:00]"
output will be ;
[Time].[Days].&[2014-09-01T00:00:00]
For last day of current month and year
="[Time].[Days].&[" +Format(DateSerial(Year(Now()), Month(Now()), "1").AddMonths(1).AddDays(-1), "yyyy-MM-dd")+"T00:00:00]"
output will be ;
[Time].[Days].&[2014-09-30T00:00:00]
Please correct me if I misunderstood your requirement.
Thanks
Please Mark This As Answer or vote for Helpful Post if this helps you to solve your question/problem. -
How can i pull out data from a spreadsheet only from the current month?
Data is constantly being fed into a spreadsheet using a VI, this data comprises of such things as month, year, weights, std dev, etc. I want to do some data manipulation on the current months data while the VI is running, how can I pull out only the data relating to the current month? Each input into the spreadsheet stores the values for that run on one row, and there are perhaps 150 runs each month
Any thoughts are greatefully received
Thanks
Ross
Attachments:
Results.xls 1 KBHi Ross,
I thought I would go away and make you an example VI for the results xls that you have sent me.
Here it is: I have added a few comments here and there but if you need more info please don't hessitate to post back on the forum
Hope if helps
AdamB
National Instruments
Applications Engineering Team Leader | National Instruments | UK & Ireland
Attachments:
MonthExtract.vi 43 KB -
How to get the currrent month and year from a new date object
If I create a new Date object as "d",
java.util.Date d = new java.util.Date();how can I format the date to get the current Month as 'Jan' and the current year as '2008'. So if I have something like d.getMonth() gets the current month as 'Oct' and d.getYear() gets '2008'
Thanks,
Zub[Read the flamin' manual you must. Hmm.|http://en.wikipedia.org/wiki/RTFM]
~~ Yoda.
Well no actually, he didn't say that, but he should have.
Cheers. Keith.
PS: Don't say that to a 7 foot pissedOff wookie when he's got his head stuck in a smoking hyperdrive, and you're being chased by a S-class battle cruiser... Ask Yoda how he got to be so short.
PPS: It is the SimpleDateFormat you seek ;-)
Edited by: corlettk on 14/10/2008 22:37 ~~ Also far to slow... but funny. -
How to get monday date if you enter any date for the current month.
Hi All,
I have requirement to create on char variable for 0calday and need to code in such a way that if you enter the date
For example today is 20th March, the following dates will be returned.
February 4th, 11th, 18th, 25th
March 3rd, 10th, 17th, 24th 31st
i.e date of Monday of current month and previous month.
Thanks in Advance.
Kind Regards,
RaghuHi,
Have a look on this code.
data : zdate like VTBBEWE-DVALUT.
data : day_val(1) type n.
CALL FUNCTION 'DATE_COMPUTE_DAY'
EXPORTING
DATE = your_date
IMPORTING
DAY = day_val.
if day_val = 1.
' Place ur code for monday because day_val = 1 then it is monday.
endif.
Vivek -
Phpmysql server behaviour (How to get date from dropdown list day & month)
Hi,
Appreciate if someone can help me on this. I already create form and in my form there is date selector to select day,month and year. But how to use insert record funtion to get the date as below.
thanks.
<form id="form1" name="form1" method="post" action="">
<table width="60%" border="0" align="center" cellpadding="3" cellspacing="3">
<tr>
<td width="85">Date</td>
<td width="4">:</td>
<td width="381"><input name="name" type="hidden" id="name" value="<?php echo $user ?>" />
<input name="department" type="hidden" id="department" value="<?php echo $department ?>" />
<select name="day" id="day" >
<option value='01'>01</option>
<option value='02'>02</option>
<option value='03'>03</option>
<option value='04'>04</option>
<option value='05'>05</option>
<option value='06'>06</option>
<option value='07'>07</option>
<option value='08'>08</option>
<option value='09'>09</option>
<option value='10'>10</option>
<option value='11'>11</option>
<option value='12'>12</option>
<option value='13'>13</option>
<option value='14'>14</option>
<option value='15'>15</option>
<option value='16'>16</option>
<option value='17'>17</option>
<option value='18'>18</option>
<option value='19'>19</option>
<option value='20'>20</option>
<option value='21'>21</option>
<option value='22'>22</option>
<option value='23'>23</option>
<option value='24'>24</option>
<option value='25'>25</option>
<option value='26'>26</option>
<option value='27'>27</option>
<option value='28'>28</option>
<option value='29'>29</option>
<option value='30'>30</option>
<option value='31'>31</option>
</select>
<select name="month" value=''>
Select Month
<option value='01'>January</option>
<option value='02'>February</option>
<option value='03'>March</option>
<option value='04'>April</option>
<option value='05'>May</option>
<option value='06'>June</option>
<option value='07'>July</option>
<option value='08'>August</option>
<option value='09'>September</option>
<option value='10'>October</option>
<option value='11'>November</option>
<option value='12'>December</option>
</select>
<input type="text" name="year" size="4" value="2011" />
<label for="date"></label>
<input type="hidden" name="date" id="date" /></td>
</tr>
<tr>
<td>Start Time</td>
<td>:</td>
<td><select name="start_time" id="start_time" >
<option value="8:45">8:45 AM</option>
<option value="9:00">9:00 AM</option>
<option value="9:30">9:30 AM</option>
<option value="10:00">10:00 AM</option>
<option value="10:30">10:30 AM</option>
<option value="11:00">11:00 AM</option>
<option value="11:30">11:30 AM</option>
<option value="12:00">12:00 PM</option>
<option value="12:30">12:30 PM</option>
<option value="13:00">1:00 PM</option>
<option value="13:30">1:30 PM</option>
<option value="14:00">2:00 PM</option>
<option value="14:30">2:30 PM</option>
<option value="15:00">3:00 PM</option>
<option value="15:30">3:30 PM</option>
<option value="16:00">4:00 PM</option>
<option value="16:30">4:30 PM</option>
<option value="17:00">5:00 PM</option>
<option value="17:45">5:45 PM</option>
</select></td>
</tr>
<tr>
<td colspan="3" align="center"><input type="submit" name="button" id="button" value="Submit" /></td>
</tr>
</table>
</form>kelah_merah wrote:
... but I have problem on edit the records. How to get the dropdownlist display the current day,month and year
I *knew* you´re going to ask this question
The attached screenshot "screen_update_query" shows how to...
a) utilize some of MySQL´s Date and Time Functions to extract the day, month and year from a datetime column (here named "col_datetime")
b) extract the hh:mm via a DATE_FORMAT pattern
All four information units would be pretty much useless without defining a Column Alias (e.g. AS day)
The second screenshots shows how to tie the values of one of your dynamic lists (e.g. the list of days) to the respective Column Alias by using the "select value equal to" feature.
That´s it ! -
Show current month's calendar based on computer date
As a page loads, is it possible to check the computer date
and display the current month's calendar (specialized with events),
either on the same page or on a separate page?
Any help would be appreciated,
CliffYou can adapt this script to do that:
http://www.valleywebdesigns.com/vwd_csscalhelp/vwd_csscalhelp_faq.asp#a5
cliff man wrote:
> As a page loads, is it possible to check the computer
date and display the
> current month's calendar (specialized with events),
either on the same page or
> on a separate page?
> Any help would be appreciated,
> Cliff
>
E. Michael Brandt
www.divahtml.com
www.divahtml.com/products/scripts_dreamweaver_extensions.php
Standards-compliant scripts and Dreamweaver Extensions
www.valleywebdesigns.com/vwd_Vdw.asp
JustSo PictureWindow
JustSo PhotoAlbum, et alia
Maybe you are looking for
-
Solaris 10 Active Directory problem
I've been battling through the integration of Active Directory on our Solaris 10 systems, and have reached another brick wall. I am able to getent passwd <user> and kinit <user> without any problems, but any attempt to su or login via SSH shows the f
-
How can I print the worksheets included in an iBook?
A book purchased from iBooks has worksheets available for use. I would like to print them. How can I do this?
-
Missing or corrupt PDF Attachments from Outook
My company uses a software package to auto create customer invoices as PDF documents which it then attaches these to a Plain Text email within Outlook 2003 which are then sent out to our customers email addresses. The server running this program is u
-
I have the new air and new airport extreme. What setting tells me it's operating at the new ac setting? thanks, JC
-
If anyone could help or try to fix this, please help it is such a hassle!