Oracle Forms: getting currently selected item in List

I've noticed that the method isItemSelected in the oracle.oats.scripting.modules.formsFT.common.api.elements.List class doesn't appear to work. In the drop down lists that I've tested, it always returns true for any item that is in the list (ie the same as isItemInList returns).
Is there any way to figure out what item is selected in a drop down list in Oracle Forms?

Hi,
I am also trying the same for a Select field in a Web application. .selectOptionByText works for input but to get a value from a select box. .getSelectedValue() is not working and also .getSelectedText() is also not working. Not able to get a value at runtime from a select field. Also how to retrive all the options present in a select field in a web application.
Alex can you help on this.
Thanks

Similar Messages

  • Select item in list box using code

    We use Adobe Workflow v5. I am creating a Check Request application where users type information into various fields and when they click Add, the data is added to a List Box. Also when they click Add, if the current item is >$1,000, a query searches our accounting database to see if the client has outstanding AR older than 90 days. If they do, another list box is displayed with the client name and amount of outstanding AR.
    If that clientnum is already in the second list box, it does not add another one.
    To delete a record from the first list box, the users select the item in the first list box, and then click a Delete button. That deletes the
    record in the first list box.
    I am also trying to delete the record from the second list box but am not sure how to select it using code. As part of the Delete button code, if the currently selected item (the one they want to delete) is >$1,000, I go through each row of the first list box to see if clnum.text (field in the form where the record to be deleted is now displayed) matches the client number in column 4 of any row of the first list box. If it does, I see if the amount of the item in the first list box is >$1000.
    If it is, then I know that there is a corresponding record in the second list box.
    Here is some of the code:
    'go through each row in first list box
    For irow = 1 to lstExp.ListCount
    'set clientnum variable equal to client # in row in first list box
    clientnum = lstExp.RetrieveItem(irow,4)
    'if clientnum variable is equal to client # to be deleted from first list box (selected record - client # in clnum.text now)
    if clientnum = trim(clnum.text) then
    'if amt is >$1,000 in first list box
    if lstExp.RetrieveItem(irow,10) > 1000 then
    'don't delete row because there is another record in first list box
    DeleteOutAR = "N"
    else
    'delete row because there is NOT another record in first list box.
    DeleteOutAR = "Y"
    end if
    end if
    Next
    Here is the code I need help with. I am unsure how to select the record in the second list box so I can delete it.
    if DeleteOutAR = "Y" then
    'go to second list box ?
    form.GoToField(lstOutARUnbilled)
    'start going through second list box looking for clientnum
    For irow2 = 1 to lstOutARUnbilled.ListCount
    if clientnum = lstOutARUnbilled.RetrieveItem(irow2,1) then
    irow2 = lstOutARUnbilled.CurrentSelection
    lstOutARUnbilled.Removeitem (irow2)
    end if
    next
    end if
    So my question is, how can I move to the second list box to actually delete the record?
    Thank you in advance for any help.
    Mary

    Mary-
    The solution could either be quite easy or difficult dependent upon how the data is arranged in the subsequent list box.
    Basically, if there is any sort of corresponding or matching entries, meaning line 1 from list box #1 matches with line 1 of listbox #2, then you would simply execute the following...
    "listbox#2.RemoveItem listbox#1.CurrentSelection"
    Or if you have a column that would contain the same values, say an index, then you could just loop thru the 2nd listbox searching for that index and once found remove the line...
    "listbox#2.RemoveItem nRow"
    , where nRow would be the line that you discovered to have the matching index.

  • How to get the selected items from listbox

    Regarding listbox i have two questions
    1) I want to get the selected items as per the order in which ihave selected.Presently i'm getting in the ascending order.For example after selcting the 1,2,6 if i select 3 then its giving 1,2,3,6.But i want it in the order 1,2,6,3
    2)I want to select items from a single list box to many other listboxes.(ie) my first selection should goto first,second one to the second listbox and like this.How should i write the logic.
    please give me a suggestion.

    In order to have the selected items line up in accordance to the selection order, please do it one at a time. (That's the limit for that VI)
    If you need more than that (i.e. to regconize which item clicked first and which one comes later), you may have to figure it out ya
    Wish you good luck. Perhaps, someone else has a already made vi.
    Cheers!
    ian.f
    Ian F
    Since LabVIEW 5.1... 7.1.1... 2009, 2010
    依恩与LabVIEW
    LVVILIB.blogspot.com

  • Display in "Oracle Forms 10g" a BLOB item

    Hey, anybody know if there was any java component or a way to display in "Oracle Forms 10g" a BLOB item, which contains no images, but files of type PDF, DOC, TXT ....
    Thank you

    <p>The Enhanced HTML browser bean allows showing amost everything in its window. See this screen shot</p>
    So you could download your stored document onto the AS or the client with the Webutil FILE_TRANSFERT package, or you could envisage top develop
    a nice PL/SQL procedure that would send the content via the UTL_HTTP package.
    Francois

  • Get the selected item in a dropdown

    please how can in get the selected item in a dropdown ?
    I am using t"his.selectedIndex" but it gives me just de index of the previous selected item, I am using the CHANGE event with javascript

    I found the solution with xpa.event.newText

  • Getting the selected item of a form

    Hi,
    I added some matrix to the item-form for showing information on the selected item.
    Now I need to know, which item is actually selected.
    I'm searching but don't find it.
    Regards,
    Holger Reppert

    Hi Ibai,
    sorry for this stupid question. It's early in the morning
    THX anyway.
    Holger
    PS: I thought of sth. like a pointer to the data ........
    Message was edited by: Holger Reppert

  • Oracle forms get stuck

    Hi all,
    I am using oracle application server 10g on solaris 10.My database server is on the another host.Currently clients accessing oracle forms from client machine using internet explorer having some stuck issue.Some of them experiencing forms get hung while using down arrow to go to next item box.Please help regarding this.How to tune forms.

    hi
    get
    select sys_context('USERENV','ip_address') ,sys_context('USERENV','os_user'),user,sys_context('USERENV','terminal')from dual;
    M Rizwan

  • Display infopath form in listview, select item to populate the form

    Hi-
    I once used a list where if you selected the list item by clicking a <-> button,it then populated the infopath form on that page. I have a page with two webpart zones, one for the list and one for the related infopath form. How can i connect the webparts,
    so when i select a single list entry the infopath form populates?
    I cant remember the tutorial i once found, loved this feature.
    thanks

    Hi,
    That icon comes up when you connect the InfoPath form web part with the list web part. The view that is displayed on the Infopath web part will populate with the list item selected in the list view. When creating the connection, choose the option to Get
    form data from and it will automatically select the Infopath on the page. This is a similar post but done in O365.
    http://jennyssharepointtips.wordpress.com/tag/infopath-form-web-part/
    Hope it helps.
    Regards, Kapil ***Please mark answer as Helpful or Answered after consideration***

  • How to get multiple selected fields in list

    Hello all,
    I am trying to get multiple selected value from a list but i dont know how to get multiple selected fields from a list though AS3.
    Actually i want to pass the selected fields to php, so for that i need to get the selections and send to php.
    Thankx..

    i want to put the selected fields of list in an array through AS3....
    actually......i figured it out how to do that...........
    Its simple......use
    list.selectedItems[index]
    and to get the number of items selected......
    list.selectedItems.length
    simple.....

  • Can't delete multiple selected items in List or Library

    I am experiencing quirky behavior when attempting to delete multiple selected items from a library or list. I select a few items via check box for each item I would like to delete. Then I click the delete button in the ribbon, and all I get is "Deleting...",
    but no page refresh and the items are not deleted. However if I access the same list or library via the App server and select a few items, then hit delete, the page refreshes and the items are deleted.
    So I consulted the Logs and compared the Web Server vs App Server, and the there is a lot of cryptic entries. The few lines that stands out most to me is the App server is:
    ConnectionString: 'Data Source=database;Initial Catalog=Content;Integrated Security=True;Enlist=False;Asynchronous Processing=False;Connect Timeout=15'   
    ConnectionState: Closed ConnectionTimeout: 15
    In fireItemEvent(), for list Building Locations, and item: 1
    In fireSyncItemEvent(), calling ExecuteItemEventReceivers()
    Calling ExecuteItemEventReceivers() for list 0f773535-3b22-4c29-97f1-fd2b70b50dd3 on item 1
    Entering monitored scope (Event Receiver (Microsoft.SharePoint.Publishing, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, Microsoft.SharePoint.Publishing.Internal.PublishingWebEventReceiver))
    Releasing SPRequest with allocation Id {FE9A45A8-C042-4223-8FCC-4BD873C93885}
    PublishingWebEventReceiver:ItemDeleting: item 
    These calls are not in the web server log.
    The list I was doing the delete action on was "Building Locations". We are using claims based authentication
    Thanks for any insight or thoughts.
    Brandon

    I confirmed that there is no rewrite tags in either web config (app or web).
    I did download fiddler, and when I try and delete on the web front end I get:
    It tries to access the URL https://mysite/_layouts/_vti_bin/client.svc/processQuery
    Then it sends me here since I have been denied
    <html><head><title>Object moved</title></head><body>
    <h2>Object moved to <a href="https://mysite/_layouts/AccessDenied.aspx">here</a>.</h2>
    </body></html>
    The app server goes to
    http://mysite/_layouts/_vti_bin/client.svc/processQuery doesn't get denied and deletes the items.

  • Path of currently selected item in Finder

    Ladies and Gents,
    I'm working with Finder, trying to get hold of the path of the currently selected document. I can get through two of the three required steps, but the last part eludes me. Can you help please?
    I can get the current selection no problem:
    tell application "Finder"
    set soko to selection
    end tell
    this returns the selected items - even if more than one is highlighted. How cool is that:
    {folder "opt" of startup disk of application "Finder", folder "Library" of startup disk of application "Finder", folder "Developer" of startup disk of application "Finder"}
    I can even select one of the entries:
    tell application "Finder"
    set soko to selection
    set koko to the first item of soko
    end tell
    this gives:
    folder "opt" of startup disk of application "Finder"
    However I don't know how to convert that verbose description of the location to a plain old path such as:
    /opt (POSIX)
    or
    :opt: (Mac)
    The verbose description seems to be called a "reference", but how to convert it to a path eludes me. Can you help?
      Mac OS X (10.4.2)  

    path to v : Return the full path to the specified folder
    Definition of path to is misleading.
    It says: Return the full path to the specified folder.
    but it actually means: Return the full path to the predefined folder. In this case the predefined folder can be one of the following:
    application support/applications folder/desktop/desktop pictures folder/documents folder/favorites folder/Folder Action scripts/fonts/help/home folder/internet plugins/keychain folder/library folder/modem scripts/movies folder/music folder/pictures folder/preferences/printer descriptions/public folder/scripting additions/scripts folder/shared documents/shared libraries/sites folder/startup disk/startup items/system folder/system preferences/temporary items/trash/users folder/utilities folder/workflows folder/voices/apple menu/control panels/control strip modules/extensions/launcher items folder/printer drivers/printmonitor/shutdown folder/speakable items/stationery
    Those are system predefined folders.
    Now, I think what you want to get at is POSIX path of the selected folder, yes?
    In that case, you use POSIX path of
    -- begin
    tell application "Finder"
    set loco to selection
    if the number of items in loco is greater than 0 then
    set koko to the first item of loco
    else
    set koko to insertion location
    end if
    -- at this point, koko is a full path to the selection, or first item of it
    -- return koko -- remove the comment, you'll see
    set soco to (POSIX path of (koko as string)) -- this convert HFS+ format to POSIX format
    end tell
    -- end

  • Display Hint Text in Oracle Forms 6i at Text Item

    Dear all seniors
    I want to show Hint text at Text Item in Oracle Forms 6i.
    when my cursor Focus goes at that item. I mean when I go with Tab key or Enter button then it show display text.
    even though my mouse is not on that item.
    please how it would be possible
    thanks.
    G.Y

    Please create a display_item(for eg. Disp_Mess) just below the text field (For eg:-MyField) where you want to show hint. And then assighn Hint text to "DISP_MESS" in NEW-FORM-INSTANCE or at Initial value. Then create a PRE-TEXT-ITEM and POST-TEXT-ITEM trigger for MyField.
    -- PRE-TEXT-ITEM trigger write following code.
    SET_ITEM_PROPERTY('DISP_MESS',VISIBLE,PROPERTY_TRUE);
    --POST-TEXT-ITEM write following code.
    SET_ITEM_PROPERTY('DISP_MESS',VISIBLE,PROPERTY_FALSE);
    It will work for you.
    Regards
    Ahamed Rafeeque Cherkala

  • Assign a SELECT item's list of values - APEX 2.2.0

    Hey, all,
    Is there a way to assign the list of values of a SELECT item programatically, besides the usual query-in-the-LOV? I am reusing a page 0 region and have a SELECT item that can take on a wide range of lists of values. Something like:
    AddOptionToSelectItem('P0_MY_SELECT', 'Yes', 1);
    AddOptionToSelectItem('P0_MY_SELECT', 'No', 0);
    or:
    SetLOV('P0_MY_SELECT', somethingRepresentignAListOfValues);
    If that cannot be done, I'll just put all of the parameters I need to figure out what goes into the select list into page 0 items and either write query the old fashioned way or write a PL/SQL function that takes the parameters in and returns a table.
    Thanks!

    In case this helps, you can specify an item's LOV attribute as a function that returns the LOV query, e.g.,
    return my_lov;
    Scott

  • Automatic Selected Item of List Builder Component Does not work (anymore)

    Hi all,
    Í'm working with Xcelsius Engage 2008 (version 5.3.2.0) and the automatic selection of an item at runtime of the list builder component does not work anymore. In a previous version it worked very well.
    Here's the case: at runtime I want that the list builder component automatically puts the first item in the list to the destination section and selects it, so that a graph can show the underlying pushed data. In the previous version it worked o.k., but now at runtime the destination section remains empty at startup. If I interactively select an item from the source section to the destination section and update the list builder, the data is shown correctly, but it must done automatically, which worked o.k. in an earlier version of Xcelsius 2008...
    This are my settings of the list builder component (which was running correctly earlier..):
    -at the general tab I defined a range of labels
    -at the general tab I defined 2 data column insertion series
    -at the behaviour-common tab I defined selected items: position mode; items: the first item of the label list; insert items at runtime
    -all of the data comes from an external xml data source
    You can find an example of the visualisation at: http://onderzoek2.evinet.nl/projecten/10169/dynarap.htm. You will see that at start-up there is no item visible and selected in the destination section of the list builder....
    I've tried every combinations of settings, build up the component from scratch, but its not working (anymore).
    Greetings Erik-Jan Vriens

    Hi njnits,
    Print view button is a standard component of Xcelsius: look at it in the IDE
    Exporting to Powerpoint is also a standard functionality, so yes. For this particular dashboard/report all data resides in an external xml-file which have to be accessible for Powerpoint
    All visualisations, not only the table,  in this/report fetch their data from an external xml-file, but a QaaWS-connection will also do the trick. You will have to write this dedicated service. In our case the xml-data is also generated automatically.
    The external data is best defined as a sort of matrix, consisting of approx. 100 columns by 1000 rows. I agree it takes a lot of Xcelsius but it does the job....
    Hopes this info helps....

  • Get Current Selected Cell Value in an af:table

    Using JDeveloper 11.1.1.3.0
    I currently have a requirement where i need to call a server method and pass the value of the current selected Cell value in my af:table.
    The reason why i can't just make use of the currentSelectedRow is because i have a set of Columns (NumericValue1,NumericValue12,...NumericValue1n) and my server method can't really tell which cell i picked.
    So far, what i did is that i utilized F. Nimphius's article about using contextMenu and passing a clientAttribute.
    Re: How to pass parameter to inline popup when mouse over
    I'm hoping to do the same thing but without raising a popup on right click. So basically, i'm hoping to select an outputText in the table and this value will be stored in a pageFlowScopeBean.
    Has anybody encountered something similar?
    Thanks.

    Hi Barbara,
    You're aproach sounds intersting.
    So you mean to say, i'll create a component which has a bindings to my pageDefinition which needs to have it's clientComponent attribute set to true i believe so that my javascript can find this component.
    Then, i'll write a javascript that handles the focus event which then stores the clientAttribute value and stores that in the hidden component mentioned earlier. I'm guessing that once i set the newValue to the hidden component, it should be posted to the pageDef bindings upon hitting server side calls.
    I'll try this out and give an update on it.

Maybe you are looking for

  • XML Schema -- xsi:null in document instance and nullable in XSD

    Hi, I have an XML document <DOC> <EMP_ID>1</EMP_ID> <EMP_NAME>Scott</EMP_NAME> <EMP_ADDRESS>USA</EMP_ADDRESS> </DOC> As to what I understand, for the document to look like <DOC> <EMP_ID>1</EMP_ID> <EMP_NAME>Scott</EMP_NAME> <EMP_ADDRESS></EMP_ADDRESS

  • Sort on 2 Sorting Table in same form

    i hv a doubt in sortingtable for Sun IdM. I hv 2 sortingtable in a form.I hv set the sortURLParams as based on id.When i sort one table, the other table is also getting sorted. Please let me know how to overcome this problem.

  • How to write Generic JMS Adapter

    I want to write generic JMS Adapter. Any link , resources and ideas will be helpful for me.

  • Help with turning off in-camera selected aspect ratios - Please!

    I shoot a Olympus e-P2. It allows me to change the aspect ratio of the file i.e. 4:3, 16:9 etc. I like to use this feature as 'masks' when I shoot to help with composition. When I open the RAW file in bridge or Camera Raw, this pre-selected aspect is

  • Account GP - Customer

    Hi Gurus., I created a customer as sold to party as well as ship to party for particular sales area. but now i want to restrict the customer as sold to party for that particular sale order i want to use only as sgip to party. how can i do this? cheer