Run query whenever list box changes

Hi there,
Please let me know on how to run a query whenever i change the list box. I suppose the tricky part here is to clear the block (eg. EMP) before i can select the list and run the query.
Thanks for your help

Hi Frank,
i've tried as per-instruction and end up the forms are not running and hangs. What i have in my forms, is a record group which i select distinct deptno from emp. Would you mind to explain me in details the steps ( i might wrongly putting the codes).
Thanks a lot and appreciated.
Newbie
Faizal

Similar Messages

  • Tablular Form List box change to trigger update in second column

    I have an updatable tabular form with one modifiable column via.a list box. I'm seeking a way if the column value in the listbox has been changed, the value in another column is updated too with the user's login name as part of the submit.
    Any direction and/or example would be appreciated. Thanks, -Jeff

    Hi Jeff,
    You can handle this in at least two ones - javascript or SQL triggers. I would recommend a trigger on the "Before Update" of the table. Something like:
    CREATE OR REPLACE TRIGGER "TABLENAME_BU"
    BEFORE
    UPDATE ON "TABLENAME"
    FOR EACH ROW
    BEGIN
    IF :NEW.LISTBOXFIELD != :OLD.LISTBOXFIELD THEN
    :NEW.UPDATEDBY := :NEW.USERID := nvl(v('APP_USER'),user);
    END IF;
    END;
    Regards
    Andy

  • Removing Items from Populated List-Box

    I have a drop down box populate a list box. (change: ListBox1.addItem(xfa.event.newText)) But I can add more then one of the same selection so how do I remove them from the ListBox. Upon click? somehow? I don't konw the lingo.

    There is a selectedIndex property that will give you back the index of the 1st item that is selected.
    Paul

  • 9i or 10g application running with JAWS - activating List Boxes

    The keyboard shortcut for activating List Boxes in a Web environment (either 9i or 10G) is to use ALT+DOWNARROW key. THis works absolutely fine when running without JAWS screen reader, but as soon as JAWS is loaded then ALT+DOWNARROW does nothing -- this seems to render any FORMS application inaccessible. I cannot believe that this is the case, given Oracle's position regarding section 508 / accesibility etc. Has anyone come accross this problem before, any ideas??

    Hi,
    For web application using PL/SQL and the old Oracle Application Server, it doesn't make a lot of difference between 9iASR2 and 10g. Last year we migrated one of our critical web application from OAS to 9iASR2 with no change of code. The new system is actually much more stable with less system crash.
    I would still recommend to migrate directly to 10g and skip 9iASR2.
    The reason is 10g(9.0.4) is really a maintenance version of 9iASR2(9.0.2) with all the required bug fix and some new features. We have been trying to migrate some applications to 9iASR2 for more than 1 year now but some technical issue stopped the production implementation. We are currently waiting for the 10g Windows version or we may try out the Linux version.
    There is a lot of good feedback related to 10g.
    Regards.
    Wade.

  • How to change the explain plan for currently running query?

    Hi All,
    I am using Oracle enterprise 9i edition. I have a query which frames dynamically and running in the database. I noticed a table with 31147758 rows
    in the query which has no indexes and taking more time to process. I tried to create an INdex on that table. I know the query is already running with a FULL table scan. Is it possible to change the explain plan for the current running query to consider the INDEX?
    [code]
    SELECT /*+ USE_HASH (c,e,b,a) */
    d.att_fcc extrt_prod_dim_id,
    d.att_fcc compr_prod_dim_id,
      a.glbl_uniq_id glbl_uniq_id,
      to_date(c.dit_code,'RRRRMMDD')STRT_DT,
      (to_date(c.dit_code,'RRRRMMDD')+150)END_DT,
      a.pat_nbr pat_id,
      a.rxer_id       rxer_id,
      e.rxer_geog_id  rxer_geog_id,
      a.pharmy_id pharmy_id,
      a.pscr_pack_id pscr_pack_id,
      a.dspnsd_pack_id dspnsd_pack_id,
      DENSE_RANK () OVER (PARTITION BY a.pat_nbr ORDER BY c.dit_code) daterank,
      COUNT( DISTINCT d.att_fcc ) OVER (PARTITION BY a.pat_nbr, c.dit_code) event_cnt
      DENSE_RANK () OVER (PARTITION BY a.pat_nbr,
    d.att_fcc
      ORDER BY c.dit_code) prodrank,
      DENSE_RANK () OVER (PARTITION BY a.pat_nbr,
    d.att_fcc
      ORDER BY c.dit_code DESC) stoprank
      FROM
      pd_dimitems c,
       pd_pack_attribs   d ,
        lrx_tmp_rxer_geog e,
        lrx_tmp_pat_daterank p,
        lrx_tmp_valid_fact_link     a
        WHERE c.dit_id = a.tm_id
        AND   e.rxer_id = a.rxer_id
        AND   a.glbl_uniq_id = p.glbl_uniq_id
        AND   p.daterank > 1
      AND   a.pscr_pack_id = d.att_dit_id
    [/code]
    The table lrx_tmp_pat_daterank is having that 31147758 rows. So I am wondering how to make the query to use the newly created index on the table?

    Why do you think using Indexes will improve the performance of the query? How many rows this query is returning? Optimizer might chose a Full table scan when it finds out that Index plan might not be useful. Why are you using /*+ USE_HASH (c,e,b,a) */ hint? This Hint will force oracle to use Full table scan instead of using the index. Try removing it and see if the plan changes.
    Regards,

  • How to change color of list box highlighting in Acrobat 9 Pro?

    When you create a list box in Acrobat 9 Pro you select the default value.  That default value displays on the form in a highlighted color.  Does anyone know how to change the color of the highlight or ideally make it no color?  Thanks.

    When you create a list box in Acrobat 9 Pro you select the default value.  That default value displays on the form in a highlighted color.  Does anyone know how to change the color of the highlight or ideally make it no color?  Thanks.

  • Changing the selection screen based on the option in list box option

    Hi Experts,
    I have a list box parameter in my selection screen,
    i have four options and i am changing my selection screen based the option selected.
    see my code below,
    at selection-screen output.
      GS_VRM_VALUES-KEY = '1'.
      GS_VRM_VALUES-TEXT = TEXT-S02.
      APPEND GS_VRM_VALUES TO GT_VRM_VALUES.
      GS_VRM_VALUES-KEY = '2'.
      GS_VRM_VALUES-TEXT = TEXT-S03.
      APPEND GS_VRM_VALUES TO GT_VRM_VALUES.
      GS_VRM_VALUES-KEY = '3'.
      GS_VRM_VALUES-TEXT = TEXT-S04.
      APPEND GS_VRM_VALUES TO GT_VRM_VALUES.
      GS_VRM_VALUES-KEY = '4'.
      GS_VRM_VALUES-TEXT = TEXT-S05.
      APPEND GS_VRM_VALUES TO GT_VRM_VALUES.
      CLEAR: GS_VRM_VALUES.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          ID                    = 'P_DROP'
          VALUES                = GT_VRM_VALUES
      EXCEPTIONS
        ID_ILLEGAL_NAME       = 1
        OTHERS                = 2
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    LOOP AT SCREEN .
        CASE P_DROP .
          WHEN '1'.
            IF SCREEN-GROUP1 = 'M2' OR
              SCREEN-GROUP1 = 'M3' OR SCREEN-GROUP1 = 'M4'.
              SCREEN-INPUT = 0.
             SCREEN-ACTIVE = 0.
              screen-invisible = 1.
              MODIFY SCREEN.
            ENDIF.
          WHEN '2'.
            IF SCREEN-GROUP1 = 'M3' OR SCREEN-GROUP1 = 'M4'.
              SCREEN-INPUT = 0.
             SCREEN-ACTIVE = 0.
              screen-invisible = 1.
              MODIFY SCREEN.
            ENDIF.
          WHEN '3'.
            IF SCREEN-GROUP1 = 'M2' OR
                SCREEN-GROUP1 = 'M4' .
              SCREEN-INPUT = 0.
             SCREEN-ACTIVE = 0.
              screen-invisible = 1.
              MODIFY SCREEN.
            ENDIF.
          WHEN '4'.
            IF SCREEN-GROUP1 = 'M2' OR
            SCREEN-GROUP1 = 'M3'.
              SCREEN-INPUT = 0.
             SCREEN-ACTIVE = 0.
              screen-invisible = 1.
              MODIFY SCREEN.
            ENDIF.
          WHEN OTHERS.
            IF SCREEN-GROUP1 = 'M2' OR
               SCREEN-GROUP1 = 'M3' OR SCREEN-GROUP1 = 'M4'.
              SCREEN-INPUT = 0.
             SCREEN-ACTIVE = 0.
          screen-invisible = 1.
              MODIFY SCREEN.
            ENDIF.
        ENDCASE.
      ENDLOOP.
    my problem is when i change the option in the list box, the particular modify group ie, the screen is getting changed only after i press enter, So please suggest me how i can change the screen without pressing enter.

    Hi,
    without using VRM_SET_VALUES...you just create one data element by going se11....create one domain for it...now give the values in the "value range" tab....and at the time of declaration just write ..
    PARAMETERS var1 TYPE <your created data element>
                        AS LISTBOX VISIBLE LENGTH 20
                        USER-COMMAND onli
                        DEFAULT <one value>.
    You will get the same effect as list box....and make it mandatory..
    Arunima

  • Need help to change format of list box

    I am very new to LIve Cycle Designer and I am trying to create a list box where users can select multiple items and their selections will show up not in a horizontal list form, but as a vertical running list like a sentence with commas separating the list of items selected.  Anyone know how to do this?

    As best I can tell there is no option to have a list/dropdown accept multiple selections by default.
    One way to accomplish your goal would be to capture each selection using a validate or exit event script, then populating another text field or multiple text fields with the list of selections delimited by commas.

  • How to change the order of the List box entries in GET attributes - Account

    Hi,
    We have four entries in the List box for the GET attribute in the Account. Please help me out, how we could change the order of the entries ? Is there any place in PCUI I can do the changes ?
    Thanks & Regards,
    Jagadees K Arumugam

    Hey Doc!
    Thanks for your effort!
    Seems like the picture I posted was confusing, I actually wanted to show, what indesign does, not what I want to achieve!
    I downloaded your template and that's exactly what I want to achieve! But I still have trouble reconstructing what you did:
    How did you link the captions to the TOC?
    The captions have a paragraph style which looks exactly like mine, also the paragraph style of the TOC doesn't look much different. So where does the difference hide?
    EDIT: Kannst Du mir sagen, wie diese Verlinkung auf Deutsch heißt? Dann find ich's vielleicht auch von selbst

  • Is there any option to be set so that the multicolum​n list box column and row can't be editable on run time

    In my application i am using multicolumn list box. Usually while running the program the column width is editable.
    in my program i should be able to select or hightlight the row , but should not be able to edit the row or column size.Is there any property node that have to be set so that the multi column list box colum widthshould not be  editable while the program is running.
    binoy

    Can't you just right-click and disable column resize?
    Message Edited by Michael Aivaliotis on 09-19-2005 11:54 AM
    Michael Aivaliotis
    VI Shots LLC
    Attachments:
    multicolumn.gif ‏10 KB

  • InfoPath 2010 - Multiple Selection List Box - Rule Does Not Run When Unchecking Value

    I have a multiple selection list box on a form. I have a rule that sets the value of another field. There is not condition. Just any time item is checked or unchecked the value of the other field should
    change. This works when checking an item in the list box but not when unchecking the item in the list box. My question is - do rules not fire for a multiple selection list box when unchecking an item?

    Hi,
    I have tested in my lab environment, the rules seemed only fire for the latest checking action, and it did not fire when uncheck multiple-selection list box. Here is a workaround for your reference:
    http://www.infopathdev.com/forums/p/17850/62269.aspx
    However, I’d recommend you use check box instead, since it is much easier to set rule according to value of it. We can set it as true when we check the box, and set it as false when we uncheck it as below:
    Then it is simple and clear to make rule according to the value of check box.
    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety,
    or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • How do i get the data present in the selected row at run time in Multicolumn list box?

    Hi,
    I am using multicolumn list box with three columns and i am having OK button.
    If the user selects particular row and then press ok then that row datas(that 3 values) has to get update in the file.
    Can u tell me how to get that selected row values alone and also how to append the list box value at run time?
    Thanks
    Meenatchi

    You can simply use the Value property of the MLBox to get the row selected & wire it to the Delete from array function with the Itemnames of the MLBox as the Input & Output of the Delate from array function.
    See the attached VI.
    - Partha
    LabVIEW - Wires that catch bugs!
    Attachments:
    Dbl-click Row to get Data & Delete.vi ‏41 KB

  • I have lost my toobar menu. F9 brings it back but the system reverts to a screen where the File/Edit/View/..  list disappears.  Have run a repair but no change. Any suggesteions ? Mike

    Hi
    I have lost my toobar menu - Adobe Acrobat X Pro. F9 brings it back but the system reverts to a screen where the File/Edit/View/..  list disappears.  Have run a repair but no change. Any suggesteions ?
    Mike

    Hi Mike ,
    You can refer to the following link to seek help regarding the missing tool bar issue .
    https://helpx.adobe.com/freehand/kb/restore-missing-toolbars-panels.html
    Hope this will help.
    Let us know how it goes.
    Regards
    Sukrit Dhingra

  • Selection screen list box with run time values

    Hi,
    I have to create a selection screen list box with with values at run time.
    This is actually for a maintanence view.
    Please help.
    Thanks
    Vimalraj

    Have a search in SDN and elsewhere for the function module 'VRM_SET_VALUES'... for example there's one at:
    Re: Listbox with Function code in Table control
    wherein the 2nd listbox contents are driven from the option selected in the first listbox.
    Jonathan

  • How do i change this code so when i select a track in the list box it goes into the text box

    Public Class Form3
    Dim numofrecords As Integer
    Dim NextID As Integer
    Dim RecordNumber As Integer
    Private Tableformat As String = "{0,-8}{1,-20}{2,-20}{3,-10}{4,-20}{5,-20}"
    Private Sub Form3_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    FileOpen(1, "Tracks.dat", OpenMode.Random, , , Len(Tracks))
    numofrecords = LOF(1) / Len(Tracks)
    If numofrecords = 0 Then
    NextID = numofrecords + 1
    Else
    FileGet(1, Tracks, numofrecords)
    NextID = Tracks.TrackID + 1
    End If
    FileClose(1)
    txtTrackID.Text = NextID.ToString
    End Sub
    Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click
    ' Get the song info from the form
    Tracks.TrackID = txtTrackID.Text
    Tracks.Title = txttitle.Text
    Tracks.Artist = txtartist.Text
    Tracks.Genre = txtGenre.Text
    Tracks.Duration = txtduration.Text
    Tracks.era = txtera.Text
    Tracks.Otherinfo = txtBlurb.Text
    Tracks.IsDeleted = 0
    ' write the record to file
    FileOpen(1, "Tracks.dat", OpenMode.Random, , , Len(Tracks))
    FilePut(1, Tracks, numofrecords + 1)
    'Close file
    FileClose(1)
    ' add one to the number of records
    numofrecords = numofrecords + 1
    NextID = NextID + 1
    txtTrackID.Text = NextID
    ' place cursor in id box
    txtTrackID.Focus()
    'clear form
    txtartist.Text = ""
    txtduration.Text = ""
    txtera.Text = ""
    txtGenre.Text = ""
    txttitle.Text = ""
    End Sub
    Private Sub Button10_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClear.Click
    txtartist.Text = ""
    txtduration.Text = ""
    txtera.Text = ""
    txtGenre.Text = ""
    txttitle.Text = ""
    txtTrackID.Text = ""
    End Sub
    Private Sub lstsongs_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lstsongs.SelectedIndexChanged
    'get selected record
    RecordNumber = lstsongs.SelectedIndex
    'lblDebug.Text = RecordNumber
    FileOpen(1, "Tracks.dat", OpenMode.Random, , , Len(Tracks))
    FileGet(1, Tracks, RecordNumber)
    FileClose()
    'populate the input boxes
    CurrentTracks = Tracks.TrackID.
    txtTrackID.Text = Tracks.ToString
    txtartist.Text = Tracks.Artist
    txtBlurb.Text =
    txtduration.Text = Tracks.Duration
    txtera.Text = Tracks.era
    txtGenre.Text = Tracks.Genre
    txttitle.Text = Tracks.Title
    End Sub
    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExit.Click
    Me.Close()
    End Sub
    Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLoad.Click
    'set the filename
    Filename = "Tracks.dat"
    'open the file
    FileOpen(1, FileName, OpenMode.Random, , , Len(Tracks))
    'check numnber of records in file
    numofrecords = LOF(1) / Len(Tracks)
    'close file
    FileClose(1)
    Tracks.TrackID = numofrecords + 1
    txtTrackID.Text = Tracks.TrackID
    End Sub
    Private Sub btnList_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnList.Click
    'clear list box
    lstsongs.Items.Clear()
    'headings
    lstsongs.Items.Add(String.Format(Tableformat, "Track ID", "Title", "Artist", "Genre", "Duration", "Era"))
    'open file
    FileOpen(1, Filename, OpenMode.Random, , , Len(Tracks))
    ' Add records to list box
    Do While Not EOF(1)
    FileGet(1, Tracks)
    lstsongs.Items.Add(String.Format(Tableformat, _
    Tracks.TrackID, _
    Tracks.Title, Tracks.Artist, Tracks.Genre, _
    Tracks.Duration, Tracks.era))
    Loop
    'close file
    FileClose(1)
    End Sub
    Private Sub lblDebug_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lblDebug.Click
    End Sub
    End Class

    Hello,
    Since a ListBox displays text then when you have a selected item simply use the Text property of the ListBox rather than SelectedItem which would be used if the data source was say an object i.e. setting the ListBox DataSource to a DataTable then we would
    cast SelectedItem to a DataRowView but if all you have is text using the ListBox Text property.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.

Maybe you are looking for