Discoverer viewer date picker

Hi All,
Is it possible to have a date picker for date fields in discoverer viewer?
Regards,
Nav

Hi
There is no code to use here, this is all done by the end user inside the Plus worksheet.
First of all, your Discoverer administrator needs to create two or more lists of values on related items within the folder, for example on the Year, Quarter, Month and Date.
In the end user tool, the user creates a set of conditions on these items presenting the highest level first, for example the year, followed by the next item in the chain, for example the Quarter and so on.
In the sub conditions, for example on the Quarter, the user checks the box which asks whether the values for this item should be based on a previous selection. You then tell Discoverer to use the previous selection thus the list of values for Quarter will be restricted to the year or years selected in the first condition. You simply repeat this exercise for Month and then Day.
Do you have a copy of my Oracle Discoverer 10g Handbook? If so, you will find a full description of cascading parameters in there.
If you or your users don't know how to do this you may want to consider taking some training as this is standard functionality within the Plus tool and you would expect report writers to know how to do this.
Best wishes
Michael

Similar Messages

  • Discoverer Viewer - date picker is missing

    Hi,
    I have a report with the date parameter. It is based on the item of date type. If I run it in the Discoverer Plus then the parameter has the date picker next to the filed as expected and I can choose the date from the calendar. Running the same in the Viewer there is no picker and the date cannot be choosen from the calendar.
    I am using Discoverer 10.1.2.55.26.
    Does someone know how to get the date pciker in the Viewer as well?
    Thanks in advance.
    Regards,
    Stanka

    Lots of luck. Oracle, in its infinite wisdom, did not provide a date picker in Viewer. I would suggest submitting an enhancement request to Oracle. If enough of us customers do that, maybe Oracle will figure out that this is a feature its user base greatly desires.
    John Dickey

  • No data found in the discoverer Viewer from Apps responsabiltiy

    Hi
    We have built a new responsibility for the discoverer reports, that is we directly access the discoverer viewer from the separate responsibility,all the report that shared with the users can be viewed from this responsibility,
    but when the user tries to run the report it is saying no data found.but for example if the user is trying to run the hrms report from this discoverer reasonability he get no data found but if we attach the function to the HRMS manager menu and try to access the report from the HRMS manager responsabilty we are able to get the data.
    We did the same setup in dev and test.in dev it is working very fine but in test we are not able to see the records in the report if we try to access.
    Please advice
    thanks
    Regards
    Ramesh Kumar S

    Hi,
    I'm not 100% familiar with HR security, but sounds like profile option setup related to security - perhaps Business Group or Initialization SQL Statement - Oracle / Custom? Check the profile options set for the HRMS Manager responsibility and setup the same for your new responsibility.
    PS. Similar sort of thing exists in General Ledger related to security. See:
    GL security issue in discoverer..
    Regards,
    Gareth

  • "Date picker" in report - - View source shows no label for the date picker

    Hi
    In one of my reports, I am using multiple types (textarea/text/date picker/select list)
    I wanted to use a javascript based on the label, but I do not see "<label>" for Date picker in the view source due to which my Javascript fails.
    Snippet of view Source:
    <td class="t3data" ><label for="f08_0001" class="hideMe508">CATEGORY</label><textarea name="f08" rows="4" cols="16" wrap="VIRTUAL" id="f08_0001">EMPLOYEE INDUCTION</textarea></td>
    <td class="t3data" ><span class="lov"><input type="text" name="f11" size="15" maxlength="2000" value="29-FEB-08" style="padding-right:5px;" id="f11_0001" /><script type="text/javascript">
    As you can see above, we have a "label for" for the text area but not for the date picker
    Is there a reason for the same?
    Thanks
    Nitin

    Hi,
    OK - the headers attribute should also help as these will identify the correct cells. You would need to know the html tags used within each cell for each datatype.
    Would using cloneNode help you? It's a method of creating a copy of an entire row in a single instruction
    Andy

  • Using Discoverer 4i to view data on SQL Server

    Hello,
    We have Discoverer 4i set up to work with Oracle 9i. Now our Discoverer users want to use Discoverer to view data that is in SQL Severer. We don't want to rebuild data in SQL Server into 9i. What can we set up so 4i can view and maybe update data that is in SQL Severer. Thank you.

    I can't tell exactly what the problem is, but why don't you try a different approach.  See a couple of the tutorials from the link below, and try it again.
    https://www.youtube.com/watch?v=sbkQEBrhl5M
    https://www.youtube.com/watch?v=Grb9vWmtZe0
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

  • Discoverer Viewer Locale language - problems with data retrieved

    Hi all, I have a very strange problem.
    I'm using Discoverer Viewer 10g and when I connect to the same eul/database using Locale: Locale retrieving from browser, I see all my data different from "0" into my report; if I choose Greek as Greek's language I see ONLY "0" as data.
    All the queries for the reports are always the same, but something has problems with the language chosen.
    This doesn't happen, for example if I choose another language (Italian or French for example), but ONLY with Greek !!!!
    Anyone have had a similar problem in the past ?
    Thanks in advance
    Alessandro

    It appears as though there is a general JDBC problem. Please make sure your JDBC client is up to date with the Server. We have seen data conversion problems when there was a mismatch.

  • Discoverer Viewer- Cannot see the Data of the Workbook/worksheet

    Hi
    I have managed to create workbooks from discoverer plus and
    have saved it to database,
    Now i am trying to view the Workbooks in Discoverer Viewer.
    As i sign on it show me the list of Workbooks available, but as
    i click on any of the workbooks it dosen't show me the report
    there.
    Can i get any solution for this problem.

    hi chris
    first off all thankyou very much to look into the matter
    as of the error, i a not getting any error , instead it just
    displays the Report Title , without data below it.
    Also if i click on any of the links above eg'Presentation option', Export Data'etc it opens 'File Download' dialog box and download a text file on my machine
    which contains'Cannot specify Worksheet without Workbook' that's all
    i really don't know what is the problem all about.
    Please help
    Thanks

  • Resource Bundle Changes for uix.data.nls[variable] in Discoverer Viewer

    Hi
    I have made some successful changes to the UIX pages in Discoverer Viewer, but I would really like to change the text being displayed in many pages.
    I could do this by changing the following:
    <styledText styleClass="OraInstructionText" text="${uix.data.nls['text.userName']}" labeledNodeId="${uix.data.constants.USER_NAME_PARAM}"/>
    to
    <styledText styleClass="OraInstructionText" text="My New Text" labeledNodeId="${uix.data.constants.USER_NAME_PARAM}"/>
    However I would rather change the message bundle directly.
    Has anyone done this? If you have I would be most grateful if you could let me know how!!
    Many thanks
    Chris

    shd wrote:
    entry in /etc/hosts of 21.244 server
    192.168.21.244 isgmmlds244.insolutionsglobal.local localhost
    192.168.21.243 isgmmlds243.insolutionsglobal.local isgmmlds243
    Remove the localhost alias from this above enty.
    localhost should be - and probably also is - pointing to 127.0.0.1
    HTH

  • Data not fetching in Discoverer Viewer

    Hi All,
    I ran a report in discoverer viewer, but i'm not able to get any data. So i ran the same report with same parameter in Discoverer Desktop, there i'm getting data.
    Please suggest me in this issue.
    Thanks,
    Bopty

    Hi,
    There are many reasons why Desktop may return different rows from Viewer and Plus even when the same user and report are used.
    The most common reasons are:
    1. There are 2 EULs in the database and the default EUL for Desktop is different than viewer.
    2. The NLS parameters such as language are different. Disco Desktop language is defaulted to the language set for the PC and so may be different to viewer.
    3. The preferences set in the registry are different from the preferences set for Viewer/plus. These can control what SQL is used by Discoverer and hence cause different results.
    You may need to check the SQL being run in the database sessions used by Desktop and Viewer and see if there is any differences in the SQL. You can also trace the database sessions for Desktop and Viewer and see why the different results are returned.
    Rod West

  • Discoverer Viewer showing Cache.How to show the updated data on DB

    Hi,
    Thanks in advance.
    I'm am using url to open discoverer report in browser.
    http://hostname/discoverer/viewer?cn=cf_a129&event=openWorksheet&wsk=workbookname
    I'm getting the report data correctly when i enter the parameter and click go button.
    When i close the browser using browser close option.Then I inserted one more data in DB and then generate the same report again.
    The report i'm getting is the old one,which dont have the inserted new data.
    It might be coz the report i created 1st is been cached and kept.
    Is there any way to rerun the query reach time i open the report.
    Edited by: 849540 on Jan 2, 2012 2:39 AM

    Hi,
    You should disable the caching in the application manager.
    Go to the discoverer->viewer->cache and uncheck the "V".
    Tamir

  • I cant see the graph in discoverer viewer whith was created in the desktop

    Hi,
         I need your help!! I have a problem to see a graph in Discoverer viewer. I will detail you the steps that I follow;
    It was a difficult calculate report to results by Discoverer so, I create a view in the data base which show 3 field, Periodo(number) which is a union whit other field from other folder, State(varchar), Requirement(number).
    From the discoverer desktop y have a crosstab worksheets and a graph, there I can see it without problem, but in the Discoverer viewer I can see the graph.
    I tried to set the worksheets options in “show options” to show me the graphs too, but this options didn’t appeared there. Somebody know what I should have to do to see it?
    On the other hand I changed the “show null values show” option since null to empty, and when I wanted to save the change this error appeared;
    “Oracle BI Discoverer don’t had to found the necessary values to show the events…”
    Thanks for your help!
    Regards
    Dora

    Hi Dora,
    The graphs that you create using Discoverer Plus will show nicely in Viewer. Everything you develop in Pluys works in Viewer. They are companion products.
    You must realize that Discoverer Plus/Viewer and Desktop are two seperate product sets and they use different techniques for graph creation. There are other differencies between the two that suggests that you need to develop all reports using Discoverer Plus in stead of Discoverer Desktop.
    I have experienced workbook created in Plus being destroyed when opened and saved using Desktop. So for a long time I have simply forgotten all about Desktop. If your company is relying on both Viewer and Dersktop I suggest that the time has come to change strategy and technique.
    If you need sparring please mail to [email protected]
    Good Luck!
    Cheers
    Niels Jessen

  • Report Layout difference in Discoverer Desktop and Discoverer Viewer

    Hi,
    A report was developed in Discoverer Desktop. It is having some 10 columns as data points. The summarized columns for those 10 columns are required. But only 3 columns should be displayed in Detailed Data Points. So we shrinked(brought together) all the unwanted columns keeping 3 datapoints displayed. Now it is working fine in the discovere Desktop. But when we open the same report in the Discoverer Viewer, all the 10 columns are displayed in the Detailed Data Points as well.
    Thanks in Advance
    Regards
    Rakesh

    hi Michael,
    good morning..hope u had a good sleep.
    as per your last thought y'day, even though i create a function for the sum of season values n select those columns into the report, those will not be shown as summarized columns on right hand side of the report. they will be shown as datapoints for every month in that selected season.
    i think the only possible solution for like this report is to hide those unwanted columns. for this we have hidden checkbox option in tools->sort while developing. but this option is available only for tabular reports.
    if u come up with any fresh solution for the fresh day...i am glad.
    Thanks,
    _Rakesh.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Report not working in Discoverer Viewer

    Hi,
    I'm using Discoverer 10.1.2.1 in conjunction with E-business Suite 12.1.3.
    I have a report that runs fine in Desktop or Plus, but when run in viewer (either from the application or from the stand-alone viewer link) it ends with the following error after running for approx 4 minutes:
    The application encountered an invalid state.
    OracleBI Discoverer Viewer was unable to find the necessary data for displaying the results of this event. Please correct any errors and try again.
    I recreated the report from scratch, using the same underlying data, and adding exactly the same items, conditions and sorting. The same responsibilities have been given access, and I verified that the SQL produced in both reports is exactly the same.
    However my new report works! From what I can see the only difference is the name and workbook identifier.
    Does anyone have any idea what could be causing my error? I have searched for the error on this forum and others but haven't found the answer.
    Thanks
    Hazel

    Hi Hazel
    This has come up before and I found this thread that I was involved in several years ago: https://forums.oracle.com/message/3682002
    Here's another one, this time relating to static IP addresses: https://forums.oracle.com/message/1199457
    There's also a document on Oracle Support: The application encountered invalid state.Oracle BI Discoverer Viewer was unable to find the necessary data for displaying the results of this event" (Doc ID 884965.1)
    Also, were you using Portal? I've seen instances where Viewer was unable to run a report that was linked via Portal because the report had changed since it was placed on the Portal.
    Best wishes
    Michael

  • Workbook works fine in discoverer plus but shows error in discoverer viewer

    Hi,
    I have some issues with the parameter of a report.
    one of the parameters is
    mgr_id (eg: 1,2,3) -- from database table.
    manager names are not available in the database but they are known to users like
    1 - david
    2 - alan chris
    3 - peter
    so the requirement is
    (i) the input parameter wud be entered as 1 or 2 or 3 or null ( or in multiple combination or all).
    But the report shud have parameters in the header of the report.
    for eg: if the input parameter is mgr_id = '1' then the report shud have manager name: 'david' in the header.
    if the input is mgr_id = '1',' 2', '3' then on the report header, it shud display as manager name: 'david','alan chris','peter'
    (ii) the default value of mgr_id shud be 'ALL'. if the user enters mgr_id as 'ALL' then it shud take all the values of mgr_id and pull all the values of mgr_id (like 1,2,3)
    and the report header shud display as department name: 'ALL'
    i have developed a custom query where i used,
    select dept_id, decode(mgr.mgr_id,'1','david','2','alan chris','3','peter') as mgr_name, ..... etc.
    in discoverer admin,
    I have created LOVs (item classes) for mgr_name.
    after that going to properties of mgr_name, i have selected mgr_id as indexed item.
    and in the report i have created parameter dept based on mgr_name and selected the option -- allow to select both indexes and values.
    and in the default value i mentioned 'ALL'.
    after that i changed the condition as
    ((mgr_name = :manager name) OR (mgr_name LIKE DECODE(:manager name,'ALL','%')))
    and in the header, i used &department name --- then it displays correctly.
    but the problem is ---
    the report works fine in plus. the problem is only when parameter value is 'ALL'
    when i run the report from discoverer viewer for the very first time (after logging in), the report works fine with correct data.
    but when i run the same report second time with parameter value 'ALL', it gives an error ---
    Invalid value "''" for parameter "department name"
    i dont understand, why it works for first time and doesn't afterwards. If i logout and login again, it works fine in viewer.
    am i doing anything wrong in conditions or declaring the parameters?
    I came to know that, the very first time, when we enter 'ALL' it is taking '%' but when we run for the second time, it is taking NULL. since NULL isn't there in mgr_id or mgr_name, it is throwing that error.
    How do i fix this error?
    Thanks

    Hi Puppethead,
    I have tried with your suggestions.
    the following condition -- did not work
    ( (mgr_name = :manager name)
    OR (mgr_name LIKE DECODE(:manager name, 'ALL', '%', NULL)))
    but for the other condition ---
    ( (mgr_name = :manager name)
    OR (mgr_name LIKE DECODE(nvl(:manager name, 'ALL'), 'ALL', '%', NULL)))
    is wrong because, :manager name cud be null, when it is null, it takes 'ALL' i.e. '%' which shud not be the case.
    if the user enters null, it has to display records with null only but with the above condition it takes '%'
    The main issue which i dont understand is, the report works fine for the first time. for the second time, the report takes null values . why is it taking null values for the second time.
    Thanks

  • Date picker for af:inputDate   is not picking up the correct input date

    view source:
    <af:inputDate value="#{bindings.DateField.attributeValue}" label="#{bindings.DateField.hints.label}"
    required="#{bindings.DateField.hints.mandatory}"
    valueChangeListener="#{pageFlowScope.CollectApplicantInformation.datesItemChanged}"
    columns="#{bindings.DateField.hints.displayWidth}" shortDesc="#{CustomTooltip[DateField]}"
    autoSubmit="true" helpTopicId="AppDt" id="DateField" simple="true">
    <f:validator binding="#{bindings.DateField.validator}"/>
    *<f:converter converterId="CustomConverter"/>*
    </af:inputDate>
    Here I am not using <af:ConvertDateTime> insted using customConverter, so what code changes do I need to make sure the date picker always picks the already existind date in the inputDate rather picking the current date?
    Here is my CustomConverter.java
    CustomConverter.java
    public class CustomConverter extends DateTimeConverter implements ClientConverter, Converter
    public Object getAsObject(FacesContext context, UIComponent component, String value)
    String dataType = (String) resolveExpression("#{bindings." + component.getId() + ".attributeDef.javaType.name}");
    if (dataType != null && !dataType.equalsIgnoreCase("oracle.jbo.domain.Date") && !dataType.equalsIgnoreCase("oracle.jbo.domain.Timestamp"))
    String test = null;
    if (context == null || component == null)
    throw new NullPointerException();
    if (value != null)
    // To solve DB transaction dirty issue, Check isEmpty and return null.
    if (value.isEmpty())
    return null;
    // the "value" is stored on the value property of the component.
    // The Unified EL allows us to check the type
    ValueExpression expression = component.getValueExpression("value");
    if (expression != null)
    Class<?> expectedType = expression.getType(context.getELContext());
    if (expectedType != null)
    System.out.println("expectedType Value:::" + expectedType.getName());
    // try to convert the value (Object) to the TYPE of the "value" property
    // of the underlying JSF component
    try
    return TypeFactory.getInstance(expectedType, value);
    catch (DataCreationException e)
    String errorMessage;
    if (expectedType.equals(CustomNumber.class))
    errorMessage = "You can enter only Numbers in this field";
    else
    errorMessage = e.getMessage();
    if (errorMessage != null)
    FacesContext ctx = FacesContext.getCurrentInstance();
    FacesMessage fm = new FacesMessage(FacesMessage.SEVERITY_ERROR, "Invalid Format" , errorMessage);
    ctx.addMessage(component.getClientId(), fm);
    catch (CustomDomainException e)
    int errorCode = e.getErrorMessageCode();
    String[] errorMessage = e.getErrorMessageParams();
    if (errorCode == 7 && errorMessage != null)
    String msg = "Invalid " + errorMessage[0];
    FacesContext ctx = FacesContext.getCurrentInstance();
    FacesMessage fm = new FacesMessage(FacesMessage.SEVERITY_ERROR, "Application Error: ", msg);
    ctx.addMessage(component.getClientId(), fm);
    catch (JboException e)
    Throwable cause = e.getCause();
    if (cause == null)
    cause = e;
    test = "not good format";
    throw e;
    return null;
    else
    return value != null? value: null;
    public String getAsString(FacesContext context, UIComponent component, Object value)
    return value != null? value.toString(): null;
    public String getClientLibrarySource(FacesContext context)
    return null;
    @Override
    public Collection<String> getClientImportNames()
    return Collections.emptySet();
    @Override
    public String getClientScript(FacesContext context, UIComponent component)
    String formatMask = (String) resolveExpression("#{bindings." + component.getId() + ".format}");
    if (formatMask != null)
    String dataType = (String) resolveExpression("#{bindings." + component.getId() + ".attributeDef.javaType.name}");
    if (dataType.equalsIgnoreCase("oracle.jbo.domain.Date") || dataType.equalsIgnoreCase("oracle.jbo.domain.Timestamp"))
    if (component == null)
    _LOG.severe("The component is null, but it is needed for the client id, so no script written");
    return null;
    // Add a JavaScript Object to store the datefield formats
    // on the client-side. We currently store the format string
    // for each and every field. It'd be more efficient to have
    // an array of formats, then store for each field the
    // index of the format, especially if we could delay outputting
    // these objects to when the <form> closes.
    String clientId = component.getClientId(context);
    if (clientId != null)
    // =-=AEW Only if Javascript...
    Map<String, Object> requestMap = context.getExternalContext().getRequestMap();
    // this fetch could be at the place where we append, but has been
    // moved ahead to optimize use of StringBuilder
    String jsPattern = getJSPattern(context, component);
    String loc = _getLocaleString(context);
    // FIX - figure out size!!!
    // 127 chars for javascript + length of jspattern + locale + 12 chars for
    // tranforming to name in the worst case.
    StringBuilder buff = new StringBuilder(139 + jsPattern.length() + loc.length());
    if (requestMap.get(_PATTERN_WRITTEN_KEY) == null)
    requestMap.put(_PATTERN_WRITTEN_KEY, Boolean.TRUE);
    // only create the _dfs object if it doesn't exist, so we don't
    // wipe out _dfs[xxx] values if we ppr the first date field on a
    // page with multiple date fields.
    buff.append("if(window['_dfs'] == undefined){var _dfs=new Object();}if(window['_dl'] == undefined){var _dl=new Object();}");
    buff.append("_dfs[\"");
    buff.append(clientId);
    buff.append("\"]=");
    buff.append(jsPattern);
    buff.append(";");
    buff.append("_dl[\"");
    buff.append(clientId);
    buff.append("\"]=");
    buff.append(loc);
    buff.append(";");
    return buff.toString();
    else
    LOG.severe("NULLCLINET_ID_NO_SCRIPT_RENDERED");
    return null;
    else
    return null;
    else
    return null;
    private String _getLocaleString(FacesContext context)
    Locale dateTimeConverterLocale = getLocale();
    if (dateTimeConverterLocale != null)
    Locale defaultLocale = RenderingContext.getCurrentInstance().getLocaleContext().getFormattingLocale();
    if (!(dateTimeConverterLocale.equals(defaultLocale)))
    String loc = dateTimeConverterLocale.toString();
    StringBuffer sb = new StringBuffer(2 + loc.length());
    sb.append("'");
    sb.append(loc);
    sb.append("'");
    return (sb.toString());
    return "null";
    @Override
    @Deprecated
    public String getClientConversion(FacesContext context, UIComponent component)
    String formatMask = (String) resolveExpression("#{bindings." + component.getId() + ".format}");
    if (formatMask != null)
    String dataType = (String) resolveExpression("#{bindings." + component.getId() + ".attributeDef.javaType.name}");
    if (dataType.equalsIgnoreCase("oracle.jbo.domain.Date") || dataType.equalsIgnoreCase("oracle.jbo.domain.Timestamp"))
    String jsPattern = getJSPattern(context, component);
    Map<String, String> messages = new HashMap<String, String>();
    if (jsPattern != null)
    Class<?> formatclass = formatMask.getClass();
    System.out.println("FormatClass::" + formatclass);
    System.out.println(" Format Mask : " + formatMask);
    // SimpleDateFormat sdfDestination = new SimpleDateFormat(formatMask);
    String pattern = formatMask; //getPattern();
    if (pattern == null)
    pattern = getSecondaryPattern();
    String key = getViolationMessageKey(pattern);
    Object[] params = new Object[]
    { "{0}", "{1}", "{2}" };
    Object msgPattern = getMessagePattern(context, key, params, component);
    //if hintFormat is null, no custom hint for date, time or both has been specified
    String hintFormat = _getHint();
    FacesMessage msg = null;
    String detailMessage = null;
    if (msgPattern != null)
    msg = MessageFactory.getMessage(context, key, msgPattern, params, component);
    detailMessage = XhtmlLafUtils.escapeJS(msg.getDetail());
    Locale loc = context.getViewRoot().getLocale();
    SimpleDateFormat formatter = new SimpleDateFormat(pattern, loc);
    java.lang.Object obj = resolveExpression("#{bindings." + component.getId() + ".attributeValue}");
    String databaseDate=null;
    if(obj!=null)
    databaseDate = obj.toString();
    DateFormat df = new SimpleDateFormat(pattern,loc);
    System.out.println("DateComponent input value :::::::::::::::::::::::::"+databaseDate);
    Date today;
    try {
    // System.out.println("Before Conversion::::::::::::"+df.parse(databaseDate).toString());
    if(databaseDate!=null)
    today = df.parse(databaseDate);
    else
    today = new Date();
    System.out.println("After Conversion Date :::::::::::::::::::::::::::::"+today.toString());
    //Date today = new Date();
    String dt = formatter.format(today);
    String exampleString = dt;
    String escapedType = XhtmlLafUtils.escapeJS(getType().toUpperCase());
    StringBuilder outBuffer = new StringBuilder();
    outBuffer.append("new TrDateTimeConverter(");
    outBuffer.append(jsPattern);
    // loc = getLocale();
    if (loc != null)
    outBuffer.append(",'");
    outBuffer.append(loc.toString());
    outBuffer.append("','");
    else
    outBuffer.append(",null,'");
    outBuffer.append(exampleString);
    outBuffer.append("','");
    outBuffer.append(escapedType);
    outBuffer.append("'");
    if (msgPattern != null || hintFormat != null)
    messages.put("detail", detailMessage);
    messages.put("hint", hintFormat);
    outBuffer.append(',');
    // try
    // JsonUtils.writeMap(outBuffer, messages, false);
    // catch (IOException e)
    // outBuffer.append("null");
    outBuffer.append(')'); // 2
    return outBuffer.toString();
    catch(ParseException e)
    System.out.println("Parse Exception :::::::::::::::::::::"+e);
    return null;
    else
    // no pattern-matchable date
    return null;
    else
    return null;
    else
    return null;
    protected String getJSPattern(FacesContext context, UIComponent component)
    String jsPattern = null;
    String datePattern = (String) resolveExpression("#{bindings." + component.getId() + ".format}");
    if (datePattern != null)
    String secondaryPattern = getSecondaryPattern();
    if (datePattern != _NO_JS_PATTERN)
    int length = datePattern.length() * 2 + 2;
    if (secondaryPattern != null)
    length = length + 3 + secondaryPattern.length() * 2;
    StringBuilder outBuffer = new StringBuilder(length);
    jsPattern = _getEscapedPattern(outBuffer, datePattern, secondaryPattern);
    else
    jsPattern = datePattern;
    return jsPattern;
    private static void _escapePattern(StringBuilder buffer, String pattern)
    buffer.append('\'');
    XhtmlUtils.escapeJS(buffer, pattern);
    buffer.append('\'');
    private static String _getEscapedPattern(StringBuilder buffer, String pattern, String secondaryPattern)
    if (secondaryPattern != null)
    buffer.append('[');
    _escapePattern(buffer, pattern);
    if (secondaryPattern != null)
    buffer.append(",'");
    XhtmlUtils.escapeJS(buffer, secondaryPattern);
    buffer.append("']");
    return buffer.toString();
    private String _getHint()
    String type = getType();
    if (type.equals("date"))
    return getHintDate();
    else if (type.equals("both"))
    return getHintBoth();
    else
    return getHintTime();
    public static Object resolveExpression(String pExpression)
    FacesContext facesContext = FacesContext.getCurrentInstance();
    Application app = facesContext.getApplication();
    ExpressionFactory elFactory = app.getExpressionFactory();
    ELContext elContext = facesContext.getELContext();
    ValueExpression valueExp = null;
    valueExp = elFactory.createValueExpression(elContext, pExpression, Object.class);
    return valueExp.getValue(elContext);
    private static final String _NO_JS_PATTERN = new String();
    private static final TrinidadLogger _LOG = TrinidadLogger.createTrinidadLogger(DateTimeConverter.class);
    // RenderingContext key indicating the _dateFormat object
    // has been created
    private static final String _PATTERN_WRITTEN_KEY = "org.apache.myfaces.trinidadinternal.convert.DateTimeConverter._PATTERN_WRITTEN";
    *Problem is if any input date componet is displaying other than current date then the date picker is always picking the current date rather existing date*
    Please suggest me where to make changes?
    Edited by: 858782 on Oct 3, 2011 7:43 AM
    Edited by: 858782 on Oct 3, 2011 11:44 PM

    I need custom date foramts to be applied for different inputDates which are not defined in <af:convertDateTime>
    Thanks
    Edited by: 858782 on Oct 13, 2011 4:59 PM

Maybe you are looking for

  • I just downloaded IOS5 and I no longer have enough memory for my music?

    I've just downloaded the IOS5 and now not eenough memory for my music? What do i do?

  • How to add a check box to a table?

    I'm new to the Swing portion of Java. Most of the stuff we write is for backend processing and does not require any GUI's. However, I need to write a screen that needs to have a table and that table needs to have a checkbox. How do I add a checkbox f

  • Problem with filling up vector

    Hello, i'm having a problem with the following code; when i try to fill up the vector, it overwrites the previous values with the new, so the when i add the second item, the first item becomes the second too. So when i return the vector, all values a

  • Too many Parameters in the Selection Screen

    Hi all,       I have a requirement to include too many parameters in the selection screen. Let me explain the scenario.   1.  There is an option for Output File name previously. But now i need to provide fields for 5 to 8 file names in the same  Sele

  • ADI 64 bit version for Windows 7 64 bit

    Is there a 64bit version of ADI? If so, how can I obtain it?