How to make the default end date
Hi friends,
I need like
Planted in the page (/ oracle/apps/by/self-service/absence/webui/AbsenceCreatePG)
We have message choice field (type of absence). In this user can select type of leave-> hadj/sick/maternity leave.
and
We have categorized start date. In this user will give start date.
and
We filed to end date end date must here be missed.
After having these two values the end date should be missed, having the corresponding calculation. According to the type of the leave is
If Hajj leave selected... .end date should be start date + 21 days
If the sick leave selected... .end date should be the date of departure + 1 days
If the selected maternity leave... .end date should be start date + 60 days
For other types of date field leaves .end should be entrable only.
How to get there. Help, please.
Let me know for any clarification.
Thank you
Aravinda.
I FOUND THE SOLUTION
If a need for this type of req., try this
' public void processRequest (OAPageContext oapagecontext, OAWebBean oawebbean)
{
super.processRequest (oapagecontext, oawebbean);
OAMessageDateFieldBean oamessagedatefieldbean = (OAMessageDateFieldBean) oawebbean.findIndexedChildRecursive ("HrAbsenceStartDate");
oamessagedatefieldbean.getHelper () .setFireActionForSubmit (oamessagedatefieldbean, "HrAbsenceStartDate", null, null, true, true);
}
' Public Sub processFormRequest (OAPageContext oapagecontext, OAWebBean oawebbean)
{
super.processFormRequest (oapagecontext, oawebbean);
OAApplicationModule am = oapagecontext.getApplicationModule (oawebbean);
OAViewObject vo = (OAViewObject) am.findViewObject ("AbsenceVO");
String sHrAbsenceType = oapagecontext.getParameter("HrAbsenceType").toString ();
OAException message = new OAException ("HrAbsenceType is" + sHrAbsenceType, OAException.INFORMATION);
oapagecontext.putDialogMessage (message);
String s = oapagecontext.getParameter ("event");
If ("HrAbsenceStartDate". Equals (oapagecontext. GetParameter (EVENT_PARAM)). "absenceTypeChange".equals (s)) / / ' | HrAbsenceType".equals (oapagecontext.getParameter (EVENT_PARAM)))
{
If (oapagecontext. GetParameter ("HrAbsenceType")! null = &! » ». Equals (oapagecontext. GetParameter ("HrAbsenceType")))
{
If (sHrAbsenceType.Equals("61") | sHrAbsenceType.equals("62") | sHrAbsenceType.equals("65") | sHrAbsenceType.equals("1070") | sHrAbsenceType.equals("66") | sHrAbsenceType.equals("67") | sHrAbsenceType.equals("2069"))
{
vo.getCurrentRow (.setAttribute("EndDate",""));
}
on the other
{
If (oapagecontext.getParameter ("HrAbsenceStartDate")! = null &!) » ». Equals (oapagecontext. GetParameter ("HrAbsenceStartDate")))
{
days int = 0;
If (sHrAbsenceType! = null & sHrAbsenceType.equals("63"))
{
days = 20;
}
ElseIf (sHrAbsenceType! = null & sHrAbsenceType.equals("1069"))
{
days = 0;
}
ElseIf (sHrAbsenceType! = null & sHrAbsenceType.equals("64"))
{
days = 55;
}
String sStartDate = oapagecontext.getParameter("HrAbsenceStartDate").toString ();
If (null! = sStartDate &!) "". Equals (sStartDate)) / / & oapagecontext! = null)
{
SimpleDateFormat sdf = new SimpleDateFormat("dd-MMM-yyyy");
Calendar c = Calendar.GetInstance ();
String finDate = null;
Date sdate = new Date();
Date udate = new Date();
Try
{
sdate = sdf.parse (sStartDate);
java.util.Date utilDate = (java.util.Date) sdate;
java.sql.Date sqlDate = new java.sql.Date (utilDate.getTime ());
oracle.jbo.domain.Date jboDate = new oracle.jbo.domain.Date (sqlDate);
jboDate.addJulianDays(days,0);
vo.getCurrentRow () .setAttribute ("EndDate", jboDate);
}
catch (ParseException exception) e
{
throw new OAException ("xxxxxx... » + e) ;
}
}
}
}
}
}
}
}
Tags: Oracle Applications
Similar Questions
-
How to make the default text size and line spacing in small Sticky Notes?
How to make the default text size and line spacing in small Sticky Notes
Hello
I suggest that you try the method below and check if it helps.
Method 1: analysis of auditor of file system (CFS)
System File Checker is a Windows utility that allows users to find corruptions in Windows system files and restore the damaged files. To perform a scan of the SFC, check out the link: https://support.microsoft.com/en-us/kb/929833.
Note: the steps for Windows 8/8.1, works perfectly with Windows 10.
Method 2: clean boot
A clean boot is executed to start Windows by using a minimal set of drivers and startup programs. This will eliminate software conflicts that occur when you install a program, an update or when you run a program in Windows. Follow the link to perform the clean boot: https://support.microsoft.com/en-us/kb/929135.
Kind regards
Angelo bar
Microsoft community
-
How to make the default tool rotation
Someone has already posted an answer how the tool rotation by default here
but my problem is that I have absolutely no idea whether to run a script. I've tried a few things, but they didn't work. Can someone explain this to me as if you would he explain to your grandmother? Heck, just walk me through it step by step if possible.
I has a period of a few days and I create a PDF 3D a SketchUp model, I created and exported in Acrobat 3D. Basically what I need to do, is make Acrobat 3D orbit much better. I can't send it to customers the way it is by default. It's a joke. By default, it is really REALLY BAD. I need the rotation button deleted (which I think is possible) or make the default value of the spin button.
On a side note, the camerarotate.js Adobe script provides is horrible... no pan? Come on! Coming from SketchUp where orbit works so perfectly, Acrobat 3D is painful to use sometimes.Thank you guys.
Hello Szarky,
-Create a .txt file containing the following line:
runtime.setCurrentTool (runtime. TOOL_NAME_SPIN);
You can change the .js extension renaming (file extensions should define visible so)
-Double-click on your Annotation 3D with the advanced editing tool (image below)
-Click on edit content
-Fix Javascript under default script by browsing the file .js or .txt created
I hope this can help, Chuck
-
Is there anywhere on the page where I can post a screenshot to illustrate my dilemma. My dilemma is not the 'know how' how a screen shot but rather where to post.
Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).
- Makes no changes on the start safe mode window.
- https://support.Mozilla.org/KB/safe+mode
-
PSE 8 - How to make the default RGB Mode
Is there a way to make RGB default "Mode"?
Currently, 'Index' is the default value and I think I have spend more time changing the Index Mode to RGB I do actually create/edit images. It drives me crazy
Thanks to anyone who can tell me how to solve this problem, I'm going to.
LCChew wrote:
(2) when I save the image (I always use ' save for Web') and open the next time - most of the time - the image opens in the Index.
"Save for Web" creates a new image and do not alter or save the image you are using.
Ken
-
How to make the exchange of data between 2 whole loop real-time
Hello
I have 2 while loop
the 1st loop includes data acquisition program
the 2nd loop includes control program
--------------------------------------------------------------------------------------------------------------
My question is how do the exchange of data between 2 whole loop real-time--------------------------------------------------------------------------------------------------------------
I tried with the variable and direct wiring between the 2 local while loop
It does not work (there is a delay)
-
How to make the default player?
installed a new program of digitization and not when you try to open a PDF file, a message screen opens saying there is no disk inserted. How to go back to default?
Hello
Please visit the following link to set the reader as default PDF reader.
Change the default program for PDFs, it Services, communications group
Concerning
Sukrit diallo
-
How to make the default value of the hdpi button to
I noticed that if I add a HiDPI button to a Muse site, the default state for retina display devices is to be turned off (IE content is not displayed in HiDPI), but if I do not add the button on the site, it is by default to it. I that my site by default on 'on', but include the button so that users have the option to turn it off.
Does anyone know how to default Muse HiDPI 'on' when the button is included?
The HD button will work and be enabled if users visit on the HD compatible monitors. The gray status appears when on a site or a monitor that does not support the HiDPI. Red State is displayed when you are on a site HiDPI and have a compatible monitor or device and means that the images are not HiDPI. The Green State is the same as the Red State except HiDPI images are loaded.
Thank you
Sanjit
-
I want to have my favorites in the left pane of the default desktop, when I connect in firefox, as before. the solution proposed in the firefox help page "What happened to the bookmarks toolbar?", i.e. to check "bookmarks toolbar" in the drop-down display-toolbars menu, does not work.
can you suggest an alternative?
I use firefox on a macbookpro with os10.6.6 4.0b11
The bookmarks toolbar has nothing to do with the Bookmarks Sidebar (on the left side of the browser window). {Ctrl + B} open/close the bookmarks bar. If you close Firefox with the open bookmarks bar, it should be open when you launch Firefox, next time. If it does not work like that in your profile file localstore.rdf file is probably damaged.
-
How to make the default player for Windows Media Player 11
I have Windows Media Player 11 installed and I can open and play music with it. However, I can not do Media Player 11 the default player. He keeps back to Media Player classic. I tried the following:
Panel-> Add Remove programs
Select Set Program Access and Defaults
Select the custom button
Under Choose a default media player, I chose Windows Media Player, and then click OK.
However if I insert a disc, and then opens it with Media Player Classic.
If I come back in Set Program Access and Defaults button is to use current media player.
I have also tried to restart the computer after the Windows Media Player and still does not work.
Have found the answer. I'll post here for the benefit of others.
Open Windows Explorer
Right-click on Audio CD
Select AutoPlay
Select the audio CD set with Windows Media Player
Check box "always do the selected action.
Click OK
Now whenever I insert an audio CD, play it with Windows Media Player
-
Hello
I get 2 different types of data from the controller. How to differentiate b/w them.
After receiving my code in deccissions. There are 6 different control elements in my project attached to the controller. Thanks for give me idea how I send data to the controller for this controller to differentiate that exit to be active or low
First, look at the couple of serial examples that come with LabVIEW. You use the VISA functions to read and write. Your technique to separate the values will work as well in LabVIEW. You would be to convert the string returned by VISA reading to a digital (i.e. with the Scan of the chain). Then do the comparison, then the result of wire to one of the two indicators. Put the terminal of each indicator inside a case statement would be a way to do it.
-
How to make the default value in the form input field disappear at the click of the user
I have a HTML input with a default tag.
How can I get this value disappear when the user starts to type?
A form is here:
http://www.kardsbykaren.us/10pack.php
Happy holidays and thank you.
Have a look here http://www.matiasmancini.com.ar/ajax-jquery-validation-html5-form.html
GRAMPS
-
How to make the default google search engine in the address bar.
How can I do that when I search with my address bar he ALWAYS uses that Google, no matter which search engine is selected in the search bar? It used to be like that, but a recent update of Firefox it changed. Now, when I search with my bar address he uses the search engine selected in the bar... if research that I wanted to do, I would just use the search bar! Any suggestions?
See: https://addons.mozilla.org/en-US/firefox/addon/keywordurl-hack/
He was removed from firefox because seek air pirates could 'lock aka require a lot of things to do to remove' search preference.
-
As I said on the address bar when you enter a url not to be searched, it uses bing and I despise bing with passion how can I switch it to google.
Hi J'avous,
If you are referring to the keyword search that is made from the address bar, just take a glance at article in the Knowledge Base Search the web from the address bar. It will give you all the information you need to go back to Google.
If you are having problems with the search bar, bar this article will be useful.
Hope this helps!
-
How to make the default "All Files" value in the "" Save as "box?"
Under Windows, the combination of keys short to save all = Ctrl + Shift + A
Is that what you mean?
Nancy O.
Maybe you are looking for
-
Site visited Web never appears in the story
The site is http://vk.com/zlodeyi. I have visited several times, but it is never added to the story. I have no problem with any other Web site, including other groups vk.com . The site is displayed correctly and is displayed in recently closed, but n
-
Lenovo S650 Custom Recovery (TWRP 2.6.3.0) Root access
http://Lenovo-forums.ru/index.php?app=forums&module=forums§ion=attach&TID=3499&k=880ea6a14ea49e8... (Thanks to lenovo - forums.ru) You can take ROOT device TWRP Pentecost.
-
HP Mini 110-1034 NR: password bios hp mini 110-1034 nr
Product name: HP Mini 110-1034NR Operating system: Windows 10 Pro (32 bit) Hello Can U help me to the bios password my computer hp mini 110fatal error... system halted CNU9284PMB Thank you.
-
Through the sum of the values in all of the array of Boolean one and zeros
Hello. I have an array of Boolean which I have converted one and zeros. I just want to the sum of all the elements in this table (in other words, giving the number of 1 in the table). I used the feature to add items, but I get a negative value. I che
-
Is it possible to upgrade from Windows 98 or Me to Windows Vista?
I'm having a discussion with a colleague. Does anyone know if it is possible to do an UPGRADE of Windows 98 and Windows ME for Vista? Or you have to do a clean install of Vista? Can you upgrade from Windows 98 and Windows ME to XP and then move fr