value of the item in the list, Select when the user places the cursor on it

Hi all

I have a requirement where the user place cursor on an element of a form page list selection. All options should appear without clicking. I also have a selection list that is created dynamically.

I use Apex 4.2

Thank you

Shaz

Not tested, but something like below might work.

DECLARE
v_item varchar2(20);
Cursor c1 is
SELECT Item_name FROM APEX_APPLICATION_PAGE_ITEMS
WHERE  lower(display_as_code) = 'native_select_list' AND lower(region) = 'region_name' ;

BEGIN

FOR item_rec IN c1
LOOP
v_item := item_rec.item_name;

htp.script('$(''#'||v_item||''').hover(function(){
    var count = $(this).children().length;
$(this).attr(''size'', count);
},function(){
    $(this).removeAttr(''size'');
});','Javascript');

END LOOP;
END;

BR,

Patrick

Tags: Database

Similar Questions

  • value of the cursor relative to the source text

    I'm trying to parent a host of kerning on a slider on SliderControl, which is related to the source text on TrackingControlof the text .

    The real problem here is parenting to the value of the cursor in the Source text. I tried this expression on the cursor, without success:

    txt = comp("thisComp").layer ("TrackingControl") .text .sourceText;

    If (! isNaN (parseFloat (txt)))

    parseFloat (txt)

    on the other

    value

    The expression gives me any errors, but it seems also connect to anything!

    Reason:

    I build titles for first models, which allow only the source text to be edited. So, to control kerning inside the comp from the AE model, I need parents host kerning to a text layer, which can be edited directly from the effects of first Panel.

    Solved my problem, LOL.

    Just had to remove the first line and re selection icon to get the correct syntax 'thisComp '.

    txt = thisComp.layer("tracking").text.sourceText;

    If (! isNaN (parseFloat (txt)))

    parseFloat (txt)

    on the other

    value

  • "windows cannot open the file must know what program - program list selection" when tried to open the file

    After a problem with my sony ebook reader, I was told by the library to remove the program Sony and library of books on the computer and the drive, and then reinstall the program.  I would then be able to download the books again.  But now I have a message saying that windows cannot open the file must know what program - select the program from the list. When I click on the program sony player list is not there.  What I am doing wrong?  You can give me some advice.

     
    Original title: Pauline1949

    Hello

    1. have you downloaded the right file to library?

    2. What is the file format of the file that you downloaded?

    3. What are the recommendations of programs that provided by Windows?

    4. have you installed the player from the computer program?

    5 is this problem confined to a particular file that downloaded?

     
    The file that you downloaded requires an appropriate program to open it in Windows. That's why I suggest to check again if you have installed the reader program and also check if you have downloaded the appropriate Center books.
     
    Reference:

     
     
    If you have installed the right program and download the correct file in the program. I suggest you to change the player to default programs in Windows.
    Reference:
     
    I hope this helps.
  • How to pass the value of the cursor in the procedure to use as dblink

    Hello

    I have a cursor in the procedure. I am inserting some values into the destination table by querying the source table using dblink. And I'm collecting this db link in the cursor. So, my question is how I will pass on the value of dblink values read from the cursor in each iteration? This is my procedure.

    CREATE OR REPLACE
        PROCEDURE desktop_proc
        AS
          v_name VARCHAR2(10);
          v_dblink  VARCHAR2(10);
          CURSOR db_cur
          IS
            SELECT PNAME,OLTP_DBLINK
            FROM PDATA
            WHERE pname in ('RMA','RNA')
            ORDER BY PNAME;
        BEGIN
          OPEN db_cur;
          LOOP
            FETCH db_cur INTO v_name,v_dblink;
            EXIT WHEN db_cur%NOTFOUND;
            INSERT INTO desktop_lite
              (
                Datestamp,
                pname,
                Db_name,
                Company_name
              )
            SELECT Date_Range,
              v_name,   -- local variable
              dbname,
              Company_name
              FROM
              (SELECT bu.datestamp Date_Range,
                      (SELECT name FROM v$database@v_dblink) dbname,
                      bu.name Company_name
               FROM dboltp.s_org_ext@v_dblink bu
               INNER JOIN com_unique uusers ON (uusers.bu_id = bu.row_id)
              );
          END LOOP;
          CLOSE db_cur;
        END desktop_proc;
    

    Thank you

    Maybe this can work for you:

    CREATE OR REPLACE
        PROCEDURE desktop_proc
        AS
          v_name    VARCHAR2(10);
          v_dblink  VARCHAR2(10);
          v_statement varchar2(2000);
          CURSOR db_cur
          IS
            SELECT 'test_name' dual_name, 'test_dbl' dual_link
            FROM dual;
        BEGIN
          OPEN db_cur;
          LOOP
            FETCH db_cur INTO v_name,v_dblink;
            EXIT WHEN db_cur%NOTFOUND;
            v_statement := '
            INSERT INTO desktop_lite
              (
                Datestamp,
                pname,
                Db_name,
                Company_name
              )
            SELECT Date_Range,
              '''|| v_name || ''',
              dbname,
              Company_name
              FROM
              (SELECT bu.datestamp Date_Range,
                      (SELECT name FROM v$database@' || v_dblink || ') dbname,
                      bu.name Company_name
               FROM dboltp.s_org_ext@' || v_dblink || ' bu
               INNER JOIN com_unique uusers ON (uusers.bu_id = bu.row_id)
              )';
            dbms_output.put_line (v_statement);
    --            execute immediate v_statement;    -- first look at the statments you produce, then uncomment and test it
           END LOOP;
           CLOSE db_cur;
    END desktop_proc;
    /
    show err
    
    exec desktop_proc
    

    This is my result, it seems that this can work:

    INSERT INTO desktop_lite

    (

    Timestamp,

    PName,

    Db_name,

    Company_name

    )

    SELECT Date_Range,

    "test_name."

    dbname,

    Company_name

    Of

    (SELECT bu.datestamp Date_Range,

    Dbname (SELECT name FROM v$database@test_dbl).

    Bu.Name Company_name

    Dboltp.s_org_ext@test_dbl drunk

    INNER JOIN com_unique uusers ON (uusers.bu_id = bu.row_id)

    )

  • Invalid value for the cursor.xscale property

    I am creating a property node for "cursor.xscale", but when I try to write a numeric entry in it, it does not accept any value (at least all the values that I tried). An error indicating that the value is not valid. What is a valid value for this property and what exactly makes this this property (not a lot of documentation available I guess)

    the XScale property is a number from 0 to n - 1, where n is the number of scales X you have on your chart (usually 1).

    Here is an example of chart scales of X 3 and 2 cursor associated with the scale 'Time' and 'Time 2 "respectively.

    The reason why it is important, it is that the X values read you in the column 'X' cursor will be different depending on whether the cursor is associated with one or the other ladder, as you can see above.

    HTH.

  • How can I get the default value of the cursor in the address bar when I open a new tab, rather than the cursor by default a search engine text box?

    Using Firefox 17.0.1 and then I XP

    Firefox does by default. You probably have an add-on installed that changed the focus of the cursor in the URL bar of the search bar.

    http://support.Mozilla.com/en-us/KB/troubleshooting+extensions+and+themes

  • Get the value of the cursor in variable AppleScript

    I'm looking for a pointer on where to start with this project, please.

    I want to create an application with a simple slider - say, the divisions of 10% on a scale of 0 to 100% - and then to feed this entry in a script variable.

    I guess it will be something with AppleScriptObjC.  If this is true, can anyone recommend that a good getting started resource please?

    Yes, you can use AppleScriptObjC, but there are also many other languages and tools that can be used.  Are you familiar with AppleScript and cocoa, or programming in general?  I ask because AppleScriptOBjC is a framework that allows you to access Cocoa classes and methods go AppleScript, so you would need to know a bit about the two of them.  In addition, the Interface Builder in Xcode is what is used to generate the UI for your typical application of cocoa, so you would need to know a little more about this as well.

    Apple doesn't have a lot of specific other than their Release NotesAppleScriptObjC documentation, because they expect you to be able to use the existing Objective-C stuff.  However, an early AppleScriptObjC tutorial can be found at MacScripter.net, and something more to date can be found at MacOSXAutomation.com.

  • ORA-00060: Deadlock detected while you wait the cursor CLOSE resource

    Hello

    I am a new Member of this forum. I work with a problem that we have obtained a few weeks ago. It runs in the lot C Pro executable on 10 threads dealing with > 800 data accessed from more than one table. The error, such as reported was a package.function call.

    This is the error I encountered:
    process_item ~ G *, D * ~-60 ~ ORA-00060: Deadlock detected while you wait resources ~ PACKAGE ERROR = cursor CLOSE C_ * in the R package *. I * 7641

    The slider is a simple SELECT without Table or record locking.

    My questions are:
    * During the occurrence of this error, execution is already in the line of the CLOSE cursor or did the error has occurred between the OPEN and the CLOSE slider? There are several lines of code between the OPENING and CLOSING:
    -one who calls to a package.function that simply stores the values of parameter to a variable
    -another one that retrieves the cursor. The group that contains the values of the cursor is used only by a single function in the package

    * Is it possible for this CLOSE cursor cause a deadlock? What could have caused this?

    * From what I know, Oracle treats blocks by abandoning the blocking process, while others continue, but this impasse caused our program to hang. How is that possible? The origin of the impasse might be our Threading program? This is a rare event and has past that twice this year.

    Thank you
    RAF

    RAF Serrano wrote:
    I see, so it be that blocking has occurred before the CLOSE cursor or it occurred during CLOSING? The cause could be executable ProC

    first cause is NOT ProC

    or is it really an error in PL/SQL

    first cause is NOT PL/SQL.

    cause of ORA-00060 is DML (INSERT, UPDATE, or DELETE)

  • Control of digital publishing related to position of the cursor in a field data

    OK, I have some data presented beautifully in a waveformgraph and I added a slider. Then I add digital editing area, the idea being to show the value of the cursor is located at. How do it join.

    If you add a gauge, then you can just specify the gauge as a source in the digital editing area, I see... I can't add the slider of the parcel of waveform in the same way?

    How about a label next to the pointer indicates the current value?

    I'm sure there is an easy answer, but I have little time and would appreciate some tips to make me go fast. Thank you :-)

    Thank you ;-)

  • Can I change the icon of the cursor when hover over one active link with another?

    Can I change the icon of the cursor when hover over one active link with another?

    Muse does not natively support, but all you need to do to make it work is on your page, add properties in the head content:

    Where "value" is the cursor you want for example for a cross-shaped cursor...

  • Passing the value of the SQL query select list

    Hello

    In my application users have in their homepage to a region which has two simple things, a part of LIST SLECT lov function and a BUTTON

    There is also another page which has a normal life to report which shows the employees.


    Homepage the user can select certain number of Department in its 'SLECT-LIST' and click 'open '.


    For example: If the user has selected a DEP_NUM_5 and click on the BUTTON it will be redirected to the page of a report and gets only showed the employees belonging to the Department 5.


    The report page contains a simple SQL query, and I understand that somehow I must pass the value in the SELECT LIST, where I now have the '?


    How can I do this, where should I start?

    Of course I would really appreciate an example of code, if anyone has time to do a.

    
    select "EMP_ID", 
    "EMP_FORNAME",
    "EMP_SURNAME",
    "DEP_NUMBER"
    from EMP E
    where E.DEP_NUMBER = ????????
    
    

    Hi Sozua,

    1. create an item hidden on the page where you have the report.

    I say P2_DEPT_NO

    2 assign to that in your sql query

    select "EMP_ID",
        "EMP_FORNAME",
        "EMP_SURNAME",
        "DEP_NUMBER"
        from EMP E
        where E.DEP_NUMBER = :P2_DEPT_NO
    

    below the area source ther is also an option

    Elements of page to submit-> put this element in this.

    for example;

    Page to submit items: P2_DEPT_NO

    3. change your button

    Action: Redirecting to page of this application

    Page: 2 / / assuming that page 2 is the report page

    Place these items: P2_DEPT_NO

    with these values: & P1_SELECT_LIST.  assuming that selection list is on page 1

    Hope this helps you,

    Kind regards

    Jitendra

  • Refresh the report area of PL/SQL (not Page) using the value of the select list

    Hello

    I have a report region based on a "body of the PL/SQL function returning a query'which SQL is generated on the selection of a value of an element from the selection list, select action list is"Redirect and set", but this causes the entire page refresh rather than just the region report." I tried to update the report using only a dynamic action on the item list select (Action now reset to 'None'), but now the report does not appear on the choice of the list. Can someone suggest a solution that will allow me to update this report without refreshing the page? I use APEX 4.2.2 and the syntax of the statement is as follows:

    DECLARE

    v_statement VARCHAR2 (500);

    BEGIN

    SELECT query_text
    IN v_statement
    OF sql_queries
    WHERE query_id =: P2_QUERY;

    RETURN v_statement;

    END;

    where P2_QUERY is Select list item,

    Kind regards

    Kevin.

    KevinFitz wrote:

    The displayed report region is subordinate to the point P2_QUERY is NOT NULL. I guess that the region appears not is because the Action for the select list item is set to None, and so P2_QUERY is always NULL.

    No, the region does not appear because it is subordinated to the P2_QUERY being NOT NULL. This means that the region of report never exists on the page displayed in the browser, so it cannot be updated dynamically. (Dynamic updating is not to evaluate the conditions of the region, and she makes only the content of the report, not the whole region again).

    Remove the condition on the region to report, check the update works and then go back on what exactly are the requirements here. If you want to the area appear only when P2_QUERY has a value, and you want it to be regenerated without submitting and reposting of the page, the region must then be hidden rather than conditionally restored and shown via dynamic when action P2_QUERY Gets a value.

    I tried to add a further Action for the event real value DA but has been a mistake, as stated above,

    All irrelevant if Page to submit items on the region is used correctly.

  • selecting a value in the drop-down list but page must not get recharged again.

    Hello
    I created a drop-down list. After you have selected a value from him, I can get a value in the box of text below according to updon one sql query. but the problem is that I HAV to select Page Action when the changed value parameter to the set value and redirect. Thanks to her whenever I have to select a value from the drop-down list, page get updated. Is there a way that will satisfy the requirement but page does not get new dependants.
    I use apex 4.2.
    Thank you

    You can create A dynamic Action to set the value while changing the value in the Select list (drop-down list).

    Event: change
    Selection type: item (s)
    Article (s): choose your selection list item
    Action: Execute the PL/SQL Code
    PL/SQL code:

    begin
    select colum_name into :Px_text_item_name from table where column_name=:px_select_list_name;
    end;
    

    Page elements to send: px_select_list_name
    Page referred to return: Px_text_item_name

    Its work for me without refreshing the page. Assume that, if you want to pass this value to the element in another page, then use the branch for redirection and assign the value to the element on the page of another.

    Thank you
    Lacombe

  • Default value for the select list of type of form elements

    Hello

    I do not work with Apex that mutch, so this may be a simple question... but I still need help.
    I have a form, in this form, I have a question P19_ONTVANGER_ID, this is based on a LOV.
    This LOV is on a table that has a field of username with the value of APP_USER.
    The table looks like:
    ONTVANGER_ID this is the PK and is going to be the return value from the LOV.
    NAME is the display value for the LOV.
    USERID is the column APP_USER.

    What users would like to get is that if they create a new record, the default value for the P19_ONTVANGER_ID field is their own ONTVANGER_ID.
    But they must also be able to select another user.

    hope there is someone out there that can and will help me.

    Kind regards

    Rob

    APEX 4.0.2 Oracle 10

    Rob-v-M-Gn-Nl wrote:
    Until now, I had, but I need to select the value of the id of the table and the list of selection item appears the corresponding value.

    How can I do this?

    You can select the Type of default value as the body of the PL/SQL function

    and to add something like that

    declare
    v_return number;
    begin
      select your_id
        into v_return
      from your_table
      where some_column = :APP_USER;
     return v_return;
    exception when no_data_found then
     return null;
    end;
    

    http://www.asktheoracle.NET/PLSQL-function.html

  • Refreshing a report on the change in value of the selection list

    -Very well, this should be very easy, but I can't seem to do things.

    I have 2 items on a page: a list of selection and a report.

    The report contains a WHERE clause that uses the value of the selection list.

    So when I change the value of the selection list, the report needs to be recharged.

    I don't want to use a 'Redirect and set' when I change the selection list, because I don't think it's very pretty.

    So I created a dynamic action that updates the State when the selection list is changed.

    Now for the problem: the report get updated, but the new value of the selection list is not used!

    How can I make select the value of the item to be stored in session state?

    I can't find this option anywhere in the parameters of the dynamic action.

    Thank you.

    popovitsj wrote:

    How can I make select the value of the item to be stored in session state?

    I can't find this option anywhere in the parameters of the dynamic action.

    It is in the region of report definition: Page to submit items in the Source section.

Maybe you are looking for