Using different date format in Data tags

What steps do I have to take to use dd/mm/yyyy as a format instead of yyyy-mm-dd?
This goes for all data tags, data retrieval and manipulation.

Steve Meunch posted a HOWTO: on this very topic. The address is http://technet.oracle.com:89/ubb/Forum2/HTML/006581.html.
This should get you on your way.
Remember that you can search OTN for specific topics including HOWTO topics. These topics are posted by developers, product managers, and others.
I hope this helps,
Gary

Similar Messages

  • Creating rows Using BC4J Data Tags

    Hi!
    I want to create rows using BC4J data tags.
    I have 2 jsp pages: one containig forms and one to insert data.
    Is it possible to insert new rows into 2 or more tables?
    How can I differ the attributes to one table and to another?
    How can I do this?
    Thanks!

    The path is:
    Select "File/New" in the menu.
    Select "BC4J JSP" in the gallery.
    Select "Browse & Edit Form" wizard.
    This is in JDeveloper 9.0.2.
    Charles.

  • Can we combine cube at multiprovider if we use different dates

    i have added document created date (AUDAT) 0doc_date in sales order cube.
    If I use
    sales orders cube-   VBAK-AUDAT              document created date (0DOC_DATE),
    Delivery cube-          LIPS- WADAT_IST      GI date (0ACT_GI_DTE) and
    Billing cube -            VBRK- FKDAT             billing date (0BILL_DATE).
    I want to combine all the cubes at multi provder level.
    I want to see net price (from billing) for the sales orders (from Sales orders). If I use different dates fro thse cubes.
    Will I get correct results????

    Avneet,
    the join would be on the same infoobjects and not on the data field..
    You would be able to see related data only if the info objects selected all are present in the required infoproviders..
    One more way to check the same is to execute the query in RSRT and see the SQL query being generated..
    Arun
    Assign points if useful

  • HOW TO: Create a JSP Edit Record Form Using BC4J Data Tags

    This is a JDeveloper Tech Note found on the OTN Documentation page. This note describes the use of the BC4J data tags to create row edit/submit JSP pages. Here is the link:
    http://technet.oracle.com/docs/products/jdev/technotes/datatag_input/Edit_Form.html

    Are you using Java 1.4.* ?
    Use JFormattedTextField.
    import javax.swing.*;
    import java.text.*;
    import java.awt.*;
    import java.util.*;
    public class DateExample
        public static void main( String [] args )
          // Here's what you're interested in...
          DateFormat dateFormat = new SimpleDateFormat( "MM/dd/yyyy" );
          JFormattedTextField field = new JFormattedTextField( dateFormat );
          field.setColumns( 11 );
          field.setText( dateFormat.format(new Date()) );
          JPanel panel = new JPanel();
          panel.add( field );
          panel.add( new JButton( "Hey" ) );
          JFrame f = new JFrame();
          f.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
          f.getContentPane().add( panel );
          f.pack();
          f.setVisible( true );
    }It also works with other types of Format objects (ex. Currency, Decimal, etc.)

  • HOW TO: Create a JSP Insert Record Form Using BC4J Data Tags

    This is a JDeveloper Tech Note found on the OTN Documentation page. This note describes the use of the BC4J data tags to create insert/submit JSP pages. Here is a link:
    http://technet.oracle.com/docs/products/jdev/technotes/datatag_input/Insert_Form.html

    You can loop throgh query records whit an implicit cursor (which automatically manages the open cursor, fetch and next record):
      for rec in (select intime,outtime,barcode,attend_date from dail_att; )
      loop
           t_in :=rec.intime;
           t_out :=rec.outtime;
           t_code :=rec.barcode;
           t_date := attend_date;
             PUT YOUR CODE HERE ... (if ..then... elsif... logic)
             you can avoid setting variables 'cause you can directly use the implicit cursor variables: rec.intime etc.
      end loop;
    END;Anyway, I suggest you to check the where condition of your block ... because if not all data are retrieved there should be a problem in your query ... so even the cursor (if based on very same query) will return less data than expected.
    Luca

  • Error Displaying Mandatory community List using Adaptive data Tags

    Hi I want to list down all the mandatory community list but when i am using <pt:ptdata.mandatorycommunitiesdata pt:id="commmenu" /> tags it returns me no value.
    On the conterary the <pt:ptdata.mycommunitiesdata pt:id="commmenu" /> return me hte list of all the communities to which user has joined and once which are mandatory for the user.
    Is this the expected behavior if yes then how can we get the list of mandatory communties. The first preference will offcoure be using Tags if not at al possible then we can go about using API.
    I am unrgent ly looking for some solution. Any help in this regards is appriciated!!!
    -: Amresh

    This would only give the communities which are mandatory and exist as tabs.
    hmm..Not sure why that didn't work.
    I beleive the earlier tag doesn't exist anymore.This should help you though......It worked for me (6.5)
    <span xmlns:pt='http://www.plumtree.com/xmlschemas/ptui/'>
    <pt:ptdata.mandtabcommsdata pt:id="menutabs" />
    <table cellpadding="0" cellspacing="0" width="200" border="0">
    <tr>
    <td height="2" colspan="3">
    </td>
    </tr>
    <tr class="menuHeaderBg">
    <td align="left" valign="middle" height="20" colspan="3" class="navSidebarSectionHeader">
       My Communities
    </td>
    </tr>
    <!-- links to communities are entered here -->
    <pt:logic.foreach pt:data="menutabs" pt:var="temp">
    <tr class="navMidtabBg">
    <td height="16" colspan="2" class="navMidtabBtn">
    <table cellpadding="0" cellspacing="0" width="100%">
    <tr>
    <td height="20" width="100%" nowrap="nowrap" colspan="1" class="objectBtn">
    <span class="actionbarBanText">
    <pt:core.html pt:tag="img" src="$temp.img" alt="" border="0" align="absmiddle" height="20" width="20" />
    <pt:core.html pt:tag="a" href="$temp.url">
    <pt:logic.value pt:value="$temp.title" />
    </pt:core.html>
    </span>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </pt:logic.foreach>
    </table>
    </span>
    Edited by: ALUIDeveloper on Mar 19, 2009 12:40 PM

  • Using different data source and connection name

    Hi,
    We have a requirement where the data source for our application is already configured on the server by name like MyDBDataSource. But the database connection name in our application is like My_DB. So application module is using data source name like My_DBDS. If i change data source name in application module configuration manually to be MyDBDataSource, then it fails at runtime. This has been identified as bug as mentioned in this post
    http://andrejusb.blogspot.in/2009/01/practical-adf-security-deployment-on.html
    Is this still valid? I am using 11.1.1.6 version. Also want to know if there is any workaround for this ? If i change the name in web.xml at deployment time using script, will it work ?
    Thanks

    Hi Ami,
    Is your issue get solved ?
    I would like to mention few things about the database connection in application & data source in Weblogic.
    1. When you create a database connection in Application (for example say connection name as hr) then in the Application Module Database Configurations in the bc4j.xcfg File Custom JDBCDataSource will be set as <Custom JDBCDataSource="java:comp/env/jdbc/hrDS"/> for both ApplnModule shared & Local. So when you create data source in weblogic it is better to create the JNDI Name like jdbc/hrDS ( ie between the '/' and 'DS' you have to specify the name of database connection you created in the application ).What ever the Data source name is no matter.
    2.If you change the JNDI name of data source later like jdbc/hrconnectionDS then it is better to delete the old hr connection from application and recreate a connection as hrconnection. After that you have to edit bc4j.xcfg file in the Application Module--> Configurations and set Custom JDBCDataSource as below for both local & shared config.
    <Custom JDBCDataSource="java:comp/env/jdbc/hrconnectionDS"/>
    I hope this will help you.
    Gijith.

  • Create new view within Report; use different data

    I am using Oracle OBIEE 11.1.x.x.x
    I have 2 existing views saved as separate reports. One is a Pivot; the other is a Table. Their data sources are unrelated.
    I want to be able to combine both views into one compound view within one report, so I can export both to the same Excel file.
    Please let me know how to implement. Please excuse my word selection; I am very new to this product.

    I am running 11.1.1.5.0
    I tried adding the reports to my dashboard, but I am only able to export each report within the dashboard separately. Is there a way to get both reports to export to the same Excel spreadsheet?
    Edit: please see this link for my available dashboard options. Am I missing an Export option that should be visible for the version I am using? Am I not seeing it because I don't have full permissions?
    Message was edited by: 455c5b7b-2f9d-490d-9698-2a5dc7e4079e

  • How to use different video formats in the one timeline?

    Hi everyone,
    So I am in the middle of stringing together a rough cut for a surf flick/documentary shot in some remote Indonesian islands…
    Things so far are going well, but I am slightly confused regarding the best way to tackle a slight issue (hopefully slight!) of video format compatibility.
    The main shooting for the film was done with .mov video format and this has been imported/captured into final cut pro 7 using the correct settings, which has now formed the basis for my rough cut.
    However, I did a lot of filming with some other cameras (underwater, POV etc) and so also have some crucial footage in different formats that to my knowledge will not be compatible with the timeline that I have already created in FCP.
    The files are as following:
    AVI
    MOD
    MP4
    I am assuming the best way to go about things is convert all these different files into a compatible form that I can then drop straight into my existing timeline.
    Unfortunately, I am just beginning to learn the more techy aspects of editing and I don’t have the first idea of how to go about doing this…?
    Any helpful feedback would be greatly appreciated…
    Thanks in advance,
    m

    Although there are kinds of standard workflows for best quality in final product, it helps to know a bit more about your setup... what is your primary format? Without knowing that, the best way forward is to convert all of your footage to Apple ProRes. Especially the MP4 stuff. There are different ways about doing that, but I personally recommend Compressor. This can take some time depending on the amount and lengths of your shots, but it is well worth the process.
    Make sure you choose 48k / 16bit AIF for all of your shots that have audio. If some of your footage is 1080p and some is 720p, I personally leave that alone because when you have this type of a difference in footage, I like to set my sequence to 720p giving me the option to move or pan the 1080p clips inside of the 720p sequence. Final Cut Pro is very good at handling that difference.
    Hope the edit goes well; sounds like a nice project!

  • Different Date Formats in the same "From"

    Hello
    We used different date formats depending on the users language.
    In a report this is simple to implement ... read the date field twice (in different formats dd/mm/yyyy and mm/dd/yyyy) and display only one based on the language.
    I want to be able to do the same in a "form" which updates a date. In this case the about is not allowed.
    Has anyone have solution for this using "APEX" forms or do a need to write a process to achieve this?
    Thanks
    Pete

    Pete,
    You don't specify what version of Application Express you're using, so I'll assume APEX 3.1 or later.
    Are you setting the date format yourself, based upon the user's language?
    1) You could have the application's language derived from Browser, and then APEX would automatically set the NLS_LANGUAGE and NLS_TERRITORY settings accordingly. Then, I would simply use 'DS' as the Application Date Format. For Date Pickers on a form, I would use item type 'Date Picker (use Application Date Format)'.
    2) If you're already determining the date format yourself and you don't want APEX to do it for you, ensure that you are setting this value in an application item (e.g., PETE_DATE_FORMAT). Then, you could still use Application Date Format with a value of &PETE_DATE_FORMAT. (inclusive of the trailing period).
    When you use Application Date Format, the conversion should happen automatically for you so that you don't have to code this yourself on the Form.
    I hope this helps.
    Joel

  • JDeveloper Team: How Do I minimize the number of Oracle Sessions using Data Tags?

    I am trying to create a stateful application thru my JSP pages. Everytime there is a reference to the application module using the data tag, it looks like it creates a new Oracle Session. But thats not what I want to do.
    I have a module in which my first JSP page allows viewing of the data and in subsequent pages I allow insert, update, delete, commit etc.
    My Questions:
    1) The problem that I am encountering is that every new page that I go to creates a new Oracle session even though I specify the "Stateful" release mode.
    How do I avoid this?
    It looks like , if one browser user can potentially create 10-20 oracle sessions thru one module, imagine what the impact will be when we have hundreds of users.
    2) The sample JSP pages I saw has the username and password hard coded in it every time. Why? For a stateful application can I not specify the username and password just once and have the other JSP pages use the same userid and password.
    What are the pros and cons? I thought if I don't use the username and password in all the JSP pages then it probably will not create additional Oracle sessions but that is not true!!
    3) If it creates several Oracle sessions , will it not cause locking problems? If so, How do I minimize locking problems in a stateful application.
    JDeveloper Team Please advise!!
    AM I missing something? I would appreciate if someone can help me out!
    null

    Thanks a lot for the information. That thread was indeed very helpful. But it still didn't answer all my questions:
    1) In the thread you mentioned, it mostly talks about Web beans. In a jsp page (using Web bean) we need to first invoke setReleaseApplicationResources(true) and then invoke releaseApplicationResources().
    Does this apply to data tags? I mean I have a tag <jbo:ReleasePageResources releasemode="Stateful" />. Is this enough to release the application module back to the pool or do I have to have something equivalent of setReleaseApplicationResources(true)?
    2. In a stateful application, the state of an application is maintained between requests via a browser cookie. For each browser, you can have one state per application module class. I was attempting to run "several browser sessions from the same machine" and the end result was that I got errors and unpredictable results ie it returned me far fewer rows then I saw originally. Should I be actually be running the browser session from different machines?
    3. In JDeveloper Documentation (section About Application Module pooling) there is a note section : "If the application module is not recycled the data stays the same. However if the application module was recycled and then activated through a failover, the activation logic re-executes the view objects, so it may bring in more or less rows then originally seen by the clients due to any database updates that have occured."
    This is exactly what is happening to me? How do I get rid of this problem? I want to be able to see all the original rows + any new rows That have been committed. Please advise!
    4. Are the JDBC connections tied to application module instances? Is it one JDBC connection per application module instance? So, in a stateful JSP, if I end up using a different application I also get a different JDBC connection. IS this true?
    5. Does the no of application module instances depend on the no of available JDBC connections? Because it looks like if you set the max no of connections to "5" and set the max no of application module instances to "10", It will be able to instantiate only "5" application module instances due to the limitation set by connection pool.
    6. At times I get errors which indicates that the row in view object does not exist. Is this something familiar? Or is it the same problem that John discussed in his thread.
    Thanks in advance!

  • Report using two different data sources won't work.

    I'm trying to build a report that shows information from a production table and an archive table.
    Tables are in different databases, which are defined as their own Data Sources in Publisher.
    Two data sets containing the same query but using different Data Sources are defined in the Data Model.
    When selecting option 'Concatenated SQL Data Source' the report never completes.
    If any of the two Data Sets is selected as the Main Data Set, the report shows information related to that source only.
    Any hints on how to make this work would be appreciated.
    Thanks.
    ccastillo

    More details on this issue:
    The production database has a synonym pointing to the archive database. I build a query using a UNION ALL statement linking both tables.
    For the same set of parameters, this query completes in a couple of minutes outside BI Publisher, but never ends (I cancel after an hour) inside Publisher.
    Is there any special considerations for the use of synonyms inside Publisher?

  • JSP, Data tags, How to build a form edit with multiple records

    Hi, I'm using Jdev 9i.
    I would like to have a JSP form where I can update, delete, insert records displayed in the same page.
    I know that I can use the data tag jbo:DataEdit to do it, but it only works with a single record, I want to have several records in the same page, displayed horizontally.
    The best example is a form to add items in an invoice:
    Productid description quantity price
    1001 xxx 10 20.00
    1002 yyy 15 30.00
    1003 zzz 7 10.00
    Could you give some help please?
    Thanks in advance.

    The form display is dictated by how you process the submit. I would build the form by using standard html tags. Here is another pseudo example:
    <FORM ACTION="target.jsp" >
    <TABLE>
    <TR>
    <TD>
    DeptNo
    </TD>
    <TD>
    DName
    </TD>
    <TR>
    <%
    int nRow = 0;
    %>
    <jbo:RowsetIterate datasource="ds">
    <%
    // increment the row number
    nRow++;
    String sDeptno = "Deptno" + nRow;
    String sDname = "Dname" + nRow;
    String sRowKey = "RowKey" + nRow;
    %>
    <jbo:Row id="myrow" action="current">
    <TR>
    <TD>
    <input type="text" name="<%=sDeptno%>" value='<jbo:ShowValue dataitem="Deptno" />' />
    </TD>
    <TD>
    <input type="text" name="<%=sDname%>" value='<jbo:ShowValue dataitem="Dname" />' />
    <input type="text" name="<%=sRowKey%>" value='<jbo:ShowValue dataitem="RowKey" />' />
    </TD>
    <TR>
    </jbo:Row>
    </jbo:RowsetIterate>
    <input type="submit" />
    </TABLE>
    </FORM>
    NOTE: This should get you started!!!

  • How to: create a Login page with data tags

    hi, how could i create a jsp login page using the data tags.. and how to associate it with the other jsp pages that should be displayed in case of the correct insertion of the password .

    http://technet.oracle.com:89/ubb/Forum2/HTML/006025.html

  • JSP, BC$J, Data Tags: Displaying LOV from a dynamic query

    Hi,
    In my JSP program, I need to do the following:
    (1) Display a LOV displaying EmpName.
    (2)When a user selects a name, EmpId should be available for passing as a session variable to another JSP.
    (3)For this purpose, the where clause of the query used for LOV is to be set dyanamically using a session variable. The order by clause may also have to be set dynamically.
    I tried to use CreateViewObject data tag for creating the view object. I then tried to use InputSelectLOV data tag. However, I received the message that the View object could not be located in the application module.
    Could you please let me know how I could resolve the above?
    Thanks in advance.

    Post you sample page.

Maybe you are looking for

  • In iCal, what is the little balloon on the side of some calendar days?

    I'm using iCal Version 3.0.5 (1270). On some of my calendar pages, a tiny balloon has appeared in the column where the times of the day are listed, with a horizontal line extending to the right from the balloon across the calendar page. Nothing happe

  • RAC and Directory Objects

    Dictionary objects (for bfile, external tables, etc) are stored in file system. In RAC, must all these filesystems be available to the same mount point in every node? And is there any requirement on the filesystem to store the files (e.g., ocfs / nfs

  • Native SQL Statement help!

    Hi guys, I need some help here. I have a requirement to select from Microsoft SQL database Question How do I select with RANGE internal tables? As you can see, I have 4 range tables for this. BElow are my codes EXEC SQL.     CONNECT TO 'CONNECTION_NA

  • Symbol script to change image

    Would it be possbile to have have a symbol script that allows me to select which image out of 5 or 6 should be viewable, and have it in just one field as compared to toggling the visibility of 6 seperate image fields

  • 2 menus: how do I end jump back to the menu I was just in?

    Hello, I'm fairly new with DVD SP, but am happily hacking my way around. From what I've read, I believe the answer to my question lies with Scripts, which I'm not familiar with and found the official documentation on it a little thin. Perhaps someone