How to convert the string to the variable of the apex

Hello

I need to replace the overall point of the table column value chain in its value of origin when the page is rendered.

the process code - plsql
-column replacestring contain the string F100_EMPID value
declare
REP varchar2 (100);
Start
Select replacestring in the rep of emp;
Select Replace ('EmployeeID', replacestring) in the content of emp;
HTP.p (content);
end;

The output is:
The employee ID is: F100_EMPID.

but I need the actual value of the global element when the process is rendered.

Select Replace (content, "EmployeeID",: F100_EMPID) in the content of emp;

This statement gives a correct output: Employee id is: 230092

I need to replace the string in the column of the table in the real global element inside the plsqcode for dynamic rendering code.

someone please help me solve this problem.

Thank you.
~ Logaa

Hello

What happens if you use:

Select Replace (happy, 'EmployeeID', v (replacestring)) in the content of emp;
or maybe
Select Replace (content, "EmployeeID", v ("| replaceString |")) in the content of emp;

Greetings,
Roel

http://roelhartman.blogspot.com/
http://www.bloggingaboutoracle.org/
http://www.Logica.com/

You can assign this answer to your question in marking it as useful or Correct ;-)

Tags: Database

Similar Questions

  • How to convert the following code in as3?

    As the title says... How to convert the following code to as3?... Thanks in advance.

    import flash.display.BitmapData;

    linkageId = "landscape";
    myBitmapData = BitmapData.loadBitmap (linkageId);


    MC = this.createEmptyMovieClip ("mc", 1);
    mc.attachBitmap (myBitmapData, 1);

    onMouseMove = function() {}
    myNewColor = "0 x" + myBitmapData.getPixel(_xmouse,_ymouse).toString (16);
    newColor.setRGB (myNewColor);
    selectedColor.colorValue.text = myNewColor;
    }
    selectedColor.swapDepths (_root.getNextHighestDepth ());
    newColor = new Color (selectedColor.sample);

    :

    var myBitmapData:landscape = new landscape (0,0);

    var bmp:Bitmap = new Bitmap (myBitmapData);
    addChild (bmp);

    stage.addEventListener (MouseEvent.MOUSE_MOVE, f);

    function f(e:MouseEvent):void {}
    var myNewColor:String = "0 x" + myBitmapData.getPixel(mouseX,mouseY).toString (16);
    newColorTransform.color = uint (myNewColor);
    selectedColor.sample.transform.colorTransform = newColorTransform;
    selectedColor.colorValue.text = myNewColor;
    }
    addChild (selectedColor);
    var newColorTransform:ColorTransform = selectedColor.sample.transform.colorTransform;

  • How to convert the precision extended float to float in C++

    Hello

    Could someone me please how to convert the extended precision (floatExt) float normal float in C++?

    What is the difference in the float between Labview and C++ data type?

    When I tried to receive a range of float of a function of the DLL generated by Labview in C++, data are bad.

    Thank you

    Victor King

    You can search for numeric data types in LabVIEW help for more information on the different types of data. Before sending the data to the C++ application, you can use the function of Double precision on digital / range of Conversion to convert number to Double precision.

  • How to convert the date in milliseconds?

    Hi all

    Can I know how to convert the date in milliseconds?

    My current datetime like this Formate

    QDateTime::currentDateTime (m:System.NET.SocketAddress.ToString ("MMMM dd, yyyy HH"))

    Seconds since January 1, 1970

    http://Qt-project.org/doc/Qt-4.8/QDateTime.html#toTime_t

    Sinds milliseconds January 1, 1970

    http://Qt-project.org/doc/Qt-4.8/QDateTime.html#toMSecsSinceEpoch

  • Please how to convert the photo to the second

    2012-Kia-Rio-SX-side1.jpg11707850_10153403835594354_514303523436587694_n-1.jpg

    Please guys how to convert the kia rio pictures the second perfect like this, and with any program, I know that all steps in details please its very important

    That looks just like you would use the tool pen to redraw on the image and create shape layers (black areas). It could be done in Photoshop or Illustrator.

    Using Photoshop | Draw with the pen tools

  • Hello, I have a full desktop in Adobe Muse, site and I want to convert it into a version Tablet & phone, then, how would convert the site Office to Tablet & phone to copy the entire office content and site structure? Thanks for any help.

    Hello, I have a full desktop in Adobe Muse, site and I want to convert it into a version Tablet & phone, then, how would convert the site Office to Tablet & phone to copy the entire office content and site structure? Thanks for any help.

    You can not automatically convert. Click on the "tablet" or "Phone" at the top of your plan view to create these versions.

    You can then copy and paste on any content you want has more of your office.

  • How to convert the hierarchical query of SQL Server (CTE) to Oracle?

    How to convert the hierarchical query of SQL Server (CTE) to Oracle?

    WITH cte (col1, col2) AS
    (
    SELECT col1, col2
    FROM dbo. [tb1]
    WHERE col1 = 12
    UNION ALL
    SELECT c.col1, c.col2
    FROM dbo. [tb1] AS c INNER JOIN cte AS p ON c.col2 = p.col1
    )
    DELETE one
    FROM dbo. [tb1] AS an INNER JOIN b cte
    ON a.col1 = b.col1

    Hello
    Something like this maybe:

    DELETE FROM dbo.tb1 a
     WHERE EXISTS (
      SELECT 1
        FROM dbo.tb1 b
      WHERE a.co11 = b.col1
          AND a.col2 = b.col2
       START WITH b.col1 = 12
      CONNECT BY b.col2 = PRIOR b.col1)
    

    Although you need to do here is to check that CONNECT it BY SELECT, returns records you wait first, then the DELETION should work too.

  • How to convert a string and use a rope as a property?

    I have an array in the following format:

    {ownsCar: 'true', ownsBike: 'true', ownsHouse: 'true'}

    {ownsCar: ownsBike 'false',: 'true', ownsHouse: 'true'}

    {ownsCar: 'true', ownsBike: ownsHouse 'false',: 'true'}

    etc ............

    And I need to test against each element, for example

    If...

    myDataGrid ["myItem"] .ownsCar is object (myCheckbox) .label

    ... then

    If...

    myDataGrid ["myItem"] .ownsBike is object (myCheckbox) .label

    ... then

    If...

    myDataGrid ["myItem"] .ownsHouse is object (myCheckbox) .label

    ... then

    But I have to build my application where the property (for example 'ownsCar', 'ownsBike', 'ownsHouse') is a variable such as:

    If...

    myDataGrid ["myItem"] .myProperty is object (myCheckbox) .label

    ... then

    I would like to browse my table, by counting the number of items and then use each element as a property.

    How to convert the string (for example, "ownsCar") in a property "myProperty"?

    Thanks in advance

    Chris

    OK, if I got this right what you need to do is introspection.

    The easiest way to do this would be:

    for ( var propertyName:String in myObject ) {
         // Do what you need with this here:
         myObject[ propertyName ];
    }
    
  • [Oracle 8i] How to convert a string (timestamp) in a date?

    I find it difficult to know how to convert a string to a date time stamp (or possibly several).

    The timestamp is 20 positions, character (NOT NULL, CHAR (20))
    in the format: YYYYMMDDHHMMSSUUUUUU
    where Y = year, M = month, D = day, M = Minutes, S = seconds and U = microseconds

    The reason why I want to convert it is so that I can compare a timestamp to each other (that is, I want to be able to find the MIN (timestamp), MAX (timestamp) and make comparisons of inequality).

    Is this possible?

    Thanks in advance for the help on this!

    Hello

    As Damorgan said, if all you want to do is find which is the earlier or later, then you can just compare the strings: they are in a format where it works.

    If you need to do other things, such as compare to today date or see the difference between two of your lines of days, you will need to convert it to date. (He has no reason to convert them to numbers).

    A new TIMESTAMP data type, which manages the fractions of a second, was introduced in Oracle 9.
    Since you use Oracle 8 (depending on your subject line), or it must be
    (1) ignores the microseconds, or
    (2) use a separate column for microseconds.

    Whatever it is, use TO_DATE to convert the first 14 characters in DATE:

    TO_DATE ( SUBSTR (txt, 1, 14)
            , 'YYYYMMDDHH24MISS'
            )
    

    where txt is your column of type CHAR.
    To convert microseconds to a number (between 0 and 999999):

    TO_NUMBER (SUBSTR (txt, 15))
    
  • How to convert the string with numbers in U8 with ascii

    Hello

    I have a string with only numbers 0. 9 paper.

    Now, I want to convert to table-U8.

    He works here, but now the problem: How can I change each character to its ascii value?

    Example:

    entry: 123 (string)

    output: x 31, x 32, x 33 (U8-array)

    Thanks for the help

    It's very easy

    String to Byte Array Function
    Have the Palette: string/array/path Conversion functions

    Converts a string to an array of unsigned bytes. Each byte in the array has the ASCII value of the character corresponding to the string.

  • How to convert the array of integer to string

    Hi, I'm trying to convert the table of 32-bit integers to a string. For ex: If the array contains {1234, 4567, 8, 9} I need string like {00.00, 34,12, 00, 00, 45, 67,...}

    How to do this one.

    Help, please

    Thank you best regards &,.

    Harish. G.

    Hi Haris,

    use the above solution as it seems you really want figures BCD...

    Or this slightly improved version:

  • How to convert the string in milliseconds

    Hello

    Please suggest how I can convert a string (October 9, 1989) in milliseconds...

    If it has a certain format, you can use HttpDateParser, otherwise create a calendar object, set the relevant values and get the time to it.

  • How to convert the string to a full decimal point and left shift

    Hey guys I tried to convert gps string to an integer, like this

    A string that is 2467.8976 and I need to convert it to a similar integer as point of this 2467.8979 so that I can shift the decimal point to the left (24.678979) which i coudnt do it with the chain. It's just been my 2 weeks with the labview so be gentle. Thank you

    Hi Awais07,

    Once you have created an indicator that signals the output of parsing the string, right-click on this indicator > display... Format > increase the value of the digit 9

    Kind regards

    Lennard.C

  • How to convert the binary value to a binary string in labview?

    Hi all

    I need to convert the binary value to a binary string. We have decimal or hexadecimal or octal number to decimal string, hexadecimal and octal string

    Hi pgm, use the function 'Format to a string. See the attached example. "%b" is the binary number in number in string format specifier.

  • [AI - CS5] How to convert the shape of the block of text in rectangle?

    Hi all

    could someone suggest me how can I convert the shape of text rectanglebox box and fill in any color desired in it? Any API can do?

    Here are the steps that I followed in illustrator to convert the shape.

    1. create a textframe.

    2. Select and choose the menu item "effect-> convert to shape.

    3. create a new filling of Armor Games Snowball palette (window-> appearance).

    4. specify the desired color of the palette (window-> color).

    I want to get the same result using the API.

    Help, please.

    Thank you

    D.A.

    Here are the details:

    Name of direct effect: "effects of shape of Adobe.

    The parameters are:

    ['Integer'] = 0 form

    DisplayString ['String'] = "Rectangle".

    Absolute ['real'] = 0

    AbsWidth = 'true' 36

    RelWidth = ['true'] 18

    AbsHeight = 'true' 36

    "Real" CornerRadius = 9

    RelHeight = ['true'] 18

    'Form' is likely to be 0-2 for the Rectangle, Ellipse, or a rounded Rectangle (perhaps the last two switched). For more information about how to create and apply a live effect see this thread:

    http://forums.Adobe.com/thread/925871?TSTART=0

  • How to convert the old sync key (12 characters, no dashes) to the new sync key (31 characters, 5 dashes)?

    My sync key was of 12 characters, no dashes (xxxxxxxxxxxx). After uninstalling and reinstalling FF 3.6.13, Sync 1.6.1 refuses my sync key to 12 characters.
    I discovered, that the keys of synchronization for all users have been activated to 31 characters including 5 dashes (x-xxxxx-xxxxx-xxxxx-xxxxx-xxxxx). How can I get the new key for synchronization?
    I have no PC connected to Firefox Sync more but Firefox Home and 360 browser on my iPhone successfully sync. Unfortunately on the iPhone I can't display the sync currently used key. Is there a way to convert the old key to sync to the new?
    I need the bookmarks saved in my sync account.
    Thanks for your help!

    I had the same exact symptoms as you did. Here is my solution:
    I installed an older version of firefox sync (1.4.something, I think) and then added my account using my old short firefox sync key. When you try to synchronize, the out of date addon says to do synchronization, it must be updated. After update, I always signed, but now had the additional device to see my new long firefox sync key that was compatible with FF 4 b, etc. Everything works fine now and my computer is properly synchronize.

Maybe you are looking for