BC4J Entity/View date attribute format

JDEV version 9.0.2.829
I made a simple business component.
I tried to set the format of a date attribute in the Entity object and also in the View object.
I double clicked the attribute in structure window, changed Format Type in Control Hints tab to
"Simple Date" and Format to "dd-MM-yyyy" but running the tester or a JClient application based on that component nothing changes. The format remains "yyyy-MM-dd".
Does anyone know what is going wrong?
Minas

Do you select the format "dd-mm-yyyy" or do you just typ it in into the field format type of the control hints?
If you just type in the value you have to do some changes so that "dd-mm-yyyy" comes also in the combobox so you can select it!!
You have to change a thing in the formatinfo.xml document
In this document you see the next tag:
<DOMAIN CLASS="oracle.jbo.domain.Date">
<FORMATTER name="Simple Date" class="oracle.jbo.format.DefaultDateFormatter">
<FORMAT text="yyyy-MM-dd" />
<FORMAT text="yyyy-MM-dd G 'at' hh:mm:ss" />
<FORMAT text="EEE, MMM d, ''yy" />
</FORMATTER>
</DOMAIN>
put in the next sentence
<FORMAT text="dd-MM-yyyy" />
and then this new format type comes in the combobox on the control hints. If you now select it, it normally works!
It works with me after I did the changes into formatinfo.xml so I hope it also works with you!!

Similar Messages

  • For date attribute search, the format must be mm/dd/yyyy

    Hello.
    The manual "Oracle® Secure Enterprise Search Administrator's Guide 10g Release 1" says that when searching on date attributes, the format must be mm/dd/yyyy.
    For our users it is more natural to use the format dd/mm/yyyy so in order to reduce the risk of users not finding what they are looking for, I would like to know if there is a way to use the dd/mm/yyyy format instead.
    Regards,
    Brian Nielsen

    Being based in Europe as well, I understand this problem.
    Unfortunately I don't think there's a way around it.
    I have previously requested that this problem should be fixed, but I've now formally raised a bug for this issue - bug number 10163778.
    I can't promise a quick fix, but hopefully we will get one in a future release.

  • View object attribute UI hint Date AM PM

    I have a Transient VO which has a attribute of type date which has programatically populated value.
    I need to display time in format dd-MMM-yyyy hh:mm AM / PM.
    By using VO Attribute UI Hinst, Format type = Simple Date and Format: dd-MMM-yyyy hh:mm, i could achieve this partly.
    but i need to display AM / PM as well.
    how can i achieve that in jdev 11 1 1 5 ?

    Hi,
    Have you tried this [ dd-MMM-yyyy hh:mm a ]format ?
    Thanks
    Prateek

  • Possible?Multi-Entity View Object with one Entity Object that is Read-only.

    I know this sounds crazy, but I would like to create a multi-entity view object, where one entity object is based on a table in my application (we'll call it "Users", which basically stores the primary key for the person from the institutional people database), and the other table is a entity object based on a view of the institutional people database table (read only access), which we can call "People".
    I know that since no updates will be done to the People table, it really should be a read-only View Object, but I would lose the ability to sort on attributes like Last Name, Hire date, etc, since those would be transient attributes in my ViewObject for the Users. By having People as an entity object, I can then create a multi entity view object and have the ability to join Users to People and be able to sort on the above mentioned fields (like Last Name).
    The problem is that when I use the JDev (I'm currently using 10.1.2.1) AppModule BC4J tester, when I click on the multi-entity view object that I added to the AppModule it gives me an error:
    oracle.jbo.RowCreateException) JBO-25017: Error while creating a new entity row for People.
    ----- LEVEL 1: DETAIL 0 -----
    (java.lang.InstantiationException) null
    I have tried to change all the attributes to updateable in my entity object, but no create method, and I have tried to make them all read-only, but no effect, I get the same error (probably because the People view is read-only in my schema).
    Is there a way to change the entity object so that it will not try to create a new row when it runs the Tester? So that the multi entity view object behaves more like a view link, but gives me the added bonus of being able to sort on the Last Name column from the People table?
    Thanks for any help on this subject...at worst, I will have to use the view link method to get the job accomplished, but it would be "cooler" if this would work!
    Jeremy.

    Steve, thanks for your quick response to my question.
    To answer your questions, I was trying to create the Multi-entity View Object to give me more flexibility when working with my User table, and my People view. The flexibility I desired was that I would be able to sort my Users based on attributes in the People view. This is not possible when the there is only one Entity in my VO, and the People view data are all transient attributes, because they are not in the SQL statement.
    Ultimately, after working with one of my colleagues, we decided to use the approach that you mentioned by creating a read-only VO with the SQL query we want to display to the user (contains both User and People data fields), and then use a different ViewObject when performing other actions on the User Table (such as inserts/updates/deletes). By using the setWhereClauseParam() method in the handleLifeCycle() for the JSP page, we should be able to navigate between the different View Objects, so that the user does not see any difference.
    Thanks! Oh, and by the way, I have read your article you included before, and I have used it many times before to tune my View Objects! Thanks!

  • How to create LOV not based on a View Object attribute?

    Hi,
    I am creating a handed-made search form and I want to create an af:inputListOfValues.
    I have :
    - a read-only-view-object to get the LOV values from BD.
    - af:inputListOfValues tag (droped from Component Palette).
    How can I create the listOfValuesModel in Bindings layer? (the inputListOfValues is not based on a View Object attribute).

    Sorry, I think I am not very clear in my posts.
    My requirement is to create a LOV but I have no ViewObject. I just want an input (not based on a view object attribute), alone, but with a LOV (where lov's datas are get from a view object).
    In a "normal" LOV I would have something like this :
    in jsff :
    <af:inputListOfValues id="departmentIdId"
                                popupTitle="Search and Select: #{bindings.DepartmentId.hints.label}"
                                value="#{bindings.DepartmentId.inputValue}"
                                label="#{bindings.DepartmentId.hints.label}"
                                model="#{bindings.DepartmentId.listOfValuesModel}"
                                required="#{bindings.DepartmentId.hints.mandatory}"
                                columns="#{bindings.DepartmentId.hints.displayWidth}"
                                shortDesc="#{bindings.DepartmentId.hints.tooltip}">
            <f:validator binding="#{bindings.DepartmentId.validator}"/>
            <af:convertNumber groupingUsed="false"
                              pattern="#{bindings.DepartmentId.format}"/>
          </af:inputListOfValues>in pageDef :
    <listOfValues StaticList="false" IterBinding="EmployeesView1Iterator"
                      Uses="LOV_DepartmentId" id="DepartmentId"/>in model layer : a view object (EmployeeView) with view accessor and LOV based attribute, and a read only view object (DepartmentRVO) to get datas for the LOV.
    But in my case I have no ViewObject, so I don't know how to create the listOfValuesModel in fragment pageDef.
    I have :
    <af:inputListOfValues label="Label 1"
                                    popupTitle="Search and Result Dialog"
                                    id="ilov1" model="here I want to point to a listOfValuesModel but I don't know how to create it"/>in pageDef : the listOfValuesModel but I don't know how to create it.
    in model layer : just a read only view object (like DepartmentRVO), to get the datas for the LOV.
    Edited by: h0s on 29 févr. 2012 00:31

  • Date picker format

    Hi,
    I have a Date Picker in my view and its default date format is mm/dd/yyyy. I want to change its format to dd/mm/yyyy. Any way to change its format?
    Rewards waiting for the right ans.
    vinod.

    Hi,
    Make use of the following code
    IWDAttributeInfo attributeInfo = wdContext.getNodeInfo().getAttribute("Your Date attribute");
           attributeInfo.getDataAttribute().getScalarType().format("dd/MM/yyyy");
    Regards
    Ayyapparaj

  • Master data attributes with direct update...its very urgent

    Hi all,
    Could anyone tell me how to laod the master data attributes with direct update in the infopackge..
    provide steps to create master data attributes and how to load..
    Thanks,
    Manjula

    Hi Manjula,
    Flexible Uploading
    Transaction code RSA1—LEAD YOU TO MODELLING
    1. Creation of Info Objects
    • In left panel select info object
    • Create info area
    • Create info object catalog ( characteristics & Key figures ) by right clicking the created info area
    • Create new characteristics and key figures under respective catalogs according to the project requirement
    • Create required info objects and Activate.
    2. Creation of Data Source
    • In the left panel select data sources
    • Create application component(AC)
    • Right click AC and create datasource
    • Specify data source name, source system, and data type ( Transaction data )
    • In general tab give short, medium, and long description.
    • In extraction tab specify file path, header rows to be ignored, data format(csv) and data separator( , )
    • In proposal tab load example data and verify it.
    • In field tab you can you can give the technical name of info objects in the template and you not have to map during the transformation the server will automatically map accordingly. If you are not mapping in this field tab you have to manually map during the transformation in Info providers.
    • Activate data source and read preview data under preview tab.
    • Create info package by right clicking data source and in schedule tab click star to load data to PSA.( make sure to close the flat file during loading )
    3. Creation of data targets
    • In left panel select info provider
    • Select created info area and right click to create ODS( Data store object ) or Cube.
    • Specify name fro the ODS or cube and click create
    • From the template window select the required characteristics and key figures and drag and drop it into the DATA FIELD and KEY FIELDS
    • Click Activate.
    • Right click on ODS or Cube and select create transformation.
    • In source of transformation , select object type( data source) and specify its name and source system Note: Source system will be a temporary folder or package into which data is getting stored
    • Activate created transformation
    • Create Data transfer process (DTP) by right clicking the master data attributes
    • In extraction tab specify extraction mode ( full)
    • In update tab specify error handling ( request green)
    • Activate DTP and in execute tab click execute button to load data in data targets.
    4. Monitor
    Right Click data targets and select manage and in contents tab select contents to view the loaded data. There are two tables in ODS new table and active table to load data from new table to active table you have to activate after selecting the loaded data . Alternatively monitor icon can be used
    honor with points if this helps,
    Sudhakar

  • View data in 10.1.3.4.1 is not working

    Hi
    I imported SH Schema from the oracle database to the repository.But i can not view the data in admintool in 10.1.3.4.1
    the steps are the following
    1.import sh schema from the database to the admin tool
    2.click on any table in physical layer and click view data
    i got a error"table or view does not exist ORA-00948 Issue"
    but table and views are exist in the database.pls help

    user13351713 wrote:
    tnsnames.ora file entries are correct, i can connect to database with sql*plus
    is any attribute in NQSCONFIG.ini may prevent view datanot that i'm aware of.
    regards
    John
    http://www.obiee101.blogspot.com/

  • How to reference the Parent view Object attribute in Child View object

    Hi , I have the requirememt to generate Tree like struture to display Salary from joining date to retirement date in yearly form.I have writtent two Pl/SQL function to return parent node and child nodes(based on selected year).
    1.First function --> Input paramter (employee id, retirement date , joining date) --> return parent node row with start_date and end_date
    2. 2nd function --> input paarmter(employee id, startDate, end_date) --> return child node based on selected parent node i.e. start date and end date
    I have created two ADF view object based on two function return
    Parent Node --> select * from Table( EUPS.FN_GET_CONTR_SAL_BY_YR(employeeId,retirement Date, dateOf joining)) ;
    Child Node --> select * FROM TABLE( EUPS.FN_GET_CONTR_SAL_FOR_YEAR( employeId,startDate, endDate) ) based on selected parent node.
    I am giving binding variable as input for 2nd function (child node) . I don't know how to reference the binding variable value in child view from parent view.
    Like I have to refernce employeId,startDate, endDate values in 2nd function from parent view object. some thing like parentNode.selectedStart_date parentNode.employeeId.
    I know we can achive this writing the code in backing bean.But i want to know how can we refernce parent view object attribute values in child view object using Groovy or otherway?
    I will appreciate your help.
    Thanks

    I have two view com.ContractualSalaryByYearlyView for Parent Node and com.ContractualSalaryByYearlyView for child Node.
    I have created view link(ContractualSalYearlyByYearViewLink) betweem two view by giving common field empId, stDate , endDate.(below is the view link xml file).
    I tried give the binding attribute values using parent object reference like below in com.ContractualSalaryByYearlyView xml file but getting error
    Variable ContractualSalaryByYearlyView not recognized.I think i am using groovy expression.
    Thanks for quick response.
    com.ContractualSalaryByYearlyView xml
    <ViewObject
    <DesignTime>
    <Attr Name="_isExpertMode" Value="true"/>
    </DesignTime>
    <Variable
    Name="empId"
    Kind="where"
    Type="java.lang.Integer">
    <TransientExpression><![CDATA[adf.object.ContractualSalaryByYearlyView.EmpId]]></TransientExpression>
    </Variable>
    ContractualSalYearlyByYearViewLink.xml file
    <ViewLinkDefEnd
    Name="ContractualSalaryByYearlyView"
    Cardinality="1"
    Owner="com.ContractualSalaryByYearlyView"
    Source="true">
    <DesignTime>
    <Attr Name="_finderName" Value="ContractualSalaryByYearlyView"/>
    <Attr Name="_isUpdateable" Value="true"/>
    </DesignTime>
    <AttrArray Name="Attributes">
    <Item
    Value="com.ContractualSalaryByYearlyView.EmpId"/>
    <Item
    Value="com.ContractualSalaryByYearlyView.StDate"/>
    <Item
    Value="com.ContractualSalaryByYearlyView.EndDate"/>
    </AttrArray>
    </ViewLinkDefEnd>
    <ViewLinkDefEnd
    Name="ContractualSalaryForYearView"
    Cardinality="-1"
    Owner="com.ContractualSalaryForYearView">
    <DesignTime>
    <Attr Name="_finderName" Value="ContractualSalaryForYearView"/>
    <Attr Name="_isUpdateable" Value="true"/>
    </DesignTime>
    <AttrArray Name="Attributes">
    <Item
    Value="com.ContractualSalaryForYearView.EmpId"/>
    <Item
    Value="com.ContractualSalaryForYearView.StDate"/>
    <Item
    Value="com.ContractualSalaryForYearView.EndDate"/>
    </AttrArray>
    </ViewLinkDefEnd>

  • Error while creating Data Source for master data attributes

    Hi BI Experts,
    Well its been some time for me that I have been part of Extraction in BI.I primarily handled reporting in my last assignments.
    I was trying extraction with flat files in SAP BI 7(new to sap bi 7 but very much familiar with BW3.5) but failed in the activity during master data attributes and text upload in infoobject (say IOSP_Mat).
    Here is the procedure that I did after creation of characteristic IOSP_Mat.I created a source system for flat file followed by data source for Master data attributes, i selected all the parameters correctly.i.e. csv file format, data seperator as   ,
    and other settings, now when i am trying to look at the proposed data in the next tab using Load example data.its not showing the desired result.The columns that I have maintained in Flat File is  MAT_NUMBER and MAT_NAME (with say 100 data in the file)
    same is the result when I am trying to load the text data too columns maintained are
    (LANGUAGE MAT_NUMBER Short Description)(same 100 data).
    now i used to rsa1old transaction  to upload the file using 3.5 version.i created info source for master data/text/hierarchies for  IOSP_Mat
    now when trying to upload it using info package for master and text data,I observe its(the data) not maintained in the characteristic IOSP_Mat.
    When I monitored ,I figured the data has not been even uploaded to the PSA level.
    Can you BI experts tell me the answer for this.
    Thanks,
    Srijith

    apologies to all of you for late response,
    was busy with some other activities.
    I don't remember the exact message,but I remember it was not loaded to even the PSA level.I will try it again and post the exact message.
    Thanks again for your quick response.
    Once again sorry to all of you for my late response
    Thanks,
    Sri

  • Can´t create a date attribute for basic asset

    Hi
    I created a basic asset where I want to have a date attribute to pick up a date for calendar.
    My question is: How can I create a date attribute for a basic asset? For what I understand I have to create an element attribute in my descriptor file like this
    <PROPERTY NAME="imagedate" DESCRIPTION="Image date">
      <STORAGE TYPE="TIMESTAMP" LENGTH="8"/>
      <INPUTFORM TYPE="ELEMENT" WIDTH="24" MAXLENGTH="48" REQUIRED="NO" DEFAULT="" INSTRUCTION="Format: yyyy-mm-dd hh:mm"/>
      <SEARCHFORM DESCRIPTION="Image date" TYPE="ELEMENT" WIDTH="48" MAXLENGTH="128"/>
    </PROPERTY>
    Then, when I create a new instance of this asset, this attribute appears with this error:
    Date: Unable to find element OpenMarket/Xcelerate/AssetType/Oportunidade/ContentForm/imagedate
    But the element (imagedate.xml) is there!!
    I request help.

    It seems that the table does not have the entries, maybe b/c we are on R3 4.7.  Could you tell me what the entries are suppossed to be to allow the Asset and Cost Center lookup?  The search does work for WBS element though and I don't see anything specific to WBS element in that table.  In any case if you know the entries that would be great, also this table is not modifiable via SM30, here are the entries that I have in that table.
    AUF_NETNR     PLM_HELPVALUES_AUTHCHECK
    BU_PARTNER     BUPA_BAPI_F4_AUTHORITY
    DAENR     PLM_HELPVALUES_AUTHCHECK
    DOKNR     PLM_HELPVALUES_AUTHCHECK
    EQUNR     PLM_HELPVALUES_AUTHCHECK
    KUNNR     PARTNER_BAPI_F4_AUTHORITY
    LIFNR     PARTNER_BAPI_F4_AUTHORITY
    MATNR     PLM_HELPVALUES_AUTHCHECK
    NW_AUFNR     PLM_HELPVALUES_AUTHCHECK
    PARNR     PARTNER_BAPI_F4_AUTHORITY
    PS_POSID     PLM_HELPVALUES_AUTHCHECK
    PS_PSPID     PLM_HELPVALUES_AUTHCHECK
    QMNUM     PLM_HELPVALUES_AUTHCHECK
    S_AGNCYNUM     INT_FLBOOK_F4_AUTHORITY
    S_AIRPORT     INT_FLBOOK_F4_AUTHORITY
    S_BOOK_ID     INT_FLBOOK_F4_AUTHORITY
    S_CARR_ID     INT_FLBOOK_F4_AUTHORITY
    S_CITY     INT_FLBOOK_F4_AUTHORITY
    S_CONN_ID     INT_FLBOOK_F4_AUTHORITY
    S_COUNTNUM     INT_FLBOOK_F4_AUTHORITY
    S_COUNTR     INT_FLBOOK_F4_AUTHORITY
    S_CUSTOMER     INT_FLBOOK_F4_AUTHORITY
    S_FLCONN     INT_FLBOOK_F4_AUTHORITY
    S_FLCONN1     INT_FLBOOK_F4_AUTHORITY
    S_FLCONN2     INT_FLBOOK_F4_AUTHORITY
    S_PLANETYE     INT_FLBOOK_F4_AUTHORITY
    S_TRNUM     INT_FLBOOK_F4_AUTHORITY
    TPLNR     PLM_HELPVALUES_AUTHCHECK
    USCOMP     SUSR_BAPI_F4_AUTHORITY
    XUBNAME     SUSR_BAPI_F4_AUTHORITY

  • Specifying date time format in Finder

    How can I specify the date-time format in Finder for the "date-modified" and "date-created" columns in list view?
    About three years ago, I got a command line instruction to set these formats and I kept it at mm/dd/yy
    Then a couple days ago, I changed the date format in iStat menus and the date-time formats started acting weird. I want the dates to be like "07/08/05" (mm/dd/yy) and then the formats started changing to "November 07, 2008" (month/dd/yyyy). This change seemed to take effect any time I open the view options for a folder. Now I discovered that the date format change depending on the column width according to the format specified in system preferences, international, formats.
    Narrow column, short date format; a little wider to long format, with ellipses if the column is not wide enough; then full format.
    Does anyone know the command line to set the format to keep it to the one I want?

    this doesn't seem to be it. however I now like the way Finder does display dates -- format gets more compact as the width of the column decreases; although there still is some excess space left on the left -- perhaps for AM & PM which I don't use; I use a 24 hour time format instead.
    Happy New Year

  • How to update a Date attribute type?

    Hello!
    I have several Date attributes in some categories that I need to update with the Oracle Content API.
    I saw that OCDB returns a GregorianCalendar object to retrieve the date value, but I can't update it with the same object, I used this java code:
    day = token.nextToken();
    month = token.nextToken();
    year = token.nextToken();
    int iDay = Integer.parseInt(day);
    int iMonth = Integer.parseInt(month);
    int iYear = Integer.parseInt(year);
    GregorianCalendar cal = new GregorianCalendar(iYear, iMonth, iDay);               
    categoryDef2[temporal2] = ClientUtils.newNamedValue(oculto, cal);
    The date is in format dd/mm/yyyy so I parse it with StringTonekizer and passed to GregorianCalendar constructor, but I always receive AggregateError at updateDocument moment...
    Anyone can help me? Thank you

    Hi,
    Convert the Calendar to a Date object and return this to Content DB.
    e.g. Item doc = ...
    Object value = CommonUtils.getAttribute(doc, Attributes.CREATE_DATE);
    Date d = null;
    if (value instanceof java.util.Calendar)
    Calendar c = (Calendar) value;
    d = c.getTime();
    else if (value instance of java.util.Date)
    d = (Date) value;
    cheers
    Matt

  • Getting list of view`s attributes names

    Hi experts,
    Is it possible to get list of attributes names on a view? After calling
    create_view(...)
    in controller I would like to iterate through all view`s attributes and fetch data from model for all attributes with the same name on view and model. So, I need a way how to get information about all attributes on a view.
    Best regards, Maksim Rashchynski.

    Hi Maksim Rashchynski ,
    You should use model data binding to cater your requirement.    What you have to do is define all your attributes in model and just define a reference in page attributes of your view using
    type ref to your_model
    now in your View code like this
    <htmlb:label for    = "Myfield"
                     design = "EMPHASIZED" />
        <htmlb:inputField id      = "fldid"
                          value   = "//model/field1"
                           disabled ="False"></htmlb:inputField>
    what will happen after this is you can easily get your data to your view directly from model and viceversa.
    Hope it helps else revert back.
    Regards
    Amit Kumar

  • ADF BC declarative Compare  validator on date attributes

    Hello
    I trying to abandone validation on the UI beans by resorting to the built-in ADF declarative validation available at the Entity object level.
    I test the Compare validator between two numeric attributes and it worked well, also between two String attributes, but when i tried to compare two dates attributes the results of the validation was not correct.
    any reason as to why Entity based validation based on dates values does not give appropriate results
    rgds
    Ammar Sajdi

    We are using entity based declerative validations for Dates with no problem.
    Remember that Date type has also a time portion in database.
    may be there is your error.

Maybe you are looking for