Channel number SELECT dataset not return

Hi, I have a problem with the following code:

PROCEDURE create_so (p_import_batch IN VARCHAR2) 
 IS


 v_import_batch VARCHAR2(1000);
  
 CURSOR sales_c (x_import_batch IN VARCHAR2)
 IS
 SELECT pbo.*
 ,      msib.inventory_item_id
 FROM XXMEL_PVS_BSH_ORDER pbo
 ,    mtl_system_items_b msib
 WHERE 1=1
 AND msib.segment1 = pbo.material
 AND msib.organization_id = 26
 AND  to_char(pbo.import_batch_id) IN ( x_import_batch);

 BEGIN

  select '('''||replace(p_import_batch,':',''',''')||''')' 
  INTO v_import_batch
  from dual;
   
  FOR sales_r IN sales_c (v_import_batch)
   LOOP
   
    raise_application_error(-20001,v_import_batch);--Program should raise this error as the cursor should return rows

  END LOOP;

END;

I'm passing in the procedure a 1:2:3 as a VARCHAR2 parameter.  The value should be passed as a VARCHAR2 because we use a part of the shuttle from one page of the APEX.

I want to extract all records in the table of pbo which have an import_import_batch_id (which is a number data type) as v_import_batch who, at the minute ('1', ' 2', 3').

The import_batch_id is a numeric field, so I got to to_char to try to work with the VARCHAR2 parameter I am by the way.

The

 select '('''||replace(p_import_batch,':',''',''')||''')' 
  INTO v_import_batch
  from dual;

code works well and is back ('1 ', '2', 3') which is what I want.  If I then run the select with this hard coded that value

SELECT pbo.*
       ,msib.inventory_item_id
 FROM XXMEL_PVS_BSH_ORDER pbo
 ,    mtl_system_items_b msib
 WHERE 1=1
 AND msib.segment1 = pbo.material
 AND msib.organization_id = 26
 AND to_char(pbo.import_batch_id) IN ('1','2','3')

It works OK and return lines that I expect returned.  If I try to use the variable rather than the hard-coded value, the SELECT statement does not return anything.

Any advice would be great.

Thank you

Chris

You must convert your of as '1 ', '2',' 3' can be considered to be 3 ranks.

Try the following question

SELECT pbo.*
       ,msib.inventory_item_id
 FROM XXMEL_PVS_BSH_ORDER pbo
 ,    mtl_system_items_b msib
 WHERE 1=1
 AND msib.segment1 = pbo.material
 AND msib.organization_id = 26
 AND to_char(pbo.import_batch_id) IN (
 select regexp_substr ( txt, '[^,]+', 1, level) data from (select '1,2,3' txt from dual) t CONNECT BY level <= length (txt) - length (replace (txt, ',')) + 1
 )

Tags: Database

Similar Questions

  • Select * does not return a Identity column

    Anyone know why CF is not my identity column? I need the value of the identity column to pass through a URL and process updates Records.

    Select * returns her.

    #queryName.ColumnList # used and it does not appear.

    I have it. I have specified the columns and @ identity to retrieve the value of the identity column

  • Custom number format function does not return 0 in decimal form

    Hello

    My custom number formatting feature does not work. It was working fine when the site has a standard client server architecture. However, when we changed using the REST API with javascript and HTML 5 function works for most except in cases when I need it displays 0 for decimal numbers.

    Basically, the function accepts arguments a number and the number of decimals and returns the number rounded the number of decimals. Below, I've stripped naked function minimum, even I was testing.

    < cffunction = "dispCostPeriod" access = "remote" returntype = "string" output = "false" hint = "name costs for a specified period at the user" >

    < name cfargument = "in_decCost" type = "numeric" required = "yes" / >

    < name cfargument = "in_iRound" type = "numeric" required = "yes" / >

    < cfset decRoundedNum = NumberFormat (in_decCost, "_" & RepeatString("9",in_iRound)) >

    < cfreturn decRoundedNum / >

    < / cffunction >

    When I pass 55.00089 and 3, the function returns 55.001.

    When I was 55 or 55.000000 or 55.0000089 and 3, the function returns 55

    . And I need to 55,000.

    I tried both for returntype 'string' and 'digital', various masks as _.999, _.000, _. ___.

    I tried NumberFormat (in_decCost, "_.000") straight back.

    Nothing works.

    I use CF10 on Windows Server 2008.

    Any help much appreciated.

    Thank you

    Gena

    Can you explain how the data gets into the browser as a JSON string format?

  • Run query does not return a lines

    Hello

    I find that the Executequery code does not return everything.

    {

    pageContext.writeDiagnostics (this, "connection entry-front connection", 1);

    Connection Conn = pageContext.getApplicationModule (webBean) .getOADBTransaction () .getJdbcConnection ();

    pageContext.writeDiagnostics (this, "connection entered" & conn, 1);

    pageContext.writeDiagnostics (this, "input connection [AJ]" & conn, 4);

    Dim Query = "select CODE a.secondary_uom_code, (select b.unit_of_measure from MTL_UNITS_OF_MEASURE b where b.uom_code = a.secondary_uom_code) GLU, xxtmxc_primary_selling_suom (: 3, a.inventory_item_id) ' PSUOM from mtl_system_items_b where a.inventory_item_id =: 1 and a.organization_id =: 2 and a.secondary_uom_code is not null ';"

    'UNION select 'OUR' CODE, UOM 'Number', 10 double PSUOM;

    String query = "" select secondary_uom_code CODE of mtl_system_items_b where inventory_item_id =: 1 and organization_id =: 2 and secondary_uom_code is not null '; "

    pageContext.writeDiagnostics (this, ' [AJ] after the query string", 4");

    pageContext.writeDiagnostics (this, "message query" + Query, 1);

    PreparedStatement stmt = conn.prepareStatement (Query);

    pageContext.writeDiagnostics (this, "prepared statement Post" + stmt, 1);

    stmt.setString(1,Item);  ver1

    stmt.setString(2,Org);  ver1

    stmt.setInt (3, Dis.intValue ());

    stmt.setString(3,Dis);

    stmt.setInt (3, Ext.intValue ());

    stmt.setString (3, Ext); ver1

    pageContext.writeDiagnostics (this, "Post Ext after SetString" + Ext, 1);

    ResultSet resultset = stmt.executeQuery ();

    pageContext.writeDiagnostics (this, "Resultset" + resultset, 1);

    If (resultset.next ())

    for (ResultSet resultset = stmt.executeQuery ();)

    ResultSet.Next ();)

    While (resultset.next ())

    {

    String code = resultset.getString ('CODE');

    String uom = resultset.getString ("UOM");

    String psuom = resultset.getString ("PSUOM");

    row.setAttribute ("UomCode", code);

    row.setAttribute ("UnitOfMeasure", GLU);

    row.setAttribute ("LineAdjustedPercent", psuom);

    pageContext.writeDiagnostics (this, "secondary UOM" + resultset.getString ('CODE') + resultset.getString ("UOM") + resultset.getString ("PSUOM"), 1);

    pageContext.writeDiagnostics (this, "secondary UOM" + row.getAttribute ("UomCode") + row.getAttribute ("UnitOfMeasure"), 1);

    pageContext.writeDiagnostics (this, "LineAdjustedPercent" + row.getAttribute ("LineAdjustedPercent") + "PSUOM" + resultset.getString ("PSUOM"), 1);

    }

    ResultSet.Close ();

    stmt. Close();

    }

    catch (SQLException sqle)

    {

    throw new OAException ("error in query Preparation" + sqle, OAException.INFORMATION);

    }

    pageContext.writeDiagnostics (this, ' [AJ] after try-catch: ", 4");

    }

    }

    }

    }

    Hi Bobo,

    I tried the same requirement in my local instance and changed the code for you.

    Please check process requires working Code of the form below:

    ' Public Sub processFormRequest (pageContext OAPageContext, OAWebBean webBean)
    {
    OAViewObject QuoteLinesLevel70VO1Obj1 = (OAViewObject) pageContext.getApplicationModule (webBean) .findViewObject ("QuoteLinesLevel70VO1Obj");
    if(QuoteLinesLevel70VO1Obj1!=null)
    {
    If (QuoteLinesLevel70VO1Obj1.GetCurrentRow ()! = null)
    pageContext.writeDiagnostics (this, "Current Row" + QuoteLinesLevel70VO1Obj1.getCurrentRow () .getAttribute ("UomCode"), 1);
    }
               
    pageContext.writeDiagnostics (, "concluded Save Button", OAFwkConstants.STATEMENT);
    If ("Event.Go".equals (pageContext.getParameter (OAWebBeanConstants.EVENT_PARAM)))
    {
    OAViewObject QuoteLinesLevel70VO1Obj = (OAViewObject) pageContext.getApplicationModule (webBean) .findViewObject ("QuoteLinesLevel70VO1Obj");
    if(QuoteLinesLevel70VO1Obj!=null)
    {
    pageContext.writeDiagnostics (thie, 'enter in Count' + QuoteLinesLevel70VO1Obj.getFetchedRowCount (), 1);
    int count = QuoteLinesLevel70VO1Obj.getFetchedRowCount ();
    RowSetIterator Iter = QuoteLinesLevel70VO1Obj.createRowSetIterator ("Iter");
    {if(Count>0)}
    Iter.setRangeStart (0);
    Iter.setRangeSize (count);
    for (int i = 0; i)<>
    {
    OAViewRowImpl row = (OAViewRowImpl) Iter.getRowAtRangeIndex (i);
    If (row.getAttribute ("InventoryItemId")! = null & row.getAttribute ("OrganizationId")! = null)
    {
    String Item = row.getAttribute("InventoryItemId").toString ();
    String Org = row.getAttribute("OrganizationId").toString ();
    Number say = (Number) row.getAttribute ("LineAdjustedPercent"); LineAdjustedPercent
    Dim Ext = (String) row.getAttribute ("Attribute1");
                              
                               int item1 is Integer.valueOf (Item) .intValue ();.   Converted entire string
    int Org1 is Integer.valueOf (Org) .intValue ();.     Converted entire string
    Try
    {
    pageContext.writeDiagnostics (this, "connection entry-front connection", 1);
    Connection Conn = pageContext.getApplicationModule (webBean) .getOADBTransaction () .getJdbcConnection ();
    pageContext.writeDiagnostics (this, "connection entered" & conn, 1);
    pageContext.writeDiagnostics (this, "input connection [AJ]" & conn, 4);
    String query = "select xxtmxc_primary_selling_suom(:1,a.inventory_item_id) PSUOM from mtl_system_items_b where a.inventory_item_id =: 2 and a.organization_id =: 3"; Index link //Changed
    pageContext.writeDiagnostics (this, ' [AJ] after the query string", 4");
    pageContext.writeDiagnostics (this, "message query" + Query, 1);
    PreparedStatement stmt = conn.prepareStatement (Query);
    pageContext.writeDiagnostics (this, "prepared statement Post" + stmt, 1);
                                    Item1 is Integer.valueOf (Item) .intValue ();. Converted entire string
    ORG1 = Integer.valueOf (Org) .intValue ();  Converted entire string
    pageContext.writeDiagnostics (this, "Param1 all" + item1, 1);
    pageContext.writeDiagnostics (this, "Param2 all" + Org1, 1);
    pageContext.writeDiagnostics (this, "Param3 all" + Ext, 1);
    stmt.setString(1,Ext);
    stmt.setInt(2,item1);  ver1
    stmt.setInt(3,Org1);  ver1
    pageContext.writeDiagnostics (this, "Post Ext after SetString" + Ext, 1);
                                    
    for (ResultSet resultset = stmt.executeQuery (); resultset.next ();)  //Used for loop in Resultset
    {
                                       
    String psuom = resultset.getString ("PSUOM");
    pageContext.writeDiagnostics (this, "[AJ] z:" + psuom, 4 "); //Here we got the value of the function
    pageContext.writeDiagnostics (this, "m [AJ]:" + Ext, 4);
                                        
    }
                                    
    stmt. Close();
    }
    catch (SQLException sqle)
    {
    pageContext.writeDiagnostics (this, ' [AJ] with the Exception: "+ sqle.getMessage (), 4");
    throw new OAException ("error in query Preparation" + sqle, OAException.INFORMATION);
    }
    pageContext.writeDiagnostics (this, ' [AJ] after try-catch: ", 4");
    }
                              
    }
    }
                     
          
    }
             
    super.processFormRequest (pageContext, webBean);
    }
    }

    Thank you

    Dilip

  • SELECT statement to return a type in Oracle objects

    Hi all, I have created a small system for Uni using oracle objects and types. I have a table person with type of seller under the person table and the type of claimant to the title of the person table. I need the select statement to return data of the person, table, but only the type of applicant data. for example, SELECT * FROM person_tab, WHERE the type is applicant_t. I know it's probably simple, but just can't get the syntax right. The code all series just may not get the right to choose. Thanks for your time.

    create type appointment_t;
            
    create type property_t;
    
    create type telephone_t as object (
        weekdayDaytime varchar2(15),
        weekdayEveningAndWeekend varchar2(15));
    
    create type person_t as object (
        person char(6))
        not final;
    
    create type appointment_list_t as table of ref appointment_t;
    
    create type property_list_t as table of ref property_t;
    
    create type salesperson_t under person_t (
        sSurname varchar2(20),
        sForename varchar2(20),
        dateOfBirth varchar2(12),
        makes appointment_list_t,
        member function appointments_made return number );
    
    create type applicant_t under person_t (
        aSurname varchar2(20),
        aForename varchar2(20),
        dateOfBirth varchar2(12),
        aAddressLine1 varchar2(25),
        aAddressLine2 varchar2(25),
        aTown varchar2(20),
        telephoneNums telephone_t,
        maxPrice number(10),
        desiredArea varchar2(20),
        attends appointment_list_t,
        member function appointments_attended return number );
    
    create or replace type body salesperson_t as
    member function appointments_made return number is
        total number;
    begin
        total := self.makes.count;
        return total;
        end;
    end;
    
    create or replace type body applicant_t as
    member function appointments_attended return number is
        total number;
    begin
        total := self.attends.count;
        return total;
        end;
    end;
    
    create or replace type appointment_t as object (
        appointment char(10),
        appdate date,
        apptime varchar2(15),
        appointmentType varchar2(15),
        levelOfInterest integer(3),
        offerMade number(10),
        is_made_by ref salesperson_t,
        is_attended_by ref applicant_t,
        is_related_to ref property_t);
        
    create or replace type property_t as object (
        property char(10),
        dateOfRegistration date,
        propertyType varchar2(15),
        bedrooms integer(2),
        receptionRooms integer(2),
        bathrooms integer(2),
        garage varchar2(5),
        garden varchar2(6),
        regionArea varchar2(20),
        pAddressLine1 varchar2(20),
        pAddressLine2 varchar2(20),
        pTown varchar2(20),
        askingPrice varchar2(20),
        relatesTo appointment_list_t);
    
    create table person_tab of person_t (
        person primary key );
        
    create table property_tab of property_t (
        primary key(property))
        nested table relatesTo store as relates_to_table;
        
    create table appointment_tab of appointment_t (
        primary key (appointment),
        scope for (is_made_by) is person_tab,
        scope for (is_attended_by) is person_tab,
        scope for (is_related_to) is property_tab);
        
        
    
    insert into person_tab
    values (salesperson_t('s001', 'Fontigue', 'Farquar', '22-feb-1980', appointment_list_t()));
    
    insert into person_tab
    values (salesperson_t('s002', 'Richmond', 'Neil', '30-feb-1983', appointment_list_t()));
    
    insert into person_tab
    values (salesperson_t('s003', 'Devere', 'Jeremy', '03-mar-1977', appointment_list_t()));
    
    insert into person_tab
    values (salesperson_t('s004', 'Schofield', 'Paul', '07-dec-1969', appointment_list_t()));
    
    insert into person_tab
    values (salesperson_t('s005', 'Johnson', 'Richard', '04-jul-1992', appointment_list_t()));
    
    insert into person_tab
    values (salesperson_t('s006', 'Stevens', 'Rupert', '22-may-1989', appointment_list_t()));
    
    
    
    insert into person_tab
    values (applicant_t('ap007', 'Hadfield', 'Linda', '22-nov-1981', '3 Duckdoo Avenue', 'Rosemont', 'Neath Port Talbot',
    telephone_t('01639877103', '07756338175'), '110000', 'Mumbles', appointment_list_t()));
    
    insert into person_tab
    values (applicant_t('ap008', 'Walsh', 'Riley', '18-sep-1974', '12 George Street', 'Taibach', 'Neath Port Talbot',
    '01639890337', '075982228741', '125000', 'Ten Acre Wood', appointment_list_t()));
    
    insert into person_tab
    values (applicant_t('ap009', 'Kennedy', 'Shaun', '11-dec-1972', '101 Granada Close', 'Waun Wen', 'Swansea',
    '01792558447', '07894558123', '150000', 'Central Swansea', appointment_list_t()));
    
    insert into person_tab
    values (applicant_t('ap010', 'Redgrave', 'Steven', '30-jun-1988', '47 Victoria Gardens', 'City Apartments', 'Neath',
    '01639770183', '07774273391', '95000', 'Neath', appointment_list_t()));
    
    insert into person_tab
    values (applicant_t('ap011', 'Hopkins', 'John', '07-feb-1979', '130 Flanders Court', 'Richfield', 'Bridgend',
    '01656889227', '05589337123', '137500', 'Brechfa', appointment_list_t()));
    
    insert into person_tab
    values (applicant_t('ap012', 'Glover', 'Germaine', '14-aug-1983', '32 Regent Crescent', 'Cranforth', 'Cardiff', 
    '01210887336', '07975625195', '170000', 'Cardiff West', appointment_list_t()));
    
    

    
    

    The one I am running made the telephone_t in all households.

    Happy that you have your code working but that was not my point

    It comes to you providing us with the correct instructions to actually run the test case and help you efficiently.

    Regarding your last question, use the function of REGAL to caster level being superior in one of its subtype.

    for example

    SQL> select person
      2       , treat(object_value as applicant_t).aSurname as surname
      3       , treat(object_value as applicant_t).aForename as forename
      4  from person_tab
      5  where object_value is of (applicant_t) ;
    
    PERSON SURNAME              FORENAME
    ------ -------------------- --------------------
    ap007  Hadfield             Linda
    ap008  Walsh                Riley
    ap009  Kennedy              Shaun
    ap010  Redgrave             Steven
    ap011  Hopkins              John
    ap012  Glover               Germaine
    
    6 rows selected.
    
  • Procedure do not return my exception

    Hello

    I try to my test procedure, but it is not returning my exception.

    My procedure:

    Header 1

    create or replace PACKAGE BODY PKG_UNIDADE_EMP_ODS

    AS

    PROCEDURE BUSCAR_UNIDADES)

    VI_COD_EMPRESA IN UNIDADE.ID_INSTITUICAO%TYPE,

    VO_DADOSUNIDADE ON TP_EMPREGABILIDADE_UNI_ODS. TC_DADOSUNIDADE,

    VO_CDERROR NUMBER,

    VO_DSERROR OUT VARCHAR2

    )

    IS

    BEGIN

    VO_CDERROR: = 0;

    VO_DSERROR: = 'success ';

    IF (VI_COD_EMPRESA IS NOT NULL AND LENGTH (VI_COD_EMPRESA) > 1) THEN

    OPEN FOR VO_DADOSUNIDADE

    SELECT

    A SEPARATE. CD_UNIDADE AS CD_UNIDADE,

    UNITED NATIONS. NM_UNIDADE AS NM_UNIDADE,

    UNITED NATIONS. DS_UNIDADE AS DS_UNIDADE,

    UNITED NATIONS. UNIDADE_PORTAL AS UNIDADE_PORTAL

    OF UNIDADE UN

    INNER JOIN INSTITUIÇÃO INS ON (UN.ID_INSTITUICAO = INS.ID_INSTITUICAO)

    WHERE UN.ID_INSTITUICAO = DECODE (VI_COD_EMPRESA, NULL, UN.ID_INSTITUICAO), VI_COD_EMPRESA;

    END IF;

    IF (VI_COD_EMPRESA IS NOTHING) THEN

    OPEN FOR VO_DADOSUNIDADE

    SELECT

    A SEPARATE. CD_UNIDADE AS CD_UNIDADE,

    UNITED NATIONS. NM_UNIDADE AS NM_UNIDADE,

    UNITED NATIONS. DS_UNIDADE AS DS_UNIDADE,

    UNITED NATIONS. UNIDADE_PORTAL AS UNIDADE_PORTAL

    OF UNIDADE UNITED NATIONS;

    END IF;

    EXCEPTION

    WHEN NO_DATA_FOUND THEN

    VO_CDERROR: = 2;

    VO_DSERROR: = "no record not found";

    WHILE OTHERS THEN

    VO_CDERROR: = 999;

    VO_DSERROR: = 'unknown error ' | SQLERRM;

    END BUSCAR_UNIDADES;

    END PKG_UNIDADE_EMP_ODS;

    But when I put the parameter that do not exist in the database, do not return my exception:

    VO_CDERRO = 2

    VO_DSERRO = No records were found

    Can someone help me

    Opening of a ref cursor will never give an exception no_data_found. If you want to know that there is no data in the ref cursor, you will need to pick up. But if you look in the procedure as the row won't be available for the application. If you need to know if the cursor has all the data without pick up you will need to do something like this:

    create or replace PACKAGE BODY PKG_UNIDADE_EMP_ODS

    AS

    PROCEDURE BUSCAR_UNIDADES)

    VI_COD_EMPRESA IN UNIDADE.ID_INSTITUICAO%TYPE,

    VO_DADOSUNIDADE ON TP_EMPREGABILIDADE_UNI_ODS. TC_DADOSUNIDADE,

    VO_CDERROR NUMBER,

    VO_DSERROR OUT VARCHAR2

    )

    IS

    v_count pls_integer;

    BEGIN

    VO_CDERROR: = 0;

    VO_DSERROR: = 'success ';

    IF (VI_COD_EMPRESA IS NOT NULL AND LENGTH (VI_COD_EMPRESA) > 1) THEN

    OPEN FOR VO_DADOSUNIDADE

    SELECT

    A SEPARATE. CD_UNIDADE AS CD_UNIDADE,

    UNITED NATIONS. NM_UNIDADE AS NM_UNIDADE,

    UNITED NATIONS. DS_UNIDADE AS DS_UNIDADE,

    UNITED NATIONS. UNIDADE_PORTAL AS UNIDADE_PORTAL

    OF UNIDADE UN

    INNER JOIN INSTITUIÇÃO INS ON (UN.ID_INSTITUICAO = INS.ID_INSTITUICAO)

    WHERE UN.ID_INSTITUICAO = DECODE (VI_COD_EMPRESA, NULL, UN.ID_INSTITUICAO), VI_COD_EMPRESA;

    Select count (*) from v_count

    OF UNIDADE UN

    INNER JOIN INSTITUIÇÃO INS ON (UN.ID_INSTITUICAO = INS.ID_INSTITUICAO)

    WHERE UN.ID_INSTITUICAO = DECODE (VI_COD_EMPRESA, NULL, UN.ID_INSTITUICAO), VI_COD_EMPRESA;

    END IF;

    IF (VI_COD_EMPRESA IS NOTHING) THEN

    OPEN FOR VO_DADOSUNIDADE

    SELECT

    A SEPARATE. CD_UNIDADE AS CD_UNIDADE,

    UNITED NATIONS. NM_UNIDADE AS NM_UNIDADE,

    UNITED NATIONS. DS_UNIDADE AS DS_UNIDADE,

    UNITED NATIONS. UNIDADE_PORTAL AS UNIDADE_PORTAL

    OF UNIDADE UNITED NATIONS;

    Select count (*) from v_count

    OF UNIDADE.

    END IF;

    If v_count = 0 then

    vo_cderror: = 2;

    vo_dserror: not = "no record found where";

    end if;

    EXCEPTION

    WHILE OTHERS THEN

    VO_CDERROR: = 999;

    VO_DSERROR: = 'unknown error ' | SQLERRM;

    END BUSCAR_UNIDADES;

    END PKG_UNIDADE_EMP_ODS;

  • Function does not return the correct value

    Hi, I'm having a strange problem and hope someone knows how to solve this problem...

    I try to send a string to a function in another class and do return to a textfield, so I can add it to a movieclip and on the stage. I use it for several buttons. The problem is when I put that a string in it value returns a string for the previous call to the function that is not the string value that I want to use. Here's the function:

    public void replaceMCTxt (mcString:String, xPos:Number,

    yPos:Number, rolloverText:Boolean, newFontSize:uint, height: uint, width: uint = false): {TextField

    var newMCTxt:TextField = new TextField();

    newMCTxt.x = xPos;

    newMCTxt.y = yPos;

    newMCTxt.width = width;

    newMCTxt.height = Height;

    var textFormat:TextFormat = new TextFormat();

    textFormat.align = _gameModel.screenFontAlign;

    textFormat.size = newFontSize;

    textFormat.font = _gameModel.screenFont;

    textFormat.color = _gameModel.screenFontColor;

    newMCTxt.defaultTextFormat = textFormat;

    newMCTxt.text = _languageClass.getTranslation (mcString);

    newMCTxt.selectable = false;

    Return newMCTxt;

    }

    I try to call with this statement in another class:

    _moreGamesTxtField = _updateLanguageClass.

    ("MORE GAMES", _gameModel.moreGamesTxtXPos, replaceMCTxt

    _gameModel.moreGamesTxtYPos, _gameModel.moreGamesTxtWidth,

    (_gameModel.moreGamesTxtHeight, _gameModel.moreGamesTxtFontSize);

    Instead of giving me a movieclip "MORE GAMES", it gives me a 'PLAY' movieclip, which is what the previous call to the function used. I also had a similar problem in another function where he did the same thing with filtering of different buttons, so I think the problem is in the service, but I'm not programmer to know that it's good enough. If anyone has an idea please let me know. Thank you...

    Start the survey using the trace() function to see what value is passed to and returned by some _languageClass.getTranslation ().

  • Oracle text index does not return the expected results.

    Hello

    My project requires a generic search on 5 different columns and all the VARCHAR2 data type.
    As performance is very slow with AS % search, I try to use for the multi_column_datastore that is recommended for this.

    Here's what I did.

    1 - Create table.
    CREATE TABLE BILLING_SCHEMA.NAMES_TABLE ( 
        ID                  NUMBER(9,0) NOT NULL,
        ENTITY_NUMBER         VARCHAR2(30) NOT NULL,
        GIVEN_NAMES         VARCHAR2(50) NULL,
        SURNAME             VARCHAR2(30) NULL,
        ORGANISATION_NAME     VARCHAR2(60) NULL,
        DISPLAY_NAME        VARCHAR2(100) NULL 
        )
    /
    
     
    My search must be made on the columns ENTITY_NUMBER, GIVEN_NAMES, surname, ORGANISATION_NAME and DISPLAY_NAME.

    2. - insert values into the table
    INSERT INTO NAMES_TABLE VALUES(1, 'GH', NULL, NULL, NULL, 'GROUP OF HOSPITAL')
    /
    INSERT INTO NAMES_TABLE VALUES(2, 'DH', NULL, NULL, NULL, 'DEPARTMENT OF HEALTH')
    /
    INSERT INTO NAMES_TABLE VALUES(3, 'REC', NULL, NULL, NULL, 'DEBTOR FOR RECEIPTS')
    /
    INSERT INTO NAMES_TABLE VALUES(4, 'UN_REC', NULL, NULL, NULL, 'DEBTOR FOR UNMATCHED RECEIPTS')
    /
    INSERT INTO NAMES_TABLE VALUES(5, 'SAM_FUND', NULL, NULL, NULL, 'THE S FUND')
    /
    
     
    3 - create context multi_column_datastore index
    BEGIN
    CTX_DDL.CREATE_PREFERENCE('NAMES_TABLE_MULTI', 'MULTI_COLUMN_DATASTORE');
    CTX_DDL.SET_ATTRIBUTE('NAMES_TABLE_MULTI', 'COLUMNS', 'ENTITY_NUMBER, GIVEN_NAMES, SURNAME, ORGANISATION_NAME, DISPLAY_NAME');
    END;
    
    CREATE INDEX NAMES_TABLE_IDX
    ON NAMES_TABLE(ENTITY_NUMBER)
    INDEXTYPE IS   CTXSYS.CONTEXT
    PARAMETERS ('DATASTORE NAMES_TABLE_MULTI')
    
     
    4 - create the trigger that should update the column ENTITY_NUMBER if everything is inserted/updated
    CREATE OR REPLACE TRIGGER NAMES_TABLE_TRIGGER
    BEFORE INSERT OR UPDATE OF GIVEN_NAMES, SURNAME, ORGANISATION_NAME, DISPLAY_NAME  ON NAMES_TABLE
    FOR EACH ROW
    BEGIN
      :NEW.ENTITY_NUMBER := :NEW.ENTITY_NUMBER;
    END
     
    5. the search query
    SELECT *
    FROM NAMES_TABLE
    WHERE  CONTAINS(ENTITY_NUMBER,'%TH%') > 0
     
    I am so very confused here because the result returned is only
    ID     ENTITY_NUMBER     GIVEN_NAMES     SURNAME     ORGANISATION_NAME     DISPLAY_NAME         
     2      DH                  (null)        (null)         (null)          DEPARTMENT OF HEALTH 
     
    When I wait for him that the 5th inserted record is returned too as it contains "THE S FUND" that begins with "TH".

    When I use the search string '% %' and %, no results are returned, although I expect at least two records in each case.

    I would appreciate help with this.

    Thanks in advance,
    Marilyn

    Published by: user5615580 on 08/03/2011 21:35

    Published by: user5615580 on 08/04/2011 16:33
  • ctxrule - match does not return a result

    v.11.1.07 - I created a ctxrule index as described below. However, although a query must match on the given document, it does not return. Any ideas?
    begin
    ctx_ddl.create_preference('ot_lexer', 'basic_lexer');
    ctx_ddl.set_attribute('ot_lexer', 'index_stems', 'ENGLOSH');
    end;
     
    begin
    ctx_ddl.create_section_group('ot_sec_group', 'auto_section_group');
    end;
     
    create table ot_profile_test
    (profile_id number,
    query clob);
     
    create index ot_profile_rule_ndx on ot_profile_test(query)
    indextype is ctxsys.ctxrule parameters
    ('stoplist ctxsys.empty_stoplist
    section group ot_sec_group
    lexer ot_lexer');
     
    insert into ot_profile_test values(1, '($apple and $pear) and (1 within food)');
    commit;
     
    exec ctxsys.ctx_adm.set_parameter('log_directory', '/yourdir');
    exec ctx_output.start_log('ot');
    exec ctx_output.add_event(ctx_output.event_index_print_rowid);
    exec ctx_output.add_event(ctx_output.event_index_print_token);
    exec ctx_ddl.sync_index('ot_profile_rule_ndx', '2040M', null, 1, null, ctx_ddl.lock_nowait_error);
    exec ctx_output.end_log;
    Then, run a query:
    declare
    a clob := 'apple orange pears banana
    <metadata>
     <indicators>
       <food>1</food>
     </indicators>
    </metadata>
    ';
    vn_profile_id number;
     
    begin
     
    select profile_id into vn_profile_id
    from ot_profile_test
    where matches(query, a) > 0;
     
    dbms_output.put_line(vn_profile_id);
     
    end;
     
    ERROR at line 1:
    ORA-01403: no data found
    ORA-06512: at line 8
    Profile_id = 1 should not be returned?


    In addition, the log file should not have 2 lines written in $I?
    WRITING APPLE: ((PEAR) TOKEN = (PEARS)) * ((1) IN FOOD), 0
    WRITING APPLES: ((PEAR) TOKEN = (PEARS)) * ((1) IN FOOD), 0

    As noted earlier, you must use a list of words, not a lexer to control, like the two conflicts between them. All what you need to do is remove the following line from your code:

    ctx_ddl.set_attribute ('ot_lexer', 'index_stems', 'ENGLISH');

    You can still have a lexer with other attributes; Just do not set the attribute index_stems to the lexer. Set the attribute generator of forms derived from the list of words only.

  • Popup LOV does not return a value in editable tabular report

    I'm having a problem with a Popup LOV in a report updated in table form. When you select value, the popup remains and the value is not returned to the element. I guess that's because the popup does not know which element to fill? I don't know how to fix.

    [http://apex.oracle.com/pls/otn/f?p=4000:1500:1011573666262225:NO:]

    workspace: csd_apex_demo
    user name: demo
    password: demo
    application: 35976 - Jason demo
    page: 3-1 report

    Thank you

    Jason

    Looking more closely, I see that you mix display_and_save with popup_from_lov. The p_item_id parameter seems to have no effect on the generated javascript code and I think that javascript doesn't work, but not like you might expect. If you use Firefox with Firebug you can inspect the items and watch what happens when you click on an element of the pop-up window. It is by the way of the return value, but it is stored in the first element of display_and_save line which is a named element f08 hidden. All the items are named f08 in this column as a result of your use of the p_idx = 8. But the javascript code to handle the valve of the popup is generated once and so is assuming that it is zero array position. He uses the name attribute and no id and I suspect that it is followed by the line number in their own country (IE in the popup_lov procedure).

    I don't see how to change the way the javascript code generated here then perhaps another solution is needed. I guess that display_and_save is used here so that you can coordinate the f08 array that is posted, but there is no process here "send" to confirm that this is your intention.

    If you remove the display_and_save and just see the 'reason' the works of popup. If you change the popup to something other than p_idx = 8 it will work also. But now we must find a way to align the line ID is displayed.

    There are several ways to coordinate the shipment but they will in part depend on if you want to display only one line of a popup lov field or several lines. I would like to know where you go and I can help you set up the form and submit processes.

    Greg

  • HP 250 g4: boot image selected is not authenticated

    Hello, my computer has problems from the beginning. One day, I restart my pc and this appears:
    "Boot device not found.
    Please install an operating system on your hard drive
    Hard drive (3F0)
    The F2 System Diagnostics.
    So I did all the tests diagnostic tests and all translate "SUCCESS."
    I called support and they are sending me the two DVD «Recovery media for windows 10 products»
    I followed the instructions and put the first DVD, and then I started the pc. At first, it seems that the cd will then start appears this sentence "the boot image selected is not authenticated to. Press to continue.
    What could I do?

    Hello

    Try the following.

    Judgment of the laptop.

    Click next to the ESC key as soon as you press the power button to enter the Boot Menu, and then select the Bios Menu ( f10 ).

    Under the System Configuration tab, expand the Boot Options Menu.

    Select 'Clear all secure startup keys' and click Ok

    Select "load factory defaults keys HP", and then select Ok

    Save the changes that you exit the bios and try to re-run the recovery DVDs.

    If you still receive the error, return to the Bios Menu, System Configuration tab and expand the Boot Options Menu.

    Activate 'Legact Support' and save the changes that you exit bios - you will then need to enter a PIN of 4 numbers displayed on the screen to confirm the changes to the settings - enter the code and press ENTER.

    Try to run the recovery dvd.

    Kind regards

    DP - K

  • PC Windows 7 does not return the document or the printed page

    I had a setting for this in XP control but can't find the page, that I got it.

    This occurs in AN application, or a browser.  I print from a workbook Excel specific, for example, when I have a number of them opens.  The system does not return the workbook that I printed.  It's maddening and causes all sorts of questions.  Searching the Web for this instant product nothing and I know I can't be the only person who saw this.

    It is a platform of Windows 7 in a commercial network environment.  I use the snap Menu Addintools classic because I can't stand the Ribbon and never loved.  In Windows 7, I run a couple of other supplements that restore the XP the taskbar properly use, so you can work efficiently.

    None of the supplements are causing this problem because I was running the same classic Menu Add-in in the XP box and he had the same problem until I found workaround that I don't remember now.

    Everyone knows about this problem?

    Jeff Lynch

    Hello Jeff,.

    Please contact the Microsoft community.

    As the Windows 7 computer is under the corporate network environment, the issue that you are facing is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public.

    Please post your question in the TechNet Forum.

    https://social.technet.Microsoft.com/forums/Windows/en-us/home?category=w7itpro&filter=AllTypes&sort=lastpostdesc

    Hope the information above has been a useful answer, Mercia back to us if you respect them more.

  • Removed USB controllers: can not return - "this device cannot find enough free resources that it can use. (Code 12)

    Original title: removed USB controllers: can not return

    Hello

    So today I tried to connect to a printer, and it wouldn't work (separate the issue, I don't want to worry about that now)

    I've seen several messages saying: you need to uninstall the USB controllers in Device Manager and then restart your PC. The pilots would then automatically reinstalled.

    It didn't happen, and now my Dell touch screen does not work. I can miss several other USB controllers too, I uninstalled about 3 of them, but I don't know whether or not it has been reinstalled.

    I currently have:

    -Hub USB generic

    -Enhanced host controller USB Intel (R) 8 series #1-9C 26

    -USB root hub

    -Host controller compatible xHCI USB

    Note that the last of them was a symbol of error on it and reads as follows:

    "This device cannot find enough free resources that it can use. (Code 12)

    If you want to use this device, you will need to disable one of the other devices on this system. »

    Can someone please tell me how much USB controllers I should have and how to save them?

    Thank you very much

    Hi Shalini.

    Thanks for the reply, but if you read through the posts on this thread, I think you will find that it has already been suggested that I do these two things - what I've done many times without result.

    Fortunately, I managed to fix it myself.

    To satisfy your curiosity and help someone else who could see this thread with a similar problem, here are the steps I took finally solve the problem:

    ______________________________________________

    I was always convinced that the problem is basically with the xHCI USB controller that I saw always reported as not working not properly in the device (Code 12) Manager. With this in mind, I set out to see if I could determine what the device was supposed to be in conflict with. I ran msinfo32 and began to examine the conflicts/sharing section. After a while, I decided I could not see anything obviously problematic or direct me to the controller xHCI, so I gave up on that front.

    Well, if I couldn't fix the problem with the current installation, maybe that I could find another way to install the xHCI USB controller that could circumvent the flaw that seems to be caused when windows reinstalls automatically it when restarting after the abduction. So I started trying to learn more about this "xHCI USB controller" - since Googling this term has given no end of problems not related.

    In Device Manager, I found a way to isolate the details of this driver in device (somewhere under the properties I believe) Manager. This has created a custom device showing in view only a select few connects the Manager. I have spent some time in the analysis of these and found the time during which the camera has stopped working properly. Suddenly a pattern emerges. Over and over again, see you the following series of when I was hoping that allowing windows to reinstall automatically the driver would to fix:
    • Device PCI VEN_8086 & DEV_9C31 & SUBSYS_05F91028 & REV_04\3 & 11583659 & 0 & A0 has been removed

    [Rebooted PC]

    • Device PCI VEN_8086 & DEV_9C31 & SUBSYS_05F91028 & REV_04\3 & 11583659 & 0 & A0 has been configured
    • Device PCI VEN_8086 & DEV_9C31 & SUBSYS_05F91028 & REV_04\3 & 11583659 & 0 & A0 had a problem starting.

    Under each newspaper was referring to a driver name, I didn't already had access to: driver name: usbxhci.inf

    Now I got some new information about the xHCI USB controller, I took to Google. After much research (and not find something relevant), I found 2 obscure references to the driver who seemed at least somewhat relevant.
    The first reference has been a post on the forum where someone's USB ports stopped working. very similar problem to mine! There is little of any particular use in the nets, with the exception of the reference to a couple of windows updates: KB 2823516 or KB2822241

    It is not clear exactly what usbxhci.inf capacity was tied to these updates, but I made a note of them and moved.

    Another article contained no mention of specific ports USB not working does not and was centered around a different problem entirely. However, he has mentioned an another windows update: KB2919355-x 64.msu

    This one (as I remember) was clearer on the relationship between the update and changes to the usbxhci.inf file.

    Now, I had three updates which could make changes to usbxhci.inf at one point. With their name on a piece of paper, I started looking through my updates installed to see which ones I had installed. I soon discovered that Ko 2823516 or KB2822241 were not present on my PC, which saved the penalty to guess who would be the right to uninstall first.

    KB2919355 has been installed, and I made the decision to uninstall it, because as far as I knew, this update changed something in usbxhci.inf. After the initial uninstall was completed, but before the mandatory reboot for changes to take effect, I went into Device Manager and removed the xHCI USB... because I was afraid that if the new, "defective" was always present during the reinstallation of the update, it doesn't change anything.

    The device is removed once more, I rebooted the system. He drives for a considerable period, uninstall the update and then seems to have some sort of hitch; declare something in the sense of "we could not complete the operation. Changes to undo. " He stayed like that for a while before the system became operational again and began to "prepare windows. Once it was over, I discovered that my touchscreen and USB ports worked very well.

    Investigation later showed that the compatible USB xHCI host controller was is no longer marked with warnings. In addition, a series of USB controllers appeared that had not been there when the xHCI device was defective. I was also pleased to note that the update of windows for KB2919355 had already been reinstalled without messing up anything.

    _________________________________________________

  • % ROWCOUNT SQL does not return the expected result

    I have the following function within a package:

    --Update APPERY_JTI_deleted_USERS table:
    FUNCTION fn_updt_app_jti_dlt_usr(
        p_update_co      IN VARCHAR2,
        p_appery_user_id IN APPERY_JTI_deleted_USERS.appery_user_id%TYPE,
        p_outlet_code    IN APPERY_JTI_deleted_USERS.outlet_code%TYPE)
      RETURN NUMBER
    AS
    lv_sql       VARCHAR2(4000);
    lv_rowcount  NUMBER := 0;
    BEGIN
    
    lv_sql := 'UPDATE APPERY_JTI_deleted_USERS SET '||p_update_co||' = 1 WHERE '||p_update_co||' = 0 AND OUTLET_CODE = '''||p_outlet_code||''' AND APPERY_USER_ID = '''||p_appery_user_id||'''';
    
    --EXECUTE IMMEDIATE lv_sql;
    EXECUTE IMMEDIATE 'BEGIN ' || lv_sql || '; :z := sql%rowcount; END; ' USING OUT lv_rowcount ;
    
    RETURN lv_rowcount;
      
    EXCEPTION
    WHEN OTHERS THEN
      RETURN -1;  
    END fn_updt_app_jti_dlt_usr;
    
    

    The function called several times as part of a job. Basically, the main function (Say M), call a few functions (for example A1... A9). Each of these functions is to do something and updated the application using the above function. Therefore, each of the nine functions will call the above function with different parameters.

    The problem that I am facing is:

    First run, invoke only first of all for the above function will return the positive result ($sql rowcount > 0). When I run M the second time, only first and second calls for the above function will be to return positive results and so on.

    How odd, it's that if I change the values again and run a function M, it will start from the beginning. And what strange more, the dynamic update statement is executed correctly and data are updated successfully. It's just sql rowcount % do not return is not the expected results.

    I tried to run execute immediately without (begin, end). I also tried to run it without HELP ON. It's always the same. I'm really confused, what Miss me here.

    I don't know if this is relevant. But for what it's worth, invoking the function above updates the SAME lines in the table appery_jti_deleted_users that the columns are different. So for all the work, the same lines need to be updated. Each function (A1... A9) will call the above function to update a different column of these lines.

    If you REALLY want to help you having US SHOW, not tell us:

    1. WHAT you do

    2. HOW to

    3. WHAT results you get

    4. WHAT results you expect to get

    First run, invoke only first of all for the above function will return the positive result ($sql rowcount > 0). When I run M the second time, only first and second calls for the above function will be to return positive results and so on.

    How odd, it's that if I change the values again and run a function M, it will start from the beginning. And what strange more, the dynamic update statement is executed correctly and data are updated successfully. It's just sql rowcount % do not return is not the expected results.

    Perhaps that the foregoing is true and maybe he's not. We have NO WAY of knowing because you don't SHOW US anything.

    I tried to run execute immediately without (begin, end). I also tried to run it without HELP ON. It's always the same.

    Yet once you showed us NOTHING >

    You do NOT FOLLOW best practices when you use dynamic sql statements: the sql statement real so that you can print:

    1 SEE what's running - make sure there are no syntax errors, and it seems to be what you wanted

    2 EXECUTE/TEST manually - to see if he really runs without error and see what results it really give.

    3. FIX any syntax or other problems and retest it

    Instrument properly your code and you won't have the problems you are having.

    You should know by now what are the parameters are transmitted when you run the function. So, there are at least three sets of these parameters.

    So you should be able to:

    1 run the instrumented manually function three times

    2. see that all three SQL statements are

    3 manually run these instructions

    4. see that the number of lines is after each execution

    We have no idea of what the output of the function is every time you call it. Apparently, you have, if you save the results of the function somewhere, but you didn't post any of this info.

    We need real details to help you - just listen to your story is not enough.

  • Hello. Accidentally, I bought the Adobe Lightroom 6 box set (CD ROM) support when I need to download the application. I opened the package and now can not return it. Is there a way I can be provided with a license so that I can download the software and t

    Hello. Accidentally, I bought the Adobe Lightroom 6 box set (CD ROM) support when I need to download the application. I opened the package and now can not return it. Is there a way I can be provided with a license so that I can download the software and avoid paying twice for the product? I can return the package open, if necessary. He was ordered on Amazon.ca. Thank you

    Use the serial number located inside the retail box to save the download version

    Download & install instructions https://forums.adobe.com/thread/2003339 can help

    -includes a way to go to a page to download the Adobe programs if you do not have a disk or drive

Maybe you are looking for

  • HP Pavilion - 15 t-ab100 CTO: need help from Windows 7 drivers

    I was faced with a clean install of windows 7 on my laptop for 2 days now. I'm going to sleep after I post this so feel free to help others who are online, but if no one else needs help I have little material ID's which need pilots. I would be very g

  • Im having trouble with the color on my xbox

    I have problems with the color on my xbox since I did an update, as well as I was updating a pop up was held to let me watch the first of the new game black ops, the color is off and I can't play my game like this. What can I do about it?

  • Cannot install Realpalyer downloader

    Help me to install Realplayer Downloader in my computer. I installed this before but it cannot install now after my computer crashed partially after a virus. It seems to be a mismatch. What will I do?

  • Card problem Wifi Intel Dual Band 7260

    Hello. I've recently updated my windows to the anniversary version last week, and after several hours, I noticed that there is something on my wifi connection. I'm 10 meters from the router but the wifi at the full show indicator bar at the bottom ri

  • Microsoft Narrator

    How to remove the program Microsoft Narrator of my computer?  Currently, it starts whenever I turn on the computer?