Approach to searching

Hi Everyone
We're building a web site here that implement both basic and advanced searching functionality. Basic searching is essentially searching on various attributes of on table and advanced searching is across many tables (even possibly 20-30 tables).
We're using ODP.NET to access the Oracle database and I'm required to come up with a strategy to implement this search functionality.
My first question is Stored Procs vs. Inline SQL? Which to use? I'd like to use procs but given the potential for a huge number of search parameters, I just don't know whether store procs can take that many input params? Inline SQL would be ok since we could build some SQLBuilder code to assemble the various components of the statement (to avoid SQL injection, errors etc) but I'm not sure if this is best practice of if the performance on this is just gonna kill the app.
The other alternative i was thinking was making views of common search joins (say employee with department or something) so that these kind of joins are already done for the user so that can improve performance.. is this also common practice?
We don't have the resources to build another searching database with denormalised views of the entire database but any input into things that I should/shouldn't do would be greatly appreciated.
cheers

Hmmm. So basically what you are doing is re-writing the functionality of something like Business Objects or Oracle Discoverer. Have you got a business case to prove that you can write something cheaper than the cost of licencing one of those products?
Next on the list: performance. Dynamically assembling oodles of queries is likely to knacker your system because:
(1) dynamic queries take resource to assemble;
(2) your users don't know SQL or how the database is assembled and consequently will "write" bad queries.
I think it's significant that tools like BO and OD now insist on us building a meta-model or universe. They don't let us inflict the raw database structure on the users, and vice versa.
Almost every project I've ever worked on has had as a requirement "we must be able to write our own reports". How many users actually avail themselves of this facility? Almost none. And those that do usually have one or two bespoke reports that they run once a month. In short, it would be much cheaper to seek out those troublemakers and put their darlings on the developers' To Do list.
But, if you must, and of course, we all know what users are like...
Start with the Basic Search. Don't build it in the middle tier, put it in the database. Use parameterised functions to return REF CURSORs; the limit on parameters is well over 1000 and you don't want to handle more than that! Make sure your generated code uses bind variables.
Once you've got that working correctly, move on to More Advanced Search. Don't allow the users to search any combination of tables they fancy. Present them with choices, which map to more parameterised functions returning REF CURSORs. Use views or build the joins dynamically, as you wish. Add a button to your application that says, "Is there a report missing from this list? Tell us what you want to see!"
This may not be what you wanted to hear, nor what your users think it is they want, but it is a proven, reliable approach.
"The enemy," retorted Yossarian with weighted precision, "is anybody who's going to get you killed, no matter which side he's on." Joseph Heller, Catch-22
Good luck, APC

Similar Messages

  • Integrate with SES: connector approach or embedded search approach

    hi Experts:
    According to the document, we have 2 options to integrate ECM11g with SES11g:
    * SES connector approach
    * embedded search approach
    My customer needs to use a unified search engine to search ECM, internal web and file system, so SES should be used with ECM, question is which approach should be taken, what is the difference?
    Best regards

    Hi
    SES connector approach
    In this case SES and UCM have different DB schemas and for SES to search contents of UCM the feeds are created by SES Crawler Export component and placed in SES home location for it to read . It is a 2 stage approach viz 1. UCM creating the feeds 2. SES Crawling the feeds so that search can retrieve results .
    Embedded search approach :
    With this UCM schema is the same as SES one so that SES acts as the search indexer engine for UCM . Moment contents are checked in to UCM indexes are created on the common DB schema so that SES can directly search / display the contents from UCM .
    In my view you should go for Embedded SES Search engine approach.
    Thanks
    Srinath

  • How to search for a variety of characters

    I am working on a document wherein a script I ran has applied differential results to page indicators. I am trying to ensure that I have easy accessibility to indexing in an e-book format, and so I am doing the following:
    1.) Inserting notes at physical page breaks in the print layout in InDesign
    2.) making those notes visible
    3.) applying the "page" style to them, which I have set to display hidden in my CSS but will allow me to insert anchor points for a hyperlink index
    The problem is the note shows up differentially. Some say:
    {~?~PG: @##@} while others show {~?~PG: %##%} where ## represents some page number. The @##@ received the page style properly, but not the %#%. What would be the GREP approach to searching for every instance of {~?~PG: %##%} and applying the page style to it?
    I know how to make sure that the page style is applied. I know that I'd use (\d+) for the numbers. I don't know hwo to represent the brackets, tildes, question marks, or other characters. Is there a good reference for this somewhere or perhaps a tutorial? I hate to bug the forum community with it. I just don't know where to go to get the info I need.
    Edit: To be clear, I'm trying to search for the string
    {~?~PG: %##%}
    All of the characters in the string are the same each time, but the numbers are sequentially higher and higher. There are hundreds of these in my document, so replacing each manually is taking a long time. Thanks for any feedback.
    Edit #2: After a lot of trial and error, I nailed it. This worked for me:
    \{(.+)\%(\d+)\%.
    I left the "change to" blank and in the big Change Format window, I added character style "page", though of course this is going to be different for you depending on how you have the name of that style set up in your CSS file if you're making an e-book too. : )
    Message was edited by: 1John5vs7

    You should definitely look into full-text search. The idea that Kalman floated is doable, but it require a lot more work on your part. Full-text does a lot work for you, for instance handling inflections, so that a search on "goose" will get a
    hit on "geese".
    If you have never worked with full-text search before, I recommend to get your hands on this book:
    http://www.sqlservermvpdeepdives.com/
    http://www.amazon.com/SQL-Server-MVP-Deep-Dives/dp/1935182048/ref=sr_1_1?ie=UTF8&qid=1400851023&sr=8-1&keywords=sql+server+mvp+deep+dives
    This book is a collection of chapters written by a number of SQL Server MVPs, and all our royalties goes to War Child International, so you are supporting a good aim if you buy this book.
    Chapter 13 by Robert Cain is an excellent introduction to full-text search, although it does not handle Semantic Search added in SQL 2012.
    As it happens, my chapter, describes a solution of what Kalman had in mind, although it aimed for the case where you want to permit users to search arbitrary character sequence, and that is not want you want.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • BAdI for Account Search

    Hi All,
    I need a BADI in CRM 5.0 version for Account Search using EEWB fields.
    I found a BADi CRM_ACC_SEARCH and have created a implementation, but the badis is not getting triggered during the search...
    Let me know is there any other way to trigger the BADI or is there any means for using EEWB fields in Acc search.
    Thanx,
    Sivasankar

    Hi Sivasankar,
    There is a generic approach to identify all -classic- BAdIs called during program execution. You may use that approach to search for appropriate BAdI around Account Search:
    trx SE24
    CL_EXITHANDLER=>GET_INSTANCE method
      call method cl_exithandler=>get_class_name_by_interface
        exporting
          instance                      = instance
        importing
          class_name                    = class_name
        changing
          exit_name                     = exit_name
        exceptions
          no_reference                  = 1
          no_interface_reference        = 2
          no_exit_interface             = 3
          data_incons_in_exit_managem   = 4
          class_not_implement_interface = 5
          others                        = 6.
      case sy-subrc.
        when 1.                                "<<<<<<<<<<<<<<<<< your external break-point here: then check EXIT_NAME variable
          raise no_reference.
    Setting a break-point in this method will have program stop each time system checks if an BAdI implementation exists.
    Hope this will help you
    Best regards
    Walter

  • JDev Search page related

    Hi ,
    I need to develop a page where in the errored records from some table will be displayed. This page will basically be used as Error UI for error handling and resolving those cases.This is basically for compensation data errors .. so the user should be able to process the errored records after seeing the error.
    I am basically taking the approach of search page as there are different criteria the user shud be able to filter these records by ...
    Now I need to have some search options in the search page ..have following requirements : Could anyone pls help m on these ..
    1. want to create a dropdown/poplist for one of the items
    2. there ll be a comments column in the results table which should be updatable by the user .. i shud be able to store that comments back in th table ..
    Pls help on the same asap...
    Regards,
    Preeti

    Preeti,
    My recommendation would be as follows:
    1. Using a PLSQL API, pass all the Error data into a Custom Table.
    2. Use this custom table to fetch data on the page.
    3. If you know the Error types, create a lookup type for the Error and create multiple lookup codes for each Error type. You can write a query for the poplist and have it in the Search criteria. No issues.
    4. If there is some other table which needs to be updated, invoke the PLSQL API to do so on click of some button on the page.
    Do let me know in case the suggestions dont help.
    Regards
    Sumit

  • Refresh the object associated with a Row in a Data Control?

    I am using EclipseLink & have an issue with multiple updates of the same Row. During an update, a new instance of the entity is returned by the update method. The instance bound to the Row is not updated with this new version and subsequent updates fail with an optimistic locking exception since the entityVersion hasn't been updated.
    Question: Is it possible to refresh the instance associated with a data control Row? I can remove rows, create rows, but it is not apparent to me how to update a row. I am trying to avoid doing a full retrieve on the bound iterator.

    Hi!
    The issue here is, by my opinion, a gap between ADFm and EJB 3.0 in use-cases with large data sets. If you search this forum, you may find related thread by Pedja about problem of feasible "scrollable" af:table with large number of entities in EJB finder result list. Unfortunately, the ADFm "paged" fetching is in mismatch with EJB support for "paged" (or scrollable) results lists. The all results of EJB finder method are retrieved from data source, stored in memory (thus breaking the heap) and transferred to ADF datacontrol. Then, and only then, ADFm paged fetching and caching mechanisms are employed – but they are just cosmetics as the main data set is permanently stored in memory as List<?>. The workaround is, as Pedja discovered, to write completely proprietary TableCollectionModel which completely evades ADFm and is implemented by set of EJB Session methods for paged acces to datasource through TopLink and native database queries (enabling retrieval of particular range of rows instead a complete result set). Of course, this is very complex coding experience and I find it a not acceptable for efficient development of modern applications on ADF + EJB stack, especially as it brakes a technology independence promoted by EJB and EclipseLink and other standards-based technologies (as you have to use database-specific native query implementation for paged /scrollable access!).
    What I want to say is that I have feeling that ADF support for EJB is not complete in full extend and that ADFm is still much better suited for BCs then for EJBs. I hope that this will be solved in future as this issue may pose a significant issue on application development in enterprise-level area where it is supposed that we are dealing with BROWSING also a large data sets.
    Yes, I emphasize a BROWSING as I strongly oppose a dogmatic approach that SEARCHING is a solution for every use-case. From theory of information, the system SHOULD NOT limit the user in accessing ALL information (based on access rights, of course). So the idea that SEARCH forms should be used to bridge a architectural gap between a ADFm and EJB is not acceptable, as the search MAY limit the user in acquiring the information he (or she) is not able to describe in adequate manner based on search criteria offered by the developer. So, the developer may be responsible for misinformation of user, by limiting his access to information, jus for technology limitations of ADFm which forces a development of purely SEARCH-based functionalities.
    I hope that development team would appreciate and consider this remarks, and invest effort in closing (not bridging!) the gap between ADFm and EJB.
    Regards,
    PaKo

  • PNG File Not Showing Transparency in Internet Explorer

    So i went to the microsoft help site and it gave me this CSS
    command to write in:
    <div id="content_history" style="filter: progid
    XImageTransform.Microsoft.AlphaImageLoader(src='
    http://www.eatbuttery.com/img/news_menu_bg.png',
    sizingMethod='scale');">
    which still dosent seem to work.
    the css for content_history is
    .content_history {
    background-image:url(
    http://www.eatbuttery.com/img/news_menu_bg.png);
    float: right;
    PADDING-RIGHT: 0px;
    PADDING-LEFT: 0px;
    PADDING-BOTTOM: 0px;
    width: 720px;
    height: 302px;
    am I being silly? what is this AlphaImageLoader filter
    anyhoo?

    .oO(ValPolyakh)
    >I like more different approach:
    > 1. search the web for png.htc (or write it yourself ;-))
    > 2. put it into site root
    > 3. write in styles IMG.png {behavior:url(png.htc)}
    > Sure, all your png images should have class="png"
    >
    > This is the most elegant solution for this problem I
    saw.
    If you have to have to apply a class to all PNGs then it's
    not very
    elegant.
    Just my 2 cents
    Micha

  • [JS][CS5] PlaceXML fails. What Am I Doing Wrong?

    Hi everyone,
    I have an XML file which I can place manually but I'm trying to automate the process with a script but I cannot work out why the script is failing. It falls over with an Error 30477.
    The document has several different types of master spreads and the XML is organised into appropriate sections. Based on the section in the XML file, I need to create a page, apply the right master page and place the XML.
    The script creates the page, applies the master but fails when placing the xmlElement. I've tried several different approaches and searched everywhere for an answer but cannot work out why.
    Can anyone tell me what I'm doing wrong?
    /*  Places XML section on appropriate pages */ alert("Starting Process");var myDocument = app.activeDocument; var currentPage;var masterSpread; var xmlBook = myDocument.xmlElements[0].xmlElements[0]; if ( xmlBook.markupTag.name.toString() == 'book' ) {    // In the right place    for ( var lp = 0; lp < xmlBook.xmlElements.length; lp++) {        var xmlElement = xmlBook.xmlElements[lp]; // Structural element in the book        switch ( xmlElement.markupTag.name.toString() ) {            case "standard":                                var currentPage = myDocument.pages.add(LocationOptions.AT_END);                var masterSpread = myDocument.masterSpreads.itemByName('S-Standard');                currentPage.appliedMaster = masterSpread;                     var targetFrame = myDocument.pages.lastItem().textFrames[0];                    /* Throws:   Error 30477 Invalid value for parameter 'using' */                                xmlElement.placeXML(targetFrame);                                break;        }            } } else {    alert(xmlBook.markupTag.name);        throw { name: 'FatalError', message: 'XML Structure wrong' }; }
    Sample XML
    <?xml version="1.0" encoding="UTF-8"?><document domain="http://6d6rpg.com/wiki/" id="member:tregenza:pdfprinttestbook" revision="0" lastmod="1398592877"><book colour="#f05177" bookTitle="PDF Print Test Book" ><standard><header4 >Test Wiki Page</header4><p>Test of wiki content for the &lt;page&gt; syntax.</p><p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus facilisis suscipit laoreet. Nunc vel viverra est. Morbi massa arcu, suscipit eget massa a, faucibus pellentesque mi. Cras tristique, nibh cursus faucibus vestibulum, est velit gravida odio, vitae pretium erat libero non sem. Cras commodo gravida rhoncus. Nam nec rutrum leo. Fusce gravida rutrum ipsum, ut ultricies libero pulvinar in. Suspendisse at rhoncus mi. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nulla porta quam vel turpis iaculis, ut hendrerit nibh semper. Nunc ornare egestas dui eu dictum. Mauris lorem dolor, dignissim nec velit et, semper venenatis libero. Pellentesque gravida mauris magna, at pretium tellus tempor sed.</p><p>Quisque venenatis vehicula ultricies. Nulla sit amet ornare orci, sed molestie mi. Proin quis tempus ante. Etiam auctor aliquam pretium. Nam pellentesque justo sem, a lacinia tortor euismod sed. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Suspendisse ut neque ipsum. Nam convallis at metus non ullamcorper. Morbi a orci quam. Quisque rhoncus neque a auctor porttitor. Fusce auctor cursus tellus, luctus aliquet turpis vehicula ut. Donec at sagittis erat. Vivamus sit amet elit vel dolor sollicitudin molestie sed sed turpis.</p><p>Integer dictum, mauris non aliquet scelerisque, nunc odio mattis sapien, sit amet porttitor mi ante quis ligula. Fusce in feugiat arcu, at cursus magna. Aliquam dignissim lorem in risus adipiscing, vitae iaculis sem ullamcorper. Cras eu libero sem. Nulla cursus mattis luctus. Sed porttitor, arcu consectetur malesuada ultrices, sapien nunc tincidunt justo, vel rutrum diam quam eget mi. Praesent pretium ac risus sed tempor. Cras condimentum, mi id facilisis pretium, turpis ipsum mollis nisi, ac posuere nunc dui vitae risus. Sed adipiscing purus a diam accumsan, a rhoncus tortor pellentesque. Morbi et dui quis mauris ornare commodo et quis eros. </p><header4 >Test Wiki Page</header4><p>Test of wiki content for the &lt;page&gt; syntax.</p><p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus facilisis suscipit laoreet. Nunc vel viverra est. Morbi massa arcu, suscipit eget massa a, faucibus pellentesque mi. Cras tristique, nibh cursus faucibus vestibulum, est velit gravida odio, vitae pretium erat libero non sem. Cras commodo gravida rhoncus. Nam nec rutrum leo. Fusce gravida rutrum ipsum, ut ultricies libero pulvinar in. Suspendisse at rhoncus mi. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nulla porta quam vel turpis iaculis, ut hendrerit nibh semper. Nunc ornare egestas dui eu dictum. Mauris lorem dolor, dignissim nec velit et, semper venenatis libero. Pellentesque gravida mauris magna, at pretium tellus tempor sed.</p><p>Quisque venenatis vehicula ultricies. Nulla sit amet ornare orci, sed molestie mi. Proin quis tempus ante. Etiam auctor aliquam pretium. Nam pellentesque justo sem, a lacinia tortor euismod sed. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Suspendisse ut neque ipsum. Nam convallis at metus non ullamcorper. Morbi a orci quam. Quisque rhoncus neque a auctor porttitor. Fusce auctor cursus tellus, luctus aliquet turpis vehicula ut. Donec at sagittis erat. Vivamus sit amet elit vel dolor sollicitudin molestie sed sed turpis.</p><p>Integer dictum, mauris non aliquet scelerisque, nunc odio mattis sapien, sit amet porttitor mi ante quis ligula. Fusce in feugiat arcu, at cursus magna. Aliquam dignissim lorem in risus adipiscing, vitae iaculis sem ullamcorper. Cras eu libero sem. Nulla cursus mattis luctus. Sed porttitor, arcu consectetur malesuada ultrices, sapien nunc tincidunt justo, vel rutrum diam quam eget mi. Praesent pretium ac risus sed tempor. Cras condimentum, mi id facilisis pretium, turpis ipsum mollis nisi, ac posuere nunc dui vitae risus. Sed adipiscing purus a diam accumsan, a rhoncus tortor pellentesque. Morbi et dui quis mauris ornare commodo et quis eros. </p></standard><appendix><header4 >Autofire</header4><p>Quisque venenatis vehicula ultricies. Nulla sit amet ornare orci, sed molestie mi. Proin quis tempus ante. Etiam auctor aliquam pretium. Nam pellentesque justo sem, a lacinia tortor euismod sed. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Suspendisse ut neque ipsum. Nam convallis at metus non ullamcorper. Morbi a orci quam. Quisque rhoncus neque a auctor porttitor. Fusce auctor cursus tellus, luctus aliquet turpis vehicula ut. Donec at sagittis erat. Vivamus sit amet elit vel dolor sollicitudin molestie sed sed turpis.</p></appendix></book></document>

    Thanks Mi_D but it has not fixed the problem.
    I now get Error 45 Object Is Invalid.
    /*  Places XML section on appropriate pages */
    alert("Starting Process");
    var myDocument = app.activeDocument;
    var currentPage;
    var masterSpread;
    var xmlBook = myDocument.xmlElements[0].xmlElements[0];
    if ( xmlBook.markupTag.name.toString() == 'book' ) {
        // In the right place
        for ( var lp = 0; lp < xmlBook.xmlElements.length; lp++) {
            var xmlElement = xmlBook.xmlElements[lp]; // Structural element in the book
            switch ( xmlElement.markupTag.name.toString() ) {
                case "standard":
                    var currentPage = myDocument.pages.add(LocationOptions.AT_END);
                    var masterSpread = myDocument.masterSpreads.itemByName('S-Standard');
                    currentPage.appliedMaster = masterSpread;  
                    var targetFrame = myDocument.pages.lastItem().textFrames[0];
                    /* Throws:   Error 30477 Invalid value for parameter 'using' */              
    //                 xmlElement.placeXML(targetFrame);    // Originial Code
                    // Throws:  Error 45 Object Is Invalid
                    targetFrame.placeXML(xmlElement);  // Code by Mi_D
                    break;
    } else {
        alert(xmlBook.markupTag.name);  
        throw { name: 'FatalError', message: 'XML Structure wrong' };

  • How to aling the text in a JTable???

    I use this code to make a vertical header like in excel. The thing is that i want to aling the text in that column but i couldn´t. I try to set the render, but i loose the header render in the column. Anyone know how to aling the text in that column with out loosing the header effect????
    i post a code that i use as model for my project.
    package com.chuidiang.ejemplos;
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.WindowConstants;
    import javax.swing.table.DefaultTableModel;
    * Ejemplo de cómo hacer una "cabecera" lateral en un JTable. Idea original de
    * Leunamal en
    * http://foro.chuidiang.com/java-j2se/tabla-de-referencias-cruzadas-en-java/
    * Básicamente consiste en hacer que la primera columna: - No sea editable. - No
    * sea seleccionable. - Tenga el mismo render que el JTableHeader superior.
    * @author chuidiang
    public class CabeceraLateral {
          * Crea y visualiza una ventana con un JTable que tiene cabecera en la parte
          * superior y en la columna izquierda
          * @param args
         public static void main(String[] args) {
              // Un modelo de datos que hace la primera columna (la de
              // la cabecera lateral) no editable.
              DefaultTableModel tm = new DefaultTableModel(10, 5) {
                   @Override
                   public boolean isCellEditable(int row, int column) {
                        if (0 == column)
                             return false;
                        return super.isCellEditable(row, column);
              // Titulos para la cabecera superior. El primero es vacio,
              // puesto que corresponde
              tm.setColumnIdentifiers(new String[] { "", "A", "B", "C", "D" });
              // Valores para la primera columna, que es la cabecera lateral.
              for (int i = 0; i < 10; i++)
                   tm.setValueAt(i + 1, i, 0);
              // JTable al que se le pasa el modelo recien creado y se
              // sobreescribe el metodo changeSelection para que no permita
              // seleccionar la primera columna.
              JTable t = new JTable(tm) {
                   @Override
                   public void changeSelection(int rowIndex, int columnIndex,
                             boolean toggle, boolean extend) {
                        if (columnIndex == 0)
                             super.changeSelection(rowIndex, columnIndex + 1, toggle,
                                       extend);
                        else
                             super.changeSelection(rowIndex, columnIndex, toggle,
                                                 extend);
              // Se pone a la primera columna el render del JTableHeader
              // superior.
              t.getColumnModel().getColumn(0).setCellRenderer(t.getTableHeader().getDefaultRenderer()); //here i set the render for the column. But when i try to aling the text, this column loose the effect.
              // Creación y visualización de la ventana completa.
              JFrame v = new JFrame("Cabecera lateral");
              JScrollPane sp = new JScrollPane(t);
              v.getContentPane().add(sp);
              v.pack();
              v.setVisible(true);
              v.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
    }

    The word is "align" not aling.
    To right-align the first column, you can do this in a prepareRenderer override.    JTable t = new JTable(tm) {
          @Override
          public void changeSelection(int rowIndex, int columnIndex,
                  boolean toggle, boolean extend) {
            if (columnIndex == 0) {
              super.changeSelection(rowIndex, columnIndex + 1, toggle,
                      extend);
            } else {
              super.changeSelection(rowIndex, columnIndex, toggle,
                      extend);
          @Override
          public Component prepareRenderer(TableCellRenderer renderer, int row, int column) {
            Component c = super.prepareRenderer(renderer, row, column);
            if (column == 0) {
              ((JLabel) c).setHorizontalAlignment(JLabel.RIGHT);
            return c;
        };You can find other alternatives to your approach by searching the net for "[JTable row header|http://www.google.com/search?q=JTable+row+header]"
    db

  • DOM Parser Configuration...how to switch off DTD validation?

    Hi all,
    I am developing some implementation code in Java using JBuilder2005, in which DOM3 parser is also being utilised. Now the question is how to switch off DTD validation (seems its default mode is 'on') so that no validation will be carried out at all even DTD declaration statement is presented in an input XML document?
    Many thanks in advance
    Frank

    First of all, thank you so much for responding, DrClap. =)
    setValidating(false) of the DocumentBuilderFactory instance, factory, does not work as expected; it still stubbornly try to seek the external DTD file and fires 'IOException' error in case of no such a DTD.
    To follow up the EntityResolver approach, I searched online for almost the whole afternoon but still could not figure out how to do it exactly. In particular, I found http://www.jdom.org/docs/faq.html#a0350, which tells a way doing it, but I got 'StringBufferInputStream is deprecated' error. Then I changed to
    new InputStream(new ByteArrayInputStream("".getBytes()))adapted from http://forum.java.sun.com/thread.jspa?threadID=572919&messageID=2842185. But another error occurs: 'java.io.InputStream is abstract; cannot be instantiated'. Furthermore, I have looked at many docs(tutorials, APIs...) on parser configuration, usage of EntityResolver/setEntityResolver()...but they turned out not helpful. Could you please give out more details on how to do this using EntityResolver?? Many many thanks...

  • Besst way to find a function module

    Hi there
    I am quiet new to ABAP and I am curiouse about how to best approach the search for a function module??
    can u guys please tell me how you search for functions modules that preform a specific task.
    For example if I search for a function module that would display a itab in an alv grid, how would I do that?
    Thanks,
    Nana

    Hi Nana Lohmanns 
    Generic way of Finding the function module is only to go to se37 type any combination like ALV na dpress F4.
    You will get name of function modules along with short text,then you can try the one you think as useful.
    Like when you are looking for a Function module which can perform Operation on DATE.go to SE37 Type _DATE then press F4.You will get list of Function modules like:
    <b>DATE_CHECK_PLAUSIBILITY</b>: Check to see if a date is in a valid format for SAP. Works well when validating dates being passed in from other systems.
    <b>DATE_COMPUTE_DAY</b>: Returns a number indicating what day of the week the date falls on. Monday is returned as a 1, Tuesday as 2, etc.
    <b>DATE_GET_WEEK</b> :will return the week that a date is in.
    <b>DATE_IN_FUTURE</b>: Calculate a date N days in the future.
    Visit this link also,That will also be helpful for you,to get feel of Some Common Function MOdules.
    http://www.sapgenie.com/abap/functions.htm
    Close the thread,If your Question is answered.
    Regards,
    Vijay Raheja

  • Implementing Exception Handling Application Block in custom web parts, event receivers

    hi,
      I am currently implementing try {} catch(Exception expp) { throw expp;} to handle exceptions in my intranet appln.
    I have several custom web parts, event receivers, few console applciations as timer jobs etc. If i want to implement a  robust exception handling what should be  the approach. by searching, i saw, ms patterns n practices provides the
    appln blocks.
    But I think[ pls correct me if i am wrong ] those  appln blocks are meant for asp.net applns ONLY.
    if not, anyone has implemented those appln blocks in SP development? if yes, can anyone provide one sample /  link to implement Exception Handling in SP.
    help is appreciated! 

    Hi,
    Here are some articles for your reference:
    Handling Error Centrally in a SharePoint Application
    http://www.codeproject.com/Articles/26236/Handling-Error-Centrally-in-a-SharePoint-Applicati
    Using Microsoft Enterprise Library Application Block in SharePoint
    http://www.codeproject.com/Articles/21389/Using-Microsoft-Enterprise-Library-Application-Blo
    Exception Handling in SharePoint
    http://spmatt.wordpress.com/2012/02/01/exception-handling-in-sharepoint/
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Format elapsed time

    I want to produce 2 strings, one with YYYY:MMD and one with HH:MMS since a fixed point (when measurements start). I've tried may approaches and searched the examples but could not find what I needed, either I get 1904:01:01 01:00:00 as the starting point or I get negative e.g. seconds when the system goes from 10 to 11 minutes. (same with hours/minutes and so on).
    Suggestions? Below are a few attemps...maybe a lot of unnecessary code...but not very failiar with labview.
    /Anders
    Message Edited by Tohatsu on 01-16-2008 09:13 AM
    Attachments:
    1.JPG ‏45 KB
    2.JPG ‏46 KB

    Hi Anders,
    atleast you can replace all those "Number to fractional" and "concat string" functions with just 2 "Format into string" functions (format string "%02d:%02d:%02d:;" to get "HH:MMS:;")!
    Btw. when converting integers to strings you should use "decimal number to string" instead of "fractional number to string" with precision=0!
    I also would remove those 2 "value" property nodes with a wire as you get the value from a local control... You also don't need the negate functions, just swap the input of the select functions.
    Message Edited by GerdW on 01-16-2008 04:49 PM
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Accordion effect, need help...

    Heya,
    So I want to create an extremely simple accordion effect. I
    tried styling the default accordion component but I couldn't remove
    the Halo styling to it, so unless someone can tell me how to do
    that I'm looking for basic AS to show and hide a particular MC on
    click. Anyone help?
    Thanks!

    Hi Spencer,
    Getting away from halo (something I've been working at for
    the last three days) isn't simple, but it's definitely doable.
    First, I followed the instructions in Flash help on *creating
    a new theme.* As part of those instructions, you'll copy two files:
    default.as and AccordionHeaderSkin.as. Through trial and error, you
    can fiddle with these two files and pretty much completely define
    your own colors, fonts, etc. for all components. I changed my open
    header to a gradient, and the closed headers to a different
    gradient. It has worked much better and more reliably than using
    the getStyle approach.
    Search for "theme" and "styles" in help, and follow the
    instructions--they worked for me.
    But once you get it all hooked up properly and can see your
    changes when you Publish Preview your movie, don't freak out if you
    make changes to the .as files that don't show up right away. I
    found I had to close Flash and open again before most changes
    appeared.
    Good luck!

  • Oracle File Demo in Flash

    Recently I developed a software and now I want to prepare a demo in Flash, Please help me how can I do this.

    Kamran,
    Are you talking about flash movies or displaying screen shots images in flash or integrating flash in a demo application? Each has different approaches. Search the forum for 'flash' there are several links which may help you.
    Keep Smiling,
    Bob R

Maybe you are looking for