JavaScript function which fetches return_value from List of Values

Hi,
I have created List of Values named "NICKS". I want to write JavaScript function "get_workers_fullname(nick)" which returns display_value from List of Values. The parameter of function is return_value of List "NICKS".
I am new with this and don't know how to handle this case.
Please help me.

Hi,
The LOV, I mean is the item in Application's Shared Components. I don't mean the visible SelectList on the page.
This is what I found in ApEx's help: "A List of Values can be referenced by page items as well as report fields. It controls the values displayed and limits the user's selection. Lists of Values can be static (based on values you enter) or dynamic (based on a SQL query)."
I'd like to access values in such LOV from JavaScript. I am not sure it is possible.
Cheers,
Tom.

Similar Messages

  • Calling function from list of values section?

    can i call a function from list of values(LOV) section as well? I know we can sql query but udf is supported?

    See this recent thread: Display as Text (LOV) or join
    Scott

  • After Effect CC: Custom JavaScript functions of a flashplayer object return no value

    Hi
    With AfterEffects CC scripting it looks like custom JavaScript functions of a flashplayer object return no value when invoked from ActionScript code
    This can be seen in the sample script shipped with ExtendScript Toolkit named ActionScriptDemo.jsx:
    Create a flashplayer object in a JSX file with a custom getJavaScriptNumber function:
    var flashPlayer = flashPalette.add("flashplayer", cBounds);
    flashPlayer.getJavaScriptNumber = function() {
              return 12345;
    Invoke the custom getJavaScriptNumber function from ActionScript code of an .MXML file:
    public function requestJavaScriptNumber():void{
              var res:int = ExternalInterface.call("getJavaScriptNumber");
              estkNumber = res;
    The ExternalInterface.call("getJavaScriptNumber") call return no value
    Any idea or a suggested workaround??
    Thanks, Erez.

    I wonder if this was intentional on Adobe's part.  It seems rather odd that it just "broke" with the upgrade to CC.
    I was thinking of a way to display a "web page" within an ExtendScript dialog / window, and thought that I could use Flash / ActionScript to do just that and then display that within the dialog.  It seems, now, that it is just a bad idea because the API for ExternalInterface is broken--I would need two-way communication between the Flash object presenting the webpage and the ExtendScript ScriptUI Panel.
    Is there a workaround for this?
    Thanks,
    Arie

  • Get column values from list of values programmatically

    hi all
    how i get column values from list of values programmatically in the
    returnPopupDataListener method

    If this answers your question , please close this thread by marking it as answered.
    Thanks

  • How create temporary table from list of values

    Can you anybody advise me how can I create temporary table from list of values? I have list of values and need create temporary table for next use with command JOIN etc.
    Thank you for help

    NO, you can not create temporary table in oracle on the fly ( Like #Tabels in SQl Server or Sybase ) , you will have to use the GTT i.e Global Temporary Tables
    check the following link GTT :
    to flush the tables after commit
    CREATE GLOBAL TEMPORARY TABLE my_temp_table (
      column1  NUMBER,
      column2  NUMBER
    ) ON COMMIT DELETE ROWS;In contrast, the ON COMMIT PRESERVE ROWS clause indicates that rows should be preserved until the end of the session.
    so to keep rows in Table after commit
    CREATE GLOBAL TEMPORARY TABLE my_temp_table (
      column1  NUMBER,
      column2  NUMBER
    ) ON COMMIT PRESERVE ROWS;

  • Copy functionality which did not copy Long Text values causing us an issue

    Two new Master Recipes created in Bathurst by using copy functionality in transaction C201 contained SRC value errors believed to be caused by changes in the copy
    functionality which did not copy Long Text values causing us an issue when creating Process Orders.   Current workaround is to manually edit the
    value fields and re-save the MRs, the issue is then resolved.

    This will resolve the issue
    SAP Note 1452700 - "New" button is disabled after
    displaying text
    Note Language: English Version: 1 Validity: Valid Since 03/25/2010
    Summary
    Symptom
    In display mode you navigate via the text hyperlink to the text view.
    When you navigate back, the "New" button on the "Notes" assignment block is
    disabled.

  • Call a javascript function (in ASPX) page from a javascript file

    I have a javascript file (viewer.js) situated in Scripts/viewer.js My
    default.aspx has a javascript functions that calls a c# function in the
    default.aspx.cs ( it sends a http webrequest)
    Now I want to call from the viewer.js the function in default.aspx which calls the c# function.
    How can I handle this in my viewer.js?
    I need to do this because I work with 3D objects and the select event is on the viewer.js
    When I select the 3D object it needs to call the function in default.aspx...
    Scripts/viewer.js
    function ClickPickItem(item) {
    $("#properties").show();
    /*Call function App() */
    Default.aspx
    function App() {
    PageMethods.Connect(callback);
    Default.aspx.cs
    [WebMethod]
    public static string Connect()
    string rsp = DigestAuthFixer.GrabResponse("http://<username>:<password>@nextbus.mxdata.co.uk/nextbuses/1.0/1");
    ... CODE TO MAKE HTTPWEBREQUEST}
    Sorry if I'm not clear enough
    I don't see another option like this
    What I need to do?
    Thanks!

    If my understanding is not wrong, you are trying to call a Javascript function in a separate script block from a linked Javascript page. rite?
    When it comes to Javascript, all scripts will be posted to the client side browser and we can access any method between pages provided those JS files are linked to the page.
    So you can directly call
    App()
    function from your
    ClickPickItem()
    function.
    Please try and let us know your result.

  • How to call javaScript function in the form from Action:Tab buttion in workspace

    Hi,
    I want to trigger JavaScript function that I have written in form from Action: buttons in workspace user's account.
    Is there any way that if i hit a button on action bar, it fire a javascript function.
    Reason is: I dont want to place button on the form to perform any action on the form. I want to take control of the form from these buttons. Like submit, edit a form, etc, etc..
    Please let me know if i couldnt explain it properly.
    regards
    Sunil

    Sunil, you want to look at the "Customizing the LiveCycle® Workspace ES User Interface" document at http://help.adobe.com/en_US/livecycle/9.0/customizeworkspaceui.pdf.  The workspace is a Flash component.  For ES4 there's an option to run the workspace in HTML5 which might be more productive long-term.

  • How to get data from list of values (LOV) to be displayed in a text field ?

    Hi guys,
    I am very new to Oracle APEX so please spare me if it is a silly question. How can I get the selected values from a set of list of values (LOV) displayed in a text field (or text area or so) ? Fox example, in my form I create 4 items: STATE, COUNTY, STREET, ZIPCODE and all of them are LOV (list of values). I also create 2 buttons (ADD & REMOVE). Then I create a test field (or text area name SELECTED RECORD). Now here is what I want to do with my form:
    When I set the values for all 4 fields, I will click on the ADD button then I want those values be displayed in the text field.
    For example, if the selected values are:
    STATE = Alabama
    COUNTY = Abbeville
    STREET= 1 Street
    ZIPCODE = 36310
    And the ADD button is pressed. Then in the text field I want it displays like this:
    Alabama,Abbeville,1 Street,36310
    If I choose other values and click ADD again, a new line will be added into the text fields (text area). If I click the REMOVE button, then it will clear those two line in the text field.
    Would it be possible to do it? Any help will be greatly appreciated. Thanks in advance.

    If you can live with the page being submitted and refreshed, make your ADD button do a submit with a request value of ADD and make your REMOVE button do a submit with a request value of REMOVE.
    Then create two computations (one firing with a condition of Request = ADD and the other firing with a condition of Request = REMOVE).
    In the ADD one, concatenate the values together into the text area (most likely a PL/SQL computation wiill be what you want). In the REMOVE one, set it to null with a PL/SQL computation.
    If you want it done without submitting the page, make the buttons each do a redirect to a URL but instead you will have to write two short javascript functions in the page HTML header to manipulate the field values. Each button would call each javascript function in an onclick event.

  • Filter view object by selected values from list of values

    Hello,
    I've the following problem with my ADF Application. I have three view objects in my application module. Two of them are connected via a view link. For example take users, who are connected to their departments. The remaining view object consists of factories. Now I want to show the user/department dependency in a tree table and the available factories in a list of values. This list of values should be used to filter the shown users.
    I've already tried to use bind variables in the users view object. But I don't know how to fill them with the value of the list of values.
    Can someboy give me a tip how to solve this problem.
    Best regards,
    Enno

    Hi Enno,
    Try this:
    - Have a AM method with one parameter(which takes user from the list of values) and inside AM method write code to set the bind parameter value and execute the query
    Sample Code
    public void filterByUser(String user){
       //Get your UserViewObject instance to userVO
       userVO.setNamedWhereClauseParam("<Bind_Variable_Name>", user);
       userVO.executeQuery();
    }- Expose the method as client interface
    - Drop the method (Data Control) as a button on to the page and pass the listofvalues value as a value to the method binding param
    Something like this: ${bindings.<User>.inputValue}
    - Finally refresh the master and detail tables based on the ListOfValues selection by setting partialTriggers property to the listofvalues component id
    Hope it is clear
    Sireesha
    Edited by: Sireesha Pinninti on Oct 15, 2009 4:54 AM

  • JSP, BC4J : Allowing users to choose from List of values when in Insert mode

    Hi,
    I have a requirement in which the user would be able to select a value from a combobox for populating a field when inserting a new record. The list of values in the combo box is derived from a look up table in the database. How can do this?
    Thanks.

    Use the version provided in Jdev 3.2. It has two methods:
    * Enables a LOV (list of values) for the specified attribute in
    * the UI. In the typical case, when an attribute is selected in an
    * HTML form, a LOV will be displayed.
    * <p>
    * This method enables a LOV for one or more of the RowSet's attributes.
    * To return all of the RowSet's attributes,
    * use the {@link #useLOV(String, String) useLOV} method.
    * <p>
    * @param sAtttibute name of the attribute for which an LOV
    * should be enabled.
    * @param voName name of the View Object to which the attribute belongs.
    * @param sDisplayAttributes a comma-separated list of the RowSet's attributes
    * that will be displayed when the attribute is selected.
    * @param sDataAttribute the location from which the attributes' values are
    * obtained.
    * @see #useLOV(String, String)
    public void useListOfValues(String sAttribute , String voName, String sDisplayAttributes, String sDataAttribute)
    JSlibNeeded |= WebBean.JSModalPageConstructorLib;
    LOVField lovField = new LOVField();
    ViewObject vo = qView.getApplicationModule().findViewObject(voName);
    ViewObject dupvo = qView.getApplicationModule().findViewObject(voName + "_query");
    if(dupvo == null)
    dupvo = qView.getApplicationModule().createViewObject(vo.getName() + "_query", vo.getDefFullName());
    lovField.setViewObject(getApplicationName() + "." + dupvo.getName());
    AttributeDef attr = qView.getViewObject().findAttributeDef(sAttribute);
    lovField.setPromptText(getAttributeLabel(qView, attr));
    lovField.setDisplayAttributes(sDisplayAttributes);
    lovField.setDataAttributes(sDataAttribute);
    setFieldRenderer(sAttribute , lovField);
    * Enables a LOV (list of values) for the specified attribute in the UI.
    * In the typical case, when the specified attribute is selected in an
    * HTML form, a LOV will be displayed.
    * <p>
    * This method enables a LOV for all of the RowSet's attributes.
    * To enable a LOV for a subset of the attributes,
    * use the {@link #useListOfValues(String, String, String, String)
    * useListOfValues} method.
    * <p>
    * @param sAtttibute name of the attribute for which an LOV
    * should be enabled.
    * @param voName name of the View Object to which the attribute belongs.
    * @see #useListOfValues(String, String, String, String)
    public void useLOV(String sAttribute, String voName)
    useListOfValues(sAttribute, voName, null, sAttribute);
    null

  • Read more than one attribute from list of values record

    Hi,
    I am using Jdev 11.1.1.3.0.
    I have the following situation,
    have defined a read only view (schools information) which is a list of values for schools information ( schoolId, school name and school code) , I have to execute Query for that view as an Invoke Action in the executable s of the page,
    I need three attributes (A, B, C) in another view (name it student's school) to be set to the school information corresponding to a school chosen from a SelectOneChoice List
    I could not define the schools information as LOV for the attributes in the student's school, as I have to execute it in the executable s,
    I have an Iterator for the schools Information on the page and, bound the attribute A (from the student's school) SelectOneChoice as list to the school name (from school Information) , and then tried to read the current row of the schools Information Iterator like this inside a bean:
       Row  tempRow = getIteratorBinding("CmnLookupPrevSchoolRegView1Iterator").getCurrentRow();
       currStdPrevSchoolRow.setAttribute("B", tempRow.getAttribute("SchoolId"));
       currStdPrevSchoolRow.setAttribute("C", tempRow.getAttribute("SchoolCode"));but referring to the data saved in the DB, the values stored for the attributes B and C are not corresponding to the chosen school name , but corresponding to the first row of the iterator. ( not the current chosen)
    is there any suggestions, to have another approach to connect all the three attributes to the corresponding chosen values.
    or maybe it is just some properties for the Iterators,
    thanks in advance
    best regards,

    Hi,
    Have a look here: http://blogs.oracle.com/jdevotnharvest/2010/12/reading_the_selected_value_of_an_adf_bound_select_list_in_java.html
    If you read from a list binding then you get the row value from there as well - not from the iterator as lists don't change the current row
    Frank

  • How to access a value from "List of Values" by giving a name?

    I have a "List Of Values" defined in my BI Report. It comprises list of label-value pairs.
    I have defined a parameter :p_Value for the above "List Of Values" defnition. this parameter is used in datasource sql defnition to filter the query results. I configured a template which has a table that shows all the parameters used for filtering query results. If I give <?$p_Value?> in the template then the parameter value is rendered on it. But I want the "name" of the parameter and not the value. Can anybody tell me how to access name of the parameter which refers to one of value in "List of Value" defnition?

    option 1:
    Can you get the value from the DB in the report sql ?
    You have the code, inside the report query, if you can get the decoded value form that
    option2:
    create another paramater, LOV and query, and make it as hidden, and use the first :param_1_value in the lov query in the second param and decode the value.
    Now , you can refer the :PARAM_2_value in template which will have decoded value.

  • How to select multiple rows from List Of Values

    Hello,
    I use ADF 11g to create my list of values (LOV). I want to select multiple rows from it. but i can't.
    so how i can select many rows to set them in my adf table.
    Thank in advance

    Hi,
    LOV is map to an attribute in the viewObject so it will return only one value or more values from selected row. You can't select multiple rows from LOV.
    But you can do this by using popup which you can select multiple rows and insert the selected rows to another table.
    This blog post explain how to achieve this :
    http://husaindalal.blogspot.com/2009/11/search-from-popup-and-add-to-new-table.html#comments
    Sameh Nassar

  • Af:inputListOfValues: updating all attributes from 'List return values'

    Hi all,
    In my ViewObject, I have one LOV enabled Transient attribute (in order to display content meaningfull for the end user)
    In the List return values, I have one extra return value, which updates the real foreign key attribute
    When user launches LOV popup and chooses one of the vaules, both of my attributes from the List return values are updates properly
    However, when the user entered value directly (so, does not launch LOV popup), then the real foreign key attribute has not been set
    What to do in order to set foreign key attribute in both cases ?
    Maybe with one valueChangeListener and autoSubmit enabled ?
    Any idea ?
    P.S. Off topic : Seems thas password finder for my OTN account does not work, is there any way to "unite" my posts from my old account with this new one ?
    Edited by: user11208293 on May 28, 2009 8:49 AM

    Ok. It seems that no solution for this problem, so end user cannot directly enter the value in the af:inputListOfValues (into transient View attrbibute), since there no way to update the real foreign key value. The only option is to enable LOV not for transient, meaningfull attribute, but for f.k. attribute (which does not mean nothing for end user)
    What you doing in this situation ?
    Should I discard af:inputListOfValues ?
    P.S. just to note : LOV Autocompletion, as described in the Steve Muench atricle :
    http://www.oracle.com/technology/oramag/oracle/09-jan/o19frame.html
    works only if user presses Tab button (after entering value in the LOV filed).
    It does not work if user directly enter into LOV field, and then press some command button by the mouse
    Edited by: Cvele_new_account on May 28, 2009 11:38 PM

Maybe you are looking for

  • Not able to open the sql ..

    hi. i am facing one problem. plz have a look on below image. i am not able login into the data bases.. any has seen  this type of problem. i all ready search in google ... They provide some solutions 1) Go to sql view see the data base and then start

  • Mbp keyboard nonresponsive, screen freezes, ideas?

    My MBP keyboard and screen freezes; any ideas on a fix?

  • Why do burned in subtitles cut off on bottom of screen?

    I'm watching a Foreign film through NetFlix. The subtitles are burned into the film already and are part of the film. An example is Tous Les Matins du Monde. These burned in subtitles are being cut off on the bottom of the screen. I've tried all the

  • Contact import including facebook friends

    Looks like I have a whole bunch of facebook friends intermingled with my regular contacts. I do not want my facebook contacts in my phone. How can I unsync them without manually having to delete them one at a time. There are over 500 I want to delete

  • Characteristics in middle of Keyfigures

    I have to display report by placing characteristics in middle of keyfigures..i.e my format should be in this format Plant OrderedQuantity MaterialNO GRQuantity If we switch the format to table I can get this format..but the free charcs are becoming f