Skip to main content

Posts

Showing posts from July, 2013

Resetting component values in actionEvent

       actionEvent is the event on which you want to reset the component values to null or clear the previous values in popup or UIComponent. For that use the following code.    UIComponent comp = actionEvent .getComponent();    oracle.adf.view.rich.util. ResetUtils.reset(comp); here comp is the component binding .

Getting Businss days in JAVA/ADF

Use the following class in your application to get the Business days getBusinessDateAdded   - is the method which will accept the number of daya of future ,and second parameter is the DB connection as here i am using the DB query direct to get the holidays. you can customise this as per your need package org.adr.prism.casemgt.ui.bean; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.commons.lang.time.DateUtils; /* This bean is used to get the business days on the given oracle domain date  * 04-Julu-2013  * @sachin  */ public class BusinessDays {     public BusinessDays() {         super(...

Get Business Days in JAVA

you can customise this code as per your requirement if u need previous business day then just give - value instead of 1 in red area --------------------------------------------- import files ------------------------------------- import java.util.Calendar; import java.util.HashMap; import java.util.Map; import java.text.ParsePosition; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.GregorianCalendar; import java.util.List; import org.apache.commons.lang.time.DateUtils; import org.apache.log.Logger;    ----------------------------------------  private void setExpectedPerfectionDate () {         Row printakeRow =ADFUtils.findIterator("CasePreIntakeVOIterator").getCurrentRow();         oracle.jbo.domain.Date createdDate=null, updatedDate =null;         if (printakeRow != null) {  ...