How execute with params at selection in a combobox?

I have this:
A data control for the payload of BPM:
<PROYECT_ID/>
<TASK_ID/>
<CATEGORY_ID/>
Was needed convert them into combobox. I did something like this: http://blogs.oracle.com/shay/entry/adf_query_with_parameters_and
All comboboxs work, but they need dependencies between their choices.
The task depends on proyect, and the category depends on proyect AND task.
In addition I have 3 view objects: ProyectsView, TasksView and CategoriesView. I edited TasksView query, adding WHERE TasksView.PROYECT_ID = :ProyectID.
How can I do a executeWithParams when the proyects combobox changes?
Thanks in advance.

You can use a value change listener on combobox and access the iterator binding and execute the query. Make sure you use the getNewValue(). Also this can be accomplished by making using cascading lov's, if you use this you do not have to manually query them.
http://oracamp.com/jdevadf-sample-cascading-lovs-oracle-adf-11g-update-1

Similar Messages

  • Making ADF Search case insensitive without using Execute with Params??

    I have a ADF search page baed on VO. I'm not Execute with Params form, instead i'm using normal ADF search page. Is it possible to make the search case insensitive?? if yes, how to do that?

    Ok, i'll try to find out the SRDemo application using ADF BC.
    And In Execute with params form,i'm already using UPPER on both the sides of where clause.
    Say my VO query is like
    select <table name>,...
    from fnd_tables t,fnd_applications a
    where a.application_id = t.application_id
    and upper(t.table_name) like upper(:EntityName) || '%'
    Then i created the ADF paramaters form by dragging and dropping the Execute with param from data control pallette.. when i run this page and do the search, it throws the error given in my second update...Any clue why that error is coming?
    Thanks
    Senthil

  • How can I evaluate the count of a query I'd like to execute with a map...

    Hi. I have a problem with a query...
    I hava created a query which a execute with a Map (I use the
    executeWithMap(Map) method). The problem is that sometimes this query
    returns a large resultset. So, I would like to execute an other query
    (called query_count) before executing ther final query with the Map. If
    the query_count returns a count < 200, I execute the final query. How can
    I do ? There is an example I have read this in the documentation :
    Query query = pm.newQuery (Magazine.class, "price < 5");
    query.setResult ("count(this)");
    Long count = (Long) query.execute ();
    The problem in this example is that the query is not execute with a Map.
    So my question is : "How can we do the evalute the count of a query we
    would like to execute with a map ?". Thank you for any response.

    Hi John,
    You should be able to executeWithMap that query, too. Is that giving you
    problems?
    Note that there may be an easier solution. What do you do if there are more
    than 200 results? If, e.g., you just get the first N, then one option is to
    set the FetchBatchSize on the query to N (thus activating large result set
    support), and then call size () on the resulting Collection. This will
    issue a SELECT COUNT(*) to the database to determine the size automatically.
    Thanks,
    Greg
    "John" <[email protected]> wrote in message
    news:ctq9a8$4gr$[email protected]..
    >
    Hi. I have a problem with a query...
    I hava created a query which a execute with a Map (I use the
    executeWithMap(Map) method). The problem is that sometimes this query
    returns a large resultset. So, I would like to execute an other query
    (called query_count) before executing ther final query with the Map. If
    the query_count returns a count < 200, I execute the final query. How can
    I do ? There is an example I have read this in the documentation :
    Query query = pm.newQuery (Magazine.class, "price < 5");
    query.setResult ("count(this)");
    Long count = (Long) query.execute ();
    The problem in this example is that the query is not execute with a Map.
    So my question is : "How can we do the evalute the count of a query we
    would like to execute with a map ?". Thank you for any response.

  • How to replace the existing selection screen with new selection screen

    Hi,
    I have first selection screen with parametre as a table name, then I have created dynamic selection screen as 2nd selection screen with different fields of that table as select options. This is done using genaration of dynamic report. Now If I click on button on this 2nd selction screen , then I want to replace this 2nd dynamic selection screen , with the other selection screen fields.
    Can anybody guide me, How to do replace one slection screen with different selection screen.
    and one imp thing is this selction screen is populating with dynamic fields on it.
    Regards,
    Mrunal

    As I can understand you want to make some of the screen field to disable or visible on screen  depending upon the interaction of user with screen 1.
    You may use this example code in PBO of screen 2.
    LOOP AT SCREEN.
        " action has been taken to modify the area office screen as per the option chosen at screen 99.
        CASE ACTION.
            " if the user has taken up the option of UPLOAD
          WHEN 'UP'.     " screen processing while we upload the plan
            " during upload we will make dates as output fields only
            IF SCREEN-NAME = 'ZSDTPLANVRSIO-DAT_TO' OR SCREEN-NAME = 'ZSDTPLANVRSIO-DAT_FRM'.
              SCREEN-INPUT = 0.
              MODIFY SCREEN.
            ENDIF.
            " also make 2 buttons disabled
            IF SCREEN-NAME = 'AO_DO' OR SCREEN-NAME = 'AO_VE'.
              SCREEN-ACTIVE = 0.
              MODIFY SCREEN.
            ENDIF.
          WHEN 'DN'.      " screen processing while we upload the approved plan
            " during upload we will make dates as output fields only
            IF SCREEN-NAME = 'ZSDTPLANVRSIO-DAT_TO' OR SCREEN-NAME = 'ZSDTPLANVRSIO-DAT_FRM'.
              SCREEN-INPUT = 0.
              MODIFY SCREEN.
            ENDIF.
            " also make 2 buttons disabled
            IF SCREEN-NAME = 'AO_UP' OR SCREEN-NAME = 'AO_VE'.
              SCREEN-ACTIVE = 0.
              MODIFY SCREEN.
            ENDIF.
          WHEN 'VW'.      " screen processing while we view the plan
            " during upload we will make dates as output fields only
            IF SCREEN-NAME = 'ZSDTPLANVRSIO-DAT_TO' OR SCREEN-NAME = 'ZSDTPLANVRSIO-DAT_FRM'.
              SCREEN-INPUT = 0.
              MODIFY SCREEN.
            ENDIF.
            " also make 2 buttons disabled
            IF SCREEN-NAME = 'RLGRAP-FILENAME' OR SCREEN-NAME = 'FNAME'.
              SCREEN-ACTIVE = 0.
              MODIFY SCREEN.
            ENDIF.
            " and hide the file input field
            IF SCREEN-NAME = 'AO_DO' OR SCREEN-NAME = 'AO_UP'.
              SCREEN-ACTIVE = 0.
              MODIFY SCREEN.
            ENDIF.
        ENDCASE.
      ENDLOOP.

  • How to save varaint in a report program with tabstrip in selection-screen

    Hi Gurus,
    We have a custom report program and selection screen of this program has a tabstrip of 9 tabs. This program will run in background job and we are facing problem to save variant for this report program. 
    We saved one variant with 'TAB2' populated. But when we execute the report and select that variant and we are not navigated to 'TAB2' automatically. So, code for TAB2 is not triggerd and we are not getting desired output.
    When we set this program with variant in Job, program is not navigated to 'TAB2' as per variant setup.
    Is there any way to save variant for this kind of report ?
    Please help with your suggestions
    Thanks & Regards
    Chandan

    Thanks for your help.
    I found during debugging that it is holding the sy-ucomm of the first tab as default value.  So, I declared a new field in selection screen with No-Display option. When user will select a tab, this new field will hold the value of that sy-ucomm. As this field is in selection screen, it is getting stored in variant also.
    In start-of-selection of program I am checking this field value and accordingly set the TABSTRIP.
    Thanks again for your help.....
    Regards,
    Chandan

  • How to go about multiple inclination with different data selection in Delta

    We have to copy large amount of data ( more than 42lak of recodes) selectivly from on ODS to other ODS. in delata load ( BW 3.5 enverioment)
    I thought of loading data in slices through delta loading with selection condition.
    step 1> Do The initialization with selection condition as for calyear =2001 ( Init without data transfer )
    step 2> Take the delta load .. it will take all delta record with same selection
    step 3> Now I want to do Initialization with selection condition as for calyear =2002
    step 4> take the delta now it will take delta for year 2001 and 2002 both Right ?
    Here what problem I am facing.. while doing 2nd time initialization it prompt me to delete the last  initialization request form scheduler menu.
    if i delete the last request .. will it take the delta  for previous initialization selection  and new initialization selection. ?
    Please advice how to go about multiple inclination with different data selection in delta loading.
    Looking forward your reply.

    Hi,
    step 1> Do The initialization with selection condition as for calyear =2001 ( Init without data transfer )
    step 2> Take the delta load .. it will take all delta record with same selection
    step 3> Now I want to do Initialization with selection condition as for calyear =2002
    step 4> take the delta now it will take delta for year 2001 and 2002 both Right ?
    You are correct with this scenario normally. The message you mentioned normally comes up when you open a infopackage and don't change the selection first or in case you have overlapping selections with an already done init.
    regards
    Siggi

  • How can i declare a selection screen in a DP program with transaction code.

    hi friends,
    How can i declare a selection screen in a DP program with transaction code. What are the events and flow logic..

    Search in SCN/Google for Module-pool programming basics.

  • How to restrict user at selection screen while executing in background mode

    hi all,
    how to restrict user at selection screen while executing in background mode
    Regards
    Deepak

    Hi,
    We can get the Program whether this is running in background or not then we need to use SY-BATCH, if the SY-BATCH is set to X then the program is running in Background,
    so in the INITIALIZATION event, you can use this SY-BATCH and check the User names, and give the error messsage which you want to restrict
    Regards
    Sudheer

  • Exception in prepared execute on table SystemEvents: SELECT eventname,type,enabled,times,target,params FROM SystemEvents

    Hi all,
    I am trying to instal oracle webcenter in win server 2008 r2.
    but I am getting this exception (in "sites.log") and installation fails.
    Here's my stack trace.
    Any kind of help is appreciated.
    [2013-12-20 03:27:12,141 PST] [ERROR] [pool-7-thread-1] [fatwire.logging.cs.db] Exception in prepared execute on table SystemEvents: SELECT eventname,type,enabled,times,target,params FROM SystemEvents
    java.lang.NullPointerException
    at COM.FutureTense.Servlet.JDBCTable.prepare(JDBCTable.java:1767)
    at COM.FutureTense.Servlet.JDBCTable.executeQuery_trans_logic(JDBCTable.java:1628)
    at COM.FutureTense.Servlet.JDBCTable.executeQuery_trans(JDBCTable.java:1590)
    at COM.FutureTense.Servlet.JDBCTable.executeQuery(JDBCTable.java:1430)
    at COM.FutureTense.Servlet.JDBCTable.SelectRow(JDBCTable.java:1025)
    at COM.FutureTense.Common.ftDBTable.selectTo(ftDBTable.java:2229)
    at COM.FutureTense.Event.ftEvent.getEventsList(ftEvent.java:309)
    at COM.FutureTense.Platform.SystemEvents.SystemEventFactoryImpl.getSystemEvents(SystemEventFactoryImpl.java:62)
    at COM.FutureTense.Platform.SystemEvents.HeartBeat.run(HeartBeat.java:43)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
    at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
    at java.lang.Thread.run(Thread.java:662) less…
    java.lang.nullpointerexception

    Hi all,
    I am trying to instal oracle webcenter in win server 2008 r2.
    but I am getting this exception (in "sites.log") and installation fails.
    Here's my stack trace.
    Any kind of help is appreciated.
    [2013-12-20 03:27:12,141 PST] [ERROR] [pool-7-thread-1] [fatwire.logging.cs.db] Exception in prepared execute on table SystemEvents: SELECT eventname,type,enabled,times,target,params FROM SystemEvents
    java.lang.NullPointerException
    at COM.FutureTense.Servlet.JDBCTable.prepare(JDBCTable.java:1767)
    at COM.FutureTense.Servlet.JDBCTable.executeQuery_trans_logic(JDBCTable.java:1628)
    at COM.FutureTense.Servlet.JDBCTable.executeQuery_trans(JDBCTable.java:1590)
    at COM.FutureTense.Servlet.JDBCTable.executeQuery(JDBCTable.java:1430)
    at COM.FutureTense.Servlet.JDBCTable.SelectRow(JDBCTable.java:1025)
    at COM.FutureTense.Common.ftDBTable.selectTo(ftDBTable.java:2229)
    at COM.FutureTense.Event.ftEvent.getEventsList(ftEvent.java:309)
    at COM.FutureTense.Platform.SystemEvents.SystemEventFactoryImpl.getSystemEvents(SystemEventFactoryImpl.java:62)
    at COM.FutureTense.Platform.SystemEvents.HeartBeat.run(HeartBeat.java:43)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
    at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
    at java.lang.Thread.run(Thread.java:662) less…
    java.lang.nullpointerexception

  • How do I constrain anchor angle when I tug on a path with the direct select tool?

    How do I constrain anchor angle when I tug on a path with the direct select tool like it did in every version of Illustrator since 1988? New behavior is costing me time.

    That solves it!
    I was not able to find this in the online materials about the pen tool.  In fact, Illustrator Help | Adjust path segments does not show the new functionality at all.  They need to update that article.
    Better way to implement the new functionality
    It would have been nice if Adobe added to the chording controls for the direct select tool the ability to toggle this setting temporarily by holding down the space bar after mouse down to drag a segment.
    Before mouse down this would give the user the hand tool.
    If, after mouse down, I could hold space bar and have the behavior switch from the historical capability where dragging a segment cannot change adjacent segments to the new behavior where dragging the segment cannot move anchors but can rotate them, I am sure I would find times when the tool saved time. If, before mouse up, I release spacebar, turn the constraint back on with anchors pointing in their new directions and allow me to stretch the curve protecting the new shapes of adjacent curves.
    Using space bar for this would be intuitive to me because holding down the space bar is something I already do to organically drag the page around with the hand tool. The new tool allows me to more organically stretch artwork around, something that is distantly analogous, but close enough to remember.
    For long time Illustrator users, the chording features holding Ctrl/Alt/Shift/Space or Ctrl/Command/Shift/Space in different combinations while using the direct select tool and pen tool is the killer app part of Illustrator that keeps us using it. This what we did on Illustrator 88 on a Mac Plus in 1988 and is still the most productive way to produce vector art when precision is required.

  • How to get the inserted row primary key with out  using select statement

    how to return the primary key of inserted row ,with out using select statement
    Edited by: 849614 on Apr 4, 2011 6:13 AM

    yes thanks to all ,who helped me .its working fine
    getGeneratedKeys
    String hh = "INSERT INTO DIPOFFERTE (DIPOFFERTEID,AUDITUSERIDMODIFIED)VALUES(DIPOFFERTE_SEQ.nextval,?)";
              String generatedColumns[] = {"DIPOFFERTEID"};
              PreparedStatement preparedStatement = null;
              try {
                   //String gen[] = {"DIPOFFERTEID"};
                   PreparedStatement pstmt = conn.prepareStatement(hh, generatedColumns);
                   pstmt.setLong(1, 1);
                   pstmt.executeUpdate();
                   ResultSet rs = pstmt.getGeneratedKeys();
                   rs.next();
    //               The generated order id
                   long orderId = rs.getLong(1);

  • How to retrive data from selected checkboxes with fieldnames

    hi experts,
    how to retrive data from selected checkboxes with fieldnames into another alv grid report.(here the fieldnames selected from  table names is dynamically).
    thankx in advance
    rani.k.

    Hi,
    Use user_command in the alv grid and then
    do the follwoing code
    FORM user_command1 USING lv_ucomm LIKE sy-ucomm
                      rs_selfield TYPE slis_selfield.
    Declaration of local Variables
      DATA : lv_ref1 TYPE REF TO cl_gui_alv_grid.
      DATA lv_cnt TYPE i.                                    "+INS SUHESH 12.07.2008
    Check function code
      CASE lv_ucomm.
        WHEN 'ONLI'.
          CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
            IMPORTING
              e_grid = lv_ref1.
          CALL METHOD lv_ref1->check_changed_data.
    now loop ur final internal table where check = 'X'.
    now pass data to other internal table..Now the internal table will be having values that the user selcetd on the screen.
    Hope this helps.
    Regards,
    Nagaraj

  • How do I download only selected audiobooks from iTunes to my iPod.? I don't want to download the whole library..i have an iPod classic and Mac laptop with the latest ios.

    How do I download only selected audiobooks from iTunes to my iPod.? I don't want to download the whole library..i have an iPod classic and Mac laptop with the latest ios.

    If you check songs, simply sync the entire library.
    But I highly recommend (and it is far simpler) to create a playlist (or multiple playlists) and select only that playlist to sync.
    Leave everything checked.
    Then simply add/remove from these playlists and sync away.

  • How to transfer a few selected pictures I need from iPhone 4 Camera Roll with four hundred pictures to PC Vista. Just selected pictures not all folder

    How to transfer a few selected pictures from iPhone 4 Camera Roll with four hundred pictures to my PC Vista. Just selected pictures not all folder. Thanks

    You do understand though, that if something happened to your phone - if you lost it, if it were stolen, if you dropped it and were unable to access it, if it got wet - all those pictures that you had not transferred to your computer would no longer be so "handy." Just saying, I have not only read that horror story from many users on this forum, but have seen it live from many users in my own life. Do yourself a favor and back them up sooner rather than later by transferring them all now. Trust me on this, you won't regret it.

  • How to avoid the user selecting a different path in my installer

    Hello again all you helpful forum-goers!
    I have an application and a corresponding installer, and then I have a separate installer putting some support files in the same directory.  My problem is that if the user selects a different path to which to install my primary application, the secondary installer will not put the required support files in the same spot.
    Now, I think I've figured out how to get the user-selected path from the "Run executable at the end of installation" option in the Advanced pane of the LabVIEW installer configuration, and I can pass that in to my secondary installer, and that should fix the problem.  However, what I'd really like to do is just not give the user the option to install my primary application in a different directory to begin with.  I've looked, but cannot find any way to do that.
    Does anyone know of any way to not present the option to install an application in a different directory when using the LabVIEW installer?
    Thanks in advance for any suggestions,
    -Joe

    Ben64,
    That's great!  Thank you so much for your quick reply.  The only reason I haven't already accepted that as my solution is that it requires a manual post-compile change to a text file.  Ideally I'd prefer not to have to remember to do that every time I rebuild my installer.  Is there any way that you know of to automate the process?
    If not, I'm happy to have a good solution even if it takes an extra step each time to implement.
    -Joe

Maybe you are looking for