Flex 3 :Help needed in implementing View States

Hi 
I am new to Flex , i am trying to understand View States , tried for one hour but got confused .
(Basically by seeing the examples i understood the concept , but failed to implement ) 
Please help .
Assume my requirement is at the load of the page , i want to show an Login Button and a Chnage State Button (common button) only .and when the Change State button is clicked on ,i want to show the Register Button .
So for this i made two Forms , and a common button .
       <mx:Form id="RegForm">
            <mx:Button label="RegFormButton" id="RegFormButton"/>
        </mx:Form>
        <mx:Form id="loginForm">
                    <mx:Button label="LoginButton" id="loginButton"/>
        </mx:Form>
<!-- A common button for both the States-->
  <mx:Button label="Change State"
              click=""/>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" currentState="Register">
<mx:states>
<mx:State name="Register">         
<mx:SetProperty   target="RegForm"   value="Register"/>
</mx:State>
<mx:State name="loginForm">
<mx:SetProperty   target="loginForm"   value="Login"/>
</mx:State>
</mx:states>
( I think some how i can write the Logic to chnage to the current state to loginForm when user clicks with some inline code , but please tell me At the start of the page please tell me why I am not able to show the Register.

sorry for posting a dumb question .
I realized my mistake .

Similar Messages

  • Help needed for implementing master details region on the search page

    Hi All,
         I am new to Jdeveloper and OAF. I need to develop a sales order search page, for which the VO query is
         SELECT ch.order_number order_number
         , ch.attribute97 order_detail
         , ch.attribute14 sold_to
         , ch.attribute50 business_group
         , ch.source_doc_type source_doc_type
         , ch.line_number line_number
         , ch.transaction_amount transaction_amount
         , ch.split_pct||'%' split_percentage
         , jrs.NAME resource_name
         , jrr.resource_number resource_number
         , ch.processed_date processed_date
         , cq.NAME quota_name
         , ch.attribute34 transaction_type
         , ch.attribute35 order_type
         , ch.attribute51 product_line
         , ch.attribute54 city
         , ch.attribute55 state
         , ch.attribute56 district
         , ch.attribute57 area
         , ch.attribute61 salesrep_number
         , ch.attribute62 region
         , ch.attribute64 sales_org
         , ch.attribute68 terr_order_type
         , ch.attribute58 market_indicator
         FROM cn_commission_lines_all cl
         , cn_commission_headers_all ch
         , cn_quotas_all cq
         , jtf_rs_salesreps jrs
         , jtf_rs_resource_extns jrr
         WHERE cl.direct_salesrep_id = cl.credited_salesrep_id
         AND cl.commission_header_id = ch.commission_header_id
         AND cl.quota_id = cq.quota_id
         AND ch.direct_salesrep_id = jrs.salesrep_id
         AND jrr.resource_id = jrs.resource_id
         AND (NVL(ch.source_doc_type,'X') = 'EVEREST' OR NVL(ch.source_doc_type,'X') = 'SAP')
    AND (NVL(ch.attribute50,'X') = 'EMG' OR NVL(ch.attribute50,'X') = 'LSCA')
    I have 3 query parameters business_group, source_doc_type and sales order number.
    The results region should look like,
    Header region with order_number,order_detail,sold_to,business_group and the source_doc_type columns.
    The remaining fields go into the details region.
    Highly appreciate if anyone could help me on this.
    Regards,

    Hi,
    When I have a messagestyle layout for my header, I am not able to find the items in this region for the querycriteriamap. I need to populate the header region with values entered in the search region.
    For example: I create the OrderNumber messagestyledtext item in the messagecomponent layout of the header region. In simplesearchmappings, for the querycriteriamap, I am not able to find this item in the drop down for Results Item property.
    Please help me to understand.
    Regards,

  • Help needed to build delete statement

    i need to keep last 10 days data+ last day of everymonth data in my table.
    this table will grow on daily basis.
    ex:
    data_date no.of records
    2006/02/28 10000
    2006/03/31 11000
    2006/04/30 12000
    2006/05/31 13000
    2006/06/09     13100
    2006/06/10 13200
    2006/06/11 13300
    2006/06/12 13400
    2006/06/13     13500
    2006/06/14     13600
    2006/06/15 13700
    2006/06/16 13800
    2006/06/17     13900
    2006/06/18     14000
    means last 10 days + last day of evermonth data need to store and remaining all
    records i need to delete from this table.
    could you help me to build this delete statement in single statement.

    select * from mytbl;
    DD                 NR
    28-02-2006      12000
    31-03-2006      10000
    30-04-2006      12050
    31-05-2006       9500
    06-06-2006      13100
    07-06-2006      13200
    08-06-2006      13300
    09-06-2006      13400
    10-06-2006      13500
    11-06-2006      13600
    12-06-2006      13700
    13-06-2006      13800
    14-06-2006      13900
    15-06-2006      14000
    16-06-2006      14100
    17-06-2006      14200
    18-06-2006      14300
    17 rows selected.
    delete from mytbl
    where not
    ( dd = last_day( dd ) -- Keep last days of months
       or  dd >= trunc(sysdate) - 10 -- Keep last 10 days
    3 rows deleted.
    select * from mytbl;
    DD                 NR
    28-02-2006      12000
    31-03-2006      10000
    30-04-2006      12050
    31-05-2006       9500
    09-06-2006      13400
    10-06-2006      13500
    11-06-2006      13600
    12-06-2006      13700
    13-06-2006      13800
    14-06-2006      13900
    15-06-2006      14000
    16-06-2006      14100
    17-06-2006      14200
    18-06-2006      14300To me...it looks like it does work!

  • Converting coldfusion reports to flex- Help needed

    Hello All,
    I have a coldfusion form which has input fields , when the user submits the input fields a report is generated . Now , what i need is to generate the report in flex which takes the input from the  coldfusion input file..
    Can somebody please help ASAP..
    Thanks in advance.

    Thanks! for the prompt reply Mike .. I will start working on one of these options you listed..
    I need to complete the generation of these reports in couple of days , need myself get going..
    Is there an email id where i can reach , if i have more questions..

  • Help needed with Oracle views

    Hello All,
    I have the following (simplified slightly as a example)
    CREATE VIEW TRACK30.GVITEMASSOCIATE002F AS
    SELECT
    VATTRIBUTEASSOCIATEZ0000.ATTRIBUTEID AS ATTRIBUTEID,
    ... lots more columns from vattributeassociate
    VISOTOPEZ0001.ISOTOPEID AS ISOTOPEID,
    ... lots more columns from visotope
    FROM
    VATTRIBUTEASSOCIATE VATTRIBUTEASSOCIATEZ0000, VISOTOPE VISOTOPEZ0001
    WHERE
    VATTRIBUTEASSOCIATEZ0000.A54E67=VISOTOPEZ0001.ISOTOPEID
    AND VATTRIBUTEASSOCIATEZ0000.ATTRIBUTEISID=47
    and
    CREATE VIEW TRACK30.GVITEM AS
    SELECT
    VITEMZ0000.ITEMID AS ITEMID,...
    GVITEMASSOCIATE002FZ0005.KEYID AS A553DB,...
    FROM
    VITEM VITEMZ0000, GVITEMASSOCIATE002F GVITEMASSOCIATE002FZ0005
    WHERE
    VITEMZ0000.ITEMID=GVITEMASSOCIATE002FZ0005.KEYID(+) AND
    (GVITEMASSOCIATE002FZ0005.ATTRIBUTEISID=47 OR GVITEMASSOCIATE002FZ0005.ATTRIBUTEISID IS NULL )
    and
    CREATE VIEW TRACK30.GVFINAL AS
    SELECT
    O.*,
    I,*,
    T,*,
    C.*
    FROM
    CONTENT O, GVITEM I, GVTRANSACTION T, GVCOLLECTION C
    WHERE
    O.COLLECTIONID=C.COLLECTIONID AND
    O.ITEMID=I.ITEMID AND
    O.TRANSACTIONID=T.TRANSACTIONID
    I'm getting back the numbers of rows I expect from each view and the data is correct at each stage EXCEPT within GVFINAL where the data from GVITEMASSOCIATE002F.VISOTOPE is missing. How could that be? The other data from GVITEMASSOCIATE002F.VATTRIBUTEASSOCIATE is present in GVFINAL. If I query the gvitem view then the data is present for visotope for a particular item but not when querying the gvfinal view?!?!?!?
    Anyone know why this is?
    Thanks in advance.
    Richard (Confused again)

    Hi, Thanks for the reply.
    The names are generated by some code so I don't really mind them being huge. ;-)
    I think you've skated over my point. So I'll try and explain a bit better and simplify it a bit more.
    within the content table the itemid column contains a list of all the items in their respective containers. Hence every item will be present and since I'm not filtering on containerid nothing would restrict this.
    within the gvitem view we have the data for all of the items therefore the counts within content and item grouped by itemid are identical.
    Therefore the join of gvitem to content should produce all of the data within gvitem and all of the data within content. (I've removed gvtransaction and gvcollection since they ain't pertinent to the problem).
    But, the data from within gvitemassociate which is joined to gvitem is missing from gvfinal. Yet the other information from within gvitem is present.
    Maybe an example will help...
    simplifying the views down to
    CREATE OR REPLACE VIEW GVITEM2 AS
    SELECT
    VITEMZ0000.ITEMID,
    GVITEMASSOCIATE0047Z0005.WHENAT AS A259197,
    GVITEMASSOCIATE0047Z0005.HALFLIFEAT
    FROM
    VITEM VITEMZ0000,
    GVITEMASSOCIATE0047 GVITEMASSOCIATE0047Z0005
    WHERE
    VITEMZ0000.ITEMID=GVITEMASSOCIATE0047Z0005.KEYID(+) AND
    (GVITEMASSOCIATE0047Z0005.ATTRIBUTEISID=47 OR GVITEMASSOCIATE0047Z0005.ATTRIBUTEISID IS NULL )
    CREATE OR REPLACE VIEW TRACK30.GVFINAL2 AS
    SELECT
    O.ITEMID,
    I.ITEMID AS GVITEMITEMID,
    I.A259197,
    I.HALFLIFEAT
    FROM
    CONTENT O, GVITEM2 I
    WHERE
    O.ITEMID=I.ITEMID
    Therefore itemid comes from content, gvitemitemid comes from vitem and the others come from gvitemassociate.
    and then doing...
    select * from gvitem2 where halflifeat between '18-APR-1910' and '18-APR-1920';
    gives
    ITEMID A259197 HALFLIFEA
    52806 03-JAN-06 18-APR-12
    52797 21-DEC-05 18-APR-12
    52798 21-DEC-05 18-APR-12
    52799 21-DEC-05 18-APR-12
    52800 21-DEC-05 18-APR-12
    51571 15-DEC-05 18-APR-12
    51572 15-DEC-05 18-APR-12
    51573 15-DEC-05 18-APR-12
    51575 15-DEC-05 18-APR-12
    51576 15-DEC-05 18-APR-12
    51577 15-DEC-05 18-APR-12
    11 rows selected.
    and then if I go
    select itemid,gvitemitemid,a259197,halflifeat from gvfinal2 where itemid in (52797,52798,52799,52800,52806)
    i get
    ITEMID GVITEMITEMID A259197 HALFLIFEA
    52797 52797
    52797 52797
    52800 52800
    52800 52800
    52798 52798
    52798 52798
    52806 52806
    52806 52806
    52799 52799
    52799 52799
    10 rows selected.
    So the A259197 and HalfLifeAt columns don't have data within them? yet they did a second ago??!?! e.g. itemid=52797
    interestingly if I query via halflifeat then I do get that information but that's no good to me since I need to filter by container in the program.
    e.g.
    select itemid,gvitemitemid,a259197,halflifeat from gvfinal2 where halflifeat between '18-APR-1910' and '18-APR-1920'
    ITEMID GVITEMITEMID A259197 HALFLIFEA
    51571 51571 15-DEC-05 18-APR-12
    51571 51571 15-DEC-05 18-APR-12
    51572 51572 15-DEC-05 18-APR-12
    51572 51572 15-DEC-05 18-APR-12
    51573 51573 15-DEC-05 18-APR-12
    51573 51573 15-DEC-05 18-APR-12
    51573 51573 15-DEC-05 18-APR-12
    51573 51573 15-DEC-05 18-APR-12
    51575 51575 15-DEC-05 18-APR-12
    51576 51576 15-DEC-05 18-APR-12
    51577 51577 15-DEC-05 18-APR-12
    51577 51577 15-DEC-05 18-APR-12
    52797 52797 21-DEC-05 18-APR-12
    52797 52797 21-DEC-05 18-APR-12
    52798 52798 21-DEC-05 18-APR-12
    52798 52798 21-DEC-05 18-APR-12
    52799 52799 21-DEC-05 18-APR-12
    52799 52799 21-DEC-05 18-APR-12
    52800 52800 21-DEC-05 18-APR-12
    52800 52800 21-DEC-05 18-APR-12
    52806 52806 03-JAN-06 18-APR-12
    52806 52806 03-JAN-06 18-APR-12
    22 rows selected.
    It looks like Oracle's joining differently depending on how I filter (Which it obviously would) but is sometimes ignoreing joins when it shouldn't (IMO).
    Bizarre or what?
    I suspect I'm missing something obvious but for the life of me cannot see it!
    Heeeeelllllppppp.
    Thanks
    Richard

  • Help needed in the Merge Statement

    Hi All,
    I am using MERGE statement in my program. I want to maintain the log for the duplicate reords mean maintain the log for those reocrds which are updated in the merge statement.
    Can any one help me in this that how can i maintain the log?
    Thanks for your help in advance.
    kind Regards,

    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:35615502072484

  • Help needed in implementing RSL in a Application

    Hi ,
    Ours is a  product based Application consisting of  number of HTML Pages  used within the intranet .
    We planned to use RSL to improve its performance , by reducing the size of the swf file .
    My question is :
    Is  providing swf file  to the library path tab  on  to the Flex Builder is sufficient or do we need to do anything extra also ??
    Please share your ideas .

    This article is getting a little old but it should answer your questions about how to configure an RSL.
    http://www.adobe.com/devnet/flex/articles/flash_player_cache.html
    -Darrell

  • Help needed in implementing Cisco Unity SSO using SAML

    Hello,
    I am aware that Cisco Unity 8.x  has a SSO checklist that requires:
    - Cisco Unity
    - MS AD on Win2003/8
    - Open AM
    - Apache Tomcat 7.0
    We already have a single sign-on solution at our organization that uses the Novell Access Manager (NAM). Would we be able to do Federated solution between another SSO product and the OpenAM on the Cisco Unity product. In this architecture all we will do is setup Open AM  as Service Provider (SP) fronting the Cisco Unity Apps and then do a SAML 2.0 protocol with an Identity Provider (IdP)  which would the NAM.
    The idea is that we have single Identity Provider  (IdP). I have a difficult time understanding why setting up SSO for Cisco Unity app requires installing a full suite of OpenAM SSO. I imagine most companies have their SSO solutions that have been implemented using products such as Oracle AM, Tivoli etc and all they would need to do is federate with the Cisco App, instead of of setting up a parallel SSO suite.
    Thanks in advance!

    Instead of registering the plug-in can u try placing it in the plugins folder under Oracle_IDM1/server folder.
    at times restart is required. esp when the server is running in production mode.
    Regards
    user12841694

  • Help needed on implementing a custom control

    Hi
    Am developing a control which resembles like Flash timeline or windows movie maker timeline.
    It will have multiple nodes in vertical aligned and a slider.
    like
    =Node1==================|====
    =Node2==================|====
    =Node3==================|====
    '|' is the vertical slider.
    1) The nodes count is dynamic
    2) The nodes are added to a scrollpane
    3) The control should be resizable in horizontal & vertical
    4) The nodes can be dragged and dropped
    here the problem is the slider should reside top on the nodes and can move horizontally.
    Here glasspane is useless, bcoz we can't do the node drag and drop.
    Please suggest some architecture to implement this.
    Regards,
    bee

    Why are you still creating a custom TableModel? Did you not see the advice to use the DefaultTableModel in your last posting?
    There is absolutely no reason to spend time creating your own custom TableModel. The DefaultTableModel will do everything you need and more.
    You should never invoke the fireXXX of the AbstractTableModel from outside the actual model. This tells me you are not using the proper design.
    I gave you a link to the Swing tutorial in your last posting as well. Have you read the tutorial yet? The easiest solution is to create a text field that limits the number of characters you can enter and then use this text field to create a default cell editor. But if you haven't read the tutorial you won't understand what I'm talking about.

  • Help needed on table view popup

    I have created custom popup(table view) and able to display the data in the same.
    I have created the button(BT108H_LEA/LeadOVViewSet) in the toolbar in lead overview screen in web ui  and when I clicks the button popup is triggering.
    I want to transfer the selected record from popup to products assignment block in the overview.
    Please help me how to transfer the data from popup to products.
    What I did:
    1.     I have created the custom view(popup view) and context node in the component BT108H_LEA.
    2.     Created the new window (pop window)and embed the popup view  in the runtime repository.
    3.     Added in the interface view as pop window.
    4.     Created  Component Usages with the popup window.
    5.     Triggering the popup when the user clicks the button and populating the data in the  popup in DO_PREPARE_OUTPUT method of custom view(popup view).
    6.     Now I want to transfer the data from popup to products assignment block.
    Example: popup data
    item     product
    10     Mat100
    If I select row from the above popup how to fill the data in the below component(view).
    Products assignment block in the lead.
    item     product     qty     UOM     description
    Thanks,
    Venkat

    You would have to use the outbound plugs to transfer data from your component to the other component. Here you have a parameter IV_DATA_COLLECTION. Fill the entries you want to fill here.
    Check the Sold to Party pop up while creating Quotation for Sales cycle when you log in with SALESPRO.
    Regards
    Kavindra
    Edited by: joshi_kavindra on Nov 23, 2011 5:03 PM

  • Help needed to implement R/3 Note Nr. 880132

    Here Note specifies, Befor implement this note we need to carry out some changes to DDIC like below...
    How can I add new field in standard SAP table. Can I include field in the append stricture VBAK4CRM in VBAK table... or I need to create new append structure.
    4. Extend the VBAK database table
    o Check whether the VBAK table is transparent. Insert a new field after the
    CONT_DG field:
    Field name (Field): CRM_GUID
    Data element: CHAR70
    Save the VBAK table and activate it.
    of the CRM_GUID component in the VBAKKOMX structure is CHAR1 and not CHAR70.
    Cany any body guide me to implement note 880132.
    Rayudu

    Hi Rayudu!
    Depending on your release, you have to do some manual changes with transaction SE11. E.g. VBAK has already component CRM_GUID in my release - I don't need this step.
    It's true, there are char1 and char70 fields - don't get mixed up, that's correct.
    Follow the instruction step by step (and you will need access key, don't do appends!) for all four mentioned tables / structures. Search the correct line, push 'insert row', define the name and data element, save, activate (with table conversion).
    Afterwards you can implement the rest of the note.
    Regards,
    Christian

  • Java code help needed for If-elseif statement

    HI All,
    Apologies for posting such a trivial thing but I am a novice in Java.
    All I need is to code an If elseIF statement.
    I tried the code below
    String w = "SAPA";
    String x = "SAPB";
    if (a==w) ;
    {Channel channel = LookupService.getChannel("BS_PROD","CC_RFC_LOOKUP");}
    else if (a==x)
    { Channel channel = LookupService.getChannel("BS_PROD","CC_RFC_LOOKUP_ECQ"); }
    It came back with the error
    Source code has syntax error:  D:/usr/sap/XRD/DVEBMGS02/j2ee/cluster/server0/./temp/classpath_resolver/Map695b77619ad011dd8d0b001a4b52813a/source/com/sap/xi/tf/_MM_TRANSMISSION_CHECK_TO_GENIUS_.java:324: 'else' without 'if' else if (a==x) ^ 1 error
    Appreciate if you could let me know the correct code.
    Many thanks
    Shirin

    HI Aamir,
    After I removed the semi-colon iIt came back with the following error
    Source code has syntax error:  D:/usr/sap/XRD/DVEBMGS02/j2ee/cluster/server0/./temp/classpath_resolver/Map1d9b43e09ad111dd84b7001a4b52813a/source/com/sap/xi/tf/_MM_TRANSMISSION_CHECK_TO_GENIUS_.java:328: cannot resolve symbol symbol : variable channel location: class com.sap.xi.tf._MM_TRANSMISSION_CHECK_TO_GENIUS_ accessor = LookupService.getRfcAccessor(channel); ^ 1 error
    Just for reference my entire Jave UDF looks like this:
    //write your code here
    String w = "SAPA";
    String x = "SAPB";
      String content = "";
    MappingTrace importanttrace;
    importanttrace = container.getTrace() ;
    //Filling the string with our RFC-XML (With Values)
    String m = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><ns0:ZIFMS_GET_NEXT_NUMBER xmlns:ns0=\"urn:sap-com:document:sap:rfc:functions\"><I_NR_RANGE_NR>01</I_NR_RANGE_NR><I_OBJECT>ZIFMS_INT</I_OBJECT></ns0:ZIFMS_GET_NEXT_NUMBER>";
    RfcAccessor accessor = null;
    ByteArrayOutputStream out = null;
    try
    //1. Determine a channel (Business System, Communication channel)
    if (a==w)
    {Channel channel = LookupService.getChannel("BS_PROD","CC_RFC_LOOKUP");}
    else if (a==x)
    { Channel channel = LookupService.getChannel("BS_PROD","CC_RFC_LOOKUP_ECQ"); }
    //2. Get a RFC accesor for a channel.
    accessor = LookupService.getRfcAccessor(channel);
    //3. Create a xml input stream representing the FM request message.
    InputStream inputstream = new ByteArrayInputStream(m.getBytes());
    //4. Create xml Payload
    XmlPayload payload = LookupService.getXmlPayload(inputstream);
    //5. Execute Lookup
    Payload result = accessor.call(payload);
    InputStream in = result.getContent();
    //This are the extra step which i dont know what it mean
    //out = new ByteArrayOutputStream(1024);
    //byte[] buffer = new byte1024;
    //for (int read = in.read(buffer); read > 0; read = in.read(buffer))
    //out.write(buffer,0,read);
    //content = out.toString();
    try {
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = factory.newDocumentBuilder();
    Document document = builder.parse(in);
    NodeList list = document.getElementsByTagName( "E_NUMBER" );
    Node node = list.item(0);
    if (node != null)
    node = node.getFirstChild();
    if (node != null)
    content = node.getNodeValue();
    } catch (Exception e) {
    importanttrace.addWarning("Error while closing accesor" + e.getMessage());
    catch (LookupException e)
    importanttrace.addWarning("Error While lookup" + e.getMessage());
    //This exception is not to be catch at this step as there is no try step before this
    //catch (IOException e)
    //importanttrace.addWarning("Error" + e.getMessage());
    finally
    if(out!=null)
    try{
    out.close();
    } catch (IOException e) {
    importanttrace.addWarning("Error while closing system" + e.getMessage());
    //7. close the accessor in order to free resources
    if (accessor!=null) {
    try{
    accessor.close();
    } catch (Exception e) {
    importanttrace.addWarning("Error while closing accesor" + e.getMessage());
    return content;

  • Help needed in implementing validation event handler in OIM 11g

    Hello experts,
    I am trying to set username policy by implementing a validation event handler in OIM 11.1.1.5.
    Following are the steps followed
    1. Import metadata
    Created a file called Eventhandler.xml as below and imported using weblogicImportmetadata.sh
    <?xml version='1.0' encoding='UTF-8'?>
    <eventhandlers xmlns="http://www.oracle.com/schema/oim/platform/kernel" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.oracle.com/schema/oim/platform/kernel orchestration-handlers.xsd">
    <validation-handler class="test.iam.eventhandlers.CustomValidationEventHandler" entity-type="User" operation="CREATE" name="CustomValidationEventHandler" order="1000" sync="TRUE"/>
    </eventhandlers>
    2. Register plugin
    plugin.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <oimplugins xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <plugins pluginpoint="oracle.iam.platform.kernel.spi.ValidationHandler">
    <plugin pluginclass="test.iam.eventhandlers.CustomValidationEventHandler" version="1.0" name="CustomValidationEventHandler" />
    </plugins>
    </oimplugins>
    Just givng sys out in the below code to check whther it is getting triggerred during user create.
    package test.iam.eventhandlers;
    import java.util.HashMap;
    import oracle.iam.platform.Platform;
    import oracle.iam.platform.context.ContextAware;
    import oracle.iam.platform.kernel.ValidationException;
    import oracle.iam.platform.kernel.ValidationFailedException;
    import oracle.iam.platform.kernel.spi.ValidationHandler;
    import oracle.iam.platform.kernel.vo.BulkEventResult;
    import oracle.iam.platform.kernel.vo.BulkOrchestration;
    import oracle.iam.platform.kernel.vo.Orchestration;
    public class CustomValidationEventHandler implements ValidationHandler {
         @Override
         public void initialize(HashMap<String, String> arg0) {
         // TODO initialization
              System.out.println("init validate event handler");
         @Override
         public void validate(long processId, long eventId, Orchestration orchestration)
         throws ValidationException, ValidationFailedException {
              System.out.println("Beginning of validation");
              System.out.println("End of validation");
         @Override
         public void validate(long processId, long eventId, BulkOrchestration arg2)
         throws ValidationException, ValidationFailedException {
         // TODO - N/A
              System.out.println("Bulk Orchestration not yet implemented");     
    Now when i create a user it is not allowing and i am getting system error in the front end and in the logs i could see something below
    <May 28, 2012 3:03:29 PM CEST> <Error> <oracle.iam.identity.usermgmt.impl> <IAM-3050029> <The user cannot be created due to validation errors.
    oracle.iam.platform.kernel.ValidationFailedException: Event handler CustomValidationEventHandler implemented using class/plug-test.iam.eventhandlers.CustomValidationEventHandler could not be loaded.
    at oracle.iam.platform.kernel.impl.OrchProcessData.runValidationEvents(OrchProcessData.java:177)
    at oracle.iam.platform.kernel.impl.OrchestrationEngineImpl.validate(OrchestrationEngineImpl.java:644)
    at oracle.iam.platform.kernel.impl.OrchestrationEngineImpl.process(OrchestrationEngineImpl.java:497)
    at oracle.iam.platform.kernel.impl.OrchestrationEngineImpl.orchestrate(OrchestrationEngineImpl.java:444)
    at oracle.iam.platform.kernel.impl.OrchestrationEngineImpl.orchestrate(OrchestrationEngineImpl.java:378)
    at oracle.iam.identity.usermgmt.impl.UserManagerImpl.create(UserManagerImpl.java:656)
    at oracle.iam.identity.usermgmt.api.UserManagerEJB.createx(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    I have implemented preprocess and postprocess event handler before with similar kind of plugin registration, metadata import and everything worked fine. Not sure what is the problem here with validation event handler.
    Thanks
    DK

    Instead of registering the plug-in can u try placing it in the plugins folder under Oracle_IDM1/server folder.
    at times restart is required. esp when the server is running in production mode.
    Regards
    user12841694

  • Help Needed to write select statement

    I have a table whose rows like this:
    slno name testno
    1 reni 1
    2 arun 2
    3 jithu 3
    4 rajesh 4
    5 shiju 1
    6 Thomas 1
    7 Thomas 2
    8 Thomas 3
    9 Thomas 4
    many rows like above.I want to select names who have attended all the test that is testno 1,2,3,4
    Looking forward to help from u

    Many ppl have given you solutions and suggestions. Did you try those?
    Anyway, check whether this helps or not?
    SQL> create table t as
      2  select 1 slno,'reni' name, 1 testno from dual union all
      3  select 2,'arun',2  from dual union all
      4  select 3,'jithu',3 from dual union all
      5  select 4,'rajesh',4 from dual union all
      6  select 5,'shiju',1 from dual union all
      7  select 6,'Thomas',1 from dual union all
      8  select 7,'Thomas',2 from dual union all
      9  select 8,'Thomas',3 from dual union all
    10  select 9,'Thomas',4 from dual ;
    Table created.
    SQL> select * from t
      2  where name in
      3          (select name from t
      4          group by name
      5          having sum(decode(testno,1,1,2,1,3,1,4,1,0))=4);
          SLNO NAME       TESTNO
             6 Thomas          1
             7 Thomas          2
             8 Thomas          3
             9 Thomas          4
    SQL> select slno,name,testno
      2  from
      3  (select slno,name,testno,count(1) over(partition by name) cnt from t)
      4  where cnt =4;
          SLNO NAME       TESTNO
             9 Thomas          4
             6 Thomas          1
             7 Thomas          2
             8 Thomas          3
    SQL>

  • Image swap code and flex -- HELP NEEDED

    Hello Folks,
    I am still new at programming and having a major issue and wondered if anyone know a simple way to do a photogallery by using some code to create an image swap
    Thumbnail ( here )                                             Large image here
    Next Thumbnail (here )                                      Large Image changes
    Next Thumbnail (here )                                      Large Image changes
    Someone suggested I use PHP to load all the images at once but it was over my head... any one got some simple explained solutions... Really trying to learn this...
    Thanks

    Hi 123tron,
    For these type of requests you should post a cookbook recipe request to Adobe's cookbook site: http://cookbooks.adobe.com/flex
    Good luck!

Maybe you are looking for

  • Can't log in with ethernet cable plugged in

    I have a whole department that has the same basic image and exact same workstations as other departments but solely has issues logging into their computers after a restart or shutdown. To log back in, they need to unplug their ethernet cables. Otherw

  • Rx-1050-td128e s-video or not, adapter? pin-out?

    Hi Opened my new rx-1050 the tv-out isnt a s-video connector. It is a 8 pin connector. I doubt it is S-video, even though it is named that on the home page? Can i get the pin-out to it? Can i get a reseller to cable-adapter suitable to it? Partno? No

  • Problem SOAP Receiver in PI 7.1 (multiRef elements)

    Hello, I need help on this problem. My need to consume a webservice interface, which has a reference XML response. SAP PI returns me only the reference. I need all the data content. *Original message consumed SOAP UI.* I need this data. from already

  • DV8 1090ev - connecting camcorder to firewire port - nothing happens

    I'm trying to capture video to the hard disc by connecting my canon dv20 camcorder to the notebook using the ieee1394 port, but when I switch on the camera, nothing happens. I can't see it in the device manager. I replaced the cable already to no ava

  • DNS Fails for NFS Server Shares

    When I boot, I get a message that DNS has failed for the NFS server mounts, and the shares do not mount. The message says, "mount.nfs: DNS resolution failed for server: name or service unknown." I have to mount the shares myself. Then when rebooting,