How to get verified data rows in a table?

Hai
To display a check box my table on page jspx, I created a transitional attribute, the salt and the type select as Boolean.Then when I drag and drop my page jspx viewObject. The table cantain id, name, designation, salary, salt
Then I deleted the link in the column of salt and drop a checkbox select Boolean to this column. Then in the property inspector, I bind the value # {row.sel} for box...
Suppose that there are 5 lines in my table... I checked only 3 of them. When I pressed a button, the corresponding to the id must be extracted and checked lines in the table and I want to show more details corresponding to this id of in another table in the jspx page. I use jdev 11

Hello

So if I find correct this time, you do not want to select the lines by clicking on the row in the table but rather by selecting the check box that you created. Fix? Sorry, previous confusion is because of me "thinking in Trinidad. Anyway, you can then set the rowSelection of the table as zero, as you select the line in this way. Try the code below.

public String doSomething() {
    List rows = getAllRows(getTable1());
    for (Row row : rows) {
        if ((Boolean)row.getAttribute("sel")) {   // Check if it's true which (should) indicate the checkbox as being selected
            System.out.println(row.getAttribute("id"));   // Your selected id based on the checkbox you selected.
        }
    }
}

public List getAllRows(RichTable table) {
    List rowList = new ArrayList();
    Row row = null;
    FacesCtrlHierNodeBinding rwData = null;
    int total = table.getRowCount();

    for (int i = 0; i < total; i++)  {
        rwData = (FacesCtrlHierNodeBinding)table.getRowData(i);
        if (rwData != null) {
            row = rwData.getRow();
            rowList.add(row);
        }
    }

    return rowList;
}

A few points to note. The getAllRows method loops through the entire VO. So if you have 10,000 rows, shut up 10,000 times. If you are dealing with large records or who want to optimize the code, you will need to loop through the "displayed" only lines. To do this, you need to change the code.

Kind regards
Amélie Chan

Tags: Java

Similar Questions

  • How to get the selected row in the table without SelectedRowKeys

    Greetings,

    I use JDeveloper 11.1.2.4.0 ADF application.

    and I have a few table containing only 1 and sometimes 2 rows. When the load table.

    by default, the first line is selected, and I can't call a selection listener (by selecting a line by calling

    a function). What I did (and it worked on the past, I don't know why now it doesn't) is:

    I removed the "SelectedRowKeys" property, so it will not automatically select 1st row loading,

    and on the events of selection, I use the code in this function:

    {} public void selectDisease (SelectionEvent selectionEvent)

    Object _selectedRowData = Disease_Table.getSelectedRowData (); the table select a line

    JUCtrlHierNodeBinding _nodeBinding = (JUCtrlHierNodeBinding) _selectedRowData;

    Line rw = _nodeBinding.getRow (); get the error here

    OperationBinding operation = bindings.getOperationBinding("ExecuteWithParams7");

    operation.getParamsMap () .put ("disease_id", rw.getAttribute("disease_id").toString ());

    Operation.Execute ();

    AdfFacesContext.getCurrentInstance () .addPartialTarget (panelTabbed);

    }

    The error:

    < RichExceptionHandler > < _logUnhandledException > ADF_FACES - 60098:Faces life cycle receives exceptions that are unhandled in phase 5 of INVOKE_APPLICATION

    javax.el.ELException: //C:/Users/Philip/AppData/Roaming/JDeveloper/system11.1.2.4.39.64.36.1/o.j2ee/drs/MyApp/ViewControllerWebApp.war/main.jsf @470,113 selectionListener = "#{backingBeanScope.BeanNavigation. selectDisease} ': java.lang.NullPointerException"

    at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:111)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodExpression(UIXComponentBase.java:1589)

    at org.apache.myfaces.trinidad.component.UIXTable.broadcast(UIXTable.java:276)

    at oracle.adf.view.rich.component.UIXTable.broadcast(UIXTable.java:145)

    at oracle.adf.view.rich.component.rich.data.RichTable.broadcast(RichTable.java:486)

    at org.apache.myfaces.trinidad.component.UIXCollection.broadcast(UIXCollection.java:157)

    at org.apache.myfaces.trinidad.component.UIXTable.broadcast(UIXTable.java:279)

    at oracle.adf.view.rich.component.UIXTable.broadcast(UIXTable.java:145)

    at oracle.adf.view.rich.component.rich.data.RichTable.broadcast(RichTable.java:482)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1137)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:361)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:202)

    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:508)

    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)

    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)

    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)

    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:468)

    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:468)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)

    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:119)

    at java.security.AccessController.doPrivileged (Native Method)

    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)

    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)

    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)

    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)

    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3715)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3681)

    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)

    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)

    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)

    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)

    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

    Caused by: java.lang.NullPointerException

    at view.navigation.selectArrergy_MED(navigation.java:489)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    at com.sun.el.parser.AstValue.invoke (unknown Source)

    at com.sun.el.MethodExpressionImpl.invoke (unknown Source)

    at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)

    ... more than 48

    < RegistrationConfigurator > < handleError > ADF_FACES - 60096:Server Exception during the PPR, #1

    javax.el.ELException: //C:/Users/Philip/AppData/Roaming/JDeveloper/system11.1.2.4.39.64.36.1/o.j2ee/drs/MyApp/ViewControllerWebApp.war/main.jsf @470,113 selectionListener = "#{backingBeanScope.BeanNavigation. selectDisease} ': java.lang.NullPointerException"

    at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:111)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodExpression(UIXComponentBase.java:1589)

    at org.apache.myfaces.trinidad.component.UIXTable.broadcast(UIXTable.java:276)

    at oracle.adf.view.rich.component.UIXTable.broadcast(UIXTable.java:145)

    at oracle.adf.view.rich.component.rich.data.RichTable.broadcast(RichTable.java:486)

    at org.apache.myfaces.trinidad.component.UIXCollection.broadcast(UIXCollection.java:157)

    at org.apache.myfaces.trinidad.component.UIXTable.broadcast(UIXTable.java:279)

    at oracle.adf.view.rich.component.UIXTable.broadcast(UIXTable.java:145)

    at oracle.adf.view.rich.component.rich.data.RichTable.broadcast(RichTable.java:482)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1137)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:361)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:202)

    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:508)

    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)

    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)

    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)

    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:468)

    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:468)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)

    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:119)

    at java.security.AccessController.doPrivileged (Native Method)

    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)

    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)

    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)

    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)

    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3715)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3681)

    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)

    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)

    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)

    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)

    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

    Caused by: java.lang.NullPointerException

    to view.navigation. selectDisease (navigation.java:489)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    at com.sun.el.parser.AstValue.invoke (unknown Source)

    at com.sun.el.MethodExpressionImpl.invoke (unknown Source)

    at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)

    ... more than 48

    I use the same method on the past on a different application on the same version of jdeveloper and it worked, I don't understand

    what I'm doing wrong here,

    Thanks for any help.

    I finally found the solution, since I do not use the property to a current line, I add programmatically:

    public static Object invokeEL (el String, class [] paramTypes, Object [] params) {}

    FacesContext facesContext = FacesContext.getCurrentInstance ();

    ELContext elContext = facesContext.getELContext ();

    ExpressionFactory expressionFactory = facesContext.getApplication () .getExpressionFactory ();

    MethodExpression exp = expressionFactory.createMethodExpression (elContext, el, Object.class, paramTypes);

    Return exp.invoke (elContext, params);

    }

    public static Object evaluateEL (String el) {}

    FacesContext facesContext = FacesContext.getCurrentInstance ();

    ELContext elContext = facesContext.getELContext ();

    ExpressionFactory expressionFactory = facesContext.getApplication () .getExpressionFactory ();

    ValueExpression exp = expressionFactory.createValueExpression (elContext, el, Object.class);

    Return exp.getValue (elContext);

    }

    {} public void rowSelected (SelectionEvent selectionEvent)

    invokeEL ("#{bindings.") MyVO.collectionModel.makeCurrent} «»

    new class [] {SelectionEvent.class},

    (New Object() {selectionEvent});

    Line = rw

    (Row), evaluateEL ("#{bindings.") MyVOIterator.currentRow}");

    rw.getAttribute("TheAttribueINeed").toString ()); etc...

    }

  • JDeveloper 11 g: how to get all the rows in a table of database application

    Hi all!

    I'm developing an application with JDeveloper 11 g, as the subject of the show.
    So I'm suppose to use some of the data that are in the database table.
    So, I got the View object, which is where I want to take data, to the datamodel.
    And after that, I use the following line in my serviceClass.java:
    public String method(){
            String truc = null;
            getViewName().setRangeSize(-1);
            getViewName().setRangeStart(0);
            getViewName().executeQuery();
    
    //I do my treatment here
    return truc
    }
    When the application is run, it stop just before the line "getViewName ().setRangeSize(-1);
    So, I think that it is the point of locking.
    Someone can help me.

    Thank you to

    Nystan

    Hello

    check if 'viewObjectName' is the name that he presents in the ApplicationModule data model. This isn't the ViewObject name you are after the instance of the object View, which is a difference

    Frank

  • How to get the date for the first Monday of each month

    Dear members,

    How to get the date for the first Monday of each month.

    I wrote the following code

    SELECT decode (to_char (trunc (sysdate + 30, 'MM'), 'DAY'), 'MONDAY', trunc (sysdate + 30, 'MM'), NEXT_DAY (trunc (sysdate + 30, 'MM'), "LUN")) FROM DUAL

    But he looks at complex bith.

    Abhishek

    Published by: 9999999 on 8 March 2013 04:30

    Use the IW format - it will make independent NLS solution. And all you need is truncated 7th day of each month using IW:

    select  sysdate current_date,
            trunc(trunc(sysdate,'mm') + 6,'iw') first_monday_the_month
      from  dual
    /
    
    CURRENT_D FIRST_MON
    --------- ---------
    08-MAR-13 04-MAR-13
    
    SQL> 
    

    Here is the list of the first Monday of the month of this year:

    with t as(
              select  add_months(date '2013-1-1',level-1) dt
                from  dual
                connect by level <= 12
             )
    select  dt first_of_the_month,
            trunc(dt + 6,'iw') first_monday_the_month
      from  t
    /
    
    FIRST_OF_ FIRST_MON
    --------- ---------
    01-JAN-13 07-JAN-13
    01-FEB-13 04-FEB-13
    01-MAR-13 04-MAR-13
    01-APR-13 01-APR-13
    01-MAY-13 06-MAY-13
    01-JUN-13 03-JUN-13
    01-JUL-13 01-JUL-13
    01-AUG-13 05-AUG-13
    01-SEP-13 02-SEP-13
    01-OCT-13 07-OCT-13
    01-NOV-13 04-NOV-13
    
    FIRST_OF_ FIRST_MON
    --------- ---------
    01-DEC-13 02-DEC-13
    
    12 rows selected.
    
    SQL> 
    

    SY.

  • How to get the Date, month, year of the DateTimePicker

    Hi, I am using the DateTimePicker.

    There are several question about this command:

    1. how to get the Date, month and year?

    -With the help of myDateTime.value, I get this string ' Wed May 08 14:45 ICT 2013 '-> I have to manually analyze this? Because I need in format yyyy/mm/dd. Or can set the format of dateTimePicker.value?

    2 format on dateTimePicker self (on the user interface) is d/m/YY, I can't change to another format?

    Thank you

    dateTimePicker.value return a QDateTime not a string.

    https://developer.BlackBerry.com/Cascades/reference/bb__cascades__datetimepicker.html#property-value

    See more:

    https://developer.BlackBerry.com/Cascades/reference/QDateTime.html#date

    https://developer.BlackBerry.com/Cascades/reference/QDate.html

    You can get

    day = dateTimePicker.value.date().day()
    month = dateTimePicker.value.date().month()
    year= dateTimePicker.value.date().year()
    dateYYYYMMDD = dateTimePicker.value.date().toString(Qt::ISODate)
    dateYYYYMMDD2 = dateTimePicker.value.date().toString("YYYY/MM/DD")
    dateYYYYMMDD3 = dateTimePicker.value.toString("YYYY/MM/DD")
    
  • How to get the date of end of week max and its rows of a table

    Hello
    Table [temp2]
     
       id          name        dt
      123        a             2-mar-2010
      124        b            1-feb-2010
      125        c             3-apr-2010
      123        a             13-mar-2010
      125        c             13-mar-2010
      123        a             12-feb-2010
     
    This table how to get this line by id - name (id and the name of the composite key) whose date is the date of last weekend (last Saturday).
    for example, suppose to have IDs 123 values date February 12, 2010, 13-mar-2010 this date falls on the last Saturday 13-mar-2010, how to get the value of the line on Saturday last for all the unique id and the name?

    So I wrote this but probably there a few traps...
    select id,name,dt from (select id,name,dt,max(dt) over(partition by id,name) as 
    max_date from temp2) t where dt=t.max_date and dt in ('3-apr-2010'
    ,'27-mar-2010','20-mar-2010','13-mar-2010')
    Here I have spent in the in clause 4 last weekend dates manually (although either has been calculated by programming) in front.
    Thank you

    Here's another option:

    SELECT     *
    FROM
    (
         SELECT     ID
         ,     NAME
         ,     MAX(CASE WHEN TO_CHAR(DT,'DY','NLS_DATE_LANGUAGE=ENGLISH') = 'SAT' THEN DT END) AS DT
         FROM     TEMP2
         GROUP BY ID, NAME
    )
    WHERE DT IS NOT NULL
    

    It is always useful to provide the following information:

    1. oracle version (SELECT * FROM V$ VERSION)
    2. examples of data in the form to CREATE / INSERT commands.
    3. expected results
    4 explanation of the expected results (alias "business logic")
    5. use.

     tags for #2 and #3. See FAQ (Link on top right side) for details.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
    
  • How to get the selected row in a programmatic table of the ADF (table generated from a bean)

    Hi all


    We use JDeveloper Studio Edition Version 12.1.3.0.0 and deployed on GlassFish Server Open Source Edition 3.1.2.2 (build 5) and connect to the SQLServer database.


    How to get the selected line in a programmatic (using a SortableModel custom not a display object) ADF table (generated from a bean)?


    We are trying to get the selected row in a bean of a programmatic ADF table to retrieve data based on the selected line.


    Any idea?

    Well, you can use selectionListener to set the selected line to a variable of bean (but this bean must be in extended view or some superiors)

    Something like this: http://www.awasthiashish.com/2015/07/get-selected-row-singlemultiple-from.html

    Dario

  • How to get a date to the timestamp of a file XML format

    Hello

    I'm trying to get a date from an external XML file. My XML file looks like this:


    <>http://www.NI.com/LVData">
        8.6.1
        
            Date of birth
            31/03/1983
        
     

    I can get the system to retrieve the correct XML element that shows the nested and elements , but I have no way to retrieve correctly the date. It seems as if she interprets my date seconds since 1904. I try to keep the "readable" for the end user XML, so it is important to keep this date in standard U.S. date format. I eventually uses this date to calculate the age of something. I labour code to subtract a timestamp in the format of the date to the current date and time, but I can't access it when I get back from XML.

    Starting from XML schema, it looks like the timestamp element requires a cluster... but there is no documentation on what to spend. Any ideas how to get back an XML date in this format in a simple and clean?

    Here's my current VI:

    Thank you

    Ryan

    Cambridge, MY

    Quick Tip on "bundle by name.  You don't need to consolidate all these constants where the values correspond to what is the constant of cluster at the top.  The cluster constant defines the data structure and the starting values.  Simply group the values for specific change items.

    Example of tone would be a bit cleaner.  Although the format string should use a capital T.

    As always with dealing with the time, complications could arise due to dealing with time zones and leap years.  Zones shouldn't matter for the calculation of the years since you are rounded up to years.  Although you probably want to round down rather than round at most closely. (I forgot this part in my example).  The problem with leap years when you would be only in a certain number of days of the anniversary, he would round up the age.  The number of rounded days would depend on how much on leap days that nobody has seen in their lifetime.

  • How to get api data to Analytics?

    Hi, I want to use the response to generate data for my js to customize and create a new report that does not build in obiee.

    Is there an api response data to call? How to get it?

    You have the Web service interface that allows you to run LSQL and retrieve data: http://docs.oracle.com/cd/E28280_01/bi.1111/e16364/methods.htm#BIEIT180

    Or if you just want to do a record in JS, you can always do in an analysis: using view narrative, you can pass the data from your analysis to a JS object and use any JS code, you want to do the rendering (OBIEE analysis is nothing other than the Web page in the end...)

  • How to get the data in the table if the date is less - than two months from the current date?

    Hi all

    I have a requirement in to retrieve table data. If any of the basic date in the column data.

    I have a date field (expiration date) I need to display data which expires two months.

    Please give me a solution.

    Concerning

    Shankar

    Hi, Shankar,

    Sorry, we don't know what you want.

    If you want something which, when executed on March 13, 2014, finds all the lines where expires and is located between March 13, 2014 and may 13, 2014, inclusive,

    SELECT *- or whatever the columns that you want to

    FROM table_x

    WHERE expire > = TRUNC (SYSDATE)

    Maturity AND< add_months="" (trunc="" (sysdate)="" ,="" 2)="" +="">

    ;

    I hope that answers your question.

    If not, post a small example data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and also publish outcomes from these data.

    Explain, using specific examples, how you get these results from these data.

    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: https://forums.oracle.com/message/9362002

  • How to get the data to uppercase

    Hi all

    I have a table with 100 columns, all character only (varchar2) type. In the data that have already inserted with tiny...

    Can here, my question is how I get all the data to uppercase only...

    I'm trying as select upper (t.*) in tablename t; He is in error... no idea please help me...

    Thanks and greetings

    Stéphane

    or you can create queries like this without having to type all of the columns;

    Select 'select'. listagg ('upper('|| c.COLUMN_NAME||')) (',',') within the Group (order 1) |' from TABLENAME'

    of dba_tab_cols c

    where c.TABLE_NAME = 'TABLENAME '.

    ----

    Ramin Hashimzade

  • How to get the dates of discontinuity

    If there is discontinuity in dates how we write the query...
    I need to get the dates and the dates of discontinuity.
    I / p:

    item_no first_date second_date
    1 January 1, 10 Aug 1, 10

    1-01 - 7.-10 1er January 11

    1 February 1, 11 1 July 11
    "
    "
    "
    o/p:

    1 1 January 10 01 - aug - 10

    1 02-aug-10 (first_date + 1) 31-aug-10(second_date-1) - dates of discontinuity

    1-01 - sep - 10 (second_date) 1st January 11

    1 January 2, 11 January 31, 11

    1 February 1, 11 1 July 11

    '
    '
    '
    Please let me know is possible
    SQL> select  *
      2    from  tbl
      3  /
    
            ID FIRST_DAT SECOND_DA
    ---------- --------- ---------
             1 01-JAN-10 01-AUG-10
             1 01-SEP-10 01-JAN-11
             1 01-FEB-11 01-JUL-11
    
    SQL> with t1 as (
      2              select  tbl.*,
      3                      lag(second_date) over(partition by id order by first_date) prev_second_date
      4                from  tbl
      5             ),
      6       t2 as (
      7               select  *
      8                 from  tbl
      9              union all
     10               select  id,
     11                       prev_second_date + 1,
     12                       first_date - 1
     13                 from  t1
     14                 where prev_second_date + 1 < first_date
     15             )
     16  select  *
     17    from  t2
     18    order by id,
     19             first_date
     20  /
    
            ID FIRST_DAT SECOND_DA
    ---------- --------- ---------
             1 01-JAN-10 01-AUG-10
             1 02-AUG-10 31-AUG-10
             1 01-SEP-10 01-JAN-11
             1 02-JAN-11 31-JAN-11
             1 01-FEB-11 01-JUL-11
    
    SQL>  
    

    SY.

  • How to get the data center moref moref VM in c# using

    Hi all

    Could someone tell how to get managedobjectreference of data center using the VM moref? or any other easy way is? If anyone has examples of code in c# please share with me?

    Thank you

    Vijaya

    You can get the data center in which the virtual machine resides by the following search:

    VM Moref-> Parent (vmFolder)

    Moref folder VM-> Parent (data center)

    Parent of the virtual computer object will always be the vmFolder and the vmFolder object will always be a data center.

    For more details on the model of article inventory of vSphere, take a look at this blog post - http://www.doublecloud.org/2010/03/vsphere-inventory-structure-deep-dive/

  • How to get the date - 7 days (week)

    Hi all

    I am beginner in Java and JSP

    I'm JSP search form (VO) where I need to set a default value for the start_date - 7 days

    OK I get this display today date but how to get that displays a date-7 days?


    < %
    DateFormat df = new SimpleDateFormat ("JJ. MM.yyyy");
    Date date = new Date();
    String default = 'StartDate =' + df.format (new Date());
    % >

    ID
    Thank you

    Simple approach if you're not worried about leap years: -.

    Date todayMinus7 = new Date(System.currentTimeMillis() - 7 * 24 * 60 * 60 * 1000);
    

    Alternatively take a look at the GregorianCalendar class and the add() method.

  • How to get a date on different pages?

    Hey everyone, I am working on a daily planner for the office and I have a script that automatically generates the dates but I Don t know how to get each of the dates on another page. I would appreciate if someone could help me get each date generated by the script on the next page of my 365 page document. The scrip is:

    var month = ["Jan", "Feb", "Mar", "Apr", "Peut", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "December"];

    var length = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];

    var days = ["Sun", "Mon", "Tue", "Wed", "Game", "Fri", "Sam"];

    Count = 0;

    day = 0;

    months = 0;

    week = 5;

    Str = "";

    While (count < 365)

    {

    Count ++;

    "days of Str += [weekday] +", "+ (day + 1) +" "+ month [month] +"\r ";

    day ++;

    If (day > = length [month])

    {

    day = 0;

    months ++;

    If (month > 11)

    months = 0;

    }

    day of week = (day of the week + 1) % 7;

    }

    App.Selection [0] .silence = str;

    Tanks!

    Try this,

    app.activeDocument.viewPreferences.rulerOrigin = RulerOrigin.pageOrigin;

    app.activeDocument.zeroPoint = [0,0];

    {with (App.activeDocument.viewPreferences)}

    horizontalMeasurementUnits = MeasurementUnits.points;

    verticalMeasurementUnits = MeasurementUnits.points;

    rulerOrigin = RulerOrigin.pageOrigin;

    }

    var month = ["Jan", "Feb", "Mar", "Apr", "Peut", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "December"];

    var length = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];

    var days = ["Sun", "Mon", "Tue", "Wed", "Game", "Fri", "Sam"];

    Count = 0;

    day = 0;

    months = 0;

    week = 5;

    Str = [];

    While (count<>

    {

    Count ++;

    "Str [count] = days [weekday] + ', ' + (day + 1) +" "+ month [month] +"\r ";

    str1 = str.toString ();

    day ++;

    If (day > = length [month])

    {

    day = 0;

    months ++;

    If (month > 11)

    months = 0;

    }

    day of week = (day of the week + 1) % 7;

    }

    for (i = 0; i<>

    {

    var myTextframe = document.pages [i].textFrames.add ({geometricBounds:[0,0,50,150]});})

    myTextframe.insertionPoints [0] .silence = str [i + 1];

    }

    Vandy

Maybe you are looking for