How to create a date field which is 16 months before today(current day)
Hallo,
I made a report and i want to set date limits. My data contains a date field so in record selection filter i like to set that the date field is between date1 and date2.
As date2 i set and as date1 i what to set a date which is 16 months before today(first of that month)
For example today is 08/05/2010 so,
date2 = 08/05/2010(August 2010) and date1 = 05/01/2009(May 2009)
Any idea?
Ian,
Here's a little formula for getting to the first of the month, that's easier than what you've been using...
To find the beginning of the current month
DateAdd("m", DateDiff("m", #1/1/1900#, CurrentDate), #1/1/1900#)
... or to find the begining of the month. 16 months ago
DateAdd("m", DateDiff("m", #1/1/1900#, CurrentDate) - 16, #1/1/1900#)
Jason
Similar Messages
-
How to create a Date field with specific date limitations
Hello, im new to creating forms in Acrobat.
My question is, how do i create a date field and at the same time have a restriction on which dates to put.
ie; i want the date field to only enter dates from Jan 01 2015 - Dec 31 2015.
Thanks for your help.Thanks!
I tried and it worked.
but what are these numbers after the 2015?
var minDate = new Date(2015, 0, 1, 0, 0, 0, 0);
var maxDate = new Date(2015, 11, 31, 23, 59, 59, 999); -
I am working in Adobe Acrobat 9 Pro and just created a pdf form from a MS Word document. I need to find out how to have a date field in my form which will update automatically.
Update automatically under which circumstances, exactly?
-
How to creat a Data provider based on different fields in SAP BW ?
Hi,
Experts,
There are 20 fields of Plant Maintainace like :
SWERK
BEBER
STORT
TPLNR
EQUNR
INGRP
QMDAT ---peroid
STTXT
QMDAT - Date of Notification
QMNUM
QMTXT
QMART
AUSVN
AUZTV
AUSBS
AUZTB
AUSZT
ERNAM
QMDAB
AUFNR
I want to creat a Report based upon these fields ?
For that I h'v checked the relevant Fields to the existing standard Datasource in Bw side &
Checked cubes created based upon these Datasource in Bw side !
i h'v found some fields are existing different cubes & some are missing .
How to creat a Data provider based on different fields in SAP BW ?
plz suggest !!!!!!!
Thanx,
Asit
Edited by: ASIT_SAP on Jul 15, 2011 6:25 AM
Edited by: ASIT_SAP on Jul 15, 2011 6:27 AM
Edited by: ASIT_SAP on Jul 15, 2011 12:37 PMHi Lee, Please see below..
DECLARE @Machine2 TABLE
DispatchDate DATE
INSERT INTO @Machine2 VALUES ('2014/02/01'), ('2014/02/02'), ('2014/02/03')
DECLARE @DateFrom DATE
SELECT @DateFrom = DATEADD(D,1,MAX(DispatchDate)) FROM @Machine2
SELECT @DateFrom AS DateFrom
Please mark as answer, if this has helped you solve the issue.
Good Luck :) .. visit www.sqlsaga.com for more t-sql code snippets and BI related how to articles. -
How to create a Date or time field that automatically saves current date or time?
hello,
i want to know that how to create a Date/Time field that automatically shows current Date/Time when .pdf form is opened.
also want to how to stop user to give input in Date/Time field
currently im putting a Date field but it is accepting user input.
hoping for quick response
Thanks in advance!You can place the below code in the initialize event of the field to display the current date and time.
Set the language to FormCalc.
You can play around the formats to get the desired format of date and time.
if($.rawValue eq null or $.rawValue eq "") then
$.rawValue = Concat(Num2Date(Date(), "MM/DD/YYYY")," ", Num2Time(Time(), "h:MM:SS A"));
endif
You can not restrict the input area in Date time field instead you can validate the input while existing the field.
(OR) set the field to either readOnly or protected mode.
Thanks
Srini -
Crystal Reports XI - How to create a new field using a formula field
I'm quite new to CR, but have been learning quickly!
I would like to know how to automatically create a new record/field based on another field in that row...
I have a report showing the following data:
Run Code Start KM Stop KM Status
H2 100 150 Partial
H2 150 155 Partial
H2 155 160 Partial
S3 120 150 Completed
The status is generated by comparing the 'Start KM' and 'Stop KM' against fields in another table called 'Start Odo' and 'Stop Odo'
In this example...
H2 has 'Start Odo' and 'Stop Odo' values of 90 to 160, therefore there is still 90-100 to check. The 'Start KM' and 'Stop KM' is equal to the 'start Odo' and 'stop Odo' for S3, therefore it shows completed.
My question is how do you create a formula field, which will add an entire row...displaying the values 90-100.
I've been trying to use a conditional check in the 'Start KM' column, that sees if status is equal to partial than if start km is greater than start odo (Which is the reference km) then display the value of start odo in the new row. I'm stuck at how to create a new row.
I want the final result to look like this...
Run Code Start KM Stop KM Status
H2 90 100 Partial
H2 100 150 Partial
H2 150 155 Partial
H2 155 160 Partial
S3 120 150 Completed
Any suggestions would be more than appreciatedHi Adi
Looking at your examples it seems that you want to add a row to the existing recordset (rows fetched from the database).
If it is the case (even if based on a formula) then you can not do it within crystal. Crystal is designed to display data and ideally it should not generate the new data.
However, as per your requirement you can try to add this logic at database end. May be a command object within Crystal Reports can help you.
Let me know if you do not understand anything.
Regards
Nikhil -
How to create a new field in a sub screen in material master. ?
How to create a new field in a sub screen in material master. ?
Kindly help us.
LIke wise tell me how to create a new sub screen as per my desiredFollow the documentation of Logistics - General->Material Master->Configuring the Material Master->Create Program for Customized Subscreens to add the new field in material master.
Create Program for Customized Subscreens
In this IMG activity, you can create a function group of your own by copying function group MGD1 (for industry) or function group MGD2 (for retail). The subscreens are not copied, except for two subscreens which are copied for technical reasons. You can use this copy to create subscreens of your own which you can assign to a data screen in the activity Define Structure of Data Screens for Each Screen Sequence.
Requirements
Be sure to read the program documentation first.
Activities
1. Create a function group of your own by choosing Execute.
2. Enter a name containing up to 25 characters, beginning with the letter Y or Z, and choose Save.
3. Access the Object Navigator.
You do this from the SAP standard menu by choosing Tools -> ABAP Workbench, and then Object Navigator.
4. Display either program SAPLMGD1 (industry) or SAPLMGD2 (retail) as required.
5. Copy the subscreens as required, ensuring that they already contain as many as possible of the field names you want to use in your function group. You do this as follows:
a) Choose Screens, position the cursor on the corresponding subscreen, and choose Copy in the context menu.
b) Enter the program to which you want to copy the subscreen, prefixing it with SAPL, and enter a screen number. Use the screen number of the original subscreen where possible. If the F1 help is specific to a particular subscreen, this ensures that this context-specific help continues to be displayed.
Example
You have called your function group YENTERPRISE, to which you want to copy subscreen SAPLMGD1 2301. Enter SAPLYENTERPRISE as the program to which the subscreen is to be copied, and enter (preferably) 2301 as the screen number.
6. Return to the initial screen of the Object Navigator and display your program. In the example above, you would enter SAPLYENTERPRISE.
7. Choose Update object list.
8. Select the subscreen you have copied and activate it by choosing Activate in the context menu.
Using the Screen Painter, you can remove fields you do not require on the subscreen or include additional fields from other subscreens (see the ABAP Dictionary). For information on the Screen Painter, see the SAP library documentation BC ABAP Workbench Tools.
Points to consider when removing or adding fields
Make sure that a field statement exists for each field on the subscreen since data may not otherwise be transported correctly. You can use subscreen SAPLMGD1 2002 as an example.
For the fields you have added, include any check modules and modules for self-programmed F4 help that are called up for these fields on the original subscreen. You can do this by displaying the flow logic for the original subscreen and searching for such modules. They normally have the same names as the fields themselves. When you find a module, copy the corresponding module call to your subscreen.
If you change the order in which fields are transported that are checked together in the flow logic (such as the safety stock and minimum safety stock), you must deactivate the check module for the first field and activate it for the second. The system would otherwise transport the first field, and carry out the check before the second field is transported.
Any error messages that fields are unknown when activating the subscreen are due to the fields still being included in checks, even though you have removed the fields from the subscreen. Search for the fields in the source code and make the lines in which they appear comment lines. Then reactivate the screen.
9. Assign the subscreen to a data screen as required.
Note on transport
Use the Workbench Organizer to transport the copy you have created.
Proceed -
Hi,
I have been creating a series of PDF forms on Adobe XI Pro that are designed to be filled in using Adobe Reader (hence are saved as Adobe Reader Extended). Once the form is complete there are signature fields that the user digitally signs which then deactivates specific form fields from further editing. Alongside the signature field I have got a date field which, at the moment, is using JavaScript to auto-generate the current date upon opening. However, the issue I am having is that I want this date field to be fixed when the form is signed, rather than updating again when the form is next opened. Is this possible?
The document JavaScript that I am currently using to generate the date is as follows:
this.getField("PR_Date1").value = util.printd("dd/mmm/yyyy", new Date());
But obviously this is independent of the date field.
I am very new to Adobe in general so I don't have much of an idea about how to go about doing this. Could somebody please help me to do this if it is possible?
Thank you
KCHélène-
Thanks for the detail regarding validation script, but I still am having a problem with it.
I have tried what you told me (remove reset the value) the popup no longer appears when the form is opened. But the validation does not seen to be working. It is not working either in the validate or exit event. This is what I have now on that text field.
----- form1.#subform[0].Y::exit - (JavaScript, client) ---------------------------------------------
//Verify year is current or year+1
var today = new Date();
var year = today.getFullYear();
if (this.rawValue == year || this.rawValue == year+1)
app.alert("Year is invalid.\n\nOnly current or next year is valid.");
----- form1.#subform[0].Y::validate - (JavaScript, client) -----------------------------------------
//Final verification
ScriptObject.ValidateField(event.target, this);
This final verification script I have taken from the samples on the
LiveCycle Developer Center (Validating field content in a form hosted in Adobe Acrobat).
The alert only displays when 2007 or 2008 is entered. I am really confused now. I thought I had a handle on this with your explanation.
I do not know where to go now. The Object Pallet is setup as:
Field Tab
Allow Plain Text Only and Limit Length are checked with a Max Chars: 4. Edit Pattern: 99999
Value Tab
Type: User Entered - Required
Validation Pattern: 9999
Validation Script Message is checked - in Message box Invalid Year.
Binding Tab
Default Binding: Normal
Data Format: Plain Text
I am hoping that you can explain what I have wrong.
Thanks so much,
Confused Nancy -
Quick Tip: How to create editable form fields | Acrobat X Tips & Tricks | Adobe TV
A short tip that details how to create editable form fields using Acrobat X Std. or Pro.
http://adobe.ly/wzXkmLI have created a form which will be filled out by customers and sent back to me via 'submit' button. What I am trying to figure out is when we receive the filled out form, is there any way to have it as a pdf. To clarify, when the form is filled out and sent, the receiver opens the email and attached is a non-editable pdf. This way the customers information is no longer editable.
-
Hello.
How to convert a date field with format (dd,mm,yyyy) to format (mm,dd,yyyy)
I have text field which has a databind to a date field. When I click on it, we can select the date, it is added on the format (dd,mm,yyyy). When I want to insert this date field to a database It doesnu2019t allow me to do it because it will only accept date field on the format (mm,dd,yyyy)
I tried to store this format on a date variable and I get a message saying that is impossible to convert a string into a date.
Regards,
JoseHi Jose,
usually you format strings in c# like
string.Format("{0:yyyyMMdd}", insertyourstring);
in your case
string.Format("{0:MM/dd/yyyy}", insertyourstring);
[look here|http://idunno.org/archive/2004/14/01/122.aspx]
there are more details
if everything fails split the string with Mid()
or ask me
lg David -
How to Create the new Field ( Table - Row) in SAP B1
I have a scenario in which the Purchase calculation is based on LR, so for that we have to add new field in Purchase Document. that filed is not available in form setting. kindly let me know how to Create a new field in Purchase document.
ThanksHi,
I have adding new & existing forms and creating User Defined Field in row. example on adding a field in an existing Form and its corresponding to the database, including user input validations?
I want to add a new field in the detail section ( row area ) of a Production Document, and save it to database and read it back when the document is opened.
Thanks.
Syed Waqar Khurshid -
How to create narow down field?
How to create narow down field?
when i type the data in a field that field show list of value in narrow down style...Have you tried "Text Field with Auto-complete" ? ( available only in APEX4.0)
Regards,
Hari -
How to add the date field in the dso and info cube
Hi all.
I am new to bi 7. in the earlier version v hav to button to add the date field. but in the bi 7 der is no option so can any body tell me how to add the date field in the data targets
Thanks & Regard
KKmy prob is solved
KK -
How to create a new field for Q3 - QM notification in Header and item level
Dear All,
l
Sub: How to create a new field for Q3 - QM notification in Header and item level
Ref. the link --> Quality Notification
We want to create a new field in header level and item level.
As per the thread the solution is given below.
In the IMG Config: Quality Management -> Quality Notification -> Notification Types -> Define screen areas for notification types Then Choose 'Define screen areas' Then Click on 'New entries' button Now, select the relevant Notification Type and click in 'Enter'. Select the 'Iten Cases' register and remember to setup the Tabstrip Header, Icon, etc. Set the 'Tabstrip active' flag. Then Save.
Quality Notification -> Notification Types -> Define screen areas for notification types
WE ARE UNABLE TO FIND IN CUSTOMIZATION PATH --> DEFINE SCREEN AREAS FOR NOTIFICATION TYPES.
Please help.
Question No. 2 :
THE REQUIREMENT IS GIVEN BELOW.
We want to hide the field in Q3 - QM Notification
In header --> Reference tab --> Item (sub heading) --> "DEFECT LOCATION" FIELD TO BE ELIMINATED (HIDE)
Ref the link --> Quality notification
The solutiion is given below.
Hi Sami,
We can hide the collumns using the Transaction OQM1 and Program Name SAPLIQS0.
Lets say Defect location need to be hidden, the field TXTCDOT need to have the radio button HIDE.
Hope this will suffice your requirement.
Kindly ask me if you need any other details.
Thanks & Regards,
Srinivas.D
Hi Sami,
We can hide the collumns using the Transaction OQM1 and Program Name SAPLIQS0.
Lets say Defect location need to be hidden, the field TXTCDOT need to have the radio button HIDE.
Hope this will suffice your requirement.
Kindly ask me if you need any other details.
Thanks & Regards,
Srinivas.D
By double clicking the "DEFECTIVE QUANTITY (EXTERNAL), WE COULD NOT GET --> field TXTCDOT .
Plese do the needful.
We are using ECC6.0 Ehp3 and Ehp4.
With Best Regards,
Raghu SharmaDear Pushpa,
Transaction Code :SHD0 is working fine.
Please accept my sincere thanks for your sharing your Knowledge.
I am able to fulfill my
Regarding the enhancement, I have not tried.
Once I will complete, I will award the fulll marks to you.
With Best Regards,
Raghu Sharma -
How to create the SWF file which was included surrogate pairs.
I would like to make sure how to create the SWF file which are included surrogate pairs.
The error of outside the scope of unicode occurred when I compiled(mxmlc) the as file which was set surrogate pairs to 'Unicoderange'.
Ex, I set the ' '(UTF-16 is '20B9F') to 'Unicoderange'.
However, I cannot add the surrogate pairs.
The error of outside the scope of Unicode occurred when I compiled the AS file.
The reason of error was that the Unicode(UTF-16) of surrogate pairs is invalid.
Then, I read the following pages.
These pages are written that unicode-range supported surrogate pairs.
http://livedocs.adobe.com/flex/3/html/help.html?content=fonts_07.html
http://www.w3.org/TR/1998/REC-CSS2-19980512/fonts.html#descdef-unicode -range
So please let me know how to create the SWF file which are included surrogate pairs.
Environment
- Flex3.5a
- TTC: meiryo(ver6.02), msgothic(ver2.50), mspgothic(ver2.50)
Thanks,
Takeshi Ishihara.I've been able to create project jar files in Eclipse by selecting Export from the File menu, then choose Java - Jar file - and provide the required information, name, destination folder etc. But when I do this, I do not export other jars on the build path this way nor do I expect to do this. I am only concerned with creating a jar file of my own work. A jar file does not "contain" other jar files. If the jar file contains the main method, and requires other jars for it's execution, then you may wish to include a reference to required jars on the class path entry of the Manifest file of the jar file you create. I'm not sure how to create a Manifest file in eclipse though..
Maybe you are looking for
-
How do I print multiple (identical) spreads on the same sheet in InDesign?
I have a quarter-page booklet (4.25" x 5.5") that I would like to export as a print-ready pdf with 2 identical spreads on each page. Thus, each printing yields two copies of the book. Otherwise half the page goes unused and the print cost is double
-
Need help in Understanding synchronization through code
I read someone that synchronization is suppose to allow only one thread to access a synchronized method or block of code. But then I wrote some code just to test it out. import java.util.ArrayList; import java.util.Vector; public class Testing extend
-
New to IChat & webcam is not always recognized
Hi. I have an ichat and AIM account and just got an Ezonics mac-compatible webcam. On either account, it almost always will not recognize that the camera is plugged in. Its okay with an audio chat, but not a video. My image appears in the monitor, th
-
Tab Problems ... Look Very Weird
Hi, I believe the program CosmoPod may have caused this but i cannot find anyone else that has had this issue. When clicking "Open Link in New Tab" or Command-Clicking a link a new tab is opened behind my tabs that are already open, like normal. BUT
-
Mac and PC sharing airport express - help!
This is possible, right? I have successfully set up the airport express from my ibook, but now i'm trying to connect a PC with Windows XP to it and it's not picking up the wireless signal. Suggestions please?