Calculate one month prior to user entered date by a Date/Time field
Hi All,
I am currently pretty new to Live cycle and have no idea about Java scripting, i have been using this site a lot for my forms and have used the FormCalc for expanding tables and so on but this one is proving difficult. I am currently designing a form that requires a calculation of one month prior to a user entered date by a Date/Time field. I have looked at multiple posts on how to do this but none have worked (they are using the Date2Num).
Is anyone able to enlighten me please?
I currently have:
Date/Time field Date Due
Date/Time field Planned Date of Review
I need Planned Date of Review to be calculated to be 30 days prior to Date Due. How do I go about doing this? Is it incorrect to use a Date/Time field as the field type for the calculation?
Cheers
Brad
You can use FormCalc to compare the user input.
Put this script into the exit:Event of the date field.
if (Date2Num($.formattedValue, "MM/DD/YYYY") ne date()) then
$host.messageBox("The entered date is not todays date!")
endif
Similar Messages
-
Need to calculate one week before the user entered week
Hello Friends,
I have a ZCALWEEK object and I have created a variable on it. It is a simple 'Manual input' type of variable. We have to display a few keyfigures which will be restricted for the week value entered by the user (in variable mentioned above). Along with this we have a few keyfigures which have to be restricted for a week before i.e. user entered week -1.
I tried to use the "Set offset for variable" option, but it is grayed out. Now the solution that I see for this is to create another variable (customer exit) and calculate the previous week. However, I believe that there has to be a simpler way, in the query designer itself, of doing this i.e. without creating customer exit.
I really appreciate your timely feedback. Thanks!
Regards,
Prem.Prem,
Variable offset should work in your case....
Chose the variable for the KF.... keep the offset as -1.
Otherwise we need to go for customer exit....
consider a variable x fill this by the current week or week entered... take the -1 in another variable and use it..
Cheer's
HVR. -
This template will be used to type in information that will then be printed on an agency's official, barcoded form loaded in a printer (instead of blank paper.) Only the user-entered info should print on the pre-printed form. Users will use Adobe Reader to complete their templates; they do not have Acrobat. Thank you!
Use the template as non-printable background and add the form fields.
-
I'm contemplating this setup: A current generation MacPro (running SL), with two monitors. Can I have two separate user-accounts (the Admin account and one additional user-account) active and running simultaneously from the MacPro, but, of course, displayed separately to the monitor corresponding with that user-account?
Thank you!you can have two accounts logged in at the same time via fast user switching but there is no way to display them at the same time on different monitors.
-
User Profile Data for One Month in ST03N
Dear All,
I have one question for a similar requirement.
I want to see the User Profile data for last month (e.g.August)
I navigate through the same path as described by you.
ST03N- Expert Mode- Total (select period)-- User Profile (from analysis view)
even though I have selected One month period (August) ; I could see only the data for one week (1st August to 7th August)
Can you please advice how can I solve my purpose, if not this time but may be in future I should be able to see complete one month data.
Thanks in advance.
Best Regards,
JayeshDear Shailesh,
Thanks for the very prompt and accurate response.
However we have this job scheduled on monthly basis in our productive system, still there is no data avaialable.
Kindly advice.
Best Regards,
Jayesh -
Current date - user entered days
Hi all
I have this scenario:
I have safety stored as attribute of material.
I have to do some calculation based on this so i created a replacement path variable and used replace with attribute value.
Now i have 2 safety stock:
1. Current ( safety stock restricted to current date )
2. Safety stock Past : restricted to (current date - User entered no of Days).
How to calculate the second one in 2004s??
ThanksHi Srini
Thanks for quick response. here is the issue. The safey stock needs to be calucated for just that day. so it not aggregated from current date- user entered days to current date.
ex:
Current Safety Stock (10/26/2007) Safety past (10 /26/2007 - 7 days) ( user enters 7 days)
100 200
So how to restrict Safety past to the date which is current - user enetered no of days.
Thanks
Pankaj -
Trying to have today's date dynamically entered into a repeating table row textfield when the button is clicked to create each repeating row. The user can then enter addtional text into the same text field next to the date.
Example:
[4/25/2012] This is the text the user entered.
Today's date is populated in each update row created when the "Update Row" button is clicked.
The following script works but only for the first instance, not the second, third, forth, etc...
Click event: (JavaScript, client)
this.resolveNode('Table2._RowB').addInstance(1);
xfa.resolveNode("Table2.RowB.#subform.Update").rawValue
Thank you,
~DonHi Don,
Does this solution cover the above problem? https://acrobat.com/#d=VjJ-YsXLKmV6QU84JrAAIw
Niall -
Missing LO changes and creations since one month
Hi
We have some issues with our LO data source and now the issue has been resolved. We need to delete the requests since one month
and reload. We have the following date selections available in the info pakcage Createdon and changed on. Can we load all the
changes and new creation during that time with this selctions without getting duplicates ?
Please adviceHi,
created on load part is fine as you said and you should do that but
then load the data changed between those two dates
this part will create issue as it will send records to cube which are already present in the cube since they can have created on dates in the past.
created on load part is fine as you said and you should do that.
I mean....same record can have created on and changed values
created on is static and will never change...so a record created in 01.01.1900 will not come in your selection based on created on but it is still present in the cube.
now if the same record got changed in the last one month..i.e. the time when the delta was not working...if you give the changed on selection then it will bring the same record again...and may be if your load goes for two days then for the third time as well if it gets changed on last loading day...
some thing like you loaded for the selection
first you loaded created on 01.01.1900-31.09.2008
then changed on 01.10.2008- 02.12.2008
Now there is one record which as created on date as 01.01.1900...and changed on date as 02.10.2008...and if the old record is not deleted from the cube then it will get doubled. after load based on changed on
also if the load keep on running for two days and is the same record got changed on 03.12.2008 then it will come thrice.
So in any case you will have to delete the history from the cube to load the data correctly.
Thanks
Ajeet -
Format numeric field as user enters value
I have a numeric field that I want to be formatted as 999-999999-999 so that when users enter 12-digit part numbers, the field automatically formats the value that they have entered. Is there a way to format their value as it is entered so that when they type the fourth number, a hyphen is placed between the third and fourth digit?
Additionally, is there a way to allow a numeric field to have a default value with letters? I want to have a default value of "xxx-xxxxxx-xxx" but I don't want to allow the user to enter anything but numbers in the field. I tried using a text field, but I can't get it to reject letters and only accept numbers.Hi,
You can define a display format pattern of "num{999-999999-999}" that will add the hyphens in once they leave the field, or maybe having three fields with the comb option set and hyphens between them would suit more?
You can use the null display pattern to display any sort of text in a numeric, date, or whatever field. Have a look at this sample, Adobe LiveCycle Designer Cookbooks by BR001: Adding Ghost Text to LiveCycle Designer form
Regards
Bruce -
Reg: User Entered Value in LOV Window
Hi All,
Following is the use case.
I have an LOV ("PO Number") with its own controller. If user enters a partial value in LOV Field, (say 513),
LOV Window comes up with results like PO Number starting with 513. Suppose, If user modifies the search value from 513 to 913,
LOV query needs to get executed with new search value (913).
Can you please suggest me to capture the new user entered value (913) in the controller.
I tried the following. But, poNum value obtained through below code is 513(old value - value entered in LOV of base page.)
Dictionary passiveCriteria = (Dictionary)pageContext.getLovCriteriaItems();
String poNum = (String)passiveCriteria.get("PosPoNumberInternalLov1");
Is there any other way, i can find out the new user entered value in LOV Window.
Thanks,
Kiran.Hi Gyan,
My requirement is that, I need to make some processing/manipulation on the user entered search value for the LOV.
If the user enters value in base page, i am able to get the value and process it.
But, If user clicks on LOV Window, enters a new value in search field, i am not able to capture the new value.
Please suggest accordingly.
Thanks,
Kiran -
My bill went up in one month without notice and i bundle.
My bill went up in one month with out notification.
So is this the time where you guys start your over charging on my bill? My bill went up by $11.00. I am not rich! So unless you help to resolve this problem, i plan on getting out of dodge realquick and i mean REAL QUICK!!!!!!!!..????!! Darell
-
Purchase Order date vs Invoice date
Hi to all.
In our system we run t-code me21n to create purchase order and later on we run t-code MIRO, MIR7 etc. to post incoming invoice. My question is how do I prevent system from letting end users enter invoice date that has earlier date than purchase order? Let's say purchase order was created on December 3-rd, but end users enter as an "invoice date" in the t-code MIRO December 2-nd and system lets it go through, not even warning message. What I want to accomplish is to create "E" message and not let end-users enter invoice date earlier than purchase order date.
Help is sincerely appreciated.
Regards,
Nazim
Edited by: Nazim Gasimzade on Dec 4, 2008 3:32 PM
Edited by: Nazim Gasimzade on Dec 4, 2008 3:35 PMThanks for your reply.
Our R3 system is designed for government funded organizations. The issue is that government funded organizations are not supposed to have PO entered in the system until they are provided with funds which are quite often get delayed because of all the paper work that has to take place. Suppliers know about it and quite often they supply goods to budget organizations even before PO are in place. Once the budget organization receives the funds that they can spend, they enter PO details and invoice details but it turns out that invoice date is earlier than PO date. At very least we would like to have our system give a "W" message.
Regards,
Nazim -
How can i know about any users who log on sap last one month..all data and
Dear all,
how can i know about any users who log on sap last one month..all data and transaction code they used in a month.
Regards,
ASHUTOSH
9891595497Dear Ashutosh,
I think your question is in the wrong forum. This is for SAP MDM related questions and answers. SAP MDM does not use Transaction codes. So you may not get much help here.
Please try posting your question in the ABAP forums and you may get the right resources to help you.
Thanks.
Siva K. -
Display of user entered date in one column
Hi Guys,
Is it possible to display user entered date(any date) in column of all rows?
I need to calculate no of days(User entered date-Deposit date).
Please give some input.Hi Sagar,
How can u display user enterd date in a column?
For example if user entered 31.03.2007 as input,i need the same date(31.03.2007 ) to display in all rows of the column,so i can use it in the formula.
Thanks. -
Example
Currently, when the user enters the page the interactive report runs (without the user hitting "go")and - indicates no data found because one of the "parameterized" fields is required and the sql is not setup for nulls.
I'm Looking for a way to not perform a query at all -------until the user hits go for the first time on the page - then each time they re-enter the page in the same session it would be ok to auto submit the query.
I believe I can setup a hidden item and check on my interactive report E1 not null. Then create a "computation" on "after submission" that would set this value to a value - say 1.
I can seem to be able to get this to work however.
In my interactive report - I'm wondering what "condition type" should I be using. Any thoughts would be greatly appreciated.In this case I just have 2 parameters. The goal is to allow the user to "pre filter" BEFORE rendering the interactive due to the possible size of the report. This pre fliter could be by say- order type or region or branch etc.
Right now, I believe its all one region - see below.
My first attempt, I put a branch on the after submit on the go button and then put a condition on the interactive report. This worked but caused a looping issue when trying to select a column on the interactive report itself. My guess is , because that drop down was also using that same go button.
Anyway, please advise how to best "pre filter" prior to rendering an interactive report. Should I have two seperate regions or can I use one region. Any assistance would be greatly appreciated.
Order Parameters 2
Before Header
Branches
Computations
Processes
After Header
Computations
Processes
Regions
Before Regions
Computations
Processes
Regions
Body (3)
Search
Items
P6_TEXT
P6_ITEM_NUMBER
Region Buttons P6_GO
Order Type &P6_TEXT
Report Columns
Order Type
Operating Unit
Order Number
Line Number
Item Number
Invoice Week
Items
P6_NAME
P6_ITEM_NUMBER_ALT
Position 01 Breadcrumbs
After Regions
Computations
Processes
Maybe you are looking for
-
How to find square root, log recursively???
I need to find the square root of a number entered recursively and log as well. Your help would be greatly appreciated. Thanks in advance! import java.io.*; /**Class provides recursive versions * of simple arithmetic operations. public class Ops2
-
How to use 2 vo's in xml publisher pdf genarate report from oaf--urgent
Hi Guru's, i am integrating xml publisher report from oaf. I found one good artical published by prabaker in apps2fusion site and i implemented the same. But it is used onley one view object to generate pdf. But in my case i want to use 4 view object
-
Classpath error while building the project.
Hi I have created an application in which on clicking the button on one view , next view opens and data is displayed in the tables. This data i am giving as static, and for that i have created a java file. this java file is located in the subfolder i
-
I"m trying to get my son ipod touch unliocked. It has a message going across the screen telling me that my ipod is disable and needs to be connected to itunes. I've done that and I still can't get it to work. Does anyone have any ideas or suggestions
-
Connecting imac to macbook. "No devices detected"
I'm attempting to share screens betwee my MacBook and my iMac. I'm using a 18Pin DIGITAL SINGLE LINK DVI-I CABLE to conect them. Both devices are reading "No devices detected". Any suggestions for my next step?