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...

}

Tags: Java

Similar Questions

  • How to get the table without segment tablespace

    Hello

    I have a few tables in 11.2, which were created with creation of deferred segment and did so no segment/measure not yet. They already appear in dba_tables thus identical to the tab$, but do not have a defined tablespace.

    However, using dbms_metadata.get_ddl () the DOF resulting has the correct tablespace name. But what a view or table that I must query for this information with SQL?

    Thank you

    Robert

    Hello

    No, none of these tables is temporary, but it turns out that all the affected tables are ITO and so I have to check dba_indexes for the tablespace and the dba_indexes index_name when looking for a segment.

    Thank you

    Robert

  • How to get the ORACLE_HOME without connecting to the unix Server

    Hi all!

    DOE anyone have an idea how to retrieve the ORACLE_HOME value directly from the database (connection to SQL only), without connecting to the server?
    I need to check that the solution works in all types of configurations Oracle - for example, I can find it by running:
    SQL > show spfile parameters

    VALUE OF TYPE NAME
    SPFile chain C:\ORACLE\PRODUCT\10.2.0\DB_1\DBS\SPFILERGDB. ORA
    and cut this string "C:\ORACLE\PRODUCT\10.2.0\DB_1\DBS\SPFILERGDB. ORA'-> 'C:\ORACLE\PRODUCT\10.2.0\DB_1', to get the value of ORACLE_HOME, BUT - this will not work on configurations ALL Oracle (most of them, but not all) as the DBA can change the path.

    So, you may have a better idea?

    Thank you!
    Maayan

    Maybe you can use something like this

    SQL> select file_spec from dba_libraries where library_name='ORDIMLIBS';
    
    FILE_SPEC
    ------------------------------------------------------------
    /u01/app/oracle/product/1110/dbhome/lib/libordim11.so
    
  • 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

  • Satellite Pro P300 - how to get the original without media image?

    Hello

    I received a Satellite Pro P300 and there the for win xp recovery disk, I would go back to the installation of Vista pre installed if possible.

    The recovery on the hard disk partition is not available, so I guess, that it cannot be recovered. Is it possible to buy an original image?

    Liam is just that Win 7 is better than Vista OS.
    So if you have the ability to install Win 7 I recommend doing this instead of Vista.

    However, the Toshiba recovery disc contain only the Vista OS.

  • ODI 12 c how to create the table without number (38.0)

    Hi gurus of ODI.

    I got following problem:

    I have a copy 1:1 with the addition of metadata and a delta on the side to find target. When I look into the target in several numeric columns, the values are truncated, I lose precision.

    What ODI research I found the problem to the work table.

    All affected columns are defined as number without giving any precision or scale, in the target as well as the source.

    When I ran the simulation to see what ODI I noticed that, in the creation of the work table statement ODI number is used (38.0) for all numeric columns where no precision is explicitly given.

    It is so clear when ODI loads the data from the source to the working table the values of the numeric columns are truncated.

    My Question now is, how do I know ODI is not to use the number (38.0), but simply of number for the numeric columns with no details given when a work table is created?

    I know I could explicitly give precision and scale for each column of numreic, but it would be a lot of work and for some of the columns the precision required is not known, then that would be the worst Option.

    Thanks for the help

    Martin

    I found myself where was the problem, then I write the answer, while others may find it here:

    The mapping was

    Source--> Filter--> Expression--> Join--> target.

    The join joins anothher Table.

    In the target, the instructions for completing the columns have been Expression.ColumnName

    I changed it to be Source.ColumnName

    The Knowledgemodules delivered with ODI treat different columns depending on how they are.

    In the creation of the work table, firstly everything all computed columns in the Expression or read from the expression by other components, including targets. It then uses the presission and scale in the component expression with number (38.0) by default if it is explicitly given. Items but which are directly read from somewhere before the expression are also saved in the work table, it ODI use the scale and precision holding of the source - and when the Source's number without taking into account the precision and the scale he uses just number.

  • How to get the use of database tables/columns in the table of edge/analysis?


    Hi all

    Anyone has an idea on how to get the tables in DB/colomns usaged in edge/analysis table in OBIEE 11 G?

    Thanks in advance!

    Anne

    You can try to generate a report of Catalog Manager for analysis / SA want to create the line and your RPD you can go to utilities > documentation of the repository and get the domain you want to and get all the mappings in Excel format.

    I hope this helps.

    SVS

  • 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 the string (specified by row and column) of txt file with labview

    Hello world

    How to get the string (specified by row and column) of txt file with labview

    THX

    As far as I know, a text file has no column.  Be more specific.  Do you mean something like the 5th word on line 4, where the words are separated by a space, and lines are separated by a newline character?  You can read from the spreadsheet String function and set the delimiter to a space.  This will produce a 2D channels table.  Then use the table to index and give the line number and column number.

  • How to get the element selected listfield and goto next page?

    Assalaamualikum

    I try parsing the XML from a url and show in listfield.

    problem:

    How to get the selected item and passing the variable and than goto next page?

    my code:

    package parsepack;

    import java.io.IOException;
    import java.io.InputStream;
    import java.util.Vector;

    Import javax.microedition.io.Connector;
    Import javax.microedition.io.StreamConnection;

    Import net.rim.device.api.system.Bitmap;
    Import net.rim.device.api.system.Display;
    Import net.rim.device.api.ui.DrawStyle;
    Import net.rim.device.api.ui.Field;
    Import net.rim.device.api.ui.FieldChangeListener;
    Import net.rim.device.api.ui.Graphics;
    Import net.rim.device.api.ui.Manager;
    Import net.rim.device.api.ui.UiApplication;
    Import net.rim.device.api.ui.component.ListField;
    Import net.rim.device.api.ui.component.ListFieldCallback;
    Import net.rim.device.api.ui.container.MainScreen;
    Import net.rim.device.api.ui.container.VerticalFieldManager;
    Import net.rim.device.api.xml.parsers.DocumentBuilder;
    Import net.rim.device.api.xml.parsers.DocumentBuilderFactory;

    to import org.W3C.DOM.document;
    Import org.w3c.dom.Node;
    Import org.w3c.dom.NodeList;

    extends xmlparsing public class UiApplication implements ListFieldCallback, FieldChangeListener
    {

    Public Shared Sub main (String [] args)
    {
    xmlparsing app = new xmlparsing();
    app.enterEventDispatcher ();
    }

    public long mycolor;
    Connection _connectionthread;
    private static ListField _list;
    private static Vector listElements is new Vector();.
    public display display = new MainScreen();
    MainManager VerticalFieldManager;
    VerticalFieldManager subManager;

    public xmlparsing()
    {
    Super();
    pushScreen (screen);

    final Bitmap Imagearriereplan = Bitmap.getBitmapResource ("blackbackground.png");

    mainManager = new VerticalFieldManager(Manager.NO_VERTICAL_SCROLL |) Manager.NO_VERTICAL_SCROLLBAR)
    {

    public void paint (Graphics graphics)
    {
    graphics.drawBitmap (0, 0, Display.getWidth (), Display.getHeight (), Imagearriereplan, 0, 0);

    Super.Paint (Graphics);
    }

    };

    subManager = new VerticalFieldManager(Manager.VERTICAL_SCROLL |) Manager.VERTICAL_SCROLLBAR)
    {
    protected void sublayout (int maxWidth, maxHeight int)
    {
    int displayWidth = Display.getWidth ();
    int displayHeight = Display.getHeight ();

    Super.sublayout (displayWidth, displayHeight);
    setExtent (displayWidth, displayHeight);
    }
    };

    Screen.Add (mainManager);

    _list = new ListField()

    {

    public void paint (Graphics graphics)

    {
    graphics.setColor ((int) mycolor);
    Super.Paint (Graphics);

    }

    };
    myColor = 0x00FFFFFF;
    _list. Invalidate();
    _list.setEmptyString ("* only supplies not available *", DrawStyle.HCENTER "");
    _list.setRowHeight (50);
    _list.setCallback (this);
    mainManager.add (subManager);
    listElements.removeAllElements ();
    _connectionthread = New Connection();
    _connectionthread. Start();
    }

    protected boolean navigationClick (int status, int time)
    {
    Try
    {
    Here, go to another screen if you need.

    }
    catch (System.Exception e)
    {
    System.out.println ("Exception:-: navigationClick()" + try ());
    }
    Returns true;
    }

    private class login extends thread
    {
    Public connection()
    {
    Super();
    }

    public void run() {}
    Doc document;
    StreamConnection conn = null;
    InputStream is = null;
    try {}

    Conn = Connector.open (StreamConnection) ("http://ec2-54-248-241-248.ap-northeast-1.compute.amazonaws.com/koperasi-akr-trial/cgi-bin/gw-pinjama...

    DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance ();
    docBuilderFactory.setIgnoringElementContentWhitespace (true);
    docBuilderFactory.setCoalescing (true);
    DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder ();
    docBuilder.isValidating ();
    is = conn.openInputStream ();
    doc = docBuilder.parse (is);
    doc.getDocumentElement () .normalize ();
    List of NodeList = doc.getElementsByTagName ("ID");
    for (int i = 0; i)< list.getlength();="" i++)="">
    Node node = list.item (i) .getFirstChild ();
    listElements.addElement (textNode.getNodeValue ());
    }
    } catch (Exception e) {}
    System.out.println (try ());
    } {Finally
    If (is! = null) {}
    try {is.close ();
    } catch (IOException ignored) {}
    } If (conn! = null) {}
    Try {conn.close () ;}
    catch (IOException ignored) {}
    }} UiApplication.getUiApplication () .invokeLater (new Runnable() {}
    public void run() {}
    _list. SetSize (listElements.Size ());
    subManager.add (_list);
    Screen.Invalidate ();
    }
    });
    }

    }

    ' public void drawListRow (list ListField, Graphics g, int index, int y, int w)
    {
    Your string = (String) listElements.elementAt (index);
    int yPos = 0 + y;
    g.drawLine (0, yPos, w, yPos);
    g.drawText (, 5, 15 + y, 0, w);
    }

    public {get {Object (ListField list, int index)
    {
    Return listElements.elementAt (index);
    }
    public int indexOfList (String prefix, ListField list, int, string)
    {
    Return listElements.indexOf (prefix, string);
    }
    public int getPreferredWidth (ListField list)
    {
    Return Display.getWidth ();
    }
    public final void insert (String toInsert, int index) {}
    listElements.addElement (toInsert);
    }

    ' Public Sub fieldChanged (field field, int context) {}

    }
    }

    Thank you.

    I told you that replace the navigationclick() method where initialize you your listfield

    as I think that changing your code and then answer me

    _list = new ListField()
    {
    protected boolean navigationClick(int status, int time)
    {
      Dialog.inform("hi");
      return true;
    }
    
    public void paint(Graphics graphics)
    {
    graphics.setColor((int) mycolor);
    super.paint(graphics);
    }
    };
    
  • DVT:pivotFilterBar - how to get the selected values of the filter

    Hi all

    I have a question: how to get the selected values from the pivot table filter bar programmatically?

    I tried to use
    pivotTable.getDataModel().getDataAccess().getValueQDR(startRow, startCol, DataAccess.QDR_WITH_PAGE);
    but to the edge of the side DATA INCORRECTESdeclarations page, it seems that it will return the cached values.

    Environment: JDev 11.1.1.3.0 without tasks.

    Thank you
    Miroslaw

    Hello

    You can retrieve the value selected in the PivotFilterBar through the PivotFilterBar model, instead of dataaccess:

    Download the template of the bar pivot filter instance
    QueryDescriptior queryDescriptor = (QueryDescriptor) pivotFilterBar.getValue ();

    retrieve a list of criterion, each of them is used to fill each lov in the pivot filter bar
    ConjunctionCriterion conjunctionCriterion = queryDescriptor.getConjunctionCriterion ();
    List criterionList = conjunctionCriterion.getCriterionList ();
    for (int i = 0; i)<_criterionList.size(); i++)="">
    AttributeCriterion = (AttributeCriterion) criterionList.get (i) criterion.

    _selected is the currently selected value
    Selected object = criterion.getValues () .get (0);

    System.out.println (_selected);
    }

    Hope that helps,
    Chadwick

  • How to get the value of a selected character unicode?

    Hi all

    How to get the value of a selected character unicode?

    The content property of a 'Character' InDesign object is a simple Unicode string. For access to the various characters is a basic javascript operation, and a google gives this as a good first result: http://www.w3schools.com/jsref/jsref_charCodeAt.asp

    Therefore, the value of a selected character unicode is

    App.Selection [0]. Characters [0].contents.charCodeAt (0)

  • How to get the FileSystemTree coordinates selected item?

    Hi can we idea me in how to get the coordinates of the itwn selected in a FileSystemsTree?

    THX

    g

    You should do something like this:

    var itemRenderer:DisplayObject = fileSystemTree.itemToItemRenderer (fileSystemTree.selectedItem) as DisplayObject;
    Contact information: Point = itemRenderer.parent.localToGlobal (new Point (itemRenderer.x, itemRenderer.y)) var;

    contact information is now an object point representing the coordinates of your itemRenderer in the global coordinate system.

  • 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 DataGrid item?

    Hello

    I have a datagrid

    < mx:DataGrid = "10" XY = dataProvider "36" = "{acEmaillist}" width = "319" >
    < mx:columns >
    < mx:DataGridColumn headerText = "Full name" dataField = "cn" width = "150" / >
    < mx:DataGridColumn headerText = "Email" dataField = "mail" width = "150" / >
    < / mx:columns >
    < / mx:DataGrid >

    I want to select a name, click it, get the selected name and save it in a string variable. Please let me know how to get the selected name when I click it. Thank you very much.

    M

    This code can help.


    http://www.Adobe.com/2006/mxml"width ="100% ">

    Import mx.controls.DataGrid;
    Import mx.events.ListEvent;

    [Bindable]
    private var nameStr:String;

    public void getName(event:ListEvent):void {}
    var dg:DataGrid = DataGrid (event.target);
    nameStr = dg.selectedItem.cn;
    }
    ]]>



    Bob Smith
    [email protected]


    Ted Alan
    [email protected]


    Fred Tobs
    [email protected]








Maybe you are looking for

  • Backup system state data

    I want the XP Home System State backup as the data I plan on the rationalization of the registry and of course need the backup in the case where I live. Microsoft has a backup program on the XP home CD. Toshiba has a recovery disk so I don't have the

  • my laptop is messed up after installing Windows Vista Service Pack 2

    My internet does not work and a message came up saying "internet explore has stopped working, there is a problem, windows will let you know if there is a solution" a box then came advising me to install Windows Vista Service Pack 2 and I did and now

  • How blink Boolean indicator I gave the color in function of

    Hello How to Flash the Boolean indicator, I gave based.here of color I have attached my program. I'll given green and blue, but when I run the present it flashes red and blue and red and green.i want to blink blue and green.

  • I can't receive files via bluetooth but I can't send easily

    I use Toshiba laptop satellite C850-P0011 windows 8 I'm trying for months to solve this problem in the past for next choice of files option to receive for repairs but useless he cant still in the Bluetooth does not work, I went to the Web from Toshib

  • Amount Varience is not display in plug-in accout

    All,I proceeded to PKI in the module icp eats and I did manual match and post successfully. When I draw the grid that I could learn the elimination has been made, but I couldn't able to see the data in the card account in the metadata, I did the step