Extend ctx_thes.syn to return to the synonymous format

I'm using Oracle 11.2.0.3. We have oracle text index context and have implemented Thesaurus on selected a few words.

Let's say that:

select ctx_thes.syn('nathan') from dual;

gives me

{nathan} | {nate}

However, I want it back nathan % | % nate without addition of wildcard and brace.

Since then, oracle text indexes is extensible indexing framework, is it possible to change ctx_thes.syn to meet my requirement, or should I write my custom code. If I need to write custom code, which table should I get in.

Thank you.

If you want to allow your users to specify if they want to use soundex or wildcards or not, but you still want to search synonyms, so I think it's easier to index synonyms, using a procedure and a user_datastore, as shown below.

Scott@orcl12c > start

2 ctx_thes.create_thesaurus ("test_thes");

3 ctx_thes.create_relation ('test_thes', 'nathan', 'SYN', 'nate');

4 end;

5.

PL/SQL procedure successfully completed.

Scott@orcl12c > create table test_tab

2 (identification number,

test_col 3 varchar2 (30))

4.

Table created.

Scott@orcl12c > insert all

2 in test_tab values (1, 'nate')

3 in test_tab values (2, 'nathaniel')

4 in test_tab values (3, 'nathin')

5 in test_tab values (4, 'nobody')

6 in test_tab values (5, "Nathan Myhrvold")

7 in test_tab values (6, "Nat King Cole")

8 select * of the double

9.

6 rows created.

Scott@orcl12c > create or replace procedure test_proc

2 (p_rid in rowid,

3 p_clob in out nocopy clob)

4, as

5. start

6 for r1 in

7 (select ctx_thes.syn

8 (trim (regexp_substr (test_col, "[^] +', 1, rownum")),)

9 'test_thes' token)

10 from (select test_col in the test_tab where rowid = p_rid)

11. connect by level<= regexp_count="" (test_col,="" '="" ')="" +="">

12 loop

13 dbms_lob.writeappend (p_clob, length (r1.token), r1.token);

14 end of loop;

end 15 test_proc;

16.

Created procedure.

Scott@orcl12c > display errors

No errors.

Scott@orcl12c > start

2 ctx_ddl.create_preference ('test_ds', 'user_datastore');

3 ctx_ddl.set_attribute ('test_ds', 'procedure', "test_proc");

4 end;

5.

PL/SQL procedure successfully completed.

Scott@orcl12c > create index test_idx

2 on test_tab (test_col)

3 indextype is ctxsys.context

4 parameters ("test_ds of the data store")

5.

The index is created.

Scott@orcl12c > select Dr. token_text $ test_idx$ I

2.

TOKEN_TEXT

----------------------------------------------------------------

COLE

KING

MYHRVOLD

NAT

NATE

NATHAN

NATHANIEL

NATHIN

PERSON NOT

9 selected lines.

Scott@orcl12c > user_input varchar2 variable (100)

Scott@orcl12c > exec: user_input: = '! % of nate'

PL/SQL procedure successfully completed.

Scott@orcl12c > select * from test_tab

contains 2 where (test_col,: user_input) > 0

3.

ID TEST_COL

---------- ------------------------------

1 nate

5 Nathan Myhrvold

6 Nat King Cole

3 selected lines.

Scott@orcl12c > exec: user_input: = '! % of nathan"

PL/SQL procedure successfully completed.

Scott@orcl12c > /.

ID TEST_COL

---------- ------------------------------

1 nate

Nathaniel 2

3 nathin

5 Nathan Myhrvold

4 selected lines.

Post edited by: Barbara Boehmer (made correction to select in the procedure)

Tags: Database

Similar Questions

  • Carriage return to the AutoNumber Format?

    Hello

    I have configured my EDD structured with some headings as autodial.  I wonder if there is a way to put a return between the number and the text?

    In other words, can I do this:

    Chapter 2: This is the title of the chapter

    look like this:

    Chapter 2:

    This is the title of the chapter

    As a secondary issue, in my search for the answer to this question, I discovered the < r >. < r + >, < R >, etc. '' building blocks. ''  I can not find them mentioned anywhere in the user manual or the manual of structured development application.  Can someone tell me exactly what is their function?

    Thank you!

    I use \r in my prefixes to get a newline at the end of the prefix. I have not tried to use it in an auto-numbering format. HOWEVER, the structured development guide says:

    If a paragraph with an AutoNumber item features include a prefix or a suffix, prefix appears just after
    automatic numbering at the beginning of the paragraph and the suffix appears just before the
    AutoNumber at the end of the paragraph.

    Because the AutoNumber appears BEFORE the prefix, I think you just need to define your prefix like \r (or maybe \n) to insert a line break between your AutoNumber and content.

  • When he was first intalled my incoming mail was chronologically it is now in alphabetical ordr of the subject and I would like to return to the original format. How?

    Now I am told when I have incoming mail, but I have to trawl through all messages to find new mail. It's frustrating and, as far as I'm concerned, one step back. I wish I could go back to my old system. This other is on my back. Mozilla? More like Godzilla.

    He must familiarize themselves with the sorting. It is easier than you may think.

    Take a look at the article in the following link. After a first reading, ignore the first section with the chips and start over at "How sort."

    http://chrisramsden.vfast.co.UK/8_How_to_sort.html

    The first bit will make more sense when you understand sort.

    I suggest that you assign view | Sort by | The, new messages appear in the order that sort you have chosen.

    If you have trouble finding what speaks of this article, perhaps your menus are disabled. Try these:

    http://chrisramsden.vfast.co.UK/13_Menus_in_Thunderbird.html
    http://chrisramsden.vfast.co.UK/5_Lost_toolbars.html

  • hp has extended the date of return to the offer of the College?

    hp has extended the date of return to the offer of the College?

    You need to ask HP directly for more information about this.

    This is the support forum for the consumer and not a business unit of HP.

  • Heart rate monitor: 42mm watch small wrists? Return of the questions?

    Someone had problems with their sport to watch 42 mm reading your heart rate?  I got my watch 5 days ago as a Christmas gift and cannot get the monitor to work properly.  I also have tiny wrists for a male, and the watch is just too big for me.  I tried my wife 38mm watch and he returned and the heart rate sensor works very well.

    Steps I took to solve:

    -Wrist band installed S/M instead of the band sport M/L pre-installed. M/L band was loose on tighter setting - I thought for sure it would work, but it didn't.

    -Held the watch down hard and move about trying to take a measure in looks, still does not work.

    -Watch update to 2.1

    -A spent several hours on the phone with support.  They offered to exchange the watch and go with 38mm size. Have been unable to trade watch after several hours of phone calls.  Here's the question... Bought parents watch with silver to a Best Buy.  Watch is not registered in their system, since it was bought with money, so they are not exchanged for a 38 mm watch - they even called the local store and they cannot resume.  Best Buy felt terrible, they wanted to help, but couldn't find a way to make the exchange of work in their system.  Attempted to swap with the apple store.  They won't, so I offered to Exchange even upward, even with the 38mm being $50.00 less, I want just a watch works for me.  They recognize fully it is located in the window of return/exchange, but since it was purchased at a Best Buy they don't seem more interested in supporting.  Lesson to everyone out there - attention to gifts, especially if they were purchased with money!   Anyone has any advice on a matter of Exchange like that?  I am at a loss for what to do...

    Hello

    515appleguy wrote:

    Attempted to swap with the apple store.  They don't,

    Anyone has any advice on a matter of Exchange like that?

    In the United States, the standard Apple refund policy includes:

    "Only items that have been purchased directly from Apple, via the Apple Store online or in a Store, can be returned to Apple. Apple's products with other retailers must be returned in accordance with their respective returns and refund policy. »

    Take the watch and the original receipt at any Best Buy store. Best Buy offers a broad strategy of return and Exchange:

    "All the purchases made at Best Buy - online or in store - may be returned to any store Best Buy in the USA it is fast and free."

    "We offer a return and exchange policy extended during the holiday season. Purchases made between November 1, 2015, and 31 December 2015, have a long period of return through January 15, 2016. »

    More information:

    4.c http://www.BestBuy.com/site/help-topics/return-exchange-policy/pcmcat26080005001? id = pcmcat260800050014

  • R12.2.4 data lost after using the dialog Page and return to the calling page. (Help please!)

    Hi team,

    I'm new to OAF and works on a requirement to add some custom validation when the user clicks a button in a seeded standard page.

    The approach I took was to extend the seeded controller object managed this press event button and put my custom logic in the extended controller and substitute the standard controller through customization.

    The standard rate which was pressing the Complete button A Page, the user was taken to the next and epepinee page (Page B) some operations based on records that have been chosen Page A.

    Part of the custom validation requirement that was if some postings were not met, the user must be a pop-up asking if they really wanted to move forward and if they have selected Yes then continue with the seeded standard flow (transition to page B) and if they have NOT selected then just remain on the current page.

    I have used OADialogPage and to do this, in part, the question , I am running into is that when the user selects one or more records using a check box in a region of several record (table) and click the full page and if the validation fails then a modal page and the user made a selection i.e.either Yes or no modal page and when they return to the calling page (ex. Page A), all data (records) they chose previously is lost (the Page is refreshed). Based on what I see on this forum, I suspect it's because after having click Yes on the modal page and then return to the original page the processRequest fires again and the VO data is queried again and has all the parts on the page are lost. Since I am changing the flow in seedlings pages based on the intervention of the user I'm confused as to how this problem can be solved. that is, prevent the page refreshes or preserve the selections that were made before you navigate to modal page. Any help is really appreciated!

    My Code:

    ' Public Sub processFormRequest (OAPageContext oapagecontext, OAWebBean oawebbean)

    ...

    ...

    If (oapagecontext.getParameter ("completeOps")! = null) {}

    ...

    ...

    If (warnCount > 0) {}

    OAException message = new OAException ("not in order...", OAException.WARNING);

    oapagecontext.putDialogMessage (message);

    OAException message = new OAException ("XYZ Violated rule. Do you want to continue? ", OAException.WARNING);

    DialogPage OADialogPage = new OADialogPage (OAException.WARNING, message, null, "","");

    String Yes = oapagecontext.getMessage ("AK", "FWK_TBX_T_YES", null);

    String number = oapagecontext.getMessage ("AK", "FWK_TBX_T_NO", null);

    dialogPage.setOkButtonItemName ("ConYesButton");

    dialogPage.setNoButtonItemName ("ConNoButton");

    dialogPage.setOkButtonToPost (true);

    dialogPage.setNoButtonToPost (true);

    dialogPage.setPostToCallingPage (true);

    dialogPage.setOkButtonLabel (yes);

    dialogPage.setNoButtonLabel (no);

    oapagecontext.redirectToDialogPage (dialogPage);

    }

    If (oapagecontext.getParameter ("ConYesButton")! = null) {}

    Write Yes button Action code

    oapagecontext.putParameter ("completeOps", "Continue");

    }

    If (oapagecontext.getParameter ("ConNoButton")! = null) {}

    Write the code of the Action for the No button

    Dim errormsg = ' rule Violations have occurred. "

    throw new OAException (errormsg);

    }

    super.processFormRequest (oapagecontext, oawebbean);

    }

    I managed to work around this problem by adding a simple control in my controller processRequest method extended to avoid the call to super.processRequest incase lhen control returns to the page once the user has made a selection on the Page of the dialog box

    If ((oapagecontext. (GetParameter ("ConYesButton") == null) & (oapagecontext.getParameter ("ConNoButton") == null)) {}

    super.processRequest (oapagecontext, oawebbean);


    }


    Thank you!

  • Question: The Horizontal text tool enter key returns to the same line

    Hello

    This is my first post on this forum, and join me this Community aims to ask for help whenever I'm stuck all by learning Photoshop CS6 extended.

    I have been unable to find solution to this little problem... When you use the horizontal type tool I press ENTER key, the cursor returns to the same line and again write the previously written text. I did not have this problem while doing the same thing before, so I think I messed up a few parameters. Help, please.

    Also let me know how to set up Photoshop to its default settings, I mess up something else.

    Thank you.

    Your leader is off. Set it to automatic.

  • run the Idoc function in the data file returned by the service of GET_FILE

    Hello

    I'm new to this forum, so thank you in advance for any help and forgive me of any error with the post.

    I'm trying to force the execution of a custom Idoc function in a data file Complutense University of MADRID, when this data file is requested from the University Complutense of MADRID through service GET_FILE.

    The custom Idoc function is implemented as a filter of the computeFunction type. One of the datafile has appealed to my custom Idoc function:
    * < name wcm:element = "MainText" > [! - $myIdocFunction ()-] < / wcm:element > *.

    The data file is then downloaded with CRMI via service GET_FILE, but the Idoc function is not called.

    I tried to implement another filter Idoc type sendDataForServerResponse or sendDataForServerResponseBytes, that store objects cached responseString and responseBytes, personalized in order to look for any call to my function in the response object Idoc, eventually run the Idoc function and replace the output of the Idoc in the response. But this kind of filter will never run.

    The Idoc function myIdocFunction is executed correctly when I use WCM_PLACEHOLDER service to get a RegionTemplate (file .hcsp) associated with the data file. In this case, the fact RegionTemplate refers to the element of "MainText" data file with <!-$wcmElement ("MainText")->. But I need to make it work also with service GET_FILE.

    I use version 11.1.1.3.0 UCM.

    Any suggestion?
    Thank you very much
    Francesco

    Hello

    Thank you very much for your help and sorry for this late reply.

    Your trick to activate the complete detailed follow-up was helpful, because I found out I could somehow use the filter prepareForFileResponse for my purpose and I could also have related to the implementation of the native filter pdfwatermark. PdfwFileFilter .

    I managed to set up a filter whose purpose is to force the Idoc assessment of a predefined list of functions Idoc on the output returned by the service GET_FILE. Then I paste the code I have written, in which case it may be useful for other people. In any case, know that this filter can cause performance problems, which must be considered carefully in your own use cases.

    First set the filter in the set of filters in file .hda from your device:

    Filters @ResultSet

    4

    type

    location

    parameter

    loadOrder

    prepareForFileResponse

    mysamplecomponent. ForceIdocEvaluationFilter

    null

    1

    @end

    Here is a simplified version of the implementation of the filter:

    / public class ForceIdocEvaluationFilter implements FilterImplementor {}

    public int doFilter (workspace ws, linking DataBinder, ExecutionContext ctx) survey DataException, ServiceException {}

    Service string = binder.getLocal ("IdcService");

    String dDocName = binder.getLocal ("dDocName");

    Boolean isInternalCall = Boolean.parseBoolean (binder.getLocal ("isInternalCall"));

    If ((ctx instanceof FileService) & service.equals ("GET_FILE") &! isInternalCall) {}

    FileService fileService = ctx (FileService);

    checkToForceIdocEvaluation (dDocName, fileService);

    }

    continue with other filters

    Back to CONTINUE;

    }

    ' Private Sub checkToForceIdocEvaluation (String dDocName, FileService fileService) throws DataException, ServiceException {}

    PrimaryFile file = IOUtils.getContentPrimaryFile (dDocName);

    Ext = FileUtils.getExtension (primaryFile.getPath ());

    If (ext.equalsIgnoreCase ("xml")) {}

    forceIdocEvaluation (primaryFile, fileService);

    }

    }

    forceIdocEvaluation Private Sub (file primaryFile FileService fileService) throws ServiceException {}

    String multiplesContent = IOUtils.readStringFromFile (primaryFile);

    Replacement ForceIdocEvaluationPatternReplacer = new ForceIdocEvaluationPatternReplacer (fileService);

    String replacedContent = replacer.replace (fileContent);

    If (replacer.isMatchFound ()) {}

    setNewOutputOfService (fileService, replacedContent);

    }

    }

    ' Private Sub setNewOutputOfService (FileService fileService, String newOutput) throws ServiceException {}

    File newOutputFile = IOUtils.createTemporaryFile ("xml");

    IOUtils.saveFile (newOutput, newOutputFile);

    fileService.setFile (newOutputFile.getPath ());

    }

    }

    public class IOUtils {}

    public static getContentPrimaryFile (String dDocName) survey DataException, ServiceException {queue

    DataBinder serviceBinder = new DataBinder();

    serviceBinder.m_isExternalRequest = false;

    serviceBinder.putLocal ("IdcService", "GET_FILE");

    serviceBinder.putLocal ("dDocName", dDocName);

    serviceBinder.putLocal ("RevisionSelectionMethod", "Latest");

    serviceBinder.putLocal ("isInternalCall", "true");

    ServiceUtils.executeService (serviceBinder);

    String vaultFileName = DirectoryLocator.computeVaultFileName (serviceBinder);

    String vaultFilePath = DirectoryLocator.computeVaultPath (vaultFileName, serviceBinder);

    return new File (vaultFilePath);

    }

    public static String readStringFromFile (File sourceFile) throws ServiceException {}

    try {}

    return FileUtils.loadFile (sourceFile.getPath (), null, new String [] {"UTF - 8"});

    } catch (IOException e) {}

    throw new ServiceException (e);

    }

    }

    Public Shared Sub saveFile (String source, destination of the file) throws ServiceException {}

    FileUtils.writeFile (source, destination, "UTF - 8", 0, "is not save file" + destination);

    }

    public static getTemporaryFilesDir() leader throws ServiceException {}

    String idcDir = SharedObjects.getEnvironmentValue ("IntradocDir");

    String tmpDir = idcDir + "custom/MySampleComponent";

    FileUtils.checkOrCreateDirectory (tmpDir, 1);

    return new File (tmpDir);

    }

    public static createTemporaryFile (String fileExtension) leader throws ServiceException {}

    try {}

    The file TmpFile = File.createTempFile ("tmp", "." + fileExtension, IOUtils.getTemporaryFilesDir ());

    tmpFile.deleteOnExit ();

    return tmpFile;

    } catch (IOException e) {}

    throw new ServiceException (e);

    }

    }

    }

    Public MustInherit class PatternReplacer {}

    Private boolean matchFound = false;

    public string replace (CharSequence sourceString) throws ServiceException {}

    Matcher m = expand () .matcher (sourceString);

    StringBuffer sb = new StringBuffer (sourceString.length ());

    matchFound = false;

    While (m.find ()) {}

    matchFound = true;

    String matchedText = m.group (0);

    String replacement = doReplace (matchedText);

    m.appendReplacement (sb, Matcher.quoteReplacement (replacement));

    }

    m.appendTail (sb);

    Return sb.toString ();

    }

    protected abstract String doReplace(String textToReplace) throws ServiceException;

    public abstract Pattern getPattern() throws ServiceException;

    public boolean isMatchFound() {}

    Return matchFound;

    }

    }

    SerializableAttribute public class ForceIdocEvaluationPatternReplacer extends PatternReplacer {}

    private ExecutionContext ctx;

    idocPattern private model;

    public ForceIdocEvaluationPatternReplacer (ExecutionContext ctx) {}

    This.ctx = ctx;

    }

    @Override

    public getPattern() model throws ServiceException {}

    If (idocPattern == null) {}

    List of the functions = SharedObjects.getEnvValueAsList ("forceidocevaluation.functionlist");

    idocPattern = IdocUtils.createIdocPattern (functions);

    }

    Return idocPattern;

    }

    @Override

    protected String doReplace(String idocFunction) throws ServiceException {}

    Return IdocUtils.executeIdocFunction (ctx, idocFunction);

    }

    }

    public class IdocUtils {}

    public static String executeIdocFunction (ExecutionContext ctx, String idocFunction) throws ServiceException {}

    idocFunction = convertIdocStyle (idocFunction, IdocStyle.ANGULAR_BRACKETS);

    PageMerger activeMerger = (PageMerger) ctx.getCachedObject("PageMerger");

    try {}

    String output = activeMerger.evaluateScript (idocFunction);

    return output;

    } catch (Exception e) {}

    throw the new ServiceException ("cannot run the Idoc function" + idocFunction, e);

    }

    }

    public enum IdocStyle {}

    ANGULAR_BRACKETS,

    SQUARE_BRACKETS

    }

    public static String convertIdocStyle (String idocFunction, IdocStyle destinationStyle) {}

    String result = null;

    Switch (destinationStyle) {}

    case ANGULAR_BRACKETS:

    result = idocFunction.replace ("[!-$","<$").replace("--]", "$="">" "]");

    break;

    case SQUARE_BRACKETS:

    result = idocFunction.replace ("<$", "[!--$").replace("$="">", "-] '");

    break;

    }

    return the result;

    }

    public static model createIdocPattern ( list idocFunctions) throws ServiceException {}

    If (idocFunctions.isEmpty ()) throw new ServiceException ("list of Idoc functions to create a template for is empty");

    StringBuffer patternBuffer = new StringBuffer();

    model prefix

    patternBuffer.append ("(\\ [\\!--|)")<>

    Features GOLD - ed list

    for (int i = 0; i)

    patternBuffer.append (idocFunctions.get (i));

    If (i

    }

    model suffix

    patternBuffer.append ("") (. +?) (--\\]|\\$>)");

    String pattern = patternBuffer.toString ();

    log.trace ("Functions return Idoc model", model);

    Return Pattern.compile (pattern);

    }

    }

    public class ServiceUtils {}

    Private Shared Workspace getSystemWorkspace()}

    Workspace workspace = null;

    WsProvider provider = Providers.getProvider ("SystemDatabase");

    If (null! = wsProvider) {}

    workspace = wsProvider.getProvider ((workspace));

    }

    Returns the workspace;

    }

    getFullUserData private static UserData (String userName, cxt ExecutionContext, workspace ws) throws DataException, ServiceException {}

    If (null == ws) {}

    WS = getSystemWorkspace();

    }

    UserData userData is UserStorage.retrieveUserDatabaseProfileDataFull (name of user, ws, null, cxt, true, true);.

    ws.releaseConnection ();

    return userData;

    }

    public static executeService (DataBinder binder) Sub survey DataException, ServiceException {}

    get a connection to the database

    Workspace workspace = getSystemWorkspace();

    Look for a value of IdcService

    String cmd = binder.getLocal ("IdcService");

    If (null == cmd) {}

    throw new DataException("!csIdcServiceMissing");

    }

    get the service definition

    ServiceData serviceData = ServiceManager.getFullService (cmd);

    If (null == serviceData) {}

    throw new DataException (LocaleUtils.encodeMessage ("!")) csNoServiceDefined", null, cmd));

    }

    create the object for this service

    The service = ServiceManager.createService (serviceData.m_classID, workspace, null, Binder, serviceData);

    String userName = 'sysadmin ';

    UserData fullUserData = getFullUserData (username, service, workspace);

    service.setUserData (fullUserData);

    Binder.m_environment.put ("REMOTE_USER", username);

    try {}

    init service do not return HTML

    service.setSendFlags (true, true);

    create the ServiceHandlers and producers

    service.initDelegatedObjects ();

    do a safety check

    service.globalSecurityCheck ();

    prepare for service

    service.preActions ();

    run the service

    service.doActions ();

    } catch (ServiceException e) {}

    } {Finally

    service.cleanUp (true);

    If (null! = workspace) {}

    workspace.releaseConnection ();

    }

    }

    }

    }

  • Please Urgent: OFA treatment of control on the page never returned to the home page!

    Hello friends,

    I have a strange problem and I can't understand why? Since it works in my flowlessly Jdeveloper, but when I deployed to a Dev instance, after the launch of the download of the home page (submit) process, the control never returns the processing page, but in the background the process to download/validate successfully, since I checked on the server, recently downloaded file path exists.
    For example. PVU_FILE_20111017_141019_XXCONV.csv
    I appreciate your help, please let me know where I'm going to question?

    1. on Jdev - treatment page turning the heart control back to the homepage - YES
    2. on instance - treatment page turning the heart control to return to the home page - no.

    Instance details:
    Jdev path: p8431482_R12_GENERIC
    OA framework ver: 12.1.1


    Main Page:
    Xxsmgt_ManualDataUploadPG.XML
    Xxsmgt_ManualDataUploadCO.Java

    Treatment Page CO
    ValidateProcessCO.java



    ===================================================
    The controller's main page: Xxsmgt_ManualDataUploadCO
    ====================================================

    public void processFormRequest (pageContext, OAPageContext,
    {OAWebBean webBean)

    If (pageContext.getParameter ("Submit")! = null) {}
    System.out.println ("Xxsmgt_ManualDataUploadCO_Submit_BEGIN");
    BlobDomain uploadedByteStream = null;
    String uFileName = null;
    DataObject fileUploadData = null;
    OAWebBeanFileUpload uploadObj = null;
    OAApplicationModule am;
    AM = pageContext.getApplicationModule (webBean);
    fileUploadData = pageContext.getNamedDataObject ("FileUpload");
    uploadObj =
    (OAWebBeanFileUpload) webBean.findChildRecursive ("FileUpload");
    If ((uploadObj.getValue (pageContext) == null)) {}
    am.invokeMethod ("clearResultsTable");
    OAException expMsg = getFileNotFoundException();
    pageContext.putDialogMessage (expMsg);
    }
    If (fileUploadData! = null) {}
    try {}
    uFileName =
    (String) fileUploadData.selectValue (null, "UPLOAD_FILE_NAME");
    } catch (Exception ex) {}
    uFileName = null;
    am.invokeMethod ("clearResultsTable");
    OAException expMsg = getFileNotFoundException();
    pageContext.putDialogMessage (expMsg);
    }
    }
    If (uFileName == null) {}
    am.invokeMethod ("clearResultsTable");
    OAException expMsg = getFileNotFoundException();
    pageContext.putDialogMessage (expMsg);
    }
    uploadedByteStream =
    (BlobDomain) fileUploadData.selectValue (null, uFileName);

    am.getOADBTransaction () .putTransientValue ("uploadedByteStream", uploadedByteStream);
    am.getOADBTransaction () .putTransientValue ("uFileName", uFileName);

    OAMessageChoiceBean = riceObj
    (OAMessageChoiceBean) webBean.findIndexedChildRecursive ("RiceObject");
    String riceObjName =
    (String) riceObj.getSelectionValue (pageContext);

    OAMessageChoiceBean pathObj =
    (OAMessageChoiceBean) webBean.findIndexedChildRecursive ("DestPath");
    String pathText = (String) pathObj.getSelectionText (pageContext);

    OAProcessingPage page =
    new OAProcessingPage ("usps.oracle.apps.xxsmgt.mdu.webui.ValidateProcessCO");
    page.setApplicationModuleDefName ("usps.oracle.apps.xxsmgt.mdu.server.Xxsmgt_ManulaDataUploadAM");
    page.setRetainAMValue (true);
    page.setConciseMessage ("validation of object of rice [more than 10 MB of files can take a long time to download].");
    page.setDetailedMessage ("object Type of rice: [" + riceObjName + "]")
    "] < Other > file name: [" + uFileName + "']". ");"
    page.setProcessName ("Validation process is underway! Please do not close this window. ») ;
    pageContext.forwardToProcessingPage (page);
    System.out.println ("Xxsmgt_ManualDataUploadCO_Submit_END");
    }

    }

    ==============================================================================
    Treatment Page CO
    ValidateProcessCO.java
    ===============================================================================

    SerializableAttribute public class ValidateProcessCO extends OAControllerImpl {}
    public static final String RCS_ID = "$Header$";
    public static final boolean RCS_ID_RECORDED =
    VersionInfo.recordClassVersion (RCS_ID, "packagename %");

    /**
    * Layout and logical configuration for a region page.
    @param pageContext OA page context
    @param webBean the grain of web for the region
    */
    {} public processRequest Sub (pageContext OAPageContext, OAWebBean webBean)
    super.processRequest (pageContext, webBean);
    }

    /**
    * How to manage remittances form for form elements in
    * a region.
    @param pageContext OA page context
    @param webBean the grain of web for the region
    */
    public void processFormRequest (pageContext, OAPageContext,
    {OAWebBean webBean)
    super.processFormRequest (pageContext, webBean);

    System.out.println ("Xxsmgt_ValidateProcessCO_BEGIN");
    OAApplicationModule am;
    AM = pageContext.getApplicationModule (webBean);
    BlobDomain uploadedByteStream = null;
    String uFileName = null;
    OAException exceptionMsg;

    uploadedByteStream = (BlobDomain) am.getOADBTransaction () .getTransientValue ("uploadedByteStream");
    uFileName = (String) am.getOADBTransaction () .getTransientValue ("uFileName");

    try {}

    [Serializable] params = {uploadedByteStream, uFileName};
    Class classType [] = {BlobDomain.class, String.class};
    exceptionMsg =
    (OAException) am.invokeMethod ("ValidateAndUpload", params,
    ClassType);
    } catch (Exception e) {}
    exceptionMsg =
    new OAException (e.getMessage m:System.NET.SocketAddress.ToString (), OAException.ERROR ());

    am.getOADBTransaction () .removeTransientValue ("uploadedByteStream");
    am.getOADBTransaction () .removeTransientValue ("uFileName");

    pageContext.putDialogMessage (exceptionMsg);
    pageContext.forwardImmediately ("OA.jsp?page=usps/oracle/apps/xxsmgt/mdu/webui/Xxsmgt_ManualDataUploadPG",
    NULL,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    NULL, null, true,
    OAWebBeanConstants.ADD_BREAD_CRUMB_YES);
    }

    am.getOADBTransaction () .removeTransientValue ("uploadedByteStream");
    am.getOADBTransaction () .removeTransientValue ("uFileName");

    pageContext.putDialogMessage (exceptionMsg);
    pageContext.forwardImmediately ("OA.jsp?page=usps/oracle/apps/xxsmgt/mdu/webui/Xxsmgt_ManualDataUploadPG",
    NULL,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    NULL, null, true,
    OAWebBeanConstants.ADD_BREAD_CRUMB_YES);
    System.out.println ("Xxsmgt_ValidateProcessCO_END");
    }

    Published by: 891884 on October 17, 2011 13:25

    Published by: 891884 on October 17, 2011 13:57

    This is a correct path? page = usps/oracle/apps/xxsmgt/mdu/webui/Xxsmgt_ManualDataUploadPG
    It takes/usps/oracle /...?

  • catch the collection returned by the function in a SQL statement

    I have a select like query: (I need all the values returned by the function in the select list)

    Select t1.col1, t2.col2, (by selecting t.a, t.b., t.c in fn (t2.col3) t)
    Of
    T1, t2
    where t1.col1 = t2.col2;



    My function is like:

    FN (T2.col3) returns an array in format of the object



    Here, I was able to select only one value from the table returned by the funcation both. If I select all of the values as above, she gave too much error vales.
    Please someone help me in this

    user13044793 wrote:
    I have a select like query: (I need all the values returned by the function in the select list)

    Select t1.col1, t2.col2, (by selecting t.a, t.b., t.c in fn (t2.col3) t)
    Of
    T1, t2
    where t1.col1 = t2.col2;

    No specific reason for this? It adds additional complexity to the projection of SQL, and there are additional costs of failover for the motor of PL/SQL (per line) of context. Overall - not your typical approach and one that should have sound justification.

    With regard to the basic method - the SQL multiset() function should be used to create a collection. Here is an example of the approach:

    SQL> create or replace type TFoo as object(
      2          id      number,
      3          bar     varchar2(5)
      4  );
      5  /
    
    Type created.
    
    SQL>
    SQL> create or replace type TFooSet as table of TFoo;
      2  /
    
    Type created.
    
    SQL>
    SQL> create or replace function GetSomeFoo( n number ) return TFooSet is
      2          foo     TFooSet;
      3  begin
      4          foo := new TFooSet();
      5          foo.Extend( 5 );
      6
      7          for i in 1..5
      8          loop
      9                  foo(i) := new TFoo( n+i-1, to_char(i-1,'0000') );
     10          end loop;
     11
     12          return( foo );
     13  end;
     14  /
    
    Function created.
    
    SQL>
    SQL> select
      2          object_id,
      3          object_name,
      4          cast(
      5                  multiset( select * from table(GetSomeFoo(object_id)) ) as TFooSet
      6          )       as FOO
      7  from       all_objects
      8  where      owner = 'SYS'
      9  and        rownum <= 5;
    
     OBJECT_ID OBJECT_NAME                    FOO(ID, BAR)
    ---------- ------------------------------ --------------------------------------------------
         27538 /1000e8d1_LinkedHashMapValueIt TFOOSET(TFOO(27538, ' 0000'), TFOO(27539, ' 0001')
                                              , TFOO(27540, ' 0002'), TFOO(27541, ' 0003'), TFOO
                                              (27542, ' 0004'))
    
         28544 /1005bd30_LnkdConstant         TFOOSET(TFOO(28544, ' 0000'), TFOO(28545, ' 0001')
                                              , TFOO(28546, ' 0002'), TFOO(28547, ' 0003'), TFOO
                                              (28548, ' 0004'))
    
         11718 /10076b23_OraCustomDatumClosur TFOOSET(TFOO(11718, ' 0000'), TFOO(11719, ' 0001')
                                              , TFOO(11720, ' 0002'), TFOO(11721, ' 0003'), TFOO
                                              (11722, ' 0004'))
    
         30094 /100c1606_StandardMidiFileRead TFOOSET(TFOO(30094, ' 0000'), TFOO(30095, ' 0001')
                                              , TFOO(30096, ' 0002'), TFOO(30097, ' 0003'), TFOO
                                              (30098, ' 0004'))
    
        684122 /1023e902_OraCharsetUTFE       TFOOSET(TFOO(684122, ' 0000'), TFOO(684123, ' 0001
                                              '), TFOO(684124, ' 0002'), TFOO(684125, ' 0003'),
                                              TFOO(684126, ' 0004'))
    
    SQL>
    SQL> with dataset as(
      2          select
      3                  object_id,
      4                  object_name,
      5                  cast(
      6                          multiset( select * from table(GetSomeFoo(object_id)) ) as TFooSet
      7                  )                as FOO
      8          from    all_objects
      9          where   owner = 'SYS'
     10          and     rownum <= 5
     11  )
     12  select
     13          d.object_id,
     14          d.object_name,
     15          f.id,
     16          f.bar
     17  from   dataset d,
     18          table(d.foo) f
     19  /
    
     OBJECT_ID OBJECT_NAME                            ID BAR
    ---------- ------------------------------ ---------- ---------------
           217 DUAL                                  217  0000
           217 DUAL                                  218  0001
           217 DUAL                                  219  0002
           217 DUAL                                  220  0003
           217 DUAL                                  221  0004
           268 SYSTEM_PRIVILEGE_MAP                  268  0000
           268 SYSTEM_PRIVILEGE_MAP                  269  0001
           268 SYSTEM_PRIVILEGE_MAP                  270  0002
           268 SYSTEM_PRIVILEGE_MAP                  271  0003
           268 SYSTEM_PRIVILEGE_MAP                  272  0004
           271 TABLE_PRIVILEGE_MAP                   271  0000
           271 TABLE_PRIVILEGE_MAP                   272  0001
           271 TABLE_PRIVILEGE_MAP                   273  0002
           271 TABLE_PRIVILEGE_MAP                   274  0003
           271 TABLE_PRIVILEGE_MAP                   275  0004
           274 STMT_AUDIT_OPTION_MAP                 274  0000
           274 STMT_AUDIT_OPTION_MAP                 275  0001
           274 STMT_AUDIT_OPTION_MAP                 276  0002
           274 STMT_AUDIT_OPTION_MAP                 277  0003
           274 STMT_AUDIT_OPTION_MAP                 278  0004
           815 RE$NV_LIST                            815  0000
           815 RE$NV_LIST                            816  0001
           815 RE$NV_LIST                            817  0002
           815 RE$NV_LIST                            818  0003
           815 RE$NV_LIST                            819  0004
    
    25 rows selected.
    
    SQL>
    
  • My iPhone6 has convinced himself that he has a helmet connected - how can I convince otherwise and return to the normal setting?

    My iPhone6 has convinced himself that he has a helmet connected - how can I convince otherwise and return to the normal setting?  I tried turning it off and back on after awhile, but did not.

    Double check with a magnifying glass and a good lighting that nothing has been slain. Then, try insertion and withdrawal of your headphones a couple of times. If this does not work, it may be while the shooting went wrong. In this case, make an appointment at the Genius Bar at your local Apple store for the assessment.

  • I've updated my iPhone 6s version 9.3.4 and have no Service, how to return to the previous update?

    I've updated my iPhone 6s in the last (9.3.4) update and now have show no Service at the top. Yesterday, I had intermittent service and thought it was the carrier, but it's not.  I've been using Google Maps and it kept crashing and place would come no Service. Can someone help me to return to the previous update please?

    Before posting this question I've shot and turn it back on repeatedly, I followed all the steps that Apple has informed including turning airplane mode on/off, remove the SIM (my carrier replaced) and reset the network settings. I can't ring Apple for help and live about 3 hours in an Apple Store.  My phone was working perfectly before installing the update.

    You cannot revert to a previous version. Have you tried the latest suggestion here?

    If you cannot connect to a cellular network or cellular data - Apple Support

    If you still cannot connect to a cellular network and have confirmed with your carrier is not a problem with your account, or your network, try to restore your device.

  • The Messenger app will be not updated. Stuck on "Waiting."... "and the logo in grey. How can I fix this or return to the previous edition that worked?

    I received a prompt on my Ipod touch 5th generation yesterday, that there is a new update of the Messenger application. So I tried to update, however, the app is now stuck on the phase "Waiting."... "and the logo has been disabled. I still get notifications of new messages from the app, but I can't open. I tried to remove and then reinstall the application but the application did not and the app store think that I always opened it. How can I fix this or return to the previous edition that worked?

    Thank you in advance!

    Hello cfossum,

    Looks like you have problems with a third party on your iPod touch app, since the Messages belongs to iOS and you would receive separate not quickly update.

    The resources below will provide some troubleshooting steps for the problem you are having with the Messenger application.

    If an application you have installed unexpectedly closes, unresponsive, or does not open

    Take care.

  • I have an e-mail returned by the demon with the reason given as "over quota" what does that mean?

    I got an e-mail that is returned by the demon with the reason given as "over quota" that mean?

    Well, most ISPS and web-based e-mail providers have rules in place: some have attachments maximum file sizes, most have maximum rates for the number of recipients/how many emails per day. I had one that had a maximum bandwidth and would not deliver an email until tomorrow if I ended this day.

    So check the terms of your email provider.

  • [SOLVED] My Thunderbird in french and are suddenly transformed into English. How do I return to the french without any lose?

    My Thunderbird was in French interface and suddenly transformed in English while keeping a few things in French that is very troubling. In addition, he does not receive my mails on request but I must close and reopen to get my new emails and don't tells me no more with the blue envelope in the bar. How can I fix it and return to the French without losing my emails, files, and settings? My OS is Ubuntu LTS 14.04

    PROBLEM SOLVED

    Good. You can then mark the thread as "Solved" Please? Thank you.

Maybe you are looking for

  • Firefox for Mac does not recognize a valid SSL certificate

    Firefox for Mac does not recognize the SSL certificate that is valid for this site, I got: https://www.georgeglazer.com. It gives a warning "not reliable." However, the Firefox for Windows does not give a warning. This happens even if I clear the cac

  • HP Pavilion 500-141ea: GPU for HP pavilion 500-141ea

    Hello A couple of years ago, I bought a HP pavilion 500-141ea, I am now looking to upgrade the GPU and the power supply on this subject. I want to replace the old GPU with a GTX 960 but I unure know if it is compatible with my motherboard because I'm

  • Mail, display in three columns

    Hello. I use the classic view in the mail, and I was stupid enough to shoot this the middle line down, convinced that I could get it back. Which I did not! When I go to the bottom line (see photo), the cursor changes to is should, but I can't seem to

  • All in 3050 a connection a J611 series printer to a wireless computer

    I just bought a HP DJ 3050 all-in-One Series of J611 a which I want to connect to my laptop wirelessly. I have a HP DJ 460, which I connect with Bluetooth and it works perfectly. However, I can't connect to my my new 3050 has J611 printer using the c

  • How to switch between the 2 monitors?

    This is probably a stupid question, but... I managed to install a monitor HP W2072a for my Toshiba laptop (Windows 7).  I see the same content on both monitors.  I would like to see material different on the separate HP monitor.  How to configure the