Get the rank of the table selected in DialogOKAction

I use JDeveloper 11.1.1.6

In my example, I have a page fragment that includes a table reading with the button 'Add Row '. When the user clicks on the button 'Add Row', the following will occur:
1. create the insertion occurs. The KP for this table is generated DB so that it is marked as not necessary in my model.
2. a popup in windw dialogue form is created asking required data and not need to be completed.

Now the user enters data and click on the OK button. The OK button calls a method that does the following.
1 validates the data user and if OK we continue on another that I have send a message to the user to correct the data.
2. the new line is posted. I must do this so that I can I hope to add value to the PK that is not created by the DB until the validation.

I have 2 questions:
1. I need to get this PK value so that I can write a record in a table of audit and also do something else with this value. I can't get that to work.
2. After all other work, I want to return to the table with the new selected line. I can't get that to work either.


I have attached the portion of my method in question below this 2 issues. 3 fault code lines are in bold. Could you please provide guidance as what I might want to try.






BindingContainer lBindings = getBindings();

now, I'm doing some validation before committing

Validation of new line... must start now because the primary key is generated DB
OperationBinding = lOperationBinding
lBindings.getOperationBinding ("Commit");
Object lResult = lOperationBinding.execute ();

Download the new line
DCIteratorBinding = lIteratorBindings
(DCIteratorBinding) lBindings.get ("myTable1Iterator");
ViewObject lVO = lIteratorBindings.getViewObject ();
VORowImpl Lrowrequired = (VORowImpl) lVO.getCurrentRow ();

Create and insert the Audit record
RowIterator lAuditIterator = lRow.getAudit ();
AuditVORowImpl = lAuditRow
(AuditVORowImpl) lAuditIterator.createRow ();
lAuditRow.setId (lRow.getId ()); _*
set the other fields on the lAuditRow

Validate the new line of verification
lOperationBinding = lBindings.getOperationBinding ("Commit");
lResult = lOperationBinding.execute ();

refresh the VO
DCIteratorBinding = lDciter
(DCIteratorBinding) lBindings.get ("myTable1Iterator");
Key lCurrentKey = lDciter.getCurrentRow () .getKey (); _*
lDciter.executeQuery ();

Define the new line created as the selected line in the table during update
lDciter.setCurrentRowWithKey (lCurrentKey.toStringFormat (true)); _*

refresh the page fragment "store Group view.
AdfFacesContext.getCurrentInstance () .addPartialTarget (this.getTable ());

User,
I see two possible things to try.
1. check the entity behind the new line and make the key attribute "update after inserting" to ensure that you get the key based on the sex of the db.
2 use a sequence of db and you get the key before inserting the row into the db. Then you know the key.

One last thing, you should check for errors after executing an operation...

Timo

Tags: Java

Similar Questions

  • How can I get the PageItem selected in InDesign

    Hello

    After the application of a floating panel and the receiveing the "afterSelectionChanged"-event I would get the PageItem selected, if one is selected...

    In the datastructure, I can only find the activeLayer (event.target.activeLayer) and the activePage (event.target.activeLayer), but not activePageItem or more.

    Is it possible to get this PageItem?

    best thanks for any advice.

    Lorenzo

    App.Selection

    It's a table. If there is only one it'll be app.selection [0]...

    Substances

  • How do I get the table cells?

    It's my get code that any object in propagation.

    Int32 childCount = parent-> GetChildCount();

    for (int32 /IndexEnfant = 0; childIndex < childCount; /IndexEnfant ++)

    {

    InterfacePtr < IHierarchy > child (parent-> QueryChild (childIndex));

    ChildUIDRef = UIDRef: GetUIDRef (child);

    TextFrame table

    }

    How do I get the table cells?

    You can access the table using ITableModel and GridAddresscell.

    But to get to the ITableModel since ITextModel implies some complexity.

    Few things to understand:

    -L'interface that corresponds to the written document is ITextModel

    -The recommended method to iterate tables in a story done by ITextStoryThreadDictHier

    -Get the ITextStoryThreadDictHier on the history and the main thread as ITextStoryThreadDictHier::NextUID()

    -Now get ITextStoryThreadDict for UID and query for ITableModel. If you get ITableModel, then you have found the table.

    Once you have ITableModel you can get ITableCell as follows:

    ITableModel:QueryCellContentBoss(GridAddress); Give ITableCell

    You can refer to SnipperRunner (SnpManipulateTextModel).

    Download text template table model:

    InterfacePtr textModel (storyUIDRef, UseDefaultIID());

    InterfacePtr textStoryDictHier (textModel, UseDefaultIID());

    NextUID UID = sourceStory.GetUID (); / / Download the main thread dictionary

    Now loop the dicthier to iterate through all the threads dicts.

    InterfacePtr textStoryThreadDict (sourceStory.GetDataBase (), nextUID, UseDefaultIID());

    InterfacePtr tableModel (textStoryThreadDict, UseDefaultIID());

    If (tableModel) / / the storythreaddict represents a table

    {

    You are now in a table

    }

  • using the function - how to use the values of the input variables on the table select statement names

    Hello community, I have a problem when creating a function. The purpose of this function is to check the table of weather gave yesterday or not. We must check this on different tables on different sachems. We are creating a function with input variables.

    CREATE OR REPLACE FUNCTION IN_SCHEMA.IS_YDAYDATA_TO_TABLE

    (

    in_schema IN VARCHAR2,

    in_tablename IN VARCHAR2,

    in_datefield IN VARCHAR2,

    )

    RETURNS INTEGER

    AS

    -Declaring variables

    v_is_true INTEGER.

    BEGIN

    SELECT

    CASE

    WHEN MAX (in_datefield) = TRUNC(SYSDATE-1)

    THEN 1

    ON THE OTHER

    0

    END

    IN

    v_is_true

    Of

    in_schema.in_tablename

    ;

    RETURN v_is_true;

    END;

    /

    When creating, I got error: [error] ORA-00942 (44:19): PL/SQL: ORA-00942: table or view does not exist

    How to use the values of the input variables on the table select statement names?

    Hello

    Here's a way you can use dynamic SQL statements for this task:

    CREATE OR REPLACE FUNCTION IS_YDAYDATA_TO_TABLE

    (

    in_schema IN VARCHAR2,

    in_tablename IN VARCHAR2,

    in_datefield IN VARCHAR2,

    in_first_date DATE DEFAULT SYSDATE - 1,.

    in_last_date DATE by DEFAULT NULL

    )

    RETURNS INTEGER

    AS

    -IS_YDAYDATA_TO_TABLE returns 1 if in_schema.in_tablename.in_datefield

    -contains all the dates in the in_first_date of the range through included in_last_date

    - and it returns 0 if there is no such lines.

    -If in_last_date is omitted, the search only the data on in_first_date.

    -If in_first_date is omitted, it defaults to yesterday.

    -Time parts of the in_first_date and in_last_date are ignored.

    -Declaring variables

    sql_txt VARCHAR2 (1000);

    v_is_true INTEGER.

    BEGIN

    sql_txt: = 'SELECT COUNT (*).

    || 'FROM ' | in_schema | '.' || in_tablename

    || 'WHERE ' | in_datefield | ' > =: d1'

    || «AND» | in_datefield | '< >

    || 'AND ROWNUM = 1';

    dbms_output.put_line (sql_txt |) '= sql_txt in IS_YDAYDATA_TO_TABLE");  -For debugging

    Sql_txt EXECUTE IMMEDIATE

    IN v_is_true

    With the HELP of TRUNC (in_first_date) - d1

    TRUNC (NVL (in_last_date

    in_first_date

    )

    ) + 1                -- d2

    ;

    RETURN v_is_true;

    END is_ydaydata_to_table;

    /

    DISPLAY ERRORS

    If you must use dynamic SQL statements, put all the SQL statement in a single string variable, such as sql_txt in the example above.  In this way, you can easily see exactly what will be executed.  Comment out the call to dbms_output under test is completed.

    Try to write functions that will address not only the question that you have now, but similar questions that you may have in the future.  For example, now that interest you only to the verification of the data of yesterday, but later, you might want to check another day or range of days.  The above function combines the convenience of a function simple (looks like yesterday data if you don't tell him otherwise) with the power of a more complex function (you can use the same function to check any day or range of days).

  • How to get the current selected action.

    Hello

    I would get the currently selected action.

    Please refer to the image below. Vignette (selection) is selected.

    Is there a script that I could use to get the which?

    Your help is very appreciated.

    Untitled-1.jpg

    getSelectedAction()
    function getSelectedAction(){
        var ref = new ActionReference();
        ref.putEnumerated( charIDToTypeID("Actn"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
        try{
            var desc = executeActionGet(ref);
        }catch(e){ return; } // no action selected
        var selectedName = desc.getString(charIDToTypeID("Nm  "));
        var selectedIndex = desc.getInteger(charIDToTypeID("ItmI"));
        var parentName = desc.getString(charIDToTypeID("PrNm"));
        var parentIndex = desc.getInteger(charIDToTypeID("PrIn"));
        if(isActionSet( parentIndex, parentName )){
            var setName = parentName;
            var actionName = selectedName;
        }else{
            var setName = findAction(parentIndex, parentName );
            var actionName = parentName;
        }
        return [setName,actionName];
    };
    function isActionSet( parentIndex, parentName ){
       var res = false;
       try{
          var ref = new ActionReference();
          ref.putIndex( charIDToTypeID( "ASet" ), parentIndex );
          var setName = executeActionGet( ref ).getString(charIDToTypeID("Nm  "));
          if(setName == parentName) res = true;
       }catch(e){}
       return res;
    };
    function findAction(parentIndex, parentName ) {
      var i = 1;
      var found = false;
      while (!found) {
        var ref = new ActionReference();
        ref.putIndex(charIDToTypeID('ASet'), i);
        var desc;
        try {
          desc = executeActionGet(ref);
        } catch (e) {
          break;
        } finally {
        }
        if (desc.hasKey(charIDToTypeID('Nm  '))) { ;
          var setName = desc.getString(charIDToTypeID('Nm  '));
            var ref = new ActionReference();
            ref.putIndex(charIDToTypeID('Actn'), parentIndex);
            ref.putIndex(charIDToTypeID('ASet'), i);
            try{
            var adesc = executeActionGet(ref);
            var actName = adesc.getString(charIDToTypeID('Nm  '));
            if(actName==parentName) return setName;
            }catch(e){}
          }
        i++;
        }
    };
    
  • How to get the items selected from indesign Document?

    Hi all

    I'm trying to get the objects selected by the user in the indesign document, to which the following code, I wrote, but his does not collect do not.

    LayoutTarget InterfacePtr < ILayoutTarget > (myContext, UseDefaultIID());

    if (layoutTarget == nil)

    {

    () CAlert::ErrorAlert

    "layouttarget sucks" );

    breaking ;

    }

    UIDList itemList = layoutTarget-> GetUIDList (kStripStandoffs);

    where mycontext is IActiveContext and after getting the itemlist (all managers of related texts).

    How to perceive the limits of the textframe? (TopLeft, TopRight, BottomLeft, BottomRight).

    Thanks and greetings

    Sanjeev.k

    You must initialize the ILayoutTarget with a CSB. As

    InterfacePtr iLayoutCSB (iSelectionManager-> QueryConcreteSelectionBoss (kNewLayoutSelectionBoss));

    InterfacePtr layoutTarget (iLayoutCSB, UseDefaultIID());

    HTH.

    Jasmine

  • How to read or get the current selected value of selectonechoice

    How to read or get the current selected value of selectonechoice, so that it can be used in the custom query.

    selectOneChoice11.getValue () m:System.NET.SocketAddress.ToString () returns the index of the list.

    from 0 - number of values in selectonechoice.

    I want to read the exact value of selected.

    Concerning

    Niaz M

    Why don't you try this?

    Re: Value of SelectOneChoice in valueChangeListener

    Both approaches will work...

    Julian

  • remove the table select row

    Hello

    I'm trying to find a way to delete a selected line in a text file. You can find a classic text file that join this message.

    I first try to insert the text file in the command using node property value drop-down list box, but I see that the first line. I did the same thing with a command table and it works! Now, I need to select a row and delete it. I try to use the node property of the active cell, but I always get (0,0). Why? Someone knows how to do?

    Better idea to do the same task is also welcome.

    LabVIEW 8.5 windows XP

    Thank you

    Francis

    Hi Francis,.

    You should try using the attribute SelStart to the table rather than the property of the Active cell.  Active cell is just used to set the active cell.  Here is a quick change that I made to your code that deletes the selected table row when you press the button Delete and resulting out of the table.  I hope that you should get pointed in the right direction.

  • Get the line selected in inputListOfValues returnPopupListener in JDev 12 c (12.1.3)

    Hi experts,

    We strive to migrate our 11.1.1.7 project in 12.1.3, but we are experiencing a problem with our generic returnPopupListener. It essentially uses the code from https://blogs.oracle.com/jdevotnharvest/entry/getting_selected_row_in_inputlistofvalues Frank Nimphius blogpost.


    public void returnListener(ReturnPopupEvent returnPopupEvent) {  
      //access UI component instance from return event
      RichInputListOfValues lovField = 
           (RichInputListOfValues)returnPopupEvent.getSource();
      
      //The LOVModel gives us access to the Collection Model and 
      //ADF tree binding used to populate the lookup table
      ListOfValuesModel lovModel =  lovField.getModel();
      CollectionModel collectionModel =
             lovModel.getTableModel().getCollectionModel();  
      
      //The collection model wraps an instance of the ADF 
      //FacesCtrlHierBinding, which is casted to JUCtrlHierBinding
      JUCtrlHierBinding treeBinding =  
             (JUCtrlHierBinding) collectionModel.getWrappedData();
      
      //the selected rows are defined in a RowKeySet.As the LOV table only
      //supports single selections, there is only one entry in the rks
      RowKeySet rks = (RowKeySet) returnPopupEvent.getReturnValue();
      
      //the ADF Faces table row key is a list. The list contains the 
      //oracle.jbo.Key
      List tableRowKey = (List) rks.iterator().next();
      
      //get the iterator binding for the LOV lookup table binding  
      DCIteratorBinding dciter = treeBinding.getDCIteratorBinding();
      
      //get the selected row by its JBO key  
      Key key = (Key) tableRowKey.get(0);
      Row rw =  dciter.findRowByKeyString(key.toStringFormat(true));
    
      //work with the row
      // ...
    
    }
    


    We found that this no longer the selected line returns, it returns "null". The DCIteratorBinding contains lines of 0, so the findRowByKeyString won't find any line.


    Has anyone got this piece of code works in 12 c? More precisely in 12.1.3?

    We found that this no longer the selected line returns, it returns "null". The DCIteratorBinding contains 0 rows, so that the findRowByKeyString won't find any line.

    Has anyone got this piece of code works in 12 c? More precisely in 12.1.3?

    It may be a bug.

    Have you tried: dciter.getViewObject () .findByKey (key, 1) [0];     instead of: dciter.findRowByKeyString (key.toStringFormat (true));   ?

    Dario

  • Could not commit: ORA-00928: lack of creating the table SELECT keyword

    Hello guys.
    I tried to create the table with web interface on oracle 11g.

    I just follow this path on interface: schema-> table-> create-> standard (lot organized)-> SQl select on (set using the)->
    and I just use these scripts to create the table:

    CREATE TABLE suppliers
    (the number (10) of supplier_id not null,)
    supplier_name varchar2 (50) not null,
    Contact_Name varchar2 (50)
    );

    but this error occurred: failed to commit: ORA-00928: lack of SELECT key word!
    Please lock on this picture for more information: http://s17.postimg.org/kgoumzmvz/attachment.jpg

    could you help me please?
    and I could not find any manual for working with the web interface in oracle 11g.
    Please give me somesources to start.
    Thank you.

    1003778 wrote:
    Thank you sybrand_b
    but I already read this document.
    Unfortunately, there is nothing on the creation of table with sql scripts in this document!

    and I really don't understand how to create table with SQL commands! My question has not yet been answered.
    you please give me little details about it?
    for example, how can create table using this sql command:

    CREATE TABLE suppliers
    (the number (10) of supplier_id not null,)
    supplier_name varchar2 (50) not null,
    Contact_Name varchar2 (50)
    );

    Thank you.

    Edited by: 1003778 may 3, 2013 11:43

    When you got to the CREATE TABLE screen, you have selected "set using the--> SQL.
    Did you notice in the window that appears, just above this entry field is this text: "enter a SQL * select * statement below.» ' + This query results will be used to fill the table with Canada.* + "(underlining)
    And hip, just to the left of this field is this text: «CREATE TABLE AS»

    He tries to build a ' CREATE TABLE AS SELECT... ». Creates a table with the same structure as the table in which you SELECT and fills with the results of this SELECT '. With your entry, you create a CREATE TABLE AS CREATE TABLE to read statement...

    If you want to create your tables with a simple CREATE TABLE command, go to sqlplus and do it. You want to have a graphical interface to help build a simple CREATE table, when you get to the CREATE TABLE page, just to stay there with the default "use Define-> column specification." If you want, after completing "build" your table specification here, you will have a "Show sql" option to show you the actual sql statement that will be executed to create your table.

  • Satellite L670-143 how to get the language selection during recovery?

    Hello

    I just started my L670 for the first time today, I'm Dutch speaking so I chose "Dutch" (Nederlands) as the language of the interface for my Win7 installation. Shortly after installation, I noticed that the usual folders that I have on my main PC (English) were not there,

    instead of the file * / Users / * we created a folder * / Gebruikers / *.

    Because I like to copy a lot of files / preferences of applications from my main PC to the laptop and I'm not comfortable with the Dutch interface, I would like to also the English interface.
    For this purpose, I decided to do the system restore to choose English as the main language just as it is on my main PC, taking * 0 * when starting, select F8, click the method of complete recovery from Toshiba, but now I can no longer choose between * Dutch/French/English * as the language of the main interface and it installs automatically with the Dutch language.

    How can I do the complete factory restore then I have the choice of the language back, so I can install English please?

    Please, if anyone knows how I can get back the language selection of interface with the Toshiba recovery method?

    Hello

    As far as I know, you can choose the language of the system only once at the start of the laptop for the first time.

    I think this laptop model was launched in three different countries and that's why you can choose your preferred language for the first time. After that, the selected language will still be available on the HARD disk, but other languages would be disabled.

    Maybe you can order a disk recovery in English from here:
    https://backupmedia.Toshiba.EU/landing.aspx

    Welcome them

  • How do I get the table/matrix of an image?

    Hi, at work we will develop a program that works with images. My question is how can I get the matrix or matrix of pixels in an image?

    Thank you.

    If you have IMAQ there is a picture of table VI

    If you do not have the IMAQ stuff, there is a picture in table VI in the Vision Toolkit free AD: http://vi-lib.com/

    [edit: Oops, missed the last line of your post there are EmcV]

  • 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);
    }
    };
    
  • before the "recalled" in the table selected lines

    12.1.3 JDEV

    It is difficult to explain the problem I see. So, I use a page to explain.

    I have a page with a few fields like these. The Magnifier is related to a taskFlowCall.

    PickListFields.jpg

    When click on the magnifying glass, pilot field, a pop-up screen will appear. The user clicks on search and retrieve a few results. The user selects then a few lines of the output. Click OK to close the pop-up window and return the results selected to pilot field.

    PickListPopup.jpg

    Now, the user clicks the magnifying glass on the field of the expedition. a shortcut for sending screen. Search to retrieve a few lines. Notice: two rows on the result table are highlighted when the first returned search results. They seem to be selected, but not really. Now, if the user selects OK to return, the rows returned are empty. The table of results of research somehow 'remember' the previous index of the selected row.

    If the user selects the other lines of the search results table and click OK, the rows selected by the user are returned correctly.

    PickListPopup2.jpg

    These windows two popup called the taskFlowCall even with different input parameter values.

    No idea how to solve this problem?

    Thank you.

    You can try to clear the selected rows from the table in your managed bean and run this code entering into the taskflow.

    RowKeySet ps = this.dynamicTable.getSelectedRowKeys();
    ps.clear();
    AdfFacesContext.getCurrentInstance().addPartialTarget(this.dynamicTable);

    In addition, mention the similar question previously asked: remove highlighting from the selected line in the table

  • How to reset the table selection

    Hello

    JDev 11.1.2.4

    I displays a table with the unique selection of lines. The first line is selected by default. I would like to reset this selection, so no row is selected. I wrote that code but it does not work:

    RKS RowKeySet = table.getSelectedRowKeys ();

    _logger.info ("RKS" + rks.getSize ());

    rks.removeAll ();

    _logger.info ("RKS" + rks.getSize ());

    RKS. Clear();

    _logger.info ("RKS" + rks.getSize ());

    table.setSelectedRowKeys (rks);

    Whenever rks.getSize () returns the value 1. It seems the removeAll or clear do not work.

    I also try to the current line of the null value, but it does not work either.

    Thank you

    The first line is selected by default. I would like to reset this selection, so no row is selected.

    Well, components interface user are related to the default line set so they will always be 'select' some row.

    You can try to remove selectedRowKeys property of your table (so this should remove selection effect), but the iterator will probably continue to point to the first line in all lines.

    Dario

Maybe you are looking for

  • LabVIEWIOControl

    Hello I would switch resource VISA as a parameter name to the module LV instead in him from LV How do I know the [name of resource VISA]. [Device name] and [VISA resource name]. [Session number]? K.

  • synchronize the Windows in my Iphone calendar

    I have a calendar on Windows Calendar I want to sync my iphone calendar.  How do I do that?

  • Dv4-2045DX software Deleted

    Dv4-2045DX has been in the garage because he had flashing lights of SCROLL CAPS as many post I've read here, I have fixed my now excellent work there. My grandson removed CYBERLINK DVD and POWER2GO and another, because he thought that it was a pirate

  • missing menu tasks tabs

    I'm missing tabs in the window TaskMenu

  • Windows and the Base filtering lack Windows, the Firewall Security Center services

    Original title: I have a problem with my computer. In my computer, the windows Security Center service, windows firewall and filtering basic service is missing. I know they are very important from another post on this forum. So, I'm worrying about my