to refer to an object using a string value that is the name of the object

is this possible? I want to do something like:

String str = "classname";

UiApplication.getUiApplication().pushScreen(str);

Thank you

If you want to use strings as keys use class java.util.Hashtable.

Place your items for the hash table and retrieve it through the string of unique keys.

Like this

Hashtable myObjects = new Hashtable();
myObjects.put("MyStringKey", myObjectReference);

.......

Object myObjectFromTable = myObjects.get("MyStringKey");

if (myObjectFromTable instanceof Screen) {
  UiApplication.getUiApplication().pushScreen((Screen)myObjectFromTable);
}

Tags: BlackBerry Developers

Similar Questions

  • Mr President, how can I enter two rows at the same time with different default values that only the first line to use see?

    Mr President.

    My worm jdev is 12.2.1

    How to enter two rows at the same time with different default values that only the first line to use see?

    Suppose I have a table with four fields as below

    "DEBIT" VARCHAR2(7) , 
      "DRNAME" VARCHAR2(50),
      "CREDIT" VARCHAR2(7) , 
      "CRNAME" VARCHAR2(50),
    

    Now I want that when I click on a button (create an insert) to create the first line with the default values below

    firstrow.png

    So if I click on the button and then validate the second row with different values is also inserted on commit.

    The value of the second row are like the picture below

    tworows.png

    But the second row should be invisible. It could be achieved by adding vc in the vo.

    The difficult part in my question is therefore, to add the second row with the new default values.

    Because I already added default values in the first row.

    Now how to add second time default values.

    Concerning

    Mr President

    I change the code given by expensive Sameh Nassar and get my results.

    Thanks once again dear Sameh Nassar .

    My code to get my goal is

    First line of code is

        protected void doDML(int operation, TransactionEvent e) {    
    
            if(operation != DML_DELETE)
                 {
                     setAmount(getPurqty().multiply(getUnitpurprice()));
                 } 
    
            if (operation == DML_INSERT )
                       {
                               System.out.println("I am in Insert with vid= " + getVid());
                           insertSecondRowInDatabase(getVid(),getLineitem(),"6010010","SALES TAX PAYABLE",
                            (getPurqty().multiply(getUnitpurprice()).multiply(getStaxrate())).divide(100));      
    
                           }
    
            if(operation == DML_UPDATE)
                              {                                                    
    
                                 System.out.println("I am in Update with vid= " + getVid());
                             updateSecondRowInDatabase(getVid(),
                                 (getPurqty().multiply(getUnitpurprice()).multiply(getStaxrate())).divide(100));      
    
                              }                      
    
            super.doDML(operation, e);
        }
        private void insertSecondRowInDatabase(Object value1, Object value2, Object value3, Object value4, Object value5)
                  {
                    PreparedStatement stat = null;
                    try
                    {
                      String sql = "Insert into vdet (VID,LINEITEM,DEBIT,DRNAME,AMOUNT) values " +
                 "('" + value1 + "','" + value2 + "','" + value3 + "','" + value4 + "','" + value5 + "')";  
    
                      stat = getDBTransaction().createPreparedStatement(sql, 1);
                      stat.executeUpdate();
                    }
                    catch (Exception e)
                    {
                      e.printStackTrace();
                    }
                    finally
                    {
                      try
                      {
                        stat.close();
                      }
                      catch (Exception e)
                      {
                        e.printStackTrace();
                      }
                    }
                  }  
    
                  private void updateSecondRowInDatabase(Object value1, Object value5)
                  {
                    PreparedStatement stat = null;
                    try
                    {
                      String sql = "update vdet set  AMOUNT='"+ value5+"' where VID='" + value1 + "'";                     
    
                      stat = getDBTransaction().createPreparedStatement(sql, 1);  
    
                      stat.executeUpdate();
                    }
                    catch (Exception e)
                    {
                      e.printStackTrace();
                    }
                    finally
                    {
                      try
                      {
                        stat.close();
                      }
                      catch (Exception e)
                      {
                        e.printStackTrace();
                      }
                    }                  
    
                  }
    

    Second line code is inside a bean method

        public void addNewPurchaseVoucher(ActionEvent actionEvent) {
            // Add event code here...
    
            BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
                   DCIteratorBinding dciter = (DCIteratorBinding) bindings.get("VoucherView1Iterator");
                   RowSetIterator rsi = dciter.getRowSetIterator();
                   Row lastRow = rsi.last();
                   int lastRowIndex = rsi.getRangeIndexOf(lastRow);
                   Row newRow = rsi.createRow();
                   newRow.setNewRowState(Row.STATUS_NEW);
                   rsi.insertRowAtRangeIndex(lastRowIndex +1, newRow);
                   rsi.setCurrentRow(newRow);
    
                   BindingContainer bindings1 = BindingContext.getCurrent().getCurrentBindingsEntry();
                   DCIteratorBinding dciter1 = (DCIteratorBinding) bindings1.get("VdetView1Iterator");
                   RowSetIterator rsi1 = dciter1.getRowSetIterator();
                   Row lastRow1 = rsi1.last();
                   int lastRowIndex1 = rsi1.getRangeIndexOf(lastRow1);
                   Row newRow1 = rsi1.createRow();
                   newRow1.setNewRowState(Row.STATUS_NEW);
                   rsi1.insertRowAtRangeIndex(lastRowIndex1 +1, newRow1);
                   rsi1.setCurrentRow(newRow1);
        }
    

    And final saveUpdate method is

        public void saveUpdateButton(ActionEvent actionEvent) {
            // Add event code here...
    
            BindingContainer bindingsBC = BindingContext.getCurrent().getCurrentBindingsEntry();      
    
                   OperationBinding commit = bindingsBC.getOperationBinding("Commit");
                   commit.execute(); 
    
            OperationBinding operationBinding = BindingContext.getCurrent().getCurrentBindingsEntry().getOperationBinding("Commit");
            operationBinding.execute();
            DCIteratorBinding iter = (DCIteratorBinding) BindingContext.getCurrent().getCurrentBindingsEntry().get("VdetView1Iterator");// write iterator name from pageDef.
            iter.getViewObject().executeQuery();  
    
        }
    

    Thanks for all the cooperation to obtain the desired results.

    Concerning

  • How to use string values to access the clips?

    Hey I was just wondering if it is possible to use string values as a way to use the addEventlistener function. For example

    (I box1_mc on stage to tell him)

    var string1:String = "box1_mc.

    string1.addEventListener (MouseEvent.CLICK, box1Clicked)

    function box1Clicked(event:MouseEvent) {}

    trace ("you clicked me!")

    }

    something like tht just by using the value of string1 to act as box1_mc this kind of thing

    PS sorry if posted this question in the wrong place, new on this forum thing: P

    Thank you

    table rating to coerce strings to objects:

    var string1:String = "box1_mc.

    This [string 1] .addEventListener (MouseEvent.CLICK, box1Clicked)

    function box1Clicked(event:MouseEvent) {}

    trace ("you clicked me!")

    }

  • To measure the pressure using a pressure transducer that provides the analog current output 4mA-20mA

    I wanted to acquire the current analog signal which varies from 4-20mA using NI 9207. I tried in 2 ways.

    method 1 - created an input channel current analog & used a reading Vi to acquire it. How can I give the channel connections in this...

    method 2 - using NOR-DAQ Assistant, I put the channel connections and I got Amplitude versus time graph. She also gave negative values. Can I do this way which is easier? How can I solve the problem

    First attachment belongs to the 1st method

    Second attachment belongs to the 2nd method


  • How to use DBMS_RANDOM. VALUE to generate the specific numbers

    Hello

    I need generate numbers that are only in '120, 121, 130, 155, 198. Would it not possible to use DBMS_RANDOM. VALUE to do and how?
    SQL> select trunc(dbms_random.value(100, 200)) from dual connect by level <= 10;
    
    TRUNC(DBMS_RANDOM.VALUE(100,200))
    ---------------------------------
                                  145
                                  155
                                  180
                                  186
                                  169
                                  107
                                  110
                                  194
                                  119
                                  169
    
    10 rows selected.
    Thanks in advance!

    Something like this:

    WITH my_values AS (SELECT '120,121,130,155,198' AS ST FROM DUAL)
        SELECT SUBSTR (my_values.st, TRUNC (DBMS_RANDOM.VALUE (0, 4.999)) * 4 + 1, 3)
          FROM my_values
    CONNECT BY LEVEL <= 10;
    

    Basically, you need a way to use the DBMS_RANDOM to choose which item of a list that you want. But you can't use DBMS_RANDOM to generate the list items themselves.

  • Can I use a power adapter that provides the samilar voltage but a different amperage?

    Hi all

    The specs for my original AC of a dv6-1355dx adator are:

    Input: 100 ~ 240 V, 1.6 has, 50 - 60 Hz

    Output: 18.5 3. 5 a, V

    756

    The plug of the adapter nearest you, that I could find online of dv6 is:

    Input: 100 ~ 240 V, 1.5 has, 50 - 60 Hz

    Output: 19 V 4.74

    90W

    Can I use it to replace the original one?

    Thank you so much and have a nice weekend!

    Yes, the HP Pavilion dv6-1355dx Entertainment Notebook PC comes with power adapter 65W.

    http://support.HP.com/us-en/document/c01893242

    The 90W AC adapter / you provided has no problem as long as the part fits, there are only two sizes (4,5 and 7. 4 mm).

    To ensure that you get the compatible adapter, take a look at the

    HP 65 w Smart AC adapter


    For HP laptops with connectors 4.5 mm or 7. 4 mm

    http://www.shopping.HP.com/en_US/Home-Office/-/products/Accessories/AC-adapters/G6H42AA?HP-65W-smart-AC-adapter

    Here are the following features and benefits to get the Smart AC adapter.

    Smart cards can improve your productivity by feeding your computer laptop while that plugged in, as well as the charge of your battery so that you can take your laptop with you when you disconnect. HP Smart adapters also have built-in overvoltage protection to protect against current fluctuations that can damage your laptop. Help HP Smart adapters you can save on materials, energy consumption costs and travel.

  • Result using Sql and value limits in the prompt 11.1.1.5 OBIEE

    Dear gurus,

    I invited hierarchy like this:
    Year
    Quarter
    Month

    Who use the value limit (quarter depends on the year, month depend on quarter), but I have question because null also appear in these guest
    I checked my database, display repository are not null.


    My question is, how to remove null in prompt when sql result cannot be used as well as the value limit, I don't know how to remove it by using the filter columns.
    NB: I already using presentation result variable sql in order to remove the null value and using the constraint, but it show nothing in fast mode unless press us the button apply.
    So I don't use this

    Help please, please enjoyed

    JOE

    Published by: JoeSSI on March 27, 2012 02:03

    Hello

    You can change your guest here you can find the show option, and then choose SQL result please change statement as below.

    SELECT the name of your column OF field where your name of the column is not null

    Go--> change your prompt--> Show--> Sql select result---> statement change as above.

    Second way.

    Go to the layer, and then double click on your column name here you can find * 'Nullable' * option please check.

    Go--> physical layer--> extract table--> select your name in the column--> double click on your name in the column--> here you can find option as Nullable, please check.

    Allocation of points, it is useful.

    Thank you
    Satya

  • my happy (request) message after processing XSLT lack of Landau (string) values comparing to the context of the initial message. I know don't know why

    Hello

    I stuck the Trace of the Invocation of the OSB below: why param values such as: 'F', 'PL' are missing in Message context changes?

    The initial Message context

    $body added

    " < = xmlns:soapenv soapenv:Body ' http://schemas.xmlsoap.org/SOAP/envelope/ "xmlns:sear =" " http://www.Ferrovial.es/XSD/SearchRegionEX_PM "xmlns:arc =" http://www.Ferrovial.es/XSD/architecture "xmlns:sear1 =" http://www.Ferrovial.es/XSD/SearchRegion_CDM "> "

    < sear: SearchRegionEXRequest_PM >

    < arc: HeaderMsgReq >

    <!-in option: - >

    < arc: functionalId >? < / arc: functionalId >

    <!-in option: - >

    < arc: messageId >? < / arc: messageId >

    < arc: timeStamp >? < / arc: timeStamp >

    < arc: consumerApp >? < / arc: consumerApp >

    < arc: consumerUsr >? < / arc: consumerUsr >

    <!-in option: - >

    < arc: language >? < / arc: language >

    < / arc: HeaderMsgReq >

    < sear1:BodyMsgRequest >

    F < sear1:Idiom > < / sear1:Idiom >

    < sear1:IdRegion > PL < / sear1:IdRegion >

    < sear1:IdCountry > PL < / sear1:IdCountry >

    < sear1:applicationCode >? < / sear1:applicationCode >

    < / sear1:BodyMsgRequest >

    < / trigger: SearchRegionEXRequest_PM >

    < / soapenv:Body >

    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    Changes of message context

    $body modified

    " < = xmlns:soapenv soapenv:Body ' http://schemas.xmlsoap.org/SOAP/envelope/ "xmlns:sear =" " http://www.Ferrovial.es/XSD/SearchRegionEX_PM "xmlns:arc =" http://www.Ferrovial.es/XSD/architecture "xmlns:sear1 =" http://www.Ferrovial.es/XSD/SearchRegion_CDM "> "

    " < = xmlns:mime tns:ZphoenixZmdRegion01 ' http://schemas.xmlsoap.org/WSDL/MIME/ "xmlns:wsdl =" " http://schemas.xmlsoap.org/wsdl/ "xmlns:soap =" " http://schemas.xmlsoap.org/WSDL/SOAP/ "" "xmlns:n1 =" urn: sap - com:document:sap:rfc:functions ' xmlns:ns3 = ' http://www.Ferrovial.es/XSD/Ferrovial_CDM "xmlns:ns2 =" http://www.Ferrovial.es/XSD/SearchRegion_CDM "xmlns:xsd2 =" http://www.Ferrovial.es/XSD/SearchRegionEX_PM "xmlns:ns1 =" http://www.Ferrovial.es/XSD/architecture "xmlns:wsu =" http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd "xmlns:http =" http://schemas.xmlsoap.org/wsdl/http/ "xmlns:wsoap12 =" http://schemas.xmlsoap.org/wsdl/Soap12/ "xmlns:tns =" "urn: sap - com:document:sap:soap:functions:mc - style" xmlns:wsp =" http://schemas.xmlsoap.org/ws/2004/09/Policy " > "" "" "

    < tns:ILand1 / >

    < tns:ILangu / >

    < tns:IRegio / >

    < / tns:ZphoenixZmdRegion01 >

    < / soapenv:Body >

    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    and here is the XSLT:

    <? XML version = "1.0" encoding = "UTF-8"? >

    < xsl: stylesheet version = "1.0".

    ' xmlns:UUIDUserFunction = ' http://www.Oracle.com/xsl/transform/Java/COM.BEA.WLI.SB.stages.functions.UUIDUserFunction "" "

    ' xmlns:IsUserInGroupFunction = ' http://www.Oracle.com/xsl/transform/Java/COM.BEA.WLI.SB.stages.functions.IsUserInGroupFunction "" "

    ' xmlns:IsUserInRoleFunction = ' http://www.Oracle.com/xsl/transform/Java/COM.BEA.WLI.SB.stages.functions.IsUserInRoleFunction "" "

    ' xmlns:ns0 = ' http://www.Ferrovial.es/BO_CONS/PS_SearchRegionEX_HTTP_CORP "" "

    " container = ' http://www.w3.org/2001/XMLSchema "

    ' xmlns:DVMFunctions = ' http://www.Oracle.com/xsl/transform/Java/COM.BEA.WLI.SB.functions.DVM.DVMFunctions "" "

    xmlns:TNS = "" urn: sap - com:document:sap:soap:functions:mc - style ""

    " xmlns:oracle - xsl-Mapper = ' http://www.Oracle.com/xsl/Mapper/schemas "" "

    ' xmlns:oraxsl = ' http://www.Oracle.com/xsl/transform/Java "" "

    ' xmlns:XrefFunctions = ' http://www.Oracle.com/xsl/transform/Java/COM.BEA.WLI.SB.functions.xref.XrefFunctions "" "

    " xmlns: xsi =" http://www.w3.org/2001/XMLSchema-instance "" xmlns: xsl = " " http://www.w3.org/1999/XSL/transform "

    ' xmlns:BasicCredentialsUserFunction = ' http://www.Oracle.com/xsl/transform/Java/COM.BEA.WLI.SB.stages.functions.BasicCredentialsUserFunction "" "

    exclude-result-prefixes = "xsd oracle xsl map xsi xsl tns UUIDUserFunction IsUserInGroupFunction IsUserInRoleFunction DVMFunctions XrefFunctions BasicCredentialsUserFunction oraxsl ns0.

    ' xmlns:ns1 = ' http://www.Ferrovial.es/XSD/architecture "" "

    ' xmlns:xsd2 = ' http://www.Ferrovial.es/XSD/SearchRegionEX_PM "xmlns:wsdl =" http://schemas.xmlsoap.org/wsdl/ ''

    ' xmlns:ns2 = ' http://www.Ferrovial.es/XSD/SearchRegion_CDM "" "

    ' xmlns:ns3 = ' http://www.Ferrovial.es/XSD/Ferrovial_CDM "xmlns:soap =" http://schemas.xmlsoap.org/wsdl/SOAP/ " "

    ' xmlns:wsp = ' http://schemas.xmlsoap.org/ws/2004/09/policy "

    xmlns:N1 = "" urn: sap - com:document:sap:rfc:functions ""

    ' xmlns:wsoap12 = ' http://schemas.xmlsoap.org/wsdl/SOAP12/ "

    ' xmlns:http = ' http://schemas.xmlsoap.org/wsdl/http/ "

    ' xmlns:wsu = ' http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd "

    ' xmlns:mime = ' http://schemas.xmlsoap.org/WSDL/MIME/ ">

    < oracle-xsl-schema Mapper: >

    <! - SPECIFICATION map SOURCES AND TARGETS, DO CHANGE NOT. - >

    < oracle-xsl-Mapper: mapSources >

    < oracle-xsl-type Mapper: source = "WSDL" >

    < oracle-xsl-schema Mapper: location = "SearchRegionEX.wsdl" / >

    < oracle-xsl-Mapper: rootElement name = "SearchRegionEXOperation".

                                           namespace=" http://www.Ferrovial.es/BO_CONS/PS_SearchRegionEX_HTTP_CORP "/ > "

    < / oracle-xsl-Mapper: source >

    < / oracle-xsl-Mapper: mapSources >

    < oracle-xsl-Mapper: mapTargets >

    < oracle-xsl-type Mapper: target = "WSDL" >

    < oracle-xsl-schema Mapper: location = "SAP_SearchRegionEX.wsdl" / >

    < oracle-xsl-Mapper: rootElement name = "ZphoenixZmdRegion01".

    Namespace = "urn: sap - com:document:sap:soap:functions:mc - style" / >

    < / oracle-xsl-Mapper: target >

    < / oracle-xsl-Mapper: mapTargets >

    <! - GENERATED BY ORACLE XSL MAPPER 12.1.3.0.0(XSLT Build 140529.0700.0211) in [Mar 16 June at 14:37:31 CEST 2015]. - >

    < / oracle-xsl-schema Mapper: >

    <! - user edit BELOW this line--DO NOT REMOVE THIS LINE-->

    < xsl: template match = "/" >

    < tns:ZphoenixZmdRegion01 >

    < ILand1 >

    < xsl: value-of select = "/ ns0:SearchRegionEXOperation / xsd2:SearchRegionEXRequest_PM / ns2:BodyMsgRequest / ns2:IdCountry" / >

    < / ILand1 >

    < ILangu >

    < xsl: value-of select = "/ ns0:SearchRegionEXOperation / xsd2:SearchRegionEXRequest_PM / ns2:BodyMsgRequest / ns2:Idiom" / >

    < / ILangu >

    < IRegio >

    < xsl: value-of select = "/ ns0:SearchRegionEXOperation / xsd2:SearchRegionEXRequest_PM / ns2:BodyMsgRequest / ns2:IdRegion" / >

    < / IRegio >

    < / tns:ZphoenixZmdRegion01 >

    < / xsl: template >

    < / xsl: stylesheet >

    Hello

    What I do in this case is to stick the piece of xml code that I want to ask in an ascii Editor. So I replace all tags, content and oblique end etc. with the bar to get an xpath expression. I compare with the xpath expression in the XSLT. Placing them underneath eachother makes it easy to compare. You're example I take:

    //soapenv:Body                             /sear:SearchRegionEXRequest_PM/sear1:BodyMsgRequest/sear1:Idiom
    

    With the XPath of the xlt described with a piece of xml (given the lack of namespace is not the same):

                   /ns0:SearchRegionEXOperation/xsd2:SearchRegionEXRequest_PM/  ns2:BodyMsgRequest/ns2  :Idiom
    

    Then you will see that the root in the xpath expression is "SearchRegionEXOperation", which is not present in the body. Then the XPath apparently follows the body. So, you will need to change the element root in the mapping definition.

    You must also post this xsd2: refers to the same namespace as sear: and ns2: the same thing as sear1: in the xml file (I did not have that).

    Kind regards
    Martian

  • D2KWUTIL Read_Registry - only reads the string values? How to read the binary?

    Hello, everyone!
    I use forms and reports 6
    D2KWUTIL,
    WIN_API_ENVIRONMENT. Read_registry
    to read the Windows registry values.
    The service works very well with string values (that is, type REG_SZ registry).
    but fails with NO_DATA_FOUND binary values, such as type REG_DWORD.

    D2KWUTIL is really unable to work with other types of chains?
    If so, what can be used instead?

    Appreciate all the guidance,
    Roman

    Published by: user9232995 on November 18, 2010 23:19

    Published by: user9232995 on November 18, 2010 23:20

    It's d2kwut60.dll.

  • Caveat "the formula uses a Boolean value instead of a number" would dismiss

    Hello!

    I do a "Calculator" to get estimates of price for the projects, according to which processes the customer wants.

    Rates for each process are added in another table, and I use the list of control buttons to enable or disable the various processes.

    Here is an example of a formula:

    D3 determines if the part of the project modeling is performed, so the price will be or will not be calculated.

    If D3 is true, the result is multiplied by 1, give me a positive amount. If false, the result will be multiplied by 0, 0, so nothing to add to the final cost he send me some.

    Same for B4 in the same formula.

    This formula is repeated all over the chart, with minor changes to add more complex options, but it's all the same.

    Everything works fine, but I got those blue triangles warning me of "the formula uses a Boolean value instead of the number". That's fine with me, I like the use of the Boolean types, and they make my formulas work well in my calculator. How can I reject the blue triangles?

    They are a little annoying. And they do not really correspond with the general style of my calculator.

    I saw someone talking other types of formulas, with SEARCH and yews, but who is really complicated and I don't know how to do... Especially for a simple calculator

    Is there a way to simply do not display warnings?

    Using the version 3.6.2 on a MacBook Pro, OSX El Capitan 10.11.5

    Thank you!

    Hi Sinshassan,

    I don't know a way to escape your blue flags except to make a formula which is consistent with the expected numbers. It is not difficult.

    My formula D2 = yew (AND(D1,B2), C2, 0)

    The IF statement tests the two D1 AND B2. If they are true, then it indicates the value of C2 your carbon Modeling::High Poly #1, if one or both are false (unchecked) then 0 is displayed.

    Give it a try.

    Quinn

  • Use of dbms_xmlgen.convert to capture the URL

    I use a web service that returns the XML response (see results below). I need to capture the URL in the tag "GetIEPUrlWithAuditResult". I tried this code, but get an ORA-30625: shipping method on NULL SELF argument is not allowed. Is my path of dbms_xmlgen.convert to the correct tag?

    l_xml: = xmltype.createxml (l_clob);
    l_val: = dbms_xmlgen.convert(l_xml.extract('//GetIEPUrlWithAuditResult/text()').getclobval(),1);


    RESULT
    -------------
    <? XML version = "1.0" encoding = "utf-8"? > < xmlns:soap: envelope soap = "http://schemas.xmlsoap.org/soap/envelope/" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" container = "http://www.w3.org/2001/XMLSchema" > < soap: Body > < GetIEPUrlWithAuditResponse xmlns = "http://www.iepdirect.com/CentrisWebServices/IEPViwer" > < GetIEPUrlWithAuditResult > https://www.iepdirect.com/lettersandreports/maintenance/iepviewer.aspx?auditinfo=TEST & amp; viewertoken = cn097c5e6c69a94fbc9dffcd70bd88f2b9 | d0Gpyh6ZEelbL6lMz + ZDWBTyMqsfjkDFPlat6T + 8vMQ = < / GetIEPUrlWithAuditResult > < / GetIEPUrlWithAuditResponse > < / soap: Body > < / envelope soap: >

    Is my path of dbms_xmlgen.convert to the correct tag?

    Half correct.

    Missing namespace mapping, and you will need to add the text() node to the XPath expression to retrieve the value instead of the entire element.

     l_val := dbms_xmlgen.convert(
                l_xml.extract(
                  '//GetIEPUrlWithAuditResult/text()'
                , 'xmlns="http://www.iepdirect.com/CentrisWebServices/IEPViwer"'
                ).getstringval()
              , 1
              );
    

    But, in this case, it is preferable to use extractValue (as she performs the necessary conversions for us):

     select extractvalue(
              l_xml
            , '//GetIEPUrlWithAuditResult'
            , 'xmlns="http://www.iepdirect.com/CentrisWebServices/IEPViwer"'
            )
     into l_val
     from dual;
    
  • To parse a string value in a Select statement by using features of characters

    I need to put a single space between the last number and the first character in a string. These channels will always begin with a number. For example, the string can be:
    555B11#1A MAIN ST.
    I have to return the following:
    555 B11#1A MAIN ST.
    Note the space after the 555 and before the B. The rest of the chain must remain the same. Is it possible is a Select SQL statement, using the features of character?

    Any help would be greatly appreciated.

    Sharpe says:
    Indeed, it works. Thank you!

    1  SELECT REGEXP_REPLACE ('555B11#1A MAIN ST.', '([[:digit:]])([[:alpha:]])', '\1 \2', 1, 1)     AS
    2* FROM    dual
    SQL> /
    
    NEW_ADDR
    -------------------
    555 B11#1A MAIN ST.
    
    SQL>
    {code)
    
    Can you help me understand what the pattern parameter '([[:digit:]])([[:alpha:]])' means and what it is doing exactly?  
    

    Sure. I was waiting to see if that expression really worked on your complete data before explaining. An explanation of the code that works is more generally more instructive than an explanation of the code that does not work, and you will only need to maintain code that works.

    [[: digit:]] means just that: all the digits ' 0 'to 9'. I could have used \d, as Solomon has done.
    [[: alpha:]] means any alphabetical character. You want to just insert a space, when a digit is immmdiately letter, followed by one on the right? In other words, if there is already a space after the first group of numbers, I guess that you do not want to add another space.

    And that means parameter replacement '\1 \2' and what he does exactly?

    Put the expressions inside parentheses above allows to refer to the exact substring match using Backreferences . The backreference \1 refers to the part of the pattern that starts with 1 ' ('. left \2 backreference refers to the alternative ground that begins with the 2nd '('. gauche Dans l'exemple, vous avez donné, le patron de (digit) (letter) which was first a '5 b', then '\1' means '5' and '\2' is 'B'.))
    Thus, the 2nd argument says "seek a model made up molasses maximum figure, followed immediately by a letter".
    The 3rd argument says 'replace this template with the same number you found, then a space, then the same letter you have found'.
    The 5th argument said only change the 1st occurrence of the pattern. The default is to change each of them, but that would have changed 1 'a' to ' 1' later in the string, and you said that you didn't want that.
    The 4th argument is the default value; We do not have ' really need, except that we cannot pass the 5th argument without passing the argument 4th in front of her (at least not in the versions of Oracle that I use).

  • I have a MacBook Pro.  Is there a way to implement a rarely used keyboard key that - WHENEVER - it is pressed the computer will insert the string, predetermined character at the cursor position?

    I have a MacBook Pro.  Is there a way to implement a rarely used keyboard key that - WHENEVER - it is pressed the computer will insert the string, predetermined character at the cursor position?

    Yes. You can add in system preferences > keyboard > text.

  • How to use a String function Find() during a Test of a string value?

    Hello

    I intend to match a substring of the string returned by my USE when the use of a string value test - call of VI.

    I write the string returned for a string variable local (Locals.data_read) and tab limits - under the expected string value using Find (Locals.data_read, 'Connected'). When I check the expression to find errors - I get a warning "expected a string number found {comma floating 64}.» This value will cause a runtime error. »

    What Miss me?

    Thank you

    Kech

    Here is an example showing both.

  • Possible to use Delphi strings?

    I know that LabView can, when calling external libraries, use Pascal string pointers. However, is those who are limited, possible to call an external library using a Delphi string?

    FYI: a Pascal string uses a byte to its length, a Delphi string uses 4 bytes. Since I use Delphi to the implementation of the DLL, using strings Delphi would be much simpler to use C strings.


Maybe you are looking for

  • DNS settings for the intranet server is not not a DNS

    I have an OS X server that services the on the local subnet (behind a NAT).  We have moved to a new office and installed a new firewall / local DNS and all other machines can resolve names of local computer.  But the OS X Server solves only them to t

  • Is it possible to resize the boxes?

    I just made a table to make a start list for our RV... makes the list, nice and large and easy to read, but can not change the size of the box to match. I tried to treat it as the text and the increasing size, increase in the size of the table... I k

  • 550-150 Pavilion: Pavilion 150-550 video card

    When you try to install the new card, the computer fails to recognize and just beeps. No startup. I've searched high and low to get answers without help. The factory means this card GEForce GT 730 and there is appropriate accommodation for her so I c

  • Cannot start IE in win7

    I have a pavilion dv4 4270us. I can't get IE 8,10,11, to start. I have reset internet options. deleted IE 11.  What can I do to get it to start?

  • I backed up my PC - all my photos and Skype chat history appear?

    Hello According to the title? I read earlier that the photos and the cat were stored in program files that they would not be saved? Is this true? Kind regards Taylor