Add Prifix & Sufix to the digital field

Dear friend

I want to change my itemcode list according to category. I want to change the first digit of each code for ex
This Code 400000473 I want to change to 100000473.

In all the Code starting with 4 want to change 1.

Sanjay
update your_table
set your_column = '1'||substr(your_column,2)
where substr(your_column,1,1)='4';

Max
[My Italian blog Oracle | http://oracleitalia.wordpress.com/2010/02/05/gestione-degli-errori-in-sql-con-log-errors/]

Tags: Database

Similar Questions

  • Connect the digital field with Drop Down

    I have a numeric field for the zip code and a drop for the city.

    I want that when I write the postal code in the numeric field to automatically display the city drop down list.

    And even when I chose to drop down the list then show in the digital field (postcode)

    I have all that in Excel.

    Thank you

    Use dynamic properties.

    Start by importing the xml from your spreadsheet (you're on your own with who) excel. Assuming that each line is a city and a postal code, your xml code will look like this:

    SomeCity

    12345

    .

    .

    .

    (1) in the designer, go to file > new connection of data...

    (2) select the sample XML data and the file in Excel.

    (3) make good properties sure dynamics are enabled, tools > Options > Data Binding > show of dynamic properties.

    (4) select your fall down and open the field in the object Palette tab.

    (5) you will notice that the list items is green and underlined. Select it.

    (6) for items, select the line

    (7) for the text of the item, select the city

    (8) for the value of the item, select the zip code

    You now have your menu dropdown bound to the data in your Excel worksheet.

    Now, just a bit of coding (brace yourself), in the digital realm for your zip code, in the case of output put:

    theDropDown.rawValue = this.rawValue;

    and to theDropDown:

    thePostalCode.rawValue = this.rawValue;

    Now all you have to do is import xml into your form to perform.

    Kyle

  • How can I add session variables for the subject field and the body of the e-mail Message?

    How can I add session variables for the subject field and the body of the e-mail Message? Tried several combinations, but do not seem to correct the syntax.

    This is the code I have. I need to change all the form variables in $msg in session variables. The $to part is supported. What remains are the $subject and $msg fields.

    $à = « à : ». $_SESSION ["toemail"];
    $subject = '$firstname $lastname, your registration details ';
    $from = "from: [email protected]"; "
    $msg = "Dear $title $firstname $lastname\r\n\nThank for the registration for the design of your dream Home.\r\nWe have received this following details details of you-\r\n\nClient-\r\n\nOccupation: $occupation \r\nPhone No.: $phone \r\nE-mail: $email\r\n\nPresent $ location: \r\n location\r\n\nPresent address: \r\n$ address\r\n\n\nFollowing are specified by you - design requirements \r\n\nBasic Features\r\n\nNo." floors: $floors\r\nNo. of bedrooms: bedrooms\r\nNo of $. of bathrooms: $bathrooms\r\nFloor region: $sqft\r\n\nFurther Suggestions: $ Plan\r\n\nSplit one further\r\n\n\nType floor: $splitfloor\r\n-remarks: $splitfloorremarks\r\nOpen floor: $openfloor\r\n-remarks: $openfloorremarks\r\n\n\nList of the rooms to be Included\r\n\nFoyer: $foyer\r\n-remarks: $foyerremarks\r\nDrawing: $drawing\r\n-remarks: $ alive drawingremarks\r\nFormal: $formalliving\r\n-comments : $ alive formallivingremarks\r\nFamily: $familyliving\r\n-remarks: $familylivingremarks\r\nHome Office: $homeoffice\r\n-remarks: $homeofficeremarks\r\nDining: $dining\r\n-remarks: $diningremarks\r\nMaster room: $master\r\n-remarks: $masterremarks\r\nMaster bathroom: $masterbath\r\n-remarks: $masterbathremarks\r\nMaster Dressing: $masterdress\r\n-remarks: $masterdressremarks\r\nBedroom: $bed\r\n-remarks: $bedremarks\r\nBathroom: $bath\r\n-remarks: $bathremarks\r\nDress: $dress\r\n-comments : $dressremarks\r\nStudy: $study\r\n-remarks: $studyremarks\r\nLibrary: $library\r\n-remarks: $libraryremarks\r\nPowder room: $powder\r\n-remarks: $powderremarks\r\nPrayer room: $prayer\r\n-remarks: $prayerremarks\r\nKitchen: $kitchen\r\n-remarks: $kitchenremarks\r\nPantry: $pantry\r\n-remarks: $pantryremarks\r\nUtility/area of work: $utility\r\n-remarks: $utilityremarks\r\nBalcony: $balcony\r\n-remarks: $balconyremarks\r\nStore: $store\r\n-remarks: $storeremarks\r\nLaundry : $laundry\r\n-remarks: $laundryremarks\r\nVeranda: $veranda\r\n-remarks: $verandaremarks\r\nCar porch: $carporch\r\n-remarks: $carporchremarks\r\nGarage: $garage\r\n-remarks: Theater garageremarks\r\nHome $: $theater\r\n-remarks: room of $theaterremarks\r\nMaid: $maid\r\n-remarks: $maidremarks\r\n\nOther general remarks: $general\r\n\nPlease note that the fields have been left blank in your form will be considered undecided details and used in discretion.\r\nIf of the architect , it better to add more later, design requirements please feel free to reply to this email with the details. « ;
    $fla = mail ($to, $subject, $msg, $from);

    Thanks in advance!

    askintrades wrote:

    How can I add session variables for the subject field and the body of the e-mail Message?

    What you want to do? Given the nature of your question, it seems that you probably don't know what a session variable is used. The PHP manual describes the purpose of sessions here: http://docs.php.net/manual/en/intro.session.php.

    I need to change all the form variables in $msg in session variables. The $to part is supported. What remains are the $subject and $msg fields.

    $à = « à : ». $_SESSION ["toemail"];

    Why do you need to change the form variables in session variables? They are already stored in session variables, or they come directly from the form?

    The $to part is not supported. When you pass $to to the mail() function, it should contain only an e-mail address, not a string that begins with "to:

  • Validate the digital field - can be 10, 20 or 30

    I am using LiveCycle Designer ES (Version 8.2).

    I have a numeric field that can hold a 10, 20 or 30. It can also be empty, and I guess, a zero would be nice too.

    How can I accomplish this, since I'm a newbie here?

    Thanks for the comments.

    Hello

    If your entry is limited to only 10, 20 or 30, you can use a drop-down list instead of a numeric field.

    A drop-down list is good when you want to make sure that only user predefined values input and define the formats and connections.

    Implement the items in drop-down list in the object Panel and uncheck the box 'allow cistom entry. Go to the control panel link, and select the checkbox 'specify values. Assign a value of 10 '10', etc.

    You will be able to refer to the rawValue of the drop-down list script later, as you would with a numeric field.

    If you want to go with the digital field, you can set up a Javascript script in his output event:

    If (this.rawValue == 10 | this.rawValue == 20 | this.rawValue == 30)
    {
    do nothing
    }
    on the other
    {
    App.Alert ("invalid data entry: enter 10, 20 or 30");
    this.rawValue = null;
    }

    Good luck

    Niall

  • Set the Action to add a script to the signature field digital signature

    In the properties of the digital signature in the tab signed field there is an option to run a script when the field is signed.

    I can manually add a script for the properties of the field of digital signature with no problems.

    I now need to add this script in the field of signature by program (batch), but do not know how to call the "run a script when the field is signed in option.

    This is different from the mouse upward, the mouse to the bottom of the actions and I couldn't find the terminology for this in the javascript reference guide.

    var f = this.getField ("ReviewedSignature");

    f.setAction ('?', app.mailMsg ({bUI: false, cTo: "emailaddress.com", cSubject: "Technical Document for approval and signature", CMSG: "Please check and sign the technical assessment document" + "\n\n" + "Best regards" + "\n\n" + "Name"});)

    Note: This is for Adobe Professional 9.

    Thanks for any help provided.

    This is the Format event.

  • How can I add drop shadow to the digitized text handwritten?

    I wrote by hand and scanned a text, open in Photoshop CS6 and reversed tones to create white letters on a black background.  I made this file in Avid Media Composer and it superimposed on an image using a luma key to key on black.  Now, I want to add a small drop shadow to the text to make it more readable when it is bunk.  How can I do this in Photoshop before importing the file in Media Composer?  I realize I have to use an alpha channel, rather than a luma key, in this case, but I have no idea how to do to create the PS file with shadows on the letters.  I think I can learn the procedure to make a layer alpha from online sources.  I would be grateful for any guidance.

    Without having seen the digitized text I am not sure that the following technique is appropriate. That said, consider this approach, assuming that the scanned manuscript text is on white paper:

    1. open the file. The text is the background layer

    2 stir its background lock in the trash

    3 hold down the command key and click the new layer at the bottom of the layers panel. He will place a white layer under the text layer.

    4. the background layer is layer 0.  Select layer 0.

    5 double-click the layer color 0 in the layers panel to get the layer Style menu area

    6 down below is the "Mix" box if are two gray scales. Move the slider to the right of the grey scale top of the page toward the left and the White Book of your scanned text layer will become transparent. Click OK.

    7 Cmd + E to combine the layer

    8. at this point, you can place a layer below your text layer. Edition > fill with white.

    9, return the text layer and - once more the use of the layer-Layer Style - apply the drop shadow. (Clicking the shadow option will provide additional controls.)

  • Add folio numbers in the digitized manuscripts

    I have a PDF file with scans of the handwritten manuscripts. Each analysis contains two facing of the scanned book pages. I want to add (1v, 2r, 1r, 2v) folio numbers, page numbers not ordinary. It is possible, except by inserting it manually on each page? Adding regular page numbers, disobeys.

    Hello

    Addition of folio' is not possible directly. The header and Footer option you will add numbers in PDF format but do not add folio' directly.

    Either can be done through java script or possibly check the following link to add folio on a PDF file.

    https://helpx.Adobe.com/Digital-Publishing-Suite/help/create-folios.html

    Please check if it fits your requirement.

    Concerning

    Sukrit diallo

  • property of format to the digital field mask

    Hi all. I'm on devsuite 10g.
    I have a little problem with the format of a numeric field mask property.

    I want to display like this:

    3,000,000,000

    But in the format mask property if I put the 9G999G999G990 I got this result:
    3 000 000 000

    I read that I should change the parameter NLS_LANGUAGE but surely, there would be problems with the other columns in the database, such as the columns date, ecc.

    How can apply a mask to format my field to see 3,000,000,000?

    Thank you all for collaboration,
    Fabrizio

    Oh, sorry; You must add it without the quotes:

    NLS_NUMERIC_CHARACTERS=,.
    

    see you soon

  • Add zeros to a non-digital field

    Hello

    I have an application that currently does not validate a field, and the user can enter any string on this specific area. The customer wants me to write a view to provide information of a child table that uses the free format as a key field for join.

    Example, the field is free-form, but we would expect something like "0000001-AB", but users are inputing 1' or ' 001 - AB'. " The customer wants to see these cases be shown (and joined) as '0000001 - AB'. The format is 7 digits + '-' + 2 digit code.

    I would like to know, how can I display on a view, since most of my files are ' 1 'or ' 001 - AB'. But there are others with things crazy like ' 1 + 2 + 3 + 4' and these cases give me an error of "invalid number" since I use TO_NUMBER function so far.

    Thank you!

    Eduardo Ferrari

    Like this?

    SQL> WITH t AS (
      2     SELECT '1' val FROM dual UNION ALL
      3     SELECT '0000001-AB' FROM dual UNION ALL
      4     SELECT '001-AB' FROM dual UNION ALL
      5     SELECT '1+2+3+4' FROM dual)
      6  SELECT val, LPAD(val, 10, '0')
      7  FROM t;
    
    VAL        LPAD(VAL,1
    ---------- ----------
    1          0000000001
    0000001-AB 0000001-AB
    001-AB     0000001-AB
    1+2+3+4    0001+2+3+4
    

    It won't help those who is really blocked upward, but ones that are close should be out right :-)

    John

  • Change the digital field of legend

    I have a form at least 2 boxes option named type1 and type2 and on 2 different pages 2 fields of digital type NF [0] and NF [1], the binding of NF is global.

    If I select the radiobutton type1 then legend of NF [0] and n [1] should change to 'Type1' and visa versa

    I have the following JavaScript in the change of the radiobuttonlist method:

    if (this.rawValue == 1)

    {

    xfa. Form.Form1.test.nf.Caption.Value.Text.Value = 'type1';

    }

    else if (this.rawValue == 2)

    {

    xfa. Form.Form1.test.nf.Caption.Value.Text.Value = 'type2';

    }

    This changes only the legend of NF [0], how can I change the legend of NF [1]?

    Best wishes

    Simone

    You can change with the names that you have, but the syntax of the expression is quite confusing:

    xfa.resolveNode("xfa.form.form1.test.NF[1]").caption.value.text.value = 'type2 '.

    If you rename the field to a unique name, then you can set it as the first:

    XFA. Form.Form1.test.NFnewName.Caption.Value.Text.Value = 'test2 '.

    Note that you don't need the xfa.form at the beginning of the expression... then to simplify it:

    Form1.test.NFnewName.caption.value.text.value = 'test2 '.

    Paul

  • Problem with the digital field model

    Hello!

    This problem is driving me crazy!...

    I placed a numeric field and used the following model:

    NUM {zzz zzz zzz, zz9.99}

    This field must view and accept with 2 decimal places and in European format floating point numbers.

    The locale by default for this form are the Portuguese (Brazil).

    So... If I type something like 99999, the field correctly 99.999,00.

    Now, if I type 99999.00, once again the field correctly contains 99.999,00.

    However, if I type 99999,00 (with a comma instead of a period, what I need) field contains 0.00.

    Please, thank you very much for all the ideas!

    Marcos

    The result you get is correct, because the boss lets only a time separate decimals.

    Try the following change:

    NUM {zzzzzzzzzzz9, 99}. NUM {zzzzzzzzzzz9.99}

    and this view model:

    NUM {zzz.zzz.zzz.zz9, 99}

  • Difficulty in getting the number of instances of digital field

    Hello

    I created a form on which a user can add / duplicate the subform.  This subform is located in an another subform.
    THUS, the hierarchy is like:

    1 subform

    2 subform

    Table with fields

    Remove button

    Add button

    Numeric field

    The digital field display the number of instances of subform 2.

    I selected the field and added the code:

    Subform2.instancaManager.count;

    But this does not at all. The field does not appear anything.

    The subform has a minimum number of 1. So in my logic, it should display 1. But I'm not a scripter at all... so frankly I think of her in a bad way.

    Can someone help me get this numeric field to calculate the subform2 instances? In a language dummy please :-)

    Hello

    Since the numeric field is outside Subform1, you have not provided a quite complete reference of the numeric field Subform2. For a description, see here: http://assure.ly/kUP02y.

    It should work in the case of calculating the numeric field:

    this.rawValue = Subform1.Subform2.instanceManager.count;
    

    If the subform did not have a minimum number, you would use the shortcut of instanceManager _ underscores:

    this.rawValue = Subform1._Subform2.count;
    

    The two options are JavaScript. I prefer to use the shortcut _ every time I work with the repetition of the proceedings.

    Hope that helps,

    Niall

  • Message for the required field

    I have created a form in Acrobat (not LiveCycle) with Acrobat X on Windows. The form must be accessible, and I need to alert users when a required field is not filed on.

    I tried to use this code in Action, the blur for the required field:

    f = getField (event.target.name)

    If (f.value.length == 0)

    {

    f.setFocus)

    App.Alert ("this field is required. Please enter a value. »)

    }

    Although the code appear in an alert message, I can't close the alert dialog box, nor can I add that to fill the required field because I can't after the closure of the dialog box.

    Does anyone have a suggestion?

    Furthermore, this line:

    f = getField (event.target.name)

    can be changed to this:

    f = event.target;

    And this:

    If (f.value.length == 0)

    should be replaced by:

    If (f.valueAsString.length == 0)

    or even better:

    If (! f.valueAsString)

    Since some entries from field (for example, numbers, 'true', 'false'), the length of the value property will be indefinite, given that the value property is not a string or an array. The code works since "".length == 0 evaluates to true, and undefined is 0 is false, but it's a little sloppy. "."

  • Acrobat Pro DC - failed to create the digital signature field

    Hello:

    I use a trial version of Acrobat Pro DC and PREPARATION of a form to an existing PDF document. I can't find a way to create a digital signature field that can be "click (to sign).

    Note: The existing .pdf has a digital signature field works but when I click on 'Prepare the form' and select this shape, it blocks every time Adobe Acrobat Pro. I must change the .pdf first, delete the existing digital signature field, save the .pdf, then on 'Prepare the form' and select it with the required signature checked.

    I read several articles in the knowledge base and tutorials that refer to an icon in the toolbar of the digital signature, but I have not this icon can be selected. That's what I see:

    When I select the available signature icon (envelope with x) this simply creates a text field, that when the document is opened in Adobe Reader, this field disappears when you click it.

    I tried with Adobe Acrobat Pro on Windows 7 as well as currently on Mac OS 10.10.5 (Yosemite). Help to solve this problem would be greatly appreciated.

    Thank you

    The problem is that you have selected the signing required check box. When you do this, it limits you to a form that is compatible with Adobe sign, which allows no digital signature fields. What you can do is to click on the more button in the right panel and select "Back to the form of Acrobat" and you will be able to add digital signature fields.

  • I have 3 domains. A field is a constant date mm/dd/yy. The second field is a digital number (1-120) and can be changed. The third field calculates two fields 1 and 2 in the summation and shown in mm/dd/yy. How do I calculate that in the script?

    How do I calculate that in the script? I have 3 domains. A field is a constant date mm/dd/yy. The second field is a digital number (1-120) and can be changed. The third field calculates two fields 1 and 2 in the summation and shown in mm/dd/yy.

    You searched for ' add days?

    You must write a custom for this JavaScript calculation because you cannot add a number any date. Also the date strings are not just a number, even if we can convert a given date in a number for that date that represents the time form a date date (Epoch). Witn this value, we can achieve them all kinds of date calculations and collect a little information about the date. JavaScirpt uses midnight on January 1, 1970 UTC for starting point or the date of the time. Its value is zero, and every millisecond increases the value of 1. When a date string is converted to the date object JavaScirpt we have access to many properties of the date and can use several methods to extract information or adjust the date object.

    Field 1 is in the format "Date" with a format of "mm/dd/yy".

    Field 2 is in «Number» format with 0 decimal.

    Zone 3 is in the format 'None '. The custom calculation script applies to the formatting.

    The custom for JavaScript calculation area 3:

    var cField1 = this.getField("Field_1").valueAsString;

    var cField2 = this.getField("Field_2").valueAsString;

    Event.Value = "";

    If (cField1! = "" & cField2!) = "") {}

    Console.println (cField1 + "" + cField2);

    calculate that if we as no null data;

    var cDateFormat = "mm/dd/yy";

    convert start date date object.

    Kai var = util.scand (cDateFormat, cField1);

    get the date of the month;

    David var = oDate.getDate ();

    Add field 2 number of days;

    David = Number (nDate) + Number (cField2);

    of being updated for the new date.

    oDate.setDate (nDate);

    Set the field to update formatting;

    Event.Value = util.printd (cDateFormat, letter);

    } / / end of data not null;

Maybe you are looking for

  • Satellite Pro A100: Screen does not return after hibernation

    The laptop went to Hibernate, but would not re - awaken.tried to disable following the manual, but the screen is now definitely blank, any suggestions?

  • XW6000 cooling fan and CPU connector issues

    XW6000 workstation, 2 x 3.06 Ghz Xeon processor, 4 GB RAM, Radeon X 1600 512 MB AGP, OS Windows 7 video card. Hello, all,. I have a strange problem with this otherwise excellent camera. A couple of weeks, he has begun to close randomly and would usua

  • is iPad apos

    A Tela iPad fica piscando quando contribution. ISSO uma is apos

  • Measurement of respiratory signals by Pulse Oximeter

    heHi, it comes to Madhusudhanan Natarajan Anjalai Ammal Manguin Engg College, Kovilvenni. I would like to ask a few questions related to the DAQ products. In fact, we will update the Oximeter research in sleep, surveillance system. To do this, they g

  • How it delete and start from scratch?

    All I want to do is clear on my computer and restart from scratch. I have all my records, but he said not how to this in the instruction manuals... only includes restoration at some point and I don't want to restore. How it delete and start from scra