Need help on automatically display values LOV

The current functionality - user clicks on the icon of the lov lov screen opens and the user should click on 'Go' and displays the values of lov
The features you want - the lov icon is clicked, lov screen opens with the displayed values. The user must NOT push the button 'Go '.
Gurus of the OFA - please let know us how this desired features can be achieved
Thank you
Julius

Hello

There is only one way to do this...

While the page is loading in process request, just put the text in LOV entry '% '.

OAMessagelovInputBean lov = (OAMessagelovInputBean) webBean.findIndexedChildRecursive ("lovid");
If (lov! = null)
{
lov.setText(pageContext,"%"); "
}

Thus, when you open the lOV now it will display all values.

Thank you
Gerard

Tags: Oracle Applications

Similar Questions

  • display value lov

    Hello!

    Is it possible to compare a lov display value with a string of characters in dynamic action?

    So, I need a dynamic action to trigger based on the displayed value of point lov. For example when I select "1" from point lov I want to trigger an action...

    Setup an example on apex.oracle.com

  • Need help to create a conditional LOV function

    First off the coast to let put me the warning that I am not the right Wick informed in PL/SQL. I need to use the LOV conditional for a list of selection based on the user's role in this application.

    I use the example of samples of the Dene - link: [http://apex.oracle.com/pls/otn/f?p=31517:120:2954663700615140:NO]

    I created the 2 types required and tested the function with a simple select query and LOV works.

    However, I need the function to return values based on the user role. I know, it's probably the ugliest pl/sql, you may have seen yet ;) I hope that you guys can decipher the logic that I use. Obviously, this code does not validate.

    You guys could help me with this?
    CREATE OR REPLACE FUNCTION return_art_lov_fn
    RETURN art_table_type
    AS
      v_data   art_table_type := art_table_type ();
    BEGIN
    IF
    EXISTS (SELECT '1'FROM GBL_PEOPLE, GBL_ACCESS WHERE upper(gbl_people.userid) = upper(app_user) AND gbl_people.person_id = gbl_access.person_id and gbl_access.art_role = 9)
    THEN
    FOR c IN (SELECT reverse_name, person_id
                   FROM gbl_people)
       LOOP
          v_data.EXTEND;
          v_data (v_data.COUNT) := art_rectype (c.person_id, c.reverse_name);
       END LOOP;
    ELSE
    FOR c IN (select reverse_name,person_id from GBL_PEOPLE where upper(userid) = upper(APP_USER) and current_flag is not null
               union
              select reverse_name,person_id from GBL_PEOPLE where mgr_person_id =(select person_id from GBL_PEOPLE where upper(userid) = upper(APP_USER) and
               current_flag is not null) and current_flag is not null)
       LOOP
          v_data.EXTEND;
          v_data (v_data.COUNT) := art_rectype (c.person_id, c.reverse_name);
       END LOOP;
    ENDIF;
       RETURN v_data;
    END;
    -Vinod

    Published by: user4908943 on December 10, 2009 16:37

    Published by: user4908943 on December 10, 2009 16:40

    Published by: user4908943 on December 10, 2009 16:41

    Published by: Jeremy on December 11, 2009 04:34
  • Need help to select the value of the affected line

    Hello! I need help to write a statement Select returns a value of the respective line in a table. I have a table that contains an id and a name of entity and a table of addresses with the lines of address, city, province/state, country, etc, which is linked through the identifier. There may be several lines in this table for any entity id given etc. which are distinguished by a type of address for example Mailing, billing, payment, shipping,. I'm writing a view that returns the name of the entity, the city and the State. I want to use the address of delivery, if it exists, otherwise, I want the broadcast address. One of these types of addresses will still exist, and it is possible that both will exist. I'm just back to SQL after a prolonged absence and am not familiar with some of the new features. I'm also new to the Oracle community. We are on Oracle 11.2. Any help would be greatly appreciated. Thank you!!

    P.S. I posted this question a couple of weeks and got some responses. But I can't find the post. I thought I posted it here, but who knows! As I said, I'm new on this.

    Hello

    Here is an example of how to join another table to results of Top - N all:

    WITH got_r_num AS

    (

    SELECT deptno, job, ename, sal, hiredate

    Rank () OVER (PARTITION BY deptno

    CONTROL OF CASE work

    WHEN PRESIDENT", THEN"A ".

    WHEN 'MANAGER' THEN 'B '.

    END

    ) AS r_num

    FROM scott.emp

    WHERE job IN ('MANAGER', 'PRÉSIDENT')

    )

    SELECT d.deptno, d.dname

    r.ename, r.job, r.sal, r.hiredate

    Got_r_num r

    JOIN scott.dept d.deptno d = r.deptno

    WHERE r.r_num = 1

    ORDER BY d.deptno

    ;

  • Need help on how to load lov accoding to the value, select locale

    Hello
    My scenario is, I'll have two buttons. A single button for local (English) and another button for local (Nl) Dutch.
    I have a table of database that hold the 2 columns, which are en and Nl.
    I load this value of columns using a Lov
    When I click on the en button, Lov sholud load according to valus in the database column in and when I click on Nl it touches sholud charge Lov according to the values in the Nl column.

    I use a managed Session bean that allows to set the locale.

    I've implemented this scenario, but I had some bad problems.
    (1) my implemented method is not recommended as a best practice
    (2) lov dosagesn can't change until I click a value to this topic.

    In the query select lov, I used the link variable and value as adf.context.expressionEvaluator.evaluate('#{UserPreferences.language}')

    It is not recommended, so please help me to do this with best practices.
    Thank you.

    in your bean writing managed code below

            FacesContext facesContext = getFacesContext();
            Application app = facesContext.getApplication();
            ExpressionFactory elFactory = app.getExpressionFactory();
            ELContext elContext = facesContext.getELContext();
            ValueExpression valueExp =
                elFactory.createValueExpression(elContext, "#{data." +"APPLICATION_MODULE_NAME" +".dataProvider}",Object.class);
    
                AppModuleImpl am =(AppModuleImpl)valueExp.getValue(elContext);       // here AppModuleImpl is the application module Impl class name
                ViewObject myVO = am.findViewObject("VIEW_OBJECT_NAME");
                myVO.setNamedWhereClauseParam("BIND_VARIABLE_NAME", "VALUE_OF_BINDVARIABLE");
               myVO.executeQuery();
    

    and test, hopefully this solves the problem :)

  • Need help to retrieve the value of an xml tag.

    Hi all

    Hello all, I have problem to extract a value from an xml tag. I created an xml schema based on the schema, I created an xmltype table and inserted a value to the table. When I try to extract a value of a particular tag I can't do... Kindly help me to solve this problem. Here by I write all working, I did...

    I use the following client:
    -----------------------------------

    SQL * more: Release 10.2.0.1.0 - Production on Mon 31 Jan 11:44: 59 2011

    Copyright (c) 1982, 2005, Oracle. All rights reserved.


    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With partitioning, OLAP and Data Mining options


    ////////////////////////////////// XML Schema ///////////////////////

    Start
    () dbms_xmlschema.registerSchema
    "http://www.oradev.com/chipsxml.xsd,"
    ' < scheme xmlns = "http://www.w3.org/2001/XMLSchema".
    targetNamespace = "http://www.oradev.com/chipsxml.xsd."
    xmlns:SAMP = "http://www.oradev.com/chipsxml.xsd".
    version = "1.0" >

    < feature name = 'Field1' >
    < complexType >
    <>sequence
    < element name = "UTI" >
    < complexType >
    <>sequence
    < element name = "U01" type = "string" / >
    < element name = "U02" type = "string" / >
    < element name = "U03" type = "string" / >
    < element name = "U03a" type = "string" / >
    < element name = "U03b" type = "string" / >
    < element name = "U03c" type = "string" / >
    < element name = "U04" type = "string" / >
    < element name = "U05" type = "string" / >
    < / sequence >
    < / complexType >
    < / item >
    < / sequence >
    < / complexType >
    < / item >
    < / schema > ',
    (TRUE, TRUE, FALSE, FALSE);
    end;


    A table that has several column.

    CREATE TABLE chipsxmltable1)
    Identification number, XMLDATA XmlType)
    XMLTYPE XMLDATA STORE AS OBJECT / RELATIONAL
    XMLSCHEMA 'http://www.oradev.com/chipsxml.xsd '.
    ELEMENT 'field1 ';


    Insert the query in chipsxmltable.

    INSERT INTO (VALUES) chipsxmltable
    XmlType.CreateXml ("<?") XML version = "1.0"? >
    < xmlns:samp samp: field1 = "http://www.oradev.com/chipsxml.xsd" >
    < USE >
    No. < U01 > < / U01 >
    Y < U02 > < / U02 >
    Y < U03 > < / U03 >
    < U03a > Y < / U03a >
    < U03b > Y < / U03b >
    < U03c > Y < / U03c >
    Y < U04 > < / U04 >
    Y < U05 > < / U05 >
    < / UTI >
    ((< / samp: field1 > '));


    To display the data in a field with the structure:
    --------------------------------------------

    1. motion:
    ----------
    Select * from chipsxmltable1;

    Output:
    -------


    ID XMLDATA
    ---------- -----------------------------------------------------------------
    1 <? XML version = "1.0"? >
    < xmlns:samp samp: field1 = "http://www.oradev.com/chipsxml.xsd" >
    < USE >
    No. < U01 > < / U01 >
    No. < U02 > < / U02 >
    Y < U03 > < / U03 >
    < U03a > Y < / U03a >
    < U03b > Y < / U03b >
    < U03c > Y < / U03c >
    Y < U04 > < / U04 >
    Y < U05 > < / U05 >
    < / UTI >
    < / samp: field1 >


    2 query: (both the query shows the same result)
    ----------

    SELECT X.xmldata.getClobVal ('XMLDATA' FROM chipsxmltable1 X);

    Select extract (XMLDATA, "/ Field1'") .getstringval ("XMLDATA" chipsxmltable1 x);


    Output:
    --------

    XMLDATA
    -----------------------------------------------------------------
    <? XML version = "1.0"? >
    < xmlns:samp samp: field1 = "http://www.oradev.com/chipsxml.xsd" >
    < USE >
    No. < U01 > < / U01 >
    No. < U02 > < / U02 >
    Y < U03 > < / U03 >
    < U03a > Y < / U03a >
    < U03b > Y < / U03b >
    < U03c > Y < / U03c >
    Y < U04 > < / U04 >
    Y < U05 > < / U05 >
    < / UTI >
    < / samp: field1 >


    To display the data as a single string without structure using "getstringval()":
    ---------------------------------------------------------------------------------

    3 query
    ---------

    Select extract (XMLDATA, "//text()').getstringval()"CHIPS - XML"of chipsxmltable1 x;)

    Output:
    -------

    CHIPS - XML
    ---------------------
    NoNoYYYYYY


    To display the data as a single string without structure using "getclobval()":
    ---------------------------------------------------------------------------------

    4 query
    -------

    Select extract (XMLDATA, "//text()').getClobVal()"CHIPS - XML"of chipsxmltable1 x;)

    Output:
    --------

    CHIPS - XML
    -----------------
    NoNoYYYYYY


    To display the data in a tag with or without structure (which does work) using the function "EXTRACT":
    -------------------------------------------------------------------------------------------------------------

    6.query:
    ---------

    Select extract (XMLDATA, "/Field1/text()').getstringval()"XMLDATA' chipsxmltable1 x;

    Select extract (XMLDATA, "/Field1/UTI').getstringval()"XMLDATA' chipsxmltable1 x;

    Select extract (XMLDATA, "/Field1/UTI/U01').getstringval()"XMLDATA' chipsxmltable1 x;

    Select extract (XMLDATA, "/Field1/UTI/U01/text()').getstringval()"XMLDATA' chipsxmltable1 x;


    Output:
    --------

    CHIPS - XML
    ---------------------------------------



    The queries above are not fetch the value.



    To display the data in a tag with or without structure (which does work) using the function "EXTRACTVALUE":
    ------------------------------------------------------------------------------------------------------------------

    7 query:
    ----------

    Select extractValue (XMLDATA, ' / Field1/UTI ') 'XMLDATA' of chipsxmltable1 x;

    Select extractValue (XMLDATA, ' / U01/UTI/Field1 ') 'XMLDATA' of chipsxmltable1 x;


    Output:
    --------

    X
    -



    The queries above are not fetch the value.


    My question is:
    --------------------
    How to extract the values of xml tag when the value are inserted through xml schema?


    My apologies if the description is not clear. Kindly let me know if further details are required. Thanks a lot for your help.

    Very cordially,
    Godwin Castro C.V.

    Hello

    You must declare the namespace of each element used in the XPath expression, like this:

    SQL> select extractvalue( XMLDATA
      2                     , '/samp:Field1/UTI/U01'
      3                     , 'xmlns:samp="http://www.oradev.com/chipsxml.xsd"' ) "XMLDATA"
      4  from chipsxmltable1 x
      5  ;
    
    XMLDATA
    --------------------------------------------------------------------------------
    No
     
    
    SQL> select extract( XMLDATA
      2                , '/samp:Field1/UTI'
      3                , 'xmlns:samp="http://www.oradev.com/chipsxml.xsd"'
      4                ).getstringval() "XMLDATA"
      5  from chipsxmltable1 x
      6  ;
    
    XMLDATA
    --------------------------------------------------------------------------------
    
      No
      Y
      Y
      Y
      Y
      Y
      Y
      Y
    
     
    

    Please see EXTRACT and EXTRACTVALUE documentation:
    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14200/functions051.htm#i1006712
    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14200/functions052.htm#SQLRF06173

    BTW, 'XMLDATA' is a pseudo-column used by Oracle. I don't know if it will never cause any conflict, but perhaps you need to rename your column.
    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14200/pseudocolumns010.htm#SQLRF00256

    Kind regards.

  • Need help, get message display driver has stopped working, but has recovered

    Had no problems until recently, my freezer of mouse and screen, then get message display driver has stopped working, but recovered it gets really bad, please help

    Hello

    1. what operating system do you use?
    2. What is the brand and model of your system?
    3. Once you get this error message?
    4. you did it before the issue of any material changes or software?

    Try the steps outlined in the methods mentioned below and let us know if it helps.
    Note: The following Microsoft Articles are applicable for Windows 7 and Vista.

    Method 1: Boot your system in clean boot mode and temporarily disable your antivirus software. Check if get the same error message or not.

    Step 1: Try now to the KB article to perform the clean boot:
    How to troubleshoot a problem by performing a clean boot in Windows Vista and Windows 7:
    http://support.Microsoft.com/kb/929135
    Important: After you used the clean boot in order to solve your problem follow step 7 to reset the computer to start as usual.

    Clean boot in XP:

    Try now to the KB article to perform the clean boot:
    http://support.Microsoft.com/kb/310353
    Important: After you use the clean boot in order to solve your problem follow the steps in the "steps to configure Windows to use a Normal startup state" section to start your system in normal mode.

    Step 2: Turn off the antivirus software:
    http://Windows.Microsoft.com/en-us/Windows7/disable-antivirus-software
    Important: Antivirus software can help protect your computer against viruses and other security threats. In most cases, you should not disable your antivirus software. If you need to disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network, while your antivirus software is disabled, your computer is vulnerable to attacks

    Method 3: update the driver for

    Updated a hardware driver that is not working properly:
    http://Windows.Microsoft.com/en-us/Windows7/update-a-driver-for-hardware-that-isn ' t-work correctly

    Method 4: Please visit the manufacturer's website and download the latest driver for your graphics card.

    Method 5: Windows 7 power save settings reduces the voltage to the video card too well when it is inactive for some video cards.

    To resolve this problem, disable the display (Plugged In) turn it off and turn off the display (on battery) power settings by using one of the following methods:

    Use the Group Policy settings:
    To resolve this issue by using Group Policy settings, follow these steps:

    (a) click Start, type gpedit.msc in the search box and press ENTER.

    (b) in the local Group Policy Editor, expand models of administration under Computer Configuration, expand System, expand power management, and then click display and video settings.

    (c) in the dialog box that opens, double click on turn off the display (Plugged In), click active, type 0 in the box to turn the display Off (seconds), and then click OK.

    (d) in the dialog box that opens, double click on turn off the display (on drums), click active, type 0 in the box to turn the display Off (seconds), and then click OK.

    Use the powercfg command:
    To resolve this issue by using the powercfg command, follow these steps:

    (a) click Start, type command prompt in the search box, and then click command prompt in the list of results.

    (b) at the command prompt, type the following commands:
    powercfg - X-monitor-timeout-ac 0
    powercfg - X-monitor-timeout-dc 0

    Get back to us if the problem persists.

  • Need help creating automatic setup of WiFi for XP Win 7, etc... Get errors on XP

    I have 100s of Win 7 and Win XP computers and I need a way to automatically configure WiFi. Some will be made for students and others for personnel etc. I did hours of research on this mega and using a Win 7 PC to create export to a USB key that is susposed to work on all versions of XP upwards. But, of course, it isn't. This works for Windows 7 and Vista, but not for XP.

    Here's what I did...

    1 a tried using the XP "Wireless Network Setup Wizard" to my XP PC. But it is defective and not allow you to create an installation WITHOUT any encryption, of course it is not acceptable as our WiFi does not use it. We use a system of Access Point Aruba which forces authentication VIA AD/connection on the first attempt to navigate the web. No encryption AT ALL as much as the WiFi client installation is concerned. I also did a profile exactly as I want only it except that I put in bogus WEP settings so it creates the SMRTNTKY with the WSETTING file. WFC file in it and then edited the. WFC to remove file but then it wouldn't work which is NOT ACCEPTABLE.

    2 went to a Win 7 PC as it does from there is supposed to work on Vista and XP too and had no problem using the option 'Copy this network on a USB flash drive profile' and it works perfectly for Win 7 and Vista, but - error on XP with the following message...

    The wizard found no information needed to set up a network, or the information was not usable. Try to rerun the wizard to your original computer.

    After reviewing the files generated between the XP method to export a WiFi profile to a USB key and how to Win 7 well, I found the following differences, all related to security settings. Of course, it's a bug or a design defect and a BIG problem for the IT Pro.

    Here's what my two WSETTING. Resemble WFC files.

    For XP I have:



       
            011C0F3E-EB0F-46B8-BA95-267ADEA25EC3
            0B4E59B8-8317-46B2-B8C2-C46850162E6C
            The Microsoft Wireless Network Configuration Wizard
       

        Student
        ESS
        0
        0
       
            Open
            WEP
            12345
            0
            0
       

    For Win 7 I have:



       
            01BC3658-4F27-42D1-92F7-3F7CF581A75E
            0B4E59B8-8317-46B2-B8C2-C46850162E6C
            The Microsoft Wireless Network Configuration Wizard
       

        Student
        ESS
        0
        0
       
            Open
            None
           
            0
            0
       

    There seems to be ONLY two lines which differ between the two files and are as follows...

    For XP:

    WEP
            12345

    For Win 7:

    None
           

    As you can see that the difference is in the security settings that I don't use. (This is a choice made by the powers above me and I have to work with that. MS should keep in mind at ANY moment the IT pro should have the last say on optional parameters is NOT MS)

    It seems that Microsoft, when they created this tool never intended be used by computer professionals as they force the settings for the IT Pro to decide at ANY TIME, not Ms.  IE to use WEP/WPA etc, or NONE.

    So am I missing something? How do I create an automated way I can run thousands of times without error on XP, Vista or Win 7 to configure profiles WiFi which will have NO apparent safety, but who actually do?

    I would VIA reg setting if I knew where to find all the reg settings to do, but the hours of Googleing gave this info. Everything seems to point to the network VIA USB method profile, which would be perfect if it worked on XP. If there was a simple file I could copy from a master system of its many clones then it works. I could wrap it in one. BAT file or use INNO Script to create a file of configuration etc. Many ways I could do if I could find any files, settings, etc., I would need control.

    It shouldn't be rocket science. I've seen where Microsoft has said they recognize the need for professionals like me to be able to automate this process for any tech user, but then the tools thay do aren't for the professionals that they take away the option of PROFESSIONAL (on-site tech who knows the most, is NOT MS) to decide, using their knowledge intament businesses must make choices about the use or non-use of WEP etc (it's a theme common in MS assistants, just look at the hack job SYSPrep is based by default on the local Administrator profile profile, a MAJOR mistake and a security risk, rendering it useless in a corporate environment where the local Admin profile is preconfigured with options parameters, links, etc. to the things a pro IT does not that the general user to see or to do but they need on the local admin ONLY)

    Thanks for any help you can give.

    Ralph Malph

    Hello

    Questions like these are much better handled in the TechNet IT Pro Forums.

    My moderator tools cannot transfer messages on Windows forums, please re - ask you question there.

    http://social.technet.Microsoft.com/forums/en-us/w7itpronetworking/threads?sort=firstpostdesc

  • Need help to set the values of the scrolling effects in Muse

    Hello

    I'm working on a new Web site and I have a created a strip behind my menu I want to scroll down and line up with the menu to each anchor point for every article on the site of the only page I've created. I applied the correct values for the scrolling to the first anchor point successfully, but now I have a problem of adjustment to get the same effect for the second anchor.

    Help, please. I've included a link to my site published the catalyst for the company.

    Thank you!!

    Paul Normanhttp://indicted-scrolltest-1-7-15-2015.businesscatalyst.com

    When you use the scroll effect, you don't have the ability to create more than two "key frames" (first motion motion / final). The effect sought to achieve would need to have several "key frames".

    The effect of what you want, you need to create several bars and making them appear and disappear for each sector.

    Or you could PIN just the bottom bar to a specific location on your site, unfortunately there is no movement that you are after,

    but it can be positioned correctly.

  • Need help to reset the values and toggle items based on a value

    Experts,
    I have a problem with the set_item_property
    Here's the background. I have a form with a single block, and a canvas. He has 10 points, depending on the value of the first element, the remaining items can be enabled or disabled.

    I wrote a trigger "pre-record", whereas before the outputs in the new record based on the value of the first element of the new record the other elements in the new record are enabled or disabled.

    The problem is any value of the box, if I put it in set_item_property ('blockname.item_name ', set', property_false), sound very good, but in a new record, when I tried to
    activate the same element to help set it set_item_property('blockname.item_name',enabled,'property_true) it does not work.

    In singles, I can do as property_false but not back to property_true.

    And when I used the command set_item_property ('blockname.item_name ', on', ") to reset the value back to its design time value form is to throw an error
    withMessage ' FRM-41046'.»

    Guys I need your help on this. Please let me know how can I this and why the error message when I try to reset the value.

    Property_false value ENABLED also affect the Update_allowed/Navigable FALSE at the same time. You must set these properties to return true explicitly, if that's what you hear ' market do not. Search for 'Propagation of changes to property' in Froms help for more details.

  • Need help with setting the value of the variable in the callable statement in the OPS

    Hi all

    I use a callable statement in my code, I put the value as below.

    String updateStmt = "BEGIN TEST_PKG. MAIN_PROCEDURE ("+

    ":1)" +

    "; END; « ;

    CallableStatement cstmt is getDBTransaction (.createCallableStatement(updateStmt,1));.

    cstmt.setString (1, empRow.getLinenum () m:System.NET.SocketAddress.ToString ());

    but the problem is when the value of 1 is NULL, I'm not able to call the procedure, it is not inserting data into the table, but when the value of 1 is not null, it is able to call the procedure and inserting the data correctly.

    Please help me urgent.

    Hello

    Please make changes as below

    If (empRow.getLinenum (). ToString ()! = null)

    {

    String updateStmt = "BEGIN TEST_PKG. MAIN_PROCEDURE ('+': 1) «+»; END; « ;

    CallableStatement cstmt is getDBTransaction (.createCallableStatement(updateStmt,1));.

    cstmt.setString (1, empRow.getLinenum () m:System.NET.SocketAddress.ToString ());

    }

    Also check out the link Oracle Application Framework Dilip Articles: education prepared - controller

    Thank you

    Dilip

  • need help to get the value using the REGEXP_REPLACE function.

    I am trying to extract the value placed between "< listitems >... < / listitems >" but I am unable to get these value using the REGEXP_REPLACE function.
    select REGEXP_REPLACE('<InputParameters></ParamSet><listitems>14545454</listitems></ParamSet></InputParameters>'
    ,'(<InputParameters>.*<listitems>)(.*)(</listitems>.*<InputParameters>)'
    ,'\2') from dual;
    required output:
     1454554
    Can someone please help me achieve this goal.

    Hello

    You forgot the / before the last InputParameters. If fix you that, your code will work.

    Here is a slightly different way:

    SELECT  REGEXP_REPLACE ( '14545454'
                     , '^.*?(.*?).*$'
                     , '\1'
                     )     AS listitems
    FROM    dual
    ;
    

    Least to type, the less likely you will have to make typos.
    If there are 2 (or more) elements of listitmes, 1 will be returned.

    From Oracle 11.1, you can also use REGEXP_SUBSTR. I have Oracle 10.2 avaialable now, so I can test the following, but I think you'd say:

    SELECT  REGEXP_SUBSTR ( '14545454'
                     , '(.*?)'
                     , 1
                     , 1
                     , NULL
                     , 1
                     )     AS listitems
    FROM    dual;
    

    When it comes with the text that is or looks to, XML, consider using XML functions.

  • Need help to automate a script to create user

    Hi people,

    Environment: 10.2.0.4.0
    Platform: Sun Solaris

    I had to stop a few users (about 100) in my database. But before I did, I would save the user creation script as backup (just in case I need to re - create a user).

    Toad can generate the script to create user as follows

    CREATE USER TEST
      IDENTIFIED BY VALUES '**********'
      DEFAULT TABLESPACE PUBLISH
      TEMPORARY TABLESPACE TEMP_APP
      PROFILE APP_USERS
      PASSWORD EXPIRE
      ACCOUNT UNLOCK;
      -- 2 Roles for TEST
      GRANT CONNECT TO TEST;
      GRANT E_READONLY TO TEST;
      ALTER USER TEST DEFAULT ROLE ALL;
    However, it is simply too tedious to do it for each user. Can someone please suggest a solution more effeienct to generate the script to create user using PL/SQL, script etc?

    Thanks in advance

    rogers42

    DBMS_METADATA. GET_DDL

    Long value 1000000000

    Select dbms_metadata.get_ddl ('USER', username)
    from dba_users
    where

    There are other functions in this package to other things you list.

    -----------
    Sybrand Bakker
    Senior Oracle DBA

  • BlackBerry Smartphones need help with automatic opening for App World

    I would like to know if there is an app or a way to activate the automatic for App World connection when the connection is in place to enter your e-mail & password on my phone which is the Curve 8530 performer 5.0?

    I don't think that there is an app like this for security reasons. What happens if this app loads apps depleting your memory against your will? On mine I connect at once, then if I don't do a hard reset it remains connected & just checked now its connected in. Mine has just informed e-mail so I only enter the password.

  • Need help to automate something in InCopy

    Key A few of our editors are looking for a way to have a line predetermined text added to a story via a shortcut. For example ' If you have any comments please write us to [email protected]'.»» We use XP pro and InCopy CS5. I'm not familiar with the scripts, but if there is a way to do it using scripts I am not opposed to learning it.

    This one-line script is this:

    App.Selection [0] .insertionPoints [0] .silence = "If you want to comment please write to us at [email protected]"; "

    Then, you can assign a key in Edit > keyboard shortcuts in the script box.

Maybe you are looking for