11.1.2.3 JDEV get the selected value of RichSelectOneChoice at the bean (but not in the value change listener)

We have implemented our own listener of downloading files to export the table data in Excel. The reason for this was that we did not want certain columns to export.

We have the collectionmodel table. All columns have been extracted from the table and for each column the value inside the component was read and written in the outputstreamwriter.

Now the problem is, we have a few selectonechoice fell in the columns of the table read-only. For components, it exports the data that the index selected and the value selected.

Is it possible that I can get the selectedValue of the component of type RichSelectOneChoice in the bean?

We use Jdev pointers 11.1.2.3... Any are appreciated...

Found the solution. Add LOV VO as iterator in a combination to page and access it as below... use index that selectonechoice.getvalue returns as well as the name of the iterator.

BindingContainer links is BindingContext.getCurrent () .getCurrentBindingsEntry ();.
DCIteratorBinding dciterContainer = (DCIteratorBinding) bindings.get (iteratorName);
Ri rank = dciterContainer.getRowAtRangeIndex (index.intValue ());
String val = (String) ri.getAttribute (attrName);

Tags: Java

Similar Questions

  • copy the input values in the text the text of input 2 input 1 using the value change listener

    Hello

    I have two text entry:

    input 1 & 2 text text entry.

    I need to copy in the text of entry 1 input values to enter text 2.

    How to apply this using value change listener?

    I did the following steps:

    (1) I chose 1 text entry and chose listener Value Change-> edit.

    Type a new name for bean & class.

    Should what the name of the method I add?

    Any help please?

    Hello

    Just follow the steps below.

    1 create a jspx page and drag drop two intput text on the page.

    2 linking these two text of entry to bean managed on the basis and the scope of bean on bean with property name inputVal1, inputVal2 and backing

    3. Select the input text 1, go to valueChangeListener property and use the existing bean and give some name of method and the copy of the code in the method below

    inputVal2.setValue (inputVal1.getValue () m:System.NET.SocketAddress.ToString ());

    4. set the autoSubmit = true for the 1st input text. Set partialTrigger = it1 (it1 is id of the 1st input text).

    Now run the page

    Thank you

    Nitesh

  • disable the value change listener until the previous process is complete

    I use Jdeveloper 12.1.2

    I have a text field that has a value change listener. The listener calls a function that manages a number of process and queries. The function then clears the text entry field and focus the cursor in the text entry field.

    My problem is that the user will enter the text back to back quickly it causes all locked up. Is anyway to prevent the user to enter additional text before the end of the listener.

    I tried the following, but he has not always prevented the user. At the beginning of the listener:

    FacesContext facesContext = FacesContext.getCurrentInstance ();

    UIViewRoot root = facesContext.getViewRoot ();

    InputText RichInputText = (RichInputText) root.findComponent ("it4");

    inputText.setDisabled (true);

    AdfFacesContext.getCurrentInstance () .addPartialTarget (inputText);

    then at the end of the listener, I re activated the field.

    inputText.setDisabled (false);

    AdfFacesContext.getCurrentInstance () .addPartialTarget (inputText);

    Maybe this can help: http://www.jobinesh.com/2010/10/preventing-user-input-on-fusion-web.html

    Dario

  • Query to get the last change in the particular column

    Hello

    [Update]
    I need help to find the last change to a particular to a table column.

    tell the table as
    t_address (phone_number, first_name, user_id, change_date)

    I need to find what was her last phone number change happened.
    Well, the date of change is updated for any changes in this table. I want to understand the change_date only when a particular field has changed (from the previous value). It seems a little complicated for me.

    t_address (phone_number, first_name, user_id, change_date)

    say for any change of phone_number, name it will be an entry in this table t_address. and change_date will be the inserted date.

    say

    USR_ID phone_number name change_date
    Hari 123 Henderson 12/12/2011
    Hari hari 123 12/11/2011
    Hari hari 345 12/10/2011

    now my requirement is to get 12/11/2011 as on that particular date, the phone number has changed from previous value.


    Please suggest.

    Published by: user7807429 on Sep 10, 2012 11:51

    Hello

    WITH t_address AS (
    SELECT 'hari' usr_id, 123 phone_number, 'harinath' first_name ,DATE '2011-12-12' change_date FROM dual UNION ALL
    SELECT 'hari' usr_id, 123 phone_number, 'hari' first_name ,DATE '2011-12-11' change_date FROM dual UNION ALL
    SELECT 'hari' usr_id, 345 phone_number, 'hari' first_name ,DATE '2011-12-10' change_date FROM dual
    )
    SELECT  usr_id
           ,phone_number
           ,prev_phone_number
           ,first_name
           ,change_date
    FROM    (
        -- Select only the rows where the phone number changed
        -- and max phone change date for each user
        SELECT  usr_id
               ,phone_number
               ,first_name
               ,change_date
               ,prev_phone_number
               ,MAX(change_date)
                OVER (PARTITION BY usr_id
                      ORDER BY change_date
                      RANGE BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING
                      ) max_change_date
        FROM    (
            -- Select the data together with the phone number of the previous row
            SELECT  usr_id
                   ,phone_number
                   ,first_name
                   ,change_date
                   ,LAG(phone_number)
                    OVER (PARTITION BY usr_id
                          ORDER BY change_date
                          ) prev_phone_number
            FROM    t_address
            )
        -- check for difference with decode because phone_number might be NULL
        WHERE   DECODE( prev_phone_number, phone_number, 1, 0 ) = 0
        )
    WHERE   change_date = max_change_date;
    
    USR_ID PHONE_NUMBER PREV_PHONE_NUMBER FIRST_NAME CHANGE_DATE
    ------ ------------ ----------------- ---------- -----------
    hari            123               345 hari       11.12.2011 
    

    You can include the current value if you join more intimate in the select t_user.

    Concerning
    Marcus

  • How to get the page change event?

    Hello.

    I know that get changed event document as ISignalMgr-> GetServiceID of CResponder::Respond.

    But how to get the event page?  average of the event's page add, delete, etc...

    Thank you.

    Hi K159,.

    You can spy on the InDesign debug Test/Spy/SpyPreferences menu for the observer notifications. Can add or remove a page and to analyze the output of the spy.

    On the kDocBoss, there is an interface IPageList form you can get the number of pages.

    Markus

  • How to get the track changes inserted / deleted text?

    Hello

    I have read the Adobe InDesign CS6 JavaScript Scripting Guide and wrote a JavaScript as below:

    var myChanges = app.documents.everyItem().stories.everyItem().changes;
    var myString = '';
    for (var i=0; i<myChanges.length; i++) {
            var myChange = myChanges[i];
            myString += myChange.userName + '\t';
            myString += myChange.date + '\t';
            myString += myChange.changeType + '\n';
    }
    alert(myString);
    

    My script can get the username, date and change the type.

    But the guide does not cover on how we can get him insert / delete changes?

    Thank you very much!

    The lines I wrote above deleted content work.

    Your problem is that not remove anything to show him because you started to follow the story of its creation.

    If you first create a story and then start tracking it and add, remove etc. your will see the scripts to get also deleted ones.

  • How to get the asset changed deployment event details

    Hello

    I created a deployment listener class to watch the changes to the file system of www, but the event does not provide any information about the assets that have been modified for the current deployment process.

    the type of the affected element and repositories concerned return null values.

    How to track the active details of file system of www changed using the deployment listener class.

    Thank you
    Jocelyne Meyer

    You must export an rmi to the BCC service that returns the modified files.
    Next to the agent, the auditor of deployment should call this rmi service and get the modified files.

    Here is the snippet of rmiservice at the end of the BCC.
    {getDeploymentData()}
    RepositoryView view is getDeploymentRepository () .getView ("repositoryMarker");.
    Qb = view.getQueryBuilder (generator) from query;
    QueryExpression expression = qb.createPropertyQueryExpression ("deploymentId");
    QueryExpression val = qb.createConstantQueryExpression (deploymentId);
    Query query = qb.createComparisonQuery (expression, val, QueryBuilder.EQUALS);

    RepositoryItem [] deploymentData = view.executeQuery (query);

    for (int i = 0; i)
    {
    String repositoryPath = (String) ((RepositoryItem) deploymentData.getPropertyValue ("deploymentData")) .getPropertyValue ("source");
    String itemDescName = (String) deploymentData [i] .getPropertyValue ("itemDescriptorName");
    String itemId = (String) deploymentData [i] .getPropertyValue ("itemId");
    Repository repository (Repository) = Nucleus.getGlobalNucleus () .resolveName (repositoryPath);
    String uri = "atgrep: /" + repository.getRepositoryName () + "/" + itemDescName + "/" + itemId;

    If (isLoggingDebug ())
    {
    logDebug ("uri =" + uri);
    }

    assetURIs.add (uri);
    } / / end of course of the items in the repository deploymentData
    } / / If deployment
    }

    Peace
    Shaik

  • Address bar does not match tab is selected. How can I get the address change and correspond to the tab I select a tab that has been previously loaded?

    If I open a new tab and type a url in the address bar tab load very well. When I return to an already open tab, the tab looks fine, but the address bar still shows that last typed url, not the url of the 'active' tab I do not see the url of the active tab and I can't use the "return", "Refresh", etc...

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions of the origin of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

  • Jdev ADF 11G: selection of multiple rows in a table does not work

    Hello

    I'm having a problem to select several lines in a table ADF using Jdev 11 G.

    A table of the ADF fell on the JSP and "Line Selection" is checked, when asked. In properties, change "RowSelection" "multiple". When running, the table upwards without that user can check for lines that they want to select the first column. A row can be selected by clicking anywhere on this line. Even with the 'Control' key is pressed, it does not allow the user to select multiple lines.

    Y at - it something wrong this function or have I missed something? Help, please.

    Thank you very much

    Annie

    Try this. delete this table. Drag 'n drop it again. Just change rowSelection "multiple" to "single". Run the page and see. in this way, you know what was wrong if it works?

  • Why Distributed Transaction error at the Message bean but not not Backing Bean?

    Hi guys,.

    * Update * I read the second post first.

    Using JDeveloper 12.1.2.0.0 and integrated WebLogic server of the same version.

    I have an ADF program where a draft of the application using JDBC in a message bean.  If I create an Application Module within the project and then sign in using its connection (java: comp/env/jdbc/MyAdfConnDS), then the code below works fine.  However, if I search connection JDBC (jdbc/MyJdbcDS), I have configured in WebLogic myself, then I distributed transaction errors.  How can I configure my JDBC connection to imitate the one who creates the AppModule?  This way I can run prepared explicitly stated and validation of the call?

    Here is my code JDBC

            conn.setAutoCommit(false);
            PreparedStatement statement = conn.prepareStatement(sql);
            statement.setLong(1, companyAccountId);
    // errors here
            statement.execute();
            conn.commit();
            statement.close();
    
    
    

    Which results in the error

    // prepared statement.
    DELETE BUSINESS_PARTNERS WHERE MASTER_TYPE_KEY = 'C' AND COMPANY_ACCOUNT_ID = ?
    java.sql.SQLException: Cannot call commit when using distributed transactions
                at weblogic.jdbc.wrapper.JTAConnection.commit(JTAConnection.java:373)
                at com.sample.myProduct.jms.clients.MyClient.deleteEntities(MyClient.java:211)
                at com.sample.myProduct.jms.clients.MyClient.importData(MyClient.java:155)
                at com.sample.myProduct.jms.beans.ImportMessageBean.onMessage(ImportMessageBean.java:91)
                at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:575)
                at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:477)
                at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:375)
                at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4855)
                at weblogic.jms.client.JMSSession.execute(JMSSession.java:4529)
                at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3976)
                at weblogic.jms.client.JMSSession.access$000(JMSSession.java:120)
                at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5375)
                at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:550)
                at weblogic.work.ExecuteThread.execute(ExecuteThread.java:295)
                at weblogic.work.ExecuteThread.run(ExecuteThread.java:254)
    
    
    

    Here is a screenshot of all the available drivers: www.williverstravels.com/JDev/Forums/Threads/3544909/drivers.png, as well as the configuration of the transaction screen www.williverstravels.com/JDev/Forums/Threads/3544909/config.png

    I've tinkered enough to feel quite strongly, it is not an error in coding, but rather something in Weblogic.  I read what I can, but I don't know how the AppModule creates connections.  I would not add an AppModule just to retrieve its data source / login information if I don't.

    Ideas?

    Obviously, your message bean is configured to participate in a global transaction (for example, a JTA transaction). It is a behavior of the default message bean, even if you have not explicitly configured. When you get and use a JDBC connection in your message bean, this connection is attached to and participates in the overall transaction message bean (because you used compatible driver Oracle XA, it is seen on the 1st screenshot in your post), so you cannot perform local validation on the JDBC connection.

    Commit / rollback in this case can only be performed on the overall transaction (if the message bean is configured with the transactions managed by container) to be automatically or manually on the UserTransaction object (if the message bean is configured with bean-managed transactions). In other words, you must remove the conn.commit () statement, which is erroneous and obsolete when it is used in your message bean. If the message bean uses transactions managed by container, the container will commit / rollback automatically at the end of the method all the resources involved in the overall transaction (including your JDBC connection). If the method completed successfully (without exception), a validation will be performed. If the method fails (i.e., it ends with an exception), a cancellation will be made. If the message bean uses bean-managed transactions, the transaction is committed/restored when you explicitly call UserTransaction.commit () or UserTransaction.rollback ().

    The code above worked in a managed bean because JSF, ADF BC or ADF Faces applications require and participate in JTA transactions, then your JDBC connection has not been attached to a global transaction and you were able to perform local validation on the JDBC connection.

    You have two options to solve the problem. It depends on if you want your operations of JDBC to be in a global transaction with the bean of the message itself and its other actions or not. If they must be in a global transaction, then just remove the conn.commit () statement from your code. If they shouldn't be in a global transaction, you must either configure the message bean not to participate in global transactions or to configure the data source to use the «of the (thin) Oracle driver...» "instead of"Oracle (XA Thin)... driver. " ». (Remember to score the DataSource DO NOT to participate in a global transaction in the 2nd page of the data source configuration dialog in the management of WLS Console).

    NB. I highly recommend that you keep the global transactions. If you choose not to use a global transaction, it can happen that you committed the JDBC operations but an exception that happens after that, so the JMS message is not removed from the queue of messages and it will be processed after that, which causes the same operations of JDBC to be played and committed twice which must be avoided.

    Dimitar

  • Support center XP has a redirect virus how can I get rid of him? IE8 and Google redirects but not on AOL

    I tried the plan of TDSS killer, MS esentials, McAfee, AVG, Reg Cure, MalWareBytes, AOL pc checkup to name a few, but still have the current redirect.

    DennisDeVries (snoopy055) Hi,

    1. what website it redirects to?

    2. did you of recent changes on the computer?

    3. where there any infection detected and deleted after execution of all tests on the computer?

    See the links below and check if it helps.

    What is the browser hijacking?

    http://www.Microsoft.com/protect/terms/hijacking.aspx

     

    Difficulty of your web browser hijacked

    http://www.Microsoft.com/security/spyware/browserhijacking.aspx

  • I can't get rid of Cyber-Security. Tried Perfect Uninstaller but not showing do not Cyber Security as an option to uninstall!

    Cyber-Security will not go away. have tried to uninstall, does not!

    See the article Remove Cyber Security (uninstall Guide) at bleepingcomputer.com .

  • Why the focus is on data read only Alta UI app samples / videos but not on data entry / change app / video samples?

    Mr President.

    When I go on YouTube or Alta models of sample I only found applications out there or videos but very little on how to enter data or change data or video applications.

    I want to build beautiful form of data entry, but I found very little advice and examples.

    Me not very imaginative, so I need some samples to build this seizure data forms or data entry tables.

    All samples build in the shoes of Alta UI please.

    Concerning

    Alta UI has nothing to do with the CRUD.

    As a simple goolge Let me google that you will give you plenty of samples.

    Timo

  • How to get the selected line in af:inputComboBoxListOfValues

    Hello

    Am on jdev 11.1.1.2.1.

    Uses af:inputComboBoxListOfValues component, I've done the component based on the id of 'service' and the display value is "name of the Department.

    In the value change listener I want to get the id of the selected service, but now I get only the name of the service. (using valueChangeEvent.getNewValue m:System.NET.SocketAddress.ToString (()))

    So is it possible to get the whole line and get the "department id" using that?

    Help, please.


    Thank you
    Hari

    Sorry for the confusion, necessary to check it out:
    This code should work:

        public void nameValueCangeListener(ValueChangeEvent valueChangeEvent) {
            FacesContext contxt = FacesContext.getCurrentInstance();
            valueChangeEvent.getComponent().processUpdates(contxt); // after this the new row is selected!
            BindingContext lBindingContext = BindingContext.getCurrent();
            BindingContainer lBindingContainer = lBindingContext.getCurrentBindingsEntry();
            JUCtrlListBinding list = (JUCtrlListBinding) lBindingContainer.get("YOUR_LIST_BINDING_NAME");
            Row lFromList = (Row)list.getCurrentRow();
            Object lAttribute = lFromList.getAttribute("YOUR_ATTRIBUTE_YUO_WANT_TO_GET");
        }
    

    Timo

  • 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

Maybe you are looking for

  • REGZA 40 "LCD TV emits noise high frequency

    A few months ago, I was lucky to win this TV, a 106 cm LCD Regza HD display.I was very happy because I could never afford it myself, and I am very happy with its performance in general. I found however is that it emits a high frequency noise that tri

  • U410 won't start - stuck in the Windows loading screen?

    Hi, I have a U410 that no longer starts. Don't know what he did stop. At startup, it loads the startup Lenovo screen, then the loading screen Windows 10 forever (balls chasing each other in a circle). I can't get combinations of keys F bring me to th

  • XP only sees 1 SATA drive

    I recently installed an SSD in my Pavilion a1130n. I plan to use the old HD for storage of pictures by plugging it into a different port. The BIOS recognizes the two discs, but XP does not work. After much trial and error, it seems that any player is

  • PDM file as a .wav file

    Hello I want to do a triggered acquisition of dynamic power spectrum and save it to a TDMS file. (XP pro, Labview 8.5, 5600 PXI and PXI-5620) And then, when I read it, I'll have the same dynamic power spectrum. My problem is that my "reading signal"

  • OfficeJet 4500: OSX 10.10.5, OfficeJet 4500, without color or scan

    I have updated to OS x 10.10 (new installation) and to configure my OfficeJet 4500.  I walked through the steps to do this in Control Panel and it is my printer and print, but only in black and white, and without scanning options appear to be availab