Retrieve the name of the file name form document...

Hi all

I'm new to the development...

I have a doubt, I have a file name in a table like 011abc_XYZSupplier.pdf

on this basis, I need to take the invoice number and the name of the provider in the above file.
ex: until _ is the invoice number (011abc), after _ is the name of the provider XYZSupplier.

How to achieve this goal through the cursor.

Please help me on this issue.

Thank you and best regards,
Muthu
select substr(file_name,1,instr(file_name,'_')-1) invoice_number ,
       substr(file_name,
              instr(file_name,'_')+1,
              instr(file_name,'.')-instr(file_name,'_')-1
              ) supplier
from your_table;

INVOICE_NUMBER SUPPLIER
-------------- -----------
011abc         XYZSupplier 

Or REGEXP

select regexp_substr(file_name,'[^_]+') invoice_number ,
       regexp_substr(file_name,'[^_.]+',1,2) supplier
from your_table;

INVOICE_NUMBER SUPPLIER
-------------- -----------
011abc         XYZSupplier 

Published by: JAC on February 28, 2013 12:40

Tags: Database

Similar Questions

  • Passwords do not work to retrieve the files that I locked for the protection of personal information under my administrator account.

    I had some that I have files protected by Word, under my administration account that s wa also password protected. recently, I had to have my computer reformatted and returned it to me without administrative access, research nothing same and none of my passwords work to open these locked files. Please help me... inside one of them was a picture of my husband roommmate that he has lost the war. I need to these files and photos.  Thank you!  BTW I don't know if I have windows xp or pro.  Thanks again

    Would you be able to help me more if I had administrative control?  Because the place that did that at my computer only altered my administrative control, if I'm not mistaken it is still mine.

    At this point, you should probably take the computer to the one who did what they did and ask them to retrieve the files for you.

  • All the files in my Document - Microsoft word can open is no longer

    All the files in my Document - Microsoft word can open more. When I try to open any of the file this show error "this file is not found.
    Help me on how I can restore all my files that cannot be found now. Help, please
    Sage180

    I hope that turns the image below for you.

    Right click on libraries (which is highlighted in the background) and then click on restore default libraries.

  • Using JavaScript to determine the name of the file a form

    We have a lot of forms, and in many cases, our custom JavaScript if applies to all forms in a given folder. We want to determine the name of the file of the form so that we do not have to list each shape in a giant 'IF' statement.

    Has anyone found how to determine the folder of a form using JavaScript?

    Thank you!
    -Jake

    Hey Jake,

    Is good enough record id, it should not change anyway.

    Alert (externalFormId);

    will provide the folder under that accessed the form.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • on the desktop and the names of the files in My Documents, the words are underlined

    I am running XP, Sp 3;  IE8;  Email in Mozilla Thunderbird that I don't know if I checked the correct section; If this isn't the case, could you send it to the right place?  Thank you.

    After a recent update of Windows, my computer went haywire.  Everything is affected.  I'll get a fixed thing, and something goes wrong.  Try to correct this, and the thing original mess up again.  Here is what happened.

    1 got everywhere too small font sizes.  E-mails, documents, anywhere there is the text.

    2. no don't fix takes care of everything.  The fonts changed for those unfamiliar in an e-mail, documents, office, where I used to have a type and font size for a page, it changes: the body of the email will be unique size, the toolbars and menu drop-down dialog boxes boxes another, each different section on the page is a different size and mixed fonts.

    3. the last thing when I tried to fix something, is emphasized.  The text under the icons on the desktop are underlined.  In 'My Documents', the name of all the files and folders are underlined and the style of police and the size has changed.

    4. at one point, I had the body of emails fixed (can't remember how); the next thing I know the text is on a PT. 6 I want to 12 or 10.  I started to email a few minutes ago and the text was so small, I couldn't read it so stopped.  When this happened, the toolbars and some of the other font sizes returned nearby, original or original.

    It's midnight; I've been at this for hours and just, it's even worse.  There are probably other things wrong, but I'm so exhausted, I can't think.  I had hoped there was a magical place, I could go that would put everything back as it was before the update of Windows.  Please, can you help me?   Thank you very much.

    I checked for viruses and I did not.

    Hi AnnP1937,

    You can try chaning windows fonts in Internet Explorer and check.

    Method 1:

    To change the size of the font in internet explorer, see the link below.

    Internet Explorer Zoom lets you enlarge or reduce the view of a Web page. Unlike changing font size, zoom enlarges or reduces everything on the page, including text and images. You can zoom from 10% to 1000%.

    Zoom in on a Web page

    http://www.Microsoft.com/enable/training/IE8/webzoom.aspx

    To change the font size of Windows, see the links:

    To change your window fonts

    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/display_change_window_fonts.mspx?mfr=true

    To increase or decrease the size of objects and text on your screen

    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/display_use_large_or_small_fonts.mspx?mfr=true

    Adjust the display and appearance

    http://www.Microsoft.com/enable/training/WindowsXP/appearance.aspx

    If you're still having problems, then try a system restore and verify.

    Method 2:

    To run the system restore, try the steps:

    a. Click Start, click programs, accessories principally made, click System Tools and then click System Restore.

    For more information, see the link:

    Steps of troubleshooting for problems when you try to use the System Restore tool in Windows XP

    http://support.Microsoft.com/kb/302796

    Hope this information is useful.

  • By getting only the base filename, not full path to the file upload form

    I can't get the full path of the file in the html code that I need for my script php to a video file of ftp.  I shows the method of recovery of the info file in php first.  My ftp_nb_fput fails because it cannot find the file because it assumes that it is on the server, not the local machine.  I use this so I can see the progress of the transfer without too much code:

    ANY HELP WOULD BE GREATLY APPRECIATED!

    <? PHP

    $source_file = isset($_POST['filen'])? ($_POST ['filen']):($_SESSION['filen']);

    '

    '

    $fp = fopen ($fichier_source, "r");

    $ret = ftp_nb_fput ($id_conn, $destination_file, $fp, FTP_BINARY);
    While ($ret is FTP_MOREDATA)
    {
    $uploaded = 100 * ftell ($fh) / $file_size;
    Print "$uploaded % full \n";
    Continue downloading...
    $ret = ftp_nb_continue ($conn_id);
    }
    If ($ret! = FTP_FINISHED)
    {include 'upload_video_failed.htm';
    output (1) ;}
    else {include 'upload_video_db.php' ;}
    fclose ($FP);

    '

    '

    ? >

    "< FORM METHOD ="POST"ENCTYPE =" multipart/form-data"ACTION="./upload_video.php ">

    < TABLE >
    < b >
    < TD > video < span class = "style1" > * </span > < table >
    < TD > < INPUT NAME = "filen" id = "filen" TYPE = 'file' size = '30' class = "fields" > < table >
    < /TR >
    < b >
    < TD > title < span class = "style1" > * </span > < table >
    < TD > < INPUT NAME = "title" id = "title" TYPE = "text" size = "43" class = "fields" > < table >
    < /TR >
    < b >
    < TD > class < span class = "style1" > * </span > < table >
    < TD > < select name = "category" id = 'category' class = "h1" >
    < option > select the category that best describes your video < / option >
    < option > documentary < / option >
    < option > Educational < / option >
    Interesting facts < option > < / option >
    < / select >
    < Table >
    < /TR >
    < TR VALIGN = "top" >
    Description < TD > < table >
    < TD > < TEXTAREA NAME = "description" id = cols "description" = "32' RANKS '2' WRAP = class ="h1"> < / TEXTAREA > < table >
    < /TR >
    < b >
    Term < TD > < span class = "style1" > < / span > < table >
    < TD > < select name = "duration" id = "term" class = "h1" >
    < option > 1 day < / option >
    < option > 1 week < / option >
    < option > 1 month < / option >
    < option > 3 months < / option >
    < option > 6 months < / option >
    < option > 1 year < / option >
    < option > until this that deleted < / option > < / select >
    < Table >
    < /TR >
    < b >
    < TD > tags < span class = "style1" > < / span > < table >
    < TD > < INPUT NAME = "tags" id = "tags" TYPE = "text" size = "43" class = "fields" > < table >
    < /TR >
    < b >
    < TD > < table >
    < TD > < name INPUT = 'Submit' TYPE = "Submit" VALUE = "Upload" > < table >
    < /TR >
    < /table >
    < / MAKE >

    marcusinfla wrote:

    ONLY PROBLEM, IT IS THAT I CAN'T DOWNLOAD THE VIDEOS MORE THAN 4 MB.  I've included the attribute MAXLENGTH = 100000000 (100 MB) and it does not help.

    ANY IDEAS?

    A good idea is to read the PHP manual. As explained in the next page, the maximum size of the downloads is controlled by the PHP configuration directives: http://docs.php.net/manual/en/features.file-upload.common-pitfalls.php. Normally, the maximum size of an individual file is 2 MB, and the maximum total value is 8 MB. If you are on shared hosting, I doubt that if the hosting company will be willing to change the configuration directives to allow 100 MB mail, but you can always ask.

  • Cannot install Firefox on new HP Windows 7. After he retrieves the file I get this error message: there is no specific path

    He then goes on to say, check the path and try again. I created the file path and soon realized that he changes the name of the path each time.

    Path of the example:
    c:\\Users\Karen\AppData\Local\Temp\7zSCAD.tmp\setup.exe

    Running windows 7, 64 bit and trying to download the new Firefox 7. When this does not work I tried an older version and got the same message.

    I loved Firefox on my old computer which was under XP. I hope there is a fix for this.

    Thank you!
    Karen

    Try instead a .zip installation. It should work. When you run Firefox for the first time, it will create a new profile if it is already there.

    http://FTP.Mozilla.org/pub/mozilla.org/firefox/nightly/7.0.1-candidates/build1/Win32/

    Choose a language version, and then choose the .zip file.

  • Failed to retrieve the files saved on an external HD for a restoration of Windows Vista

    My HP laptop was more able to launch Windows Vista. Fortunately, I had a recovery disk for the laptop that was created when I turned first on the laptop several years ago. When I was running the recovery disc, asked me if I wanted to save all the files before the computer was placed back in its original factory condition. I said 'yes' and asked to plug a USB key. I plugged my WD "My Passport" external hard drive with 1 TB of memory. It took more than 12 hours to copy everything (especially photos) on the external drive, then my laptop has been restored. Now my laptop works fine but I cannot access files that have been copied to the external HD Windows says there are 100 GB used on the external hard drive, but none of my files are visible in Windows Explorer. I tried the advanced restore from the backup and Restore Center, but this program does not detect as anything on the external hard drive. How can I get my old files back below the sending of my external hard drive to a data recovery company and pay several hundred dollars? Help, please.

    You perform the operation mentioned such backup in the backup when retrieving files section in the following link:

    http://h10025.www1.HP.com/ewfrf/wc/document?DocName=c00814731&LC=en&cc=us&DLC=en

    If that's what you were doing, you need to set up your question in the support of HP that this program was designed and implemented by HP for their computers. Here is a link to the HP's Support Forums:

    http://h30434.www3.HP.com/

    Hope that helps!

  • How to reset the file input form after submitting the form with an ADF file

    I use oracle 12 c. I have a form where I have 3 fields and an af:inputFile where I need to download the file and the final backup.

    I can't use for inputFile valueChangeEvent because if I user ResetUtils then I won't get the invalid entry form.

    On record everything works fine but when I add once again a record then the last file update still shows in inputFile (its not reset).

    After save if I set the binding of the null input file then do partial trigger for the component by using its page load Binder takes a huge time to save so I can't use it.

    Here is my code

    < af:panelFormLayout id = "pfl1" rows = "3" >

    < af:inputText value = "#{bindings." Filename.inputValue}"label =" #{bindings. " Filename.hints.label}.

    required = "#{bindings." Filename.hints.Mandatory}.

    columns = "#{bindings." Filename.hints.displayWidth}.

    maximumLength = "#{bindings." Filename.hints.Precision}.

    shortDesc = "#{bindings." Filename.hints.ToolTip}"id ="9 ".

    contentStyle = "width: 150px" showRequired = "true" >

    < f: validator binding = "#{bindings." Filename.Validator} "/ >"

    < / af:inputText >

    < af:panelGroupLayout id = "pgl350" layout = "horizontal" >

    < af:inputFile label = "Select" id = "if51" value = "#{ContractDocumentUploadDwn.file} '"

    showRequired = "true" binding = "#{ContractDocumentUploadDwn.inputFileBinding}" / >

    < af:button text = "Upload" id = "b353" action = "#{ContractDocumentUploadDwn.uploadPortfolioDoc}" / >

    < / af:panelGroupLayout >

    < / af:panelFormLayout >

    Java code:

    {} public void savePortfolioDoc (ActionEvent actionEvent)

    Add the code in the event here...

    DCIteratorBinding iter = getDCIteratorBinding ("portfolioDocument1Iterator");

    UploadedFile myfile = this.getInputFileBinding () .getValue () (UploadedFile);

    String link = "Commit1";

    String popUpId = "p2";

    genericSaveDocuments (actionEvent, iter, myfile, lie, popUpId, "Portfolio"); Saves the document

    iter.executeQuery ();

    ITER. Refresh (1);

    setInputFileBinding (null);

    ResetUtils.reset (actionEvent.getComponent ());

    }

    Please help me

    See this line in your code

    You use a variable as the inputFile value so you must set its value to null

    Write like this-

    this.setFile (null);

    Reset the inputFile component after download

    ResetUtils.reset (inputFileBinding);

    Ashish

  • Open the files in form 10g

    I used the code in forms 6i to open any application below.
    I have a table with the path of the application and the file ext. It is for each user. Because the installation of application in the Office of the users in the different path.
    Depends on the position of the file app_path will be assigned.

    FNAME: = "APP_PATH \\cveserver\cve-data\hybrid_new\" | : CPF. CPF_SOURCE;
    APPID: = DDE. APP_BEGIN (FNAME, dde.app_mode_normal);

    I converted the fomrs 6i to 10g. How can I realize this now.

    Try this:

    Client_Host('cmd /c start "" "c:/my_doc.doc"');
    

    François

  • I opened a folder from an e-mail, made changes to the word document, and thinking that I had saved on my hard drive, I closed it. Now I can not find the file with the changes. Is there anyway I can retrieve the file with the changes that I made for her?

    recovering files

    Follow these steps to find the file;

    Go to folder options in Windows Explorer > organize, click the view tab and select "Show the hidden files and folders" and uncheck the box on "Hide protected operating system files".

    Copy and paste the following text in the address bar of windows Explorer. Don't forget to replace "XXX" with your own username (or one that has been used by modifying the file), C:\Users\XXX\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.IE5

    Now you're going to see some folders, the file you are looking for must be in one of these folders.

    Thanks to http://vistahelp.wordpress.com/

  • Failed to retrieve the file. The dynamic application file is not in the specified location

    Hi all

    We face below mentioned question when creating content for our portal application web center.

    I configured UCM correctly for my portal application by creating the connection of content in my application resources repository.

    Our Center web version: 11.1.1.8

    1st edition)

    Content Server request failed

    ErrorImpossible to recover the file. The dynamic application file is not at the specified location ('/ l01/oracle/middleware/user_projects/domains/Webcntr_domain/ucm/cs/weblayout/resources/wcm/custom/sitestudio/contentwizard/webcenter/contentwizard.hcsp ').     

    That's what I did

    In one of my portal page I added the content presenter by entering mode(ctrl+shift+e) contribution and in content configuration presenter window, when I clicked on the button "create Web content".

    It take me to my window to center of oracle and survey web content the above error. Here's the URL that I have in my browser

    http:// < hostname >: < portNumber > / CS/Resources/WCM/Custom/SiteStudio/contentwizard/WebCenter/contentwizard. HCSP

    Just to clarify, even I tried the same thing in the spaces of the web Center as well. I created a TestPortal, adding a page, and on this page when I add the content presenter and clicked on the "Create Web content" button, I get the same question.

    Please suggest me what could be the reason.

    Studio on the Site of 2nd edition) (11.1.1.8), I created all the required element definitions and definitions of the region and they are archived as well. And content of oracle web Center (UCM), I can learn all the definitions xml for these items. But if I want to change their definitions in the site studio, I do not get is it possible to see all the definitions element or definitions of region I created previously. is this kind of bug in 11.1.1.8? Since I was not facing this problem in 11.1.1.6.

    so can anyone suggest something for the issues mentioned above.

    Thank you

    Nassim

    Hello.

    WebCenterConfigure component of the Complutense University of MADRID is responsible for the creation of the contentwizard.hcsp in the folder you specified. Please check if it is enabled, or you will need to reset it.

    In any case no problem of migration, if WebCenterConfigure been activated before it doesn't have an impact, of the contentwizard.hcsp.

    Kind regards.

  • The difficulty to move the files to shared documents files and transfer documents to my USB on my computer

    I'm moving all my documents and music files in the folder documents shared on my computer but its telling me C:\ is not accessibble, access is denied.
    He responds in the same way when I try to move files that that are on my USB on my computer.
    I don't know if this has to do with the hard drive or what he can possibly be or how to fix it. Help, please. Thanks in advance

    Hello

    • Connect you as an administrator?

    You can refer to the following steps:

    1. Log the computer with an account that has administrative credentials. If you are running Microsoft Windows XP Home Edition, you must start the computer in safe mode, and then log on with an account that has administrative rights to access the Security tab.
    2. If you use Windows XP Professional, you must turn off Simple file sharing.
    3. Right click on the file/folder that you want to take control and then click Properties.
    4. Click on the Security tab, and then click OK in the security message (if one appears).
    5. Click Advanced, and then click the owner tab.
    6. In the name list, click your user name, click administrator if you are logged in as administrator, or click the Administrators group. If you want to take ownership of the contents of this folder, select the check box replace the owner of subcontainers and objects .
    7. Click OKand then click Yes when you receive the following message is displayed:
      You are not allowed to read the contents of directory folder_name. Do you want to replace the the directory permissions with permissions granting you full control?
      All permissions will be replaced if you press Yes.
    8. Click OK, and then reapply the permissions and security settings that you want for the folder and its contents.

    See also:

    http://support.Microsoft.com/default.aspx?scid=kb;en-us;308421&product=winxp

  • Retrieves the properties of a Document the size of the Page

    I have several windows of different sizes and necessary to extract the size of each drawing, document properties page.

    this.info object can be used to extract the title, author, subject etc of a document, but there is no properties specified for the extraction of the size of the page.

    Can any advise please retrieve the page from the properties of a document file size?

    Any help will be most appreciated.

    Once the size of the page can be extracted I use a script to put a stamp on the drawing depending on the size of the page.

    Thank you.

    Use the util.printf method:

    var width  = util.printf("%.3f", (aRect[2] - aRect[0]) * 2.54 / 72);
    var height = util.printf("%.3f", (aRect[1] - aRect[3]) * 2.54 / 72);
    
  • Error "Windows explore has stopped working" when you open the file in my documents

    Original title: opening a file in the folder my documents

    Whenever I try to open a file in my documents folder, specifically a CV that I downloaded on a construction site. I get a message that windows Explorer has stopped working?

    Hi dalintn,

    1. What is the file format of the document?

    2. are you able to open documents from other locations?

    3. did you of recent changes on the computer?

    Check if the similar problem persists when you access the document from any other location on the computer.

    Method 1

    This error message can occur if there is some system files corrupted on your computer. I suggest that you run a SFC scan, which would be a system file corrupt on the computer search and replace.

    The analysis may take some time, so be patient. Windows allows to fix corrupt or missing files it finds. If the information of the installation CD is required to fix the problem, you may be asked to insert your Windows Vista installation CD.

    For more information please visit the link below.

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7

    http://support.Microsoft.com/kb/929833

    Method 2

    If the previous step fails then I would suggest that you do clean boot and check.

    To help resolve the error and other messages, you can start Windows Vista by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.

    See the link below to learn more about how to clean boot.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135

    Reset the computer to start as usual

    When you are finished troubleshooting, follow these steps to reset the computer to start as usual:

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

    (b) If you are prompted for an administrator password or for confirmation, type your password or click on continue.

    (c) under the general tab, click the Normal startup option, and then click OK.

    (d) when you are prompted to restart the computer, click on restart.

     

    I hope this helps!

    Halima S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • $ sign in front of the files in my documents

    Hello world

    We have users that claims these files of various types, preceded by a $ 'appear' in the folder my documents.

    These don't seem to be of the ~ files lock $ you seem sometimes to MS Office (and some are clearly of pdf), etc. And I'm empty, search the Web for an answer to come. The user is working remotely, so I have not had the opportunity to open again (which may or may not be useful), but I was wondering if anyone has seen this before, or have clues as to where they come from?

    Only if there is serious corruption virus / malware...

Maybe you are looking for

  • Firefox does not work on some Web sites

    I continually run into sites that don't work well with Firefox. I tend to think, because of FF high-speed evolution that he brings to the itself, but nevertheless, it's boring. The sites all say 'use Chrome' as a solution, and most of the time, it wo

  • F55 low light bands and noise

    Need help. We have some problems when shooting in low light. http://antosch.dyndns.TV/owncloud/index.php/s/mKOEqbsXQrwFVSn You can see bands and noise in the viewfinder and screen on board as well as on the pictures. Also more brightness also enhance

  • Where can I find a new screen for Satellite L40

    Where can I find the screen for satellite L40? The screen is broken and he is almost nine laptop. Please let know me.

  • HP Color LaserJet Pro M177 MFP: HP Color LaserJet Pro MFP M177 cannot find information network

    I just got my new printer today. I followed the instructions to the letter. Now I try to connect to my network to the "Wireless Setup Wizard" that my router does not support WPS. I sat waiting for the printer view all networks in the range so I could

  • Software printing will not be re - install

    Have a Photosmart C7250 and included software became corrupt so I uninstalled it.  Downloaded the last full package and tried to install, he thinks the system it is always installed and even if it goes through 4 steps, no software is installed when y