Implementation of this KM

Hi all

DecaXD in a previous conversation gave me this KM. I imported the KM to ODI. How to use it, which means in my interface for the source and target do - what I do? I want to create a view using ODI. Thanks for your time and your help.

create or replace view < % = vtn % >
(
< % = snpRef.getColList ("", "[CX_COL_NAME]", "\n\tclick", "","") % >
) AS
(
< % for (int i = odiRef.getDataSetMin (); i < = odiRef.getDataSetMax (); i ++) {% >}
< %=odiRef.getDataSet (i, "Operator") % >
Select < % = odiRef.getPop ("DISTINCT_ROWS") % >
< %=odiRef.getColList (i, "", "[EXPRESSION] \t [ALIAS_SEP] [CX_COL_NAME]","\n\tclick", "", "") % >
< % = odiRef.getFrom (i) % >
where (1 = 1)
< % = odiRef.getFilter (i) % >
< % = odiRef.getJrnFilter (i) % >
< % = odiRef.getJoin (i) % >
< % = odiRef.getGrpBy (i) % >
< % = odiRef.getHaving (i) % >
< %} % >
)

Ok

This query will be something like this in ODI

1. create your view V_TOP_CUSTOMER in your db
2 reverse your db (see V_TOP_CUSTOMER)
3. create a new interface, put into the V_TOP_CUSTOMER target.
4 - Put your source CLIENT
5 - automatic mapping (right click on the name of target data store)
6 make a filter on the source (while waiting by pressing the left moves a field outside of your data store) and write "ytd_sales_amt > 1200.00.
7 - go to the stream, select your ikm.
8 - Economy

Incidentally, I suggest a little training. Where are you from?

Tags: Business Intelligence

Similar Questions

  • the implementation of this line of code C: for (int i = 0; I &lt; G_ReadLen; I = i + 2).

    I would like to implement in labview C++ code, but I can't do or loop to increase by two

    int j = 0; for (int i = 0; i)< g_readlen;="" i="i" +="" 2="">

    {

    AD_H BYTES = ByteArray.GetAt (i);

    AD_L BYTES = ByteArray.GetAt (i + 1);

    [J] ValueArray = AD_H<>

    [J] ValueArray = ValueArray [j] + AD_L;

    unsigned long Temp is ValueArray [j] > 12;.

    Volts [j] = ((float) [j] ValueArray) * 0.0048875; () Message.Format

    ("%X %x - %X, - %d, +%.3f volts", AD_H, AD_L, [j] ValueArray, [j] ValueArray Volts [j]);

    m_output_ep1i. InsertString(0,Message);

    j = j + 1;

    }

    Thank you

    Thank you very much sexy problem solved I have attached the solution

  • Modify a form online in the backend effect implementations of this form on the site?

    I need to modify a form of payment secure area that already exists and accept payments. We have now potentially reap the coordinates of the user

    -My boss want to divide then test two versions of the form (the existing and that changed).

    -I can't just create a new form that we have customized API work that references the ID of this form

    If I add the required fields for the form online that will affect my current implemtation of this form?

    The current shape is inserted as html

    I'm sure that it will not, but don't think it would hurt to double check.

    See you soon

    Pat

    Hi Pat, you can't test splits a form as with additional data because there as additional data.

    So if you add fields to a web form you must add them to the form in the admin.

    (Other payment then that is server-side) fields are only required based on javascript code, if you add in the admin, you must add them to a web form and also to include in the validation javascript at the bototm of the form.

    With regard to the appearance of the shape it appear differently on different A B testing pages to see then the conversion rate, the only kind of split testing would be based on designs.

  • How can I determine the version UEFI implemented by the firmware of a PC?

    I found several ways to determine the version of the firmware/BIOS on a PC – for example mine is FRIEND v8.15 (05/02/2013).

    But is there anyway to determine which version of the UEFI is implemented by this firmware?

    I tried to find a description of the FRIEND v8.15 which maybe provided this information, but has not been successful.

    As a last resort, I considered as written to the company - but before that, any other ideas you have are appreciated.

    Hello

    Windows 7 doesn't support secure boot.  A lot of settings in the BIOS to do still get Windows 7 to boot UEFI mode as well as the support of compatibility (CSM) model in the BIOS offers the correct BIOS options.

    Frankly, I wouldn't buy a W7 PC delivered these days here as W10 is a great OS. If you have an application that proved not to be compatible with W10 then run it in compatibility mode.

    I've not seen many cases where different levels of BIOS are available for W7 or W8 and W10.  However, you might find instances where the BIOS runs only in UEFI mode.

  • Implementing an IVI in labview

    Hello

    I recently created a new IVI driver for a card of NOR-Fgen 5412 max. I'm not sure of the implementation of this driver in labview, however. Can someone point me in the right direction?

    Thank you

    Eric

    If you have configured MAX for the driver AND then use the IVI function generator class driver on the Instrument of e/s palette.

  • Cannot remove the tank on once implemented editField keyChar

    In simple codes below, there is an editField in the screen. For Storm OS 4.7, once I entered a word in the edit field, I can't use the BACKSPACE key to delete any letter. The only way is to add a letter so that all letters are highlighted. Then only the BACKSPACE key will seek to remove the letters.

    If I set the keyChar method comment, I can add/remove letters freely.

    Did I miss something in the keyChar implementation and this removal of cuased letter is not not possible?

    Thank you

    class HomeScreen extends UiApplication {
    
        public static void main(String[] args)
        {
            HomeScreen app = new HomeScreen();
            app.enterEventDispatcher();
        }
    
        HomeScreen() {
            pushScreen(new EditScreen());
        }
    
        private class EditScreen extends MainScreen {
    
            EditScreen(){
                add(new EditField(EditField.EDITABLE));
            }
    
            protected boolean keyChar(char key, int status,  int time){
                boolean result = false;
                if (key == Characters.ESCAPE){
                    Dialog.alert("Escape key is pressed");
                    result = true;
                }
    
                return result;
            }
        }
    }
    
    protected boolean keyChar(char key, int status,  int time){    if (key == Characters.ESCAPE){          Dialog.alert("Escape key is pressed");
    
            // consuming event if escape pressed         return true;       } else {         // for non-escape keys passing call to the parent          return super.keyChar(key, status, time);                        }}
    
  • What is a good implementation of creation from records in a database SQLite MenuItems?

    From my understanding and reading of the API MenuItem KB, I need to extend the class MenuItem for each menu item that I want to create.

     ...
        // setup the menu items
        MenuItem item = new MyMenuItem();
        menu.addItem(item);
        ...
        class MyMenuItem extends MenuItem {
            MyMenuItem() {
                super(MyResourceBundle.getBundle(), MyResource.MY_MENU_ITEM, 0, 100);
            }
            public void run() {
                // do something
            }
        }
    

    I returned a list of five to eight records to a SQLite database, and I want to as the label of each record (String) to be a label for the menu item.

    Do I just loop through the records and create a MenuItem for each record and add the menu item to the menu in the loop?

    {for(each record)}

    create MenuItem

    Add MenuItem to the menu

    }

    Or is he a good implementation for this?

    Thank you

    Slight variation:

    class MyMenuItem extends MenuItem {}
    MyMenuItem (String menuLabel) {}
    Super (menuLabel, 0, 100);
    }
    public void run() {}
    do something
    }
    }

    {for(each record)}

    excerpt from label

    create MenuItem (label)

    Add MenuItem to the menu

    }

  • Implement a driver for a card cryptographic chip with multiple ATR

    Hello world
    I use RIM to develop a driver for cryptographic smart card.

    I created the MyCryptoSmartCard class that extends CryptoSmartCard. The problem is that this class allows only an ATR, but my card can have more than one ATR. It costs of the version. I want to control all in one card, and obviously with a single driver.

    So what I need is to make a single conductor for several ATR. Is this possible?

    The structure of my class of smart card is:

    public class mycryptosmartcard extends CryptoSmartCard implements {persistable

    private final static _ATR Byte = {(byte) 0 x 33, (byte) 0x6F,...};

    ...

    public static void libMain (String [] args) {}

    try {}

    SmartCardFactory.addSmartCard (new M3CryptoSmartCard ());

    } catch (ControlledAccessException falls) {...}

    ...

    These are the only solutions tha I thought, but I don't know if it's possible:
    -Make a MyCryptoSmartCard of constructor passing the RTA and the pourla create with ATR one or the other.
    -Put all the ATR as private variables and later to treat each case current.

    Could someone give me a solution? I would avoid the possibility of a driver for each RTA.

    Thank you very much.

    Hi, I think that it is theoretically possible to write a single driver for your two cards. In practice, it may be more difficult that it sounds good, depending on how different the two cards are actually.

    The class CryptoSmartCard * can * support more than one ATR... once again, at least in theory. "To support a given RTA" means that your class return true from the checkAnswerToResetImpl method. So I don't see why your implementation of this method should not return true in response to one of the two separate ATR responding with your cards.

    Having returned the true value, your driver actually expressed as a candidate for the card driver currently in the drive. After that, you will need to ensure that your pilot tunes its behavior to the requirements of the current map. You need to maintain an accessible indicator which ATR has received that is facing types two cards are in the player, but I think that a class variable should be able to do it for you.

    You cannot use a special constructor because your class is built in libMain before the call to checkAnswerToResetImpl. Then you probably just need to condition the behaviour of your other methods on the ATR which has been received and encoded as your class variable (i.e. use if or statements to pass).

    Hope this helps

  • The implementation of InputComboBoxListOfValues

    Hello

    12.1.3 Jdev

    I need to put in place a menu drop-down / lov for a field in my Page. The list will be very large.

    What is the best component to use? What is InputComboBoxListOfValues?

    If so, are there tutorials step by step implementation of this component?

    See you soon

    AJ

    To this end, instead on the ParityId, you must set LOV on the Transient attribute, say, CustomerFirstName.

    In the list of return values, (first image you provided), map name to the CustomerFirstName AND ParityId in the ParityId.

    You have a point?

    As an alternative, announces another non editable entity in the ViewObject where resides the ParityId.

    This entity shoud have the same data as your LOV VO, so it would be FirstName attribute.

    Now you can define LOV on this point, the FirstName attribute uneditable attribute and, of course, map ParityId in the ParityId.

  • Filling path $ and Path_Link$ tables / implementation of turn restrictions

    Hello

    I'm doing a network using shortest path A Star tracking application in the data network model.

    Below is an example of my network:

    /     L1     \               /     L4     \               /     L7     -     E1

    C1     -     L2     -     M1     -     L5     -     M2     -     L8     -     E2

    \     L3     /               \     L6     /               \     L9     -     E3

    Note: cost per link = 1

    NŒUDS LINKS

    C1

    M1

    M2

    L1

    L2

    L3

    L4

    L5

    L6

    L7

    L8

    L9

    E1

    E2

    E3

    C1 - L1

    C1 - L2

    C1 - L3

    L1 - M1

    L2 - M1

    L3 - M1

    M1 - L4

    M1 - L5

    M1 - L6

    L4 - M2

    L5 - M2

    L6 - M2

    M2 - L7

    M2 - L8

    M2 - L9

    L7 - E1

    L8 - E2

    L9 - E3

    My problem is how to fill in the path and the path of the link Table, so when I draw I would get the following results?

    C1 to E1:

    C1 - L1 - M1 - L4 - M2 - L7 - E1

    C1 to E2:

    C1 - L2 - M1 - L5 - M2 - L8 - E2

    C1 at E3:

    C1 - L3 - M1 - L6 - M2 - L9 - E3

    When I make a record of the shortest path for example C1 to E1, the result I get is: C1 - L2 - M1 - L4 - M2 - L8 - E1 which is not the right way I wanted to.

    The only way I think to do this is to feed the tables of path and path link. But how could I do? I can't find any of the samples in the Oracle Documentation on how could fill these 2 tables.

    Also, I also found this http://download.oracle.com/otndocs/products/spatial/pdf/oow2010/spatial/spatialoow10_bldgappsndm.pdf document

    Tour restrictions set out on pages 37-39, but I don't know how I implement this.

    Should I change my table of $ LINK and add column RESTRICTED_LINKS Java API for IFN will be able to apply the constraint to turn restriction?

    Give me code examples and references to do this greatly help me.

    Thank you very much.

    Hi Mike

    If (turn) restrictions is what your use case requires then Yes you will need to implement this. :

    You will find the ndm_tutorial with good examples: example of NDM Code graph

    You will find the example

    Analysis of the shortest path with Restrictions of the Tower

    In short, you need to implement a java class that is a constraint on the network.

    Must follow the implementation of the constraint.which network requires that give you at least 5 methods (11R2, believe previous versions required only isSatified if remember correctly).

    This is page 37 of the pdf doc you mentioned.

    So in your table networkLink, you must add a column that stores for these links, a string delimited by commas of the id list target which will be used in network analysis.

    You do this by setting up of the isSatified of the method which should return a Boolean TRUE or FALSE.

    In your implementation of this method (within your constraints of network), you build logic to validate if a link target candidate links can be reached or not.

    This means that you can store these target id list, either as a restriction (you can only go there) or exclusion (you can not go there). It is in the method isSatified that you will take care of your logic in combination with your data.

    The example on page 39 of the pdf doc, registers for 1 link ID '7,8', which means in this connection case 1 you can NOT go to the link 7 or 8 link. (explained on page 38)

    This will be analyzed in network analysis. The shortest example path analysis with turn Restrictions,.

    has a ProhibitedTurnConstraint class lattice strain, which in turn has an isSatified method, which is responsible for such rule return TRUE or False to network analysis.

    It does this by creating a hash table and a specific isTurnValid methos, called by the isSatified method.

    The java API documentation can be found here:

    Oracle Spatial Java QAnywhere

    I hope this give you a little nudge in the right direction. IF you think maybe you can add some valuable points

    Good luck

    Luke

  • End to complete the implementation

    which is implemented from end-to-end in the oracle applications?

    End-to-end can mean different things to different people.
    For me, this means put implement a given module (or modules) of the analysis phase all the way to support after implementation. This means that you are working with the customer for
    identify needs
    * map those requirements to Oracle
    identify gaps (i.e. areas where Oracle does not meet requirements)
    * offer workaround processes
    * design customizations if necessary to resolve the gaps
    develop the code and test
    Conduct of multiple CRPS (conference room pilots)
    * go live
    * post go-live support

    Sandeep Gandhi

  • This is possible in InDesign CS5.5 using Folio Builder (DPS).

    Hi DPS Experts,

    I am new to this DPS workflow.

    I use InDesign CS5.5. I have the question? It is possible to create applications for the web link mentioned below.

    http://www.Spanish-real-estate.co.UK/

    The site is Joomla and the www.spanish-real-estate.co.uk field

    The app will be free, so I don't know if it will have to approve apple store.

    If it is possible please help or guide how to begin the process how downloaded files of DPS and check the video and audio and everthing as in the website to be shipped in the iPad applications.

    Please give the path to achieve this goal.

    THX,

    csm_phil

    You will have to re-design of the Web site and make it interactive and adapted to the screen of the tablet. Use the HTML format to import it into the Workflow of DPS. Don't forget Apple has strict approval policies so it can reject the app is implement you this as a simple website without using interactive components. It is best if you redesign for Tablet during the implementation using DPS.

  • Implementations of text - performance expectations

    Hey people,

    I'm at a point where we are very close to having a ready to get an overview of our operations, but as we search for proof of concept solution furred small examples of tables at our real tables I notice poor performance on search operations with several words (4-5 words using the delimitter ACCUM) ,)). I would like to hear from the community on implementations of this text, you can have and how they perform to make sure that my expectations are correct and that I am not stressing my DBA unnecessarily.

    Our solution consists of the search for a single table with lines 30mil (6,73 GB) all about. We use an index of field concatenated Barbara recommendation where a stored procedure creates a clob of indexed content representation. When you test the index with a query like this one, we get mediocre times, in my view, ranging from 30 to 60 seconds:

    SELECT SCORE (1) in the search_score,
    d.Column1,
    d.Column2,
    d.Column3
    TABLE d
    WHERE CONTAINS (text_key, ' (' |: p_search_text |)) ') AND (' |: p_employee_id |) "(Àle SEIN d'emp_id) (', 1) > 0"
    ORDER BY 1 DESC;

    If the binding p_search_text variable contains 1 word that the application takes about 8 seconds. 2 words about 16 seconds, 3 words about 24 seconds, etc.. God forbid a user in 5-6 words type, and they waited for almost a minute for the query to run.

    The base table is not partitioned, and receives occasional DML. The index was created using the following DDL:

    Start
    DBMS_STATS.gather_table_stats ('OWNER', 'TABLE1');
    DBMS_STATS.gather_table_stats ('OWNER', 'TABLE2');
    ctx_ddl.drop_preference ('test_ts');
    ctx_ddl.create_preference ('test_ts', 'BASIC_STORAGE');
    ctx_ddl.set_attribute ('test_ts', 'i_table_clause', 'tablespace prod_indx');
    ctx_ddl.set_attribute ('test_ts', 'k_table_clause', 'tablespace prod_indx');
    ctx_ddl.set_attribute ('test_ts', 'r_table_clause', 'tablespace prod_indx');
    ctx_ddl.set_attribute ('test_ts', 'n_table_clause', 'tablespace prod_indx');
    ctx_ddl.set_attribute ('test_ts', 'p_table_clause', 'tablespace prod_indx');
    ctx_ddl.drop_preference ('test_store');
    ctx_ddl.create_preference ('test_store', 'USER_DATASTORE');
    ctx_ddl.set_attribute ('test_store', 'PROCÉDURE', 'test_proc');
    ctx_ddl.set_attribute ('test_store', 'TYPE_SORTIE', 'CLOB');
    ctx_ddl.drop_section_group ('test_sg');
    ctx_ddl.create_section_group ('test_sg', 'BASIC_SECTION_GROUP');
    ctx_ddl.add_field_section ('test_sg', 'emp_id', 'emp_id', true);
    end;

    CREATE INDEX d_context_index
    ON table (text_key)
    INDEXTYPE IS CTXSYS. FRAMEWORK
    FILTER BY Column1
    5 PARALLEL
    PARAMETERS ('STORAGE test_ts DATASTORE test_store GROUP of SECTIONS test_sg SYNC (ON COMMIT)');

    Again, I would be delighted to hear strategies for implementation of you with powerful solutions for TEXT did, and how would you define "success". Also, if anyone has any suggestions, questions or recommendations for based me on what I see it please reply.

    Thank you!

    Published by: Rudy W on February 10, 2011 09:38

    What follows is a demonstration simplified solution that I was suggesting for my understanding of what you describe. I used 'bob can access' and 'suzie can access' and "bob and suzie can access" instead of trade names, to try to make it clearer. Note that the emp_id column must do the column filter, which makes the surlabasedesdonneesdufabricantduballast column. The materialized view takes the place of the procedure and the user_datastore in my previous example. Similarly, the filter by and surlabasedesdonneesdufabricantduballast take the place of the section and inside in my previous example. Both methods cause an index hit. Her theory is that make the emp_id column filter or the column of surlabasedesdonneesdufabricantduballast instead of a section should result in the best performance of the index, emp_id being structured data, text data structured.

    SCOTT@orcl_11gR2> CREATE TABLE tablea
      2    (primarykeyfield     NUMBER PRIMARY KEY,
      3    business_name         VARCHAR2 (25),
      4    address              VARCHAR2 (7),
      5    city              VARCHAR2 (4),
      6    state              VARCHAR2 (5),
      7    zip              VARCHAR2 (3))
      8  /
    
    Table created.
    
    SCOTT@orcl_11gR2> CREATE TABLE employee
      2    (emp_id              NUMBER PRIMARY KEY,
      3       name              VARCHAR2 (5))
      4  /
    
    Table created.
    
    SCOTT@orcl_11gR2> CREATE TABLE tableb
      2   (taba_primarkeyfield  NUMBER REFERENCES tablea (primarykeyfield),
      3    emp_id              NUMBER REFERENCES employee (emp_id))
      4  /
    
    Table created.
    
    SCOTT@orcl_11gR2> CREATE MATERIALIZED VIEW LOG ON tablea WITH ROWID
      2  /
    
    Materialized view log created.
    
    SCOTT@orcl_11gR2> CREATE MATERIALIZED VIEW LOG ON tableb WITH ROWID
      2  /
    
    Materialized view log created.
    
    SCOTT@orcl_11gR2> CREATE MATERIALIZED VIEW test_matview
      2  REFRESH FAST ON COMMIT
      3  AS
      4  SELECT ta.rowid ta_rowid, tb.rowid tb_rowid,
      5           ta.business_name || ' ' || ta.address || ' ' || ta.city
      6           || ' ' || ta.state || ' ' || ta.zip as test_cols,
      7           tb.emp_id
      8  FROM   tablea ta, tableb tb
      9  WHERE  ta.primarykeyfield = tb.taba_primarkeyfield
     10  /
    
    Materialized view created.
    
    SCOTT@orcl_11gR2> CREATE INDEX test_matview_index
      2  ON test_matview (test_cols)
      3  INDEXTYPE IS CTXSYS.CONTEXT
      4  FILTER BY emp_id
      5  PARAMETERS
      6    ('STOPLIST  CTXSYS.EMPTY_STOPLIST
      7        SYNC        (ON COMMIT)')
      8  /
    
    Index created.
    
    SCOTT@orcl_11gR2> INSERT ALL
      2  INTO tablea VALUES (1, 'bob can access', 'b', 'c', 'test', null)
      3  INTO tablea VALUES (2, 'suzie can access', 'test', 'c', null, null)
      4  INTO tablea VALUES (3, 'bob and suzie can access', 'b', 'test', null, null)
      5  INTO tablea VALUES (4, 'bob can access', 'b', 'c', null, null)
      6  SELECT * FROM DUAL
      7  /
    
    4 rows created.
    
    SCOTT@orcl_11gR2> INSERT ALL
      2  INTO employee VALUES (10, 'Bob')
      3  INTO employee VALUES (20, 'Susie')
      4  SELECT * FROM DUAL
      5  /
    
    2 rows created.
    
    SCOTT@orcl_11gR2> INSERT ALL
      2  INTO tableb VALUES (1, 10)
      3  INTO tableb VALUES (2, 20)
      4  INTO tableb VALUES (3, 10)
      5  INTO tableb VALUES (3, 20)
      6  INTO tableb VALUES (4, 10)
      7  SELECT * FROM DUAL
      8  /
    
    5 rows created.
    
    SCOTT@orcl_11gR2> COMMIT
      2  /
    
    Commit complete.
    
    SCOTT@orcl_11gR2> VARIABLE p_search_text VARCHAR2 (100)
    SCOTT@orcl_11gR2> VARIABLE p_employee_id NUMBER
    SCOTT@orcl_11gR2> EXEC :p_search_text := 'test'
    
    PL/SQL procedure successfully completed.
    
    SCOTT@orcl_11gR2> SET AUTOTRACE ON EXPLAIN
    SCOTT@orcl_11gR2> -- Bob's companies with test in the search_cols:
    SCOTT@orcl_11gR2> EXEC :p_employee_id := 10
    
    PL/SQL procedure successfully completed.
    
    SCOTT@orcl_11gR2> SELECT test_cols FROM test_matview
      2  WHERE  CONTAINS
      3             (test_cols,
      4              :p_search_text ||
      5              ' AND SDATA (emp_id = ' || :p_employee_id || ')') > 0
      6  /
    
    TEST_COLS
    ------------------------------------------------
    bob can access b c test
    bob and suzie can access b test
    
    2 rows selected.
    
    Execution Plan
    ----------------------------------------------------------
    Plan hash value: 2974403552
    
    -----------------------------------------------------------------------------------------------------
    | Id  | Operation                      | Name               | Rows  | Bytes | Cost (%CPU)| Time     |
    -----------------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT               |                    |     1 |    38 |     4   (0)| 00:00:01 |
    |   1 |  MAT_VIEW ACCESS BY INDEX ROWID| TEST_MATVIEW       |     1 |    38 |     4   (0)| 00:00:01 |
    |*  2 |   DOMAIN INDEX                 | TEST_MATVIEW_INDEX |       |       |     4   (0)| 00:00:01 |
    -----------------------------------------------------------------------------------------------------
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
       2 - access("CTXSYS"."CONTAINS"("TEST_COLS",:P_SEARCH_TEXT||' AND SDATA (emp_id =
                  '||:P_EMPLOYEE_ID||')')>0)
    
    Note
    -----
       - dynamic sampling used for this statement (level=2)
    
    SCOTT@orcl_11gR2> -- Suzie's companies with test in the search_cols:
    SCOTT@orcl_11gR2> EXEC :p_employee_id := 20
    
    PL/SQL procedure successfully completed.
    
    SCOTT@orcl_11gR2> SELECT test_cols FROM test_matview
      2  WHERE  CONTAINS
      3             (test_cols,
      4              :p_search_text ||
      5              ' AND SDATA (emp_id = ' || :p_employee_id || ')') > 0
      6  /
    
    TEST_COLS
    ------------------------------------------------
    suzie can access test c
    bob and suzie can access b test
    
    2 rows selected.
    
    Execution Plan
    ----------------------------------------------------------
    Plan hash value: 2974403552
    
    -----------------------------------------------------------------------------------------------------
    | Id  | Operation                      | Name               | Rows  | Bytes | Cost (%CPU)| Time     |
    -----------------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT               |                    |     1 |    38 |     4   (0)| 00:00:01 |
    |   1 |  MAT_VIEW ACCESS BY INDEX ROWID| TEST_MATVIEW       |     1 |    38 |     4   (0)| 00:00:01 |
    |*  2 |   DOMAIN INDEX                 | TEST_MATVIEW_INDEX |       |       |     4   (0)| 00:00:01 |
    -----------------------------------------------------------------------------------------------------
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
       2 - access("CTXSYS"."CONTAINS"("TEST_COLS",:P_SEARCH_TEXT||' AND SDATA (emp_id =
                  '||:P_EMPLOYEE_ID||')')>0)
    
    Note
    -----
       - dynamic sampling used for this statement (level=2)
    
    SCOTT@orcl_11gR2>
    
  • How can I listen to the AsyncToken var events outside the implementation class

    Hello

    I use this:

    public void doSomething (): void

    {

    var token:AsyncToken=myRemoteObject.getData();

    token.addResponder (new mx.rpc.Responder (resultHandler, faultHandler));

    }

    private void resultHandler(event:ResultEvent):void

    {

    dispatchEvent (event);

    }

    private void faultHandler(event:FaultEvent):void

    {

    dispatchEvent (event);

    }

    And listening for events on the instantiated var.

    Which is the right way to do it, or is there a better?

    Thank you.

    I often see classes of service built as follows:

    public interface IMyService
    {
              function loadData(id:int):AsyncToken;
              function publishData(data:Object):AsyncToken;
    }
    
    public class MyService implements IMyService
    {
              private var _remoteObject:RemoteObject;
    
              protected function get remoteObject():RemoteObject
              {
                        if(!_remoteObject)
                        {
                                  _remoteObject = new RemoteObject("MyDestination");
                                  _remoteObject.showBusyCursor = true;
                                  _remoteObject.source = "my_service";
                        }
    
                        return _remoteObject;
              }
    
              public function loadData(id:int):AsyncToken
              {
                        return this.remoteObject.loadData(id);
              }
    
              public function publishData(data:Onject):AsyncToken
              {
                        return this.remoteObject.publishData(data);
              }
    
    }
    
    public class MyController
    {
    
              public var service:IMyService = new MyService(); //or find a better way to inject
    
              public function doStuff(id:int):void
              {
                        var token:AsyncToken = this.service.loadData(id);
                        token.addResponder(new Responder(loadData_resultHandler, loadData_faultHandler));
              }
    
         ...
    }
    

    The actual implementation may vary, but the idea is to have a class with methods that reflects your methods of service class and then summarized this thanks to an interface to allow different service implementations (if you want of course). It is of class type is usually referred to as a proxy or delegate class.

    I think mostly it's a matter of personal preference, but I've seen it implemented in this way by a large number of executives main (the Flash Builder function generator is one of them).

    Fixed type in the code.

  • Dynamically loading the interface from a remote source implementation class

    Hello guys,.

    I'm kind new to AS3, please bear with me.

    I'm working on a project were I want to implement some sort of MVC. The idea is this: have an application Viewer that connects to a database and reads the object to display (based on some ID); have an app Setter that connects to the database and sets the object to display for a particular ID.

    What I'm trying to do is to have an interface that declares the common methods for the object class (like the draw, etc.) and have implementations of this interface be dynamically loaded from the database in the Viewer.

    Is this possible? I still think about it in the right way?

    I'd appreciate any suggestions really.
    Thank you

    If you check the book by peldi et al., u would have found what you're talking about. The principle u want to talk is easy to do. This might get u started (it is FMS but the idea is the same): http://help.adobe.com/en_US/FlashMediaServer/3.5_SS_ASD/flashmediaserver_3.5_sslr.pdf - p.28 - application.registerClass () method.

Maybe you are looking for