How do I get the handle to the newly created line

Hello
I have a classic table with button to add a line, property of AutoText on the bean table is true.
I need to get a handle to the newly inserted row, once I click on Add button line.
I tried getCurrentRow and also vo.last (), but it does not work for me.
The new line is always added last (which is normal) but the cursor always go to the first row of the table that of why I guess currentRow don't get me the newly inserted row.

How can I put the cursor on the new line or get the current line add after click on the button in the row.
The workaround I use so far is defined the AutoText to false and then manage the button Add a new rank by rank to create on the VO but I want to assure you that the reverse also works.

Thank you
Anatoliy

Hello

We can create a line in 2 ways:

(1) setting the Autoinsertion property to true.
(2) dynamically by code

-wht im saying is that you can set the value of the attribute using the nd method 2 only. (Autoinsertion to false)

Concerning
Meher Irk

Tags: Oracle Applications

Similar Questions

  • Select and validate the newly created lines (data stop) in ADF

    Hi all

    Here's the problem of mine: I want to validate and save the data in the SERIAL_EXCHANGE table, include NEW_SERIAL_NO and OLD_SERIAL_NO. The OLD_SERIAL_NO is not allowed to save in 2 files, I used the getCurrentRow method to select the new created line and validate it. This method works when I do not change the selected line and create other rows consecutively. But when I do, the method does not work well.

    So I want to find a way to select newly created lines and validate their value before they are committed to the database. Please help if you have an idea how to solve.

    Thank you
    VnMa

    This in the right place - DB

    unique index on the old serial number
    foreign key to validate the existence of the old serial number of the other table

    In the ADF, you would use a unique key for the uniqueness and association EO to validate the existence of the other table.

  • Insert new line in VO, engaging, and then call vo.executeQuery () does not display the newly created line.

    Hi guys

    I use jdev 12.1.2.

    I have a question about stale view object and entity data object.  My use case is: I have an af:table bound to data that I use to insert a new row in the database.  I create the line with a call from createWithParams, and everything works fine with it.  I call commit on the application module that contains the view object, and the data is correctly inserted in the database table.  Then, as part of my needs, I call vo.executeQuery () on the view object, however the newly inserted row is not present in the af: table or view object.  The line does not appear until I leave my application and return to it.  Once I do this, the line is in the object view and appears correctly in the table.

    It is not enough that I need the view object to be aware of the new line (s) without having to restart the application.  Y at - it a setting I am missing in my display object?  I guess my entity object contains stale data, but I don't know how to refresh its data.  Thanks for reading.

    Lance

    Hello

    you use a viewCriteria, so the value of this method of execution both (database and memory) in the Panel of viewCriteria

    try it once

    Thank you

  • Delete operation does not remove the newly created line of VO

    Hi all

    I use Jdev 11.1.1.7

    I try to use a simple delete on a line of an af:table operation.

    The line is newly created (not in DB) and I have some autoSubmit = "true" defined on certain inputText of the table (not sure if it's relevant information).

    I followed the nice post of Andrejus on the immediate = "true" the button Delete.

    Andrejus Baranovskis Blog: Deleting line new form ADF (ADF followed Webinar)

    It works fine when I delete the line, it ignores validation and disappears from my af:table.

    But when I commit my transaction, all new lines, even those deleted, stored in DB.

    No idea what could be the problem?

    Let me know if you need me to post the code.

    Thanks for your time!

    I found the problem in the definition of my VO.

    The use of the entity has been defined with the property DeleteParticipant = "false"...

    What I don't understand is the reason why I had to go to the source to change, in the overview of the VO, the box is read-only...

  • How do you get the bulleted list lines that frame overflow to indent properly?

    Hi all

    How to configure InDesign to automatically indent bulleted lines that overflow the text frame.

    indent.png

    Thank you

    Add the amount of the withdrawals to the left that you want and then add a hanging indent by the same amount to the first line in the paragraph style

  • How to connect to the newly created user account?

    Original title: new account in picasa.

    I have 84, very computer illiterate, using Windows XP and I'm trying to work through the book "Picasa for Seniors.  The first thing he asked to do me is to create a new user account to use while I work my way through the book.  I created a new account, but cannot find anythiny on how to log in to the new account.    How can I do this?   Thanks for any help. Frank

    Hi Frank,.

    (a) If you restart or use change user, you will see the number of user accounts present your computer.

    (b) select the user want to log-in in the list account.


    Reference:
    How to create and configure user accounts in Windows XP?

    Hope the helps of information.
    Please post back and we do know.

  • Cursor does not focus on the newly created line.

    I use JDeveloper 11.1.1.4. Whenever I create a new line in the table of the adf, the cursor does not focus on new line. He always focuses on the last line that clicked before adding the new line.

    see that this can give some ideas

    Information about ADF: creating a new line and create update auto focus

  • How to always get the latest data in ADF rowSetIterator

    Hello guys

    I have a method that I run on pageLoad to check the data in the database. Here I use rowsetiterator. I get the data fine but if I insert a new row and load the page again once, he did not get the newly inserted line and watch the old line set.

    I tried to run the query on the iterator, but did not work. This is the Council of Europe that I use. Can you get it someone please let me know if I'm missing something?

    DCIteratorBinding MyDCIter is getBindings () .get ("MyView1Iterator") (DCIteratorBinding);.

    MyDCIter . executeQuery();

    RowSetIterator rsi = MyDCIter . getRowSetIterator().

    RSI. Reset();

    I guess I found the problem.

    He has been to the while loop. When I use while (rsi.hasNext ()) is the first line to jump and iteration of second line.

    So I changed to loop, as for (int i = 0; i)

  • Get the number of lines to different tables on the same line

    How can I get the number of lines for the different tables in a single line:

    SELECT count (A), count (B), count (C) table tb_a A, tb_b B, tb_c C;

    Thank you!

    Maybe if you want a little sophisticated look ;)

    select *
      from (select 'a' tbl_name,count(*) cnt
              from table_a
            union all
            select 'b' tbl_name,count(*) cnt
              from table_b
            union all
            select 'c' tbl_name,count(*) cnt
              from table_c
           )
     pivot (max(cnt) kount for tbl_name in ('a' as tbl_a,'b' as tbl_b,'c' as tbl_c))
    

    Concerning

    Etbin

  • How can I get the 'handles' using the Radial filter in Lightroom 6

    How can I get the 'handles' using the Radial filter in Lightroom 6

    Please press 'H' as advised by dj_paige.

  • How do I get the name of a duplicated or created control and add a reminder

    Hi all

    According to the number of entry points I need, I duplicate a digital or an input string to the DuplicateCtrl function. My question is, how do I get the name and id of the control that has been created, and how can I assign a callback to it? Alternatively, it would be better to create a fresh ctrl instead of duplicate?

    Thanks in advance!

    Hi TurboMetrologist,

    Why are you trying to get the name of constant control? Remember that you cannot use this name to address control; control names are in fact simply the macros in the file associated with the UIR, include in other words, the preprocessed compiler code and everywhere where the names of PANEL_CONTROL replaces the digital value as parameters to functions (and therefore 'control' parameter is an int value and not a char *)

    That's why NewCtrl () or DuplicateCtrl () functions return a control ID: this is the handle to the new object, the only way to handle it. You will need to store this handle in a nonvolatile memory so that you can access durng life program.

    In addition, there are other ways to assign a meaning to a control to pass on the name of constant control. For example, you can use the callbackData parameter to differentiate the different copies of a control.

    Let me explain with an example. You said that you need several entries (dynamically created that you don't know in advance how many of them use); a solution could be:

    • Design a master copy of a control in the IUR Editor, where it is easy to customize; also assign a callback function, if it must be common to all copies of the control
    • Assign a value to this control callbackData, programmatically for example SetCtrlAttribute (...,..., ATTR_CALLBACK_DATA, (void *) 1);
    • Duplicate the control, and then assign a different callbackData
      for (i = 2; I have< 5;="" i++)="">
      handle = DuplicateCtrl (...);
      SetCtrlAttribute (..., handle, ATTR_CALLBACK_DATA, (void *) I);
      }

    By operating this way, whenever the reminder of control is triggered by any control, it will receive the callbackData assigned, and you will be able to differentiate your code with a simple switch:

    switch (callbackData (int)) {}

    case 1: / / the master controls

    break;

    case 2: / / first dual control

    break;

    }

  • ICF custom connector; How can I get the values of the parameters of the recon calendar task?

    I'm trying to create a custom connector icf with progressive reconciliation. My recon schedule a task, I have the settings "attribute of Date additional Recon ' and 'last token" that should be used for gradual reconciliation.

    How can I get the values of the parameters ' attribute of Date additional Recon ' and 'last token "?

    ICF should handle this for you.

    The value of "attribute of Date additional Recon ' must be filled in the OperationOption (e.g. executeQuery() and PROCESSES of FilterTranslator has this as a method parameter).

    For the "last counter", you need to implement ' createGreaterThanExpression (GreaterThanFilter, filter, is not Boolean) ' in your filter translator class. You can get the attribute of the filter object. Look for a description here: http://docs.oracle.com/cd/E37472_01/apirefs.1112/e28159/oracle/iam/connectors/icfcommon/recon/SearchReconTask.html

  • How can I get the original xml code to a webservice called...

    I use WL 10.3.

    I created a WebService using WSDL as a starting point. The Web service is running as it should, but now I want to go back to the original XML that was passed in.

    I tried to collect the data to a string using JAXB, but he complains that there is no notation for @XmlRootElement - so, who does not work.

    I also tried to access the original data by injecting the WebServiceContext, but this value is always zero (not sure why that doesn't work)...


    Is someone can you PLEASE tell me how can I get the original XML code?

    You can use managers to this end, for example,

    package server.handlers;
    
    import javax.xml.transform.Source;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerException;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.stream.StreamResult;
    import javax.xml.ws.LogicalMessage;
    import javax.xml.ws.handler.LogicalHandler;
    import javax.xml.ws.handler.LogicalMessageContext;
    import javax.xml.ws.handler.MessageContext;
    
    public class ServiceLogicalHandler implements LogicalHandler {
    
        public boolean handleMessage(LogicalMessageContext context) {
            Boolean direction = (Boolean) context.get(LogicalMessageContext.MESSAGE_OUTBOUND_PROPERTY);
            if (direction) {
                System.out.println("LOGICAL - DIRECTION IS OUTBOUND");
            } else {
                System.out.println("LOGICAL - DIRECTION IS INBOUND");
            }
            return true;
        }
    
        public boolean handleFault(LogicalMessageContext context) {
            Boolean direction = (Boolean) context.get(LogicalMessageContext.MESSAGE_OUTBOUND_PROPERTY);
            if (direction) {
                System.out.println("LOGICALFAULT - DIRECTION IS OUTBOUND");
    
                LogicalMessage message = context.getMessage();
                Source payload = message.getPayload();
                try {
                    Transformer transformer = TransformerFactory.newInstance().newTransformer();
                    transformer.transform(payload, new StreamResult(System.out));
                } catch (TransformerException ex) {
                    ex.printStackTrace();
                }
            } else {
                System.out.println("LOGICALFAULT - DIRECTION IS INBOUND");
            }
            return true;
        }
    
        public void close(MessageContext context) {
        }
    }
    

    More information on managers can be found here: http://www.javaworld.com/javaworld/jw-02-2007/jw-02-handler.html

  • How can we get the names of police of every text layer in a document?

    Hi all!

    I wanted to know how we can get the names of fonts applied in each text layer in a psd file. I tried the following,

    NumLayers Int32 = 0;

    calculate the number of text layers.

    error = PIUGetInfo (classTextLayer, keyCount and numLayers, NULL);

    for (int i = numLayers - 1; i > 0;--i)

    {

    char * fontName = new char [100];

    Int32 len = 100;

    get the name of the font of each layer by index.

    error = PIUGetInfoByIndex (I, classTextLayer, keyFontName, fontName and len);

    }

    Suppose I have a document that has 2 layers of text and 2 layers of solid color as shown in the screenshot. Note that this document does not have a background layer. So, number of layers is 4.

    Forum.JPG

    If the layer is a layer of solid color, then I get the number of layers 0. But, if the selection of the layer is at all layers of text, I get number of layers 4. Why not get the number of layers 2 I requested info in the instruction text layers, PIUGetInfo (classTextLayer, keyCount and numLayers, NULL).

    In addition, I get error =-25922 to PIUGetInfoByIndex (I, classTextLayer, keyFontName, fontName and len).

    which is errReferenceNotFoundDefine.

    How can I go about it?

    Thank you!

    Hello

    I usually have "remember" United in what image is and then start working on it. This allowes me to iterate through layers when draft information or perform an action, and then set the document (in the previous state, with this wantsof user change course). Using this approach I am using index layers, but I don't know as I work on the layer is curently active layer.

    Now

    Getting the numbers of layer in a document:

    SPErr AMAutoPlugin::GetLayNum()

    {

    SPErr error = kSPNoError;

    numLayers Int32;

    Result PIActionDescriptor = NULL;

    Reference PIActionReference = NULL;

    error = sPSActionReference-> Make (& reference);

    If (error) goto returnError;

    error is sPSActionReference-> PutEnumerated(reference,classDocument,typeOrdinal,enumTarget);.

    If (error) goto returnError;

    error is sPSActionControl-> Get (& result, reference);.

    If (error) goto returnError;

    error = sPSActionDescriptor-> GetInteger (result, keyNumberOfLayers, & numLayers);

    If (error) goto returnError;

    stDocData.iNumLayers=numLayers;// is just my overall

    returnError:

    If (result! = NULL) sPSActionDescriptor-> Free (result);

    If (reference! = NULL) sPSActionReference-> Free (reference);

    error return;

    }

    Here is a part of the code (I hope you can understand that I have cut out a lot of)

    code that is not necessary in order to shorten the post) that retrieves the names of fonts.

    I used this approach since I have to get a lot more detailed information about text layers (not prsented here)

    I guess bu using routines from PIUGetInfoByIndex to aproprite, you can do much shorter.

    SPErr AMAutoPlugin::GetTextLayerAttributes(int index, TxtLayerInfo* info)

    {

    In order to clarify

    'info' is my structure that I filled with the data I need you can use somethong that suites you

    //

    UInt32 stringLength = 0;

    UInt32 STRL = 0;

    "" fontName char [255] = "";

    "" chariot of fontStyle [255] = "";

    "" char fontPSname [255] = "";

    HasKey Boolean = false;

    SPErr error = kSPNoError;

    DescriptorTypeID runtimeKeyID;

    DescriptorTypeID runtimeClassID;

    DescriptorTypeID runtimeTypeID;

    DescriptorTypeID runtimeUnitID;

    DescriptorTypeID runtimeEnumID;

    DescriptorClassID descClass;

    DescriptorEnumID enumValue.

    PIActionList listTextStyle = NULL;

    PIActionDescriptor descLayer = NULL; / / *

    PIActionDescriptor descPosition = NULL;

    PIActionDescriptor descTextLayer = NULL;

    PIActionDescriptor descTextStyle = NULL;

    PIActionDescriptor descFont = NULL;

    PIActionDescriptor descFontColor = NULL;

    PIActionDescriptor descClickPoint = NULL;

    PIActionDescriptor desclayerLocking = NULL;

    PIActionDescriptor descEFFECTS = NULL;

    error = sPSActionDescriptor-> Make (& descLayer);

    If (error) goto returnError;

    error = sPSActionDescriptor-> Make (& descTextLayer);

    If (error) goto returnError;

    error = sPSActionDescriptor-> Make (& descTextStyle);

    If (error) goto returnError;

    error = sPSActionList-> Make (& listTextStyle);

    If (error) goto returnError;

    error = sPSActionDescriptor-> Make (& descFont);

    If (error) goto returnError;

    error = PIUGetInfoByIndex(index,classLayer,0,&descLayer,);

    If (error) goto returnError;

    text

    error is PIUGetSingleItemFromDescriptor (descLayer, keyText, & descTextLayer, & descClass);.

    If (error) goto returnError;

    //

    get the police handle

    error = sPSActionDescriptor-> GetList (descTextLayer, keyTextStyleRange, & listTextStyle);

    If (error) goto returnError;

    error = sPSActionList-> GetObject (listTextStyle, 0, & descClass, & descTextStyle);

    If (error) goto returnError;

    error is PIUGetSingleItemFromDescriptor (descTextStyle, keyTextStyle, & descFont, & descClass);.

    If (error) goto returnError;

    font size

    error = sPSActionDescriptor-> GetFloat (descFont, keySizeKey, & dFontSize);

    If (error) goto returnError;

    Info-> dFontSize = dFontSize;

    name of the font

    error = sPSActionDescriptor-> GetStringLength (descFont, keyFontName, & stringLength);

    If (error) goto returnError;

    stringLength += 2;

    error = sPSActionDescriptor-> GetString (descFont, keyFontName, fontName, stringLength);

    If (error) goto returnError;

    Info-> sFName = fontName;

    NAME OF FONT PS

    error = sPSActionControl-> StringIDToTypeID ("fontPostScriptName", & runtimeKeyID);

    If (error) goto returnError;

    error = sPSActionDescriptor-> GetStringLength (descFont, runtimeKeyID, &STRL);)

    If (error) goto returnError;

    STRL += 2;

    error = sPSActionDescriptor-> GetString (descFont, runtimeKeyID, fontPSname, STRL);

    If (error) goto returnError;

    Info-> sPSName = fontPSname;

    font name style

    error = sPSActionDescriptor-> GetStringLength (descFont, keyFontStyleName, & stringLength);

    If (error) goto returnError;

    stringLength += 2;

    error = sPSActionDescriptor-> GetString (descFont, keyFontStyleName, fontStyle, stringLength);

    If (error) goto returnError;

    Info-> sFStyle = fontStyle;

    etc...

    Hope this helps,

    Kind regards

    Momir

  • How can I get the messages appear when sent even if my phone is locked. I only get messages across when I activate the phone

    How can I get the messages appear when sent even if my phone is locked. I only get messages across when I activate the phone

    Settings > Notifications > Messages > display on the lock screen

Maybe you are looking for

  • Lost the Apple - ID Cant access phone

    I lost my Apple ID and was locked out of my phone. The password reset option does not work for me. Is their any other way to reset the password? Thank you

  • iCloud video download

    Hello So, I bought an iPad Mini about 2 years ago and I've just started using iCloud backup yesterday. I already have all my photos on iCloud photos, so they had already sent to my iPad. The only problem I encounter is how to download videos on iClou

  • Removed stolen IPhone discovered my iPhone by thief - what now?

    My iPhone 6 has been stolen and set the mode lost. A phishing scam was told that the phone had been located and I fell for it. I have connected to what looked exactly like iCloud, then in a few minutes, my device has been removed from my iCloud accou

  • Microsoft DPM 2012 does support catalyst OST from HP StoreOnce?

    I know HP Data Protector and Symantec NetBackup support catalyst for HP StoreOnce using an OST plugin to interact with the HP StoreOnce B6200.  DPM supports the Catalyst?

  • Error number: 0x8DDD0007

    Error number: 0x8DDD0007