iterate threw the params to datacontoller when changing the selection of a LOV

Hello guys, I have a LOV Drivin' since a datacontrol, lets say the list of employees, the LOV has the employee name attribute as a value, how can I get this pragmatic Java employee ID when I change the selection LOV? uses JDev12.c thanks in advance

Try something like

BindingContext lBindingContext = BindingContext.getCurrent ();

BindingContainer lBindingContainer = lBindingContext.getCurrentBindingsEntry ();

List JUCtrlListBinding = lBindingContainer.get ("your_lov") (JUCtrlListBinding);

get the new index

int newindex = (Integer) valueChangeEvent.getNewValue ();

get list data

Line object = list.getDisplayData ();

Line lFromList = (Row) list.getValueFromList (newindex);

Object lAttribute = lFromList.getAttribute ("Id");

Timo

Tags: Java

Similar Questions

  • Configuration of the system "access denied" Error Message When change of selective startup to Normal startup

    I tried to get my XP to start without using the XP CD. I changed my system Config of selective startup to Normal startup, but I get the following message:

    "ACCESS DENIED ERROR WAS RETURNED WHILE ATTEMPTING TO CHANGE A SERVICE. YOU MAY NEED TO LOG ON USING AN ADMINISTRATOR ACCOUNT TO MAKE THE SPECIFIED CHANGES. »

    How, where and what is my administrator account. I'm the only one using this pc. What is my normal name & passowrd normal or what?

    Thank you

    Thomas

    Thomas,

    Follow the step on the next page to start the computer in Mode safe.
    Once you start the computer Safe Mode, the built-in "Administrator" account should appear. I'm not saying that your user account is not an administrator account, but just to be sure to use the one built for all purposes it may serve you.

    See you soon ~!
  • Problem with the selection list dynamic LOV using bind variables

    I have the following SQL to fill a selection list:

    Select d, ch from
    (
    Select ft. FAMT_NAME d, pi. R FAM_ID_T of FAMILY_TRA ft
    Join the ck list
    on ck.family = ft.famt_name and ck.newseq in (: NEWSEQ_QUERY_SQL)
    )

    Where NEWSEQ_QUERY_SQL is a part of the application that is defined by a calculation of page and essentially returns a list of values NEWSEQ based on some parameters of the user query. For example:

    Select distinct (ck.newseq) in the ck list where rownum < 20

    The query above works fine with SQL Developer and returns two columns needed (display_value, return_value)

    However, it returns no line, when it is used to fill the LOV to a selection list.

    If I replace the: NEWSEQ_QUERY_SQL with a list of NEWSEQ hard-coded, it works:

    Select d, ch from to)
    Select ft. FAMT_NAME d, pi. FAM_ID_T r
    of FAMILY_TRA ft join checklist ck on (ck.family = ft.famt_name and ck.newseq in ('K0242900', 'K0217200'))
    ) ;

    I can even replace: NEWSEQ_QUERY_SQL with hard-coded SQL and it works:

    Select d, ch from
    (
    Select ft. FAMT_NAME d, pi. R FAM_ID_T of FAMILY_TRA ft
    Join the ck list
    on (ck.family = ft.famt_name and ck.newseq in (select ck.newseq from the list ck where rownum < 20))
    )

    But if there is a connection variable (: NEWSEQ_QUERY_SQL), it doesn't.

    Selection lists are driving me crazy! They seem incredibly capricious.

    Hello:

    You cannot link a "sql statement" that bind the value you're trying to do.
    P2_FAMILY_LIST must be the SQL statement you executed for the LOV. Something like

    select d, r from
    (
    select ft.FAMT_NAME d, ft.FAM_ID_T r from FAMILY_TRA ft
    join checklist ck
    on (ck.family = ft.famt_name and ck.newseq in (select ck.newseq from checklist ck where rownum < 20))
    )
    

    CITY

  • Dynamically set a value based on the selected value of LOV

    Apex 4.2

    I can't create a dynamic action to set a value. I have used dynamic actions to hide and display areas but for some reason any cannot set a value.

    I have a list of selection-> P101_LIST. Type of source is "Column of the database". Source of value or an expression is "person_id" the query is as follows:

    Select first_name, person_id
    From Persons
    

    I have a display-> P101_DISPLAY value. Source type is 'static Assignment. The source value or expression that I left blank.

    I would like for each time the user selects a name of P101_LIST, the P101_DISPLAY element is updated to display the value (person_id) correspondent.

    Because there are other page elements / information on the page, I prefer that to not submit / update of the page. Would not want other page elements / information update.

    Any help on this would be greatly appreciated. Thanks in advance.

    Hello

    Create a DA:

    -event onChange P101_LIST

    -Action: PL/SQL

    -PL/SQL code:

    : P101_DISPLAY: =: P101_LIST;

    What to submit: P101_LIST

    Point of return: P101_DISPLAY

    And in fact.

    Kind regards

    Joni

  • How to return a query all the elements for an LOV if I select the "white point" (in this LOV)

    Hello. In my application, I have a classic report where, in a region, I built a toolbar with three Popup LOVs which interact with the report. Each LOV displays different items and returns the value according to the selected item.

    For example:

    Popup LOV 1 named P33_DEPARTMENTS has the following components: production, development, projecting, ecc.

    Popup LOV 2 named P33_LOCATIONS was the following: Europe, America, Asia, Africa, ecc.


    Popup LOV 3 named P33_DEVICES has the following: printer, keyboard, mouse, monitor, ecc.


    If I query the table to return the lines according to the selected in these LOVs I have something like this:


    SELECT * FROM < table > WHERE the dep =: P33_DEPARTMENTS AND loc =: P33_LOCATIONS AND dev =: P33_DEVICES


    Now I want that if the user selects all values (LOVs one white point) (or all), then the query must return all values for that LOV.

    For example, if for the named LOV P33_DEPARTMENTS 'white' value is selected, then the query must return to the table lines this cointain values "production ' OR 'developing' OR 'project', ecc for the columns named"dep".

    This means that must be the operator AND between LOVs but the operator or inside the LOV even, if the item is selected.


    How is it possible? Thank you

    SELECT *
    FROM T
    WHERE dep = nvl( :P33_DEPARTMENTS, dep)
      and loc = nvl( :P33_LOCATIONS, loc)
      and dev = nvl( :P33_DEVICES, loc)
    

    You just need to ensure that, when no value is selected, the LOV will return a NULL value.

    MK

  • Updated all the selected lines in a table.

    Hello

    Jdev Version 11.1.2.3.0

    I'm trying to update all the selected rows in a table with several choices.

            AppModuleImpl am = (AppModuleImpl)ADFUtils.getApplicationModuleForDataControl("AppModuleDataControl");
            ViewObject vo = am.findViewObject("RegistrationHistory1");
            RowKeySet selectedRegistrations = historyTable.getSelectedRowKeys();
    
    
            if (selectedRegistrations != null) {
                Iterator iter = selectedRegistrations.iterator();
                    while (iter.hasNext()) {
                        Object facesTreeRowKey = iter.next();
                        Row[] row = vo.findByKey((Key)((List)(facesTreeRowKey)).get(0), 1);
    
    
                        if (row != null && row.length == 1) {
                            Row r = row[0];
                             r.setAttribute("Attr", "1"); 
                        }
                    }
              }
    

    But after I put the attribute on the line. My iterator ignores most of the lines and they don't last updated.

    It works very well for the removal of the line well.

    Any suggestions?

    It turn out that I got a try catch and in the catch, I had a log (e.printStackTrace ()) and I do not see a single line in the diary saying ConcurrentModificationException appearing all the time.

    Looks for read-only access to an attribute or delete lines is OK to iterate over the selected lines, but it's different for the modification of an attribute.

    The code that worked:

    Links DCBindingContainer = (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();

    Entry DCIteratorBinding = bindings.findIteratorBinding ("RegistrationHistory1Iterator");

    RowSetIterator regRSiter = regIter.getRowSetIterator ();

    RowKeySet selectedRegistrations = historyTable.getSelectedRowKeys ();

    Object [] keys = selectedRegistrations.toArray ();

    for (Object key: keys) {}

    Line currentRow = regRSiter.getRow ((Key) ((List) key) .get (0));

    removeOrModify (currentRow);

    }

  • Need to fill out the field of text based on the selection after pressing an event in the OPS

    Dear all,

    I have a requirement as below

    I have a table of tip having a LOV field and I have a button to add a line so that I can add a row more lov field and after I am pressing a button to insert the LOV data into a table, my requirement is in the top of the page that I have text field, I have to fill the selected values of LOV in below format in this area.

    EX:

    Table of the advance:

    Row1:ABC

    Row2: DEF

    In the text field, I need ABC-> DEF in this format after pressing a button, and that the value should insert into the table in this form, please help me on this

    Thnaks

    Hello

    Advanced table: (SEE: SampleAdvnacedVO)

    RowNo ColLovValue

    1 ABC

    DEF 2

    Create an OAMessageTextInputBean (Id - ValueItm) and

    Set Property Render ${oa. RenderVO1.Render} with initial value as a BOOLEAN. FAKE.

    Button: Send

    Create a partial fire Action by clicking on the "submit" button

    Code central:

    Of the PFR:

    {if ("submitClick". Equals (PageContext.GetParameter (EVENT_PARAM)))}

    am.invokeMethod ("executeRenderVO");

    OAViewObject vo = am.findViewObject("SampleAdvnacedVO1");

    Line = vo.getAllRowsInRange ();

    String value = null;

    SampleAdvnacedVORowImpl voRow = null;

    for (int i = 0; i)< row.length;="">

    {

    voRow = rank (SampleAdvnacedVORowImpl) [i];

    value = value + "-->" + voRow.getColLovValue ();

    }

    System.out.println ("values-" + value);

    OAMessageTextInputBean valueItmBean = (OAMessageTextInputBean) webBean.findChildRecursive("ValueItm");

    valueItmBean.setValue (value);

    }

    GOT the Code

    public void executeRenderVO() {}

    OAViewObject vo = getRenderVO1();

    vo.executeQuery ();

    vo.insertRow (vo.createRow ());

    Line OARow = (OARow) vo.first ();

    row.setAttribute ("to make", Boolean.TRUE);

    }

  • Display screen when changing the programs problem

    I have a C670 - 17L and just recently I started having problems when switching between programs on the taskbar. Already when I used to click to change the programs screen of the selected program would open quickly. Now, it's much slower - it shows behavior similar to discoloration in transition on a Powerpoint presentation. Instead of a good quick change, it takes a few seconds.

    The only changes I did install Mozilla Thunderbird and Norton Internet Security, but I don't see why that should make a difference.

    Any help would be greatly appreciated - it's starting to drive me crazy!

    >.. .and Norton Internet Security...
    Remove Norton from the system and check if there is a difference. As far as I know that Norton is well known for slow performance s notebook due to his activity in the background.

    If you want to have the right antivirus software install Avira antivir.

  • got black screen when changing the screen background images

    got black screen when changing the screen background images

    can any one help

  • Should I reset the FPGA FFT when changing the input signal?

    Hello

    I have an application based FlexRIO where I do FFT on several incoming signals. The signals will be ranked so that I get first for example 4096 samples of Ch1 and Ch2 4096 samples, etc. This means that I don't have to do it in parallel of the FFT and I would like to reuse the implementation of FFT and windowing to reduce the use of resources.

    I intend using the VI Express followed by the Express VI of FFT window scaling

    http://zone.NI.com/reference/en-XX/help/371599J-01/lvfpga/fpga_scaled_window/

    http://zone.NI.com/reference/en-XX/help/371599J-01/lvfpga/fpga_fft/

    and I'll use them inside a SCTL.

    This figure comes from the section using the FFT and help illustrate the issue:

    There is a discount to zero terminal for the fenestration and the FFT VI.

    Are there internal registers in the windowing and FFT which force the image 1, image 2,... from the same signal or is it possible for the first entry in a framework of Ch1, the next frame belonging to Ch2, Ch3 gaze and so on and always get reliable results?

    Another way to ask the same question: if I have to reset the window and FFT when changing the input signal?

    Thank you

    Anders

    Hi Cyphish,

    When using the FFT of the LabVIEW FPGA vi express and windows nationwide express vi calculations are make it point by point so there will be no problem when going through different types of measures. Therefore, you should have no problem with your application.

    Best regards

    Menelaos.K

  • Screen fade slowly when changing from one page to the other

    Original title: melted screen

    Why my not to screen a slow fade when changing from one page to another.  Did not until recently.

    Hello

    1. what operating system is installed on your computer?

    2 are. what page you referring?

    3. when exactly are you facing this problem?

    4. have you made changes on the computer before this problem?

    If you use the Windows 7 operating system, you can follow the methods.

    Method 1:

    You can see the issue in the clean boot state. Read the following article.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/kb/929135
    Note: once you are done with the boot, please follow step 7 of article to reset your computer to normal startup.

    Method 2:

    I suggest you run the calibration of the colors of the display on the computer and check if it works.

    Calibrate your screen

    http://Windows.Microsoft.com/en-us/Windows7/calibrate-your-display

    Method 3:

    You can run the troubleshooter of display quality and check.

    Open the troubleshooter of display quality

    http://Windows.Microsoft.com/en-us/Windows7/open-the-display-quality-Troubleshooter

    Method 4:

    You can try to update the display adapter driver by visiting the manufacturer's Web site to download and install the latest driver package.

    For more information: update a hardware driver that is not working properly

    http://Windows.Microsoft.com/en-us/Windows7/update-a-driver-for-hardware-that-isn ' t-work correctly

    Update drivers: recommended links
    http://Windows.Microsoft.com/en-us/Windows7/update-drivers-recommended-links

    It will be useful.

  • 500 unexpected substitute error when changing the id of the application in - app. XML

    Hi, I'm debugging my app on the real PlayBook,

    I decided to change the application in the - app.xml id, since then, I get an error "500 unexpected substitute" when you try to run the FB4.5 application.

    This threa500 unexpected substitute at the launch of app browsing I understood the problem came from the ID of the application being changed, but not the inner packaging ID used to reference the app in the PlayBook.

    This is verified by looking inside the bar file for application id generated old and new application id, package id remains unchanged. (I think it's actually a bug in the SDK, I'd love to have confirmation of this from someone competent)

    so I thought OK, I'll just delete the app from the PlayBook to clear the former association IDPack applicationid and reinstall...

    but still no hope.

    Here is a detailed description

    old id of the application has been myOldAppID

    new application id is myNewAppID

    generated from the package id: myPackID (even for the two application ID)

    It seems that the PlayBook maintains a list of applications that have already been installed on it: I tried to delete the application from the command line using blackberry - deploy and the package id (obtained from the .bar):

    blackberry-deploy -uninstallApp -device 169.254.0.1 -password *** -package-id myPackID
    

    The app is removed as planned, it is deleted from the PlayBook, the command displays the result menu

    Info: Sending request: Uninstall
    Info: Action: Uninstall
    Info: Uninstalling myPackID...
    Info: Processing 0 bytes
    actual_dname::myOldAppID.debug.myPackID
    actual_id::myPackID
    actual_version::
    result::success
    

    The result, we see that the PlayBook concludes the old reference to my application and displays the ID of the application on line actual_dname

    now, if I run the same command, but with an obviously wrong package ID:

    blackberry-deploy -uninstallApp -device 169.254.0.1 -password *** -package-id someWrongID
    

    I get the result

    Info: Sending request: Uninstall
    Info: Action: Uninstall
    Info: Uninstalling someWrongID...
    Info: Processing 0 bytes
    actual_dname::
    actual_id::someWrongID
    actual_version::
    result::success
    

    Note the line actual_dname is empty, there is no reference for the application with package ID someWrongID

    Here, I'd rather see an output like "application not found for package id someWrongID" but anyway...

    So if I run the same command again, with my application package ID, I expect the line actual_dname will be empty, because the application has already been deleted, but the result is always:

    Info: Sending request: Uninstall
    Info: Action: Uninstall
    Info: Uninstalling myPackID...
    Info: Processing 0 bytes
    actual_dname::myOldAppID.debug.myPackID
    actual_id::myPackID
    actual_version::
    result::success
    

    Here, I see that the PlayBook still holds the former association of myOldAppID with myPackID, even if the application has been removed...

    I tried to restart the PlayBook, cleaning and reconstruction project, all without result... the reference remains in the PlayBook, and myPackID remains unchanged.

    NoI am blocked, if I want my app to debug, it seems that I must leave application ID with the old value...

    I would like to know, is it possible to remove completely an application and all of its references, of the PlayBook?

    And there at - there someone who can explain how the Package Id is generated, and if it's a bug or a feature?

    Thank you!

    Hi Julien,

    This problem is supposed to be fixed on the latest SDK version: 1.1.1. Could you please confirm what command line tools do you use?

    blackberry-airpackager -version
    

    will show you its own version.

    See you soon!

  • How to detect when the selected item ObjectListField changed?

    I expanded the ObjectListField to implement a scroller of marquee style iPod for long lines of text that will disappear from the screen. So far, I have everything works well, and it works as I expect... when it fires.

    I'm having a problem to find a way to make reliable activate. It doesn't seem to be any method I can substitute or any earpiece I can use that fires when the current list item is changed. I first tried setSelectedIndex substitution. That worked sometimes, because apparently the OS is not call setSelectedIndex when he wants to change the item selected, it does something else.

    Then I tried the substitution of navigationMovement and manually call the code to start the timer, but that no longer works (I was the substitution of method navigationMovement of the ListField, maybe I should have done the Manager instead?). But anyway this approach does work for the version of the storm of my application because the storm never calls navigationMovement.

    Then I tried to use a fieldChangeListener, but apparently who don't get fired for the selection.

    Finally in despiration I tried substitution of drawListRow, only qualifying when index equals the selectedRow. But my code of scroll calls invalidate, so of course it just causes a loop infinite drawListRow, slow down the device and not even starting the scroll, because whenever the timer is started, it cancels the old one.

    Anyone have any ideas on what I can do here? Thank you.

    Good end I could not fieldChangeNotify to the fire, no matter which I overrided, even with the first setting the listener. It only seems fair to shoot during the selection change event. One thing to note, I use an objectlistfield, not an ObjectChoiceField... maybe you are thinking as well to another area?

    Thanks for the help anyway, in the end I was able to get the desired effect by modifying the code slightly to reuse the same animation timer rather than create a new one when the selected item changes. The timer is started in the constructor of the ListField. Works very well.

  • ORA-1403 when change the type of file to APEX_APPLICATION_TEMP_FILES browser storage

    Hi all

    I'm new to APEX.  I use APEX 5.0 and try in site APEX Oracle using load data wizard to download the csv file.

    I managed to download data when the browser file storage type is obsolete WWV_FLOW_FILES.

    However, when I change the type of storage of Table APEX_APPLICATION_TEMP_FILES, system will prompt ORA-1403 when I click 'Next' to the Source of data loading page.

    Exception logging: Sqlerrm: ORA-01403: no Backtrace data: ORA-06512: at the "APEX_050000.WWV_FLOW_DATA_UPLOAD", line 564 ORA-06512: to the "APEX_050000.WWV_FLOW_PROCESS_NATIVE", line 975 ORA-06512: at the "APEX_050000.WWV_FLOW_PROCESS_NATIVE", line 1172 ORA-06512: to the 'APEX_050000.WWV_FLOW_PLUGIN', line 2017 ORA-06512: at the "APEX_050000.WWV_FLOW_PROCESS", line 188

    Someone able to guide how to diagnose this problem?

    Thank you, Dorothy

    DorothySG wrote:

    I'm new to APEX.  I use APEX 5.0 and try in site APEX Oracle using load data wizard to download the csv file.

    I managed to download data when the browser file storage type is obsolete WWV_FLOW_FILES.

    However, when I change the type of storage of Table APEX_APPLICATION_TEMP_FILES, system will prompt ORA-1403 when I click 'Next' to the Source of data loading page.

    Exception logging: Sqlerrm: ORA-01403: no Backtrace data: ORA-06512: at the "APEX_050000.WWV_FLOW_DATA_UPLOAD", line 564 ORA-06512: to the "APEX_050000.WWV_FLOW_PROCESS_NATIVE", line 975 ORA-06512: at the "APEX_050000.WWV_FLOW_PROCESS_NATIVE", line 1172 ORA-06512: to the 'APEX_050000.WWV_FLOW_PLUGIN', line 2017 ORA-06512: at the "APEX_050000.WWV_FLOW_PROCESS", line 188

    Someone able to guide how to diagnose this problem?

    It's bug #21478903: error when changing from APEX_APPLICATION_TEMP_FILES to download files

    Use the deprecated option for now.

  • Dynamic action: need to refresh the area when changing value radio button

    Hello

    I use Apex 4.2 worm.

    I need to apply a dynamic action with the refreshment area.

    I need to refresh the area when I change the value of the radio button.

    To do this, I created dynamic action on the changes and select the refresh option to update the region.

    But it does not.

    If you want to check, then see below for workspace:

    Workspace: APEX_ISSUE

    User name: [email protected]

    Password: kaushik1@34

    Please use Page no 5.

    Thank you

    Hi Maxence,

    CORINE wrote:

    Hi Kiran

    Thank you very much.

    It works very well.

    One more I need help, I need to scroll in the radio button because I'm showing type of booking successively from top to bottom.

    How can I set scrolling in the option box.

    Thank you

    What do you mean by scrolling in the option button?

    I applied a horizontal scrolling for the region containing radio buttons by using the suite in the attributes of the region:

    style="overflow-x:scroll;"
    

    If you apply the change just of vertical scrolling x to y.

    I hope this helps!

    Kind regards

    Kiran

Maybe you are looking for

  • Show only in the middle of the wide screen monitor webites

    I have a 25 inch wide HP - LCD HD monitor, since installation, Firefox AND Google Chrome only display the page in the center of the screen all scrunched up, there is nothing on both sides of the screen but the white color of the Web page I'm on (incl

  • Satellite A500 - 17 X restarts while gaming

    I recently bought a Toshiba Satellite A500 - 17 X to pc world.I also bought a 500 GB external drive (works with power!) & installed a few games on the outside [modern grid & ware2].I turn on the pc (with no battrey inside, only through his power) & s

  • HP Pavilion Notebook PC - letter N g6-1372sa has stopped working

    I have a HP Pavilion g6-1372sa Notebook PC, and last night at the N key suddenly stopped working, no matter what I do, its does not work.I have attached an external keyboard usb to the laptop computer and its operation, the on-screen keyboard is work

  • Froyo update dates

    Dear Motorola, May I know the sense of beginning of Q1 and Q1 2011... I think that 3 months ago in a quarter, a month has already passed, you must share the exact dates with the world. I can't wait for froyo update Please let us know the State.

  • Running commands in vMA

    I vMA upwards and have added a host of test using vifp addserver.How one then run type esxcli and vim - cmd commands against the hosts with the help of the vMA?Thank you!