How to achieve modularize in flex using cairngorm framework?

Hi,
I have seen many articles on flex and cairngorm but haven't found enough information on how to achieve modularization in flex using cairngorm framework.
Please let me know any information regarding this.
Thanks in advance.
Vishnu

Hi Sumit,
I am also working similar kind of requirement. In my case I tried to add new tab subtab using personalization , how ever the add new item button is not enable.
So I created new stacklayout and tried to add this to new tab in the existing subtablayout by using co process form request code:
public void processRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
super.processRequest(oapagecontext, oawebbean);
OracleCallableStatement oraclecallablestatement = null;
OracleConnection oracleconnection = (OracleConnection)oapagecontext.getApplicationModule(oawebbean).getOADBTransaction().getJdbcConnection();
try{
oracleconnection.setAutoCommit(true);
oraclecallablestatement = (OracleCallableStatement)oracleconnection.prepareCall("begin GLO_TMPVIJ_PRCV(:1); end;");
oraclecallablestatement.setString(1,"In the custom co process request");
oraclecallablestatement.execute();
}catch(SQLException sqlexception)
throw OAException.wrapperException(sqlexception);
OASubTabLayoutBean subTabLayout =
(OASubTabLayoutBean)oawebbean.findChildRecursive("ApplicationDetsTabLayout");
OASubTabBarBean subtabbar = (OASubTabBarBean)oawebbean.findIndexedChildRecursive("subTabBar");
OALinkBean link = (OALinkBean)oapagecontext.getWebBeanFactory().createWebBean(oapagecontext,
OAWebBeanConstants.LINK_BEAN, null,
"link");
OAStackLayoutBean commentsRN =
(OAStackLayoutBean)oapagecontext.getWebBeanFactory().createWebBean(oapagecontext,
"/xxhr/oracle/apps/irc/candidateManagement/webui/CommentsRn",
"CommentsRn", // always specify name
true); // region created in Oracle9i JDeveloper OA Extension
subTabLayout.addIndexedChild(commentsRN);
subTabLayout.addIndexedChild(link);
in this I am not ale to add the new tab.
Regards,
Vijay Reddy.

Similar Messages

  • How to achieve parent-child relationship using self join?

    my table structure is as follows
    parent child name
    -1     1     A1
    1     2     A2
    1     3     A3
    how to achieve the hierarchy model using self join. this can be easily achieved using "connect by prior". but how to achieve the same using self join?

    Hi,
    Yes, that's definitely possible. If you only need to display two levels from the hierarchy, a self-join is a good option. Make it an outer join if you need to show everyone on one level, regardless of whether they have a match on the other level or not; for example, if you want the output:
    child_name     child_id     parent_name     parent_id
    A1          1
    A2          2          A1          1
    A3          3          A1          1It's good that you posted some sample data. Now post the results you want from that data, and your query (what you think is the best attempt you've made so far). If you haven't tried anything so far, then look at some other simple self-join to get ideas.

  • How to achieve multiple hirearcy structure using RBS feature in Project server 2013

    HI,
    How can we achieve multiple hirearcy structure using RBS feature in Project server 2013?
    The below is the screen shot of hirearcy.
    GM
    DGM
    AGM
    CM
    Officers
    There are different departments and one AM may handle 4 or more department. How to achieve this permission levels so that GM can see all departments officers created project, same with other levels
    Thanks,
    Sunitha

    Hi Sunitha,
    You could populate the RBS lookup table with 2 levels (department and sub department). Then configuring correctly your
    security categories based on the RBS, the resources in the 1st level (departments) will see projects from all theirs sub departments.
    Some more references:
    http://aboutmsproject.com/project-server-securitypart-1/
    http://ntrajkovski.com/2012/06/04/the-rbs-lookup-table-in-ms-project-server-2010/
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • How to add link in subtabLayout using OA Framework page personlization

    Hi,
    how to add new link in subTabLayout using OA Framework page personalization.

    Hi Sumit,
    I am also working similar kind of requirement. In my case I tried to add new tab subtab using personalization , how ever the add new item button is not enable.
    So I created new stacklayout and tried to add this to new tab in the existing subtablayout by using co process form request code:
    public void processRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
    super.processRequest(oapagecontext, oawebbean);
    OracleCallableStatement oraclecallablestatement = null;
    OracleConnection oracleconnection = (OracleConnection)oapagecontext.getApplicationModule(oawebbean).getOADBTransaction().getJdbcConnection();
    try{
    oracleconnection.setAutoCommit(true);
    oraclecallablestatement = (OracleCallableStatement)oracleconnection.prepareCall("begin GLO_TMPVIJ_PRCV(:1); end;");
    oraclecallablestatement.setString(1,"In the custom co process request");
    oraclecallablestatement.execute();
    }catch(SQLException sqlexception)
    throw OAException.wrapperException(sqlexception);
    OASubTabLayoutBean subTabLayout =
    (OASubTabLayoutBean)oawebbean.findChildRecursive("ApplicationDetsTabLayout");
    OASubTabBarBean subtabbar = (OASubTabBarBean)oawebbean.findIndexedChildRecursive("subTabBar");
    OALinkBean link = (OALinkBean)oapagecontext.getWebBeanFactory().createWebBean(oapagecontext,
    OAWebBeanConstants.LINK_BEAN, null,
    "link");
    OAStackLayoutBean commentsRN =
    (OAStackLayoutBean)oapagecontext.getWebBeanFactory().createWebBean(oapagecontext,
    "/xxhr/oracle/apps/irc/candidateManagement/webui/CommentsRn",
    "CommentsRn", // always specify name
    true); // region created in Oracle9i JDeveloper OA Extension
    subTabLayout.addIndexedChild(commentsRN);
    subTabLayout.addIndexedChild(link);
    in this I am not ale to add the new tab.
    Regards,
    Vijay Reddy.

  • How to make a view created using enhancement framework as Interface View

    Dear Experts.
    I Created A  new View and window  by using Enhancement Framework for a standard webdynpro comp. Now i want to use the same window as a  UIBB in FPM , since in window properties interface view check box is unchecked it's not allowing me to use a UIBB in FPM.
    Kindly answer for the following.
    1) Is there any way to make a view a interface ( whcih is by default in nature but while creating from Enhancement framework behaivng Strangly).
    2) If there is no way then how to use enhanced (additional View Created  in Standard WDA comp) further like in FPM ( UIBB ).
    thanks in Advance.
    Best Regards,
    Kranthikumar Palle

    >
    kranthi9121 wrote:
    > Dear Experts.
    >
    > I Created A  new View and window  by using Enhancement Framework for a standard webdynpro comp. Now i want to use the same window as a  UIBB in FPM , since in window properties interface view check box is unchecked it's not allowing me to use a UIBB in FPM.
    >
    > Kindly answer for the following.
    >
    > 1) Is there any way to make a view a interface ( whcih is by default in nature but while creating from Enhancement framework behaivng Strangly).
    >
    > 2) If there is no way then how to use enhanced (additional View Created  in Standard WDA comp) further like in FPM ( UIBB ).
    >
    >
    > thanks in Advance.
    >
    > Best Regards,
    > Kranthikumar Palle
    Hi,
    Please see [https://cw.sdn.sap.com/cw/docs/DOC-21546|https://cw.sdn.sap.com/cw/docs/DOC-21546]
    windows created through enhancement are local to component and hence they are not visible outside.
    You need to find other way to provide your interface view to UIBB.

  • How to use cairngorm framework in flex 4?

    Hi Everyone!
    Right now i am working with Flex 3.5 sdk using cairgorm architecture. Now i want to move to Flex 4 sdk with cairgorm architecture. I tried to use the cairngorm architecture in flex 4 sdk. But i did not get the output.
         Please anyone let me know how to use the cairngorm artchitecture in flex 4 sdk.
    Thanks in advance.!

    Read about Presentation Model. Refactor towards that and you should fine.
    C

  • Failover - How to achieve a transparent failover using SQLPlus

    AIX 5.3 Oracle Clusterware 10.2.0.4.0 Oracle Enterprise Edition 10.2.0.4.0
    This is the behavior I see from an Oracle Client session which is to be expected if I read RAC: Frequently Asked Questions [ID 220970.1] see below
    (1) SQLPlus session connected to NodeA
    (2) NodeA - Clusterware services stopped
    (3) NodeA-vip has failed over to Node B
    (4) SQLPlus session receives an error
    (5) SQLPlus establish new connection to NodeA-vip
    My question is how is a transparent SQLPLus session failover achieved as illustrated in [ID 339107.1] see below
    *** Dedicated Connections to a Migrated VIP Can Lose their Connection after the VIP is Switched Back [ID 339107.1] ***
    SQL> select instance_name from v$instance;
    INSTANCE_NAME
    rac11g1
    $ crsctl stop crs
    SQL> /
    INSTANCE_NAME
    rac11g2
    RAC: Frequently Asked Questions [ID 220970.1]
    *** Why do we have a Virtual IP (VIP) in Oracle RAC 10g or 11g? Why does it just return a dead connection when its primary node fails? ***
    The goal is application availability.
    When a node fails, the VIP associated with it is automatically failed over to some other node. When this occurs, the following things happen.
    (1) VIP detects public network failure which generates a FAN event.
    (2) the new node re-arps the world indicating a new MAC address for the IP.
    (3) connected clients subscribing to FAN immediately receive ORA-3113 error or equivalent. Those not subscribing to FAN will eventually time out.
    (4) New connection requests rapidly traverse the tnsnames.ora address list skipping over the dead nodes, instead of having to wait on TCP-IP timeouts
    Without using VIPs or FAN, clients connected to a node that died will often wait for a TCP timeout period (which can be up to 10 min) before getting an error.
    As a result, you don't really have a good HA solution without using VIPs and FAN. The easiest way to use FAN is to use an integrated client with Fast Connection Failover (FCF) such as JDBC, OCI, or ODP.NET.
    *** What do the VIP resources do once they detect a node has failed/gone down? Are the VIPs automatically acquired, and published, or is manual intervention required? Are VIPs mandatory? ***
    With Oracle RAC 10g or higher, each node requires a VIP. With Oracle RAC 11g Release 2, 3 additional SCAN vips are required for the cluster. When a node fails, the VIP associated with the failed node is automatically failed over to one of the other nodes in the cluster. When this occurs, two things happen:
    1. The new node re-arps the world indicating a new MAC address for this IP address. For directly connected clients, this usually causes them to see errors on their connections to the old address;
    2. Subsequent packets sent to the VIP go to the new node, which will send error RST packets back to the clients. This results in the clients getting errors immediately.
    In the case of existing SQL conenctions, errors will typically be in the form of ORA-3113 errors, while a new connection using an address list will select the next entry in the list. Without using VIPs, clients connected to a node that died will often wait for a TCP/IP timeout period before getting an error. This can be as long as 10 minutes or more. As a result, you don't really have a good HA solution without using VIPs.
    With Oracle RAC 11g Release 2, you can delegate the management of the VIPs to the cluster. If you do this, the Grid Naming Service (part of the Oracle Clusterware) will automatically allocated and manage all VIPs in the cluster. This requires a DHCP service on the public network.
    Thank you
    Steve

    Answer = Follow MetaLink 377100.1

  • How to create SDA file for using AXIS Framework in the SOAP Adapter

    Hi experts,
    I have the following question:
    How I can create the SDA file aii_af_axisprovider.sda for using the AXIS Framework in the SOAP Adpater described in http://help.sap.com/saphelp_nw04/helpdata/en/45/a4f8bbdfdc0d36e10000000a114a6b/content.htm ?
    I have downloaded the files axis.jar, commons-discovery-0.2.jar, commons-logging-1.0.4.jar, commons-net-1.0.0-dev.jar and wsdl4j-1.5.1.jar. But how to create the SDA file aii_af_axisprovider.sda? Which tool I have to use for this? It is enough to compress these 5 jar-files in the sda file or need I further files with further information (meta information etc.)?
    Thanks and best regards
    Christopher

    Hi Christopher,
        Check this discussion if you have not checked already.
    Re: NTLM Authentication dosent work with XI ?
    Regards,
    Ravi

  • How to stop the IDOC adapter using IDPI framework (APIs)?

    Hi Guys,
    We have a requirement to start/stop the communication channels depending on the Integration scenarios. But for IDOC and HTTP we dont have any sender channels.
    Plz let me how can we stop the adapter ,so that no more IDOCs are received .
    We are looking for some API (IDPI framework) if available.
    Locking the RFC users is not an acceptable soln here.
    Hope to get some info soon.
    Regards
    Dhanya

    Hi Dhanya,
    there is a way on PI side alone
    for IDOC 2 steps needed:
    1st: Determine all the IDoc metadata that is involved in your communication in IDX2 (basically all idoc types that the sending system sends) then deleted it all
    2nd: Determine the IDoc port of the sending system in IDX1 (it should be an RFC destination pointing to the sending system) then Disable or delete that port
    On runtime a validation of the loaded idoc metadata happens on PI and the sending side (experienced this on ERP6 & ERP5, not sure on lower versions >4.5), if the sending system determines that there is an inconsistency between its idoc structure against the idoc structure loaded in PI the idoc will be stuck in trfc queue (SM58) having error something like table EDI*** conflicts.  In our case when you disable the IDoc port in IDX1 and there is no idoc metadata in IDX2 when the sending system tries to send idoc PI will try to fetch the idoc metadata but it won't be successful because the IDX1 port is disabled already.
    for HTTP, you can try to disable service  /sap/xi/adapter_plain   in SICF  but please consider the resending of the message should be handled also on the sending side.
    hope this helps

  • How to View Crystal 9 reports using SEAM framework

    Experts,
    I was wondering if there is a tutorial or posts anywhere that would help me, or at least point me in the right direction, to some development ideas on viewing Crystal 9 reports using a SEAM framework.  Any help would be much appreciated.  Thanks.

    Not aware of anything. This is actually the first time I hear of SEAM framework (call me ignorant).
    I suspect posting to the SEAM forum may be an idea. I searched there, but did not find anything at all. Also, reading a bit on SEAM, try to post your query to the Java Development - Crystal Reports forum:
    SAP Crystal Reports, version for Eclipse
    Perhaps they may have something for you to start on.
    CR 9 has been out of support for 3+ years, so no fixes. If you use a supported version of CR, then fixes would only be done if the issue can be reproduced on a supported platform.
    Ludek

  • New Flex WebSite in Cairngorm Framework

    Hello All,
    I am a newbie to flex. Somehow i learnt flex technology, Cairngorm Framework and ActionSript 3.0. Now i am planning to start flex website.
    My architecture,
    FLEX[CairnGorm] --> .NET WEB-SERVICES --> MY-SQL 5.0
    Now, i had the project set up. My only doubt is, what to use for the flex pages, Module or States or Componets ?????
    I know the advantages and disadvantages of each.But i appreciate if any expert guides me ....
    Also hwo to change the states of pages in Cairngorm framework..is this done in commad where we vhave the actual business process and get the results
    from the web service ?
    Please guide me...
    Regards,
    Ravie

    WebOrb allows you to use AMF with .NET. You don't have to stick to web services / XML:
    http://www.themidnightcoders.com/products/weborb-for-net/developer-den/technical-articles/ introduction-to-flex-and-net-integration.html
    Concerning Modules, States and Components, you must be confused. They are not of the same nature.
    - Modules are to break down an application into smaller chunks you can download as needed.
    - Components are reusable (usually visual) classes that you can instantiate in MXML or ActionScript and that can themselves be written in MXML or ActionScript
    - States represent the states of a given component
    You can use all of these in a single project.
    In addition, use the history manager and URL fragments for deep linking so users can bookmark you can link directly to a given section of your Flex website.
    >>> Also, how do you change the state of pages with the Cairngorm framework ? Is it done in commands where we have the actual business process and get the results from the web service ?
    You can use the presentation model pattern. The view state and view logic of each view are located in a corresponding presentation model. When a command calls a service and gets a result, it modifies the application model the presentation model binds to, thereby triggering a change of state in the UI trough data binding.
    The view binds to the PM. The PM binds to the application object model. The command updates the latter. Via data binding, both the PM and the view are updated. For example, the view state that is maintained in a PM can correspond to an actual state in the view defined in the <mx:states> tag:
    http://blogs.adobe.com/tomsugden/parsley/

  • How to Play a sample sound using Java

    Hi,
    I have an mp3 music files in database. When a user chooses a particular button, all the songs are fetched from the database.
    I have two buttons namely, 'Buy' and 'Play Sample'. If I click the 'Play Sample' button, a sample of the song has to be played (not the full song). If the user likes the sample, he can buy the full song.
    My question is how to achieve the 'Play Sample' using Java Swings and Sound. I have googled, but not find any solutions. Please provide me an example or link.
    Thanks in advance.

    HI
    Actually i am trying to create a JFrame which plays an mp3 music file
    with the help of play and stop buttons in it ...
    i splitted the frame into two
    i want a music file list in the first frame (JComboBox)
    and want to have play and stop button in the second frame .
    i had tried out some code in which the frame part is fine ,,,
    but i am not knowing how to play the file with those buttons ...
    here is the code and plz help me to move further ...
    import javax.swing.JButton;
    import javax.swing.JComboBox;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JSplitPane;
    public class AudioFile extends JFrame {
        public AudioFile() {
            setTitle("Music File");
            setSize(300, 400);
            JPanel jp1 = new JPanel();
            JPanel jp2 = new JPanel();
            JButton s= new JButton("STOP");
            JButton p= new JButton("PLAY");
            JLabel j1 = new JLabel("MusicFile");
            String[] musicfiles={"file:///home/swathi/Desktop/spot3.mp3","anitha.mp3"};
            JComboBox musiclist=new JComboBox(musicfiles);
            musiclist.setSelectedIndex(1);
            jp1.add(j1);
            jp1.add(musiclist);
            jp2.add(s);
            jp2.add(p);
            JSplitPane splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT,
                    true, jp1, jp2);
            splitPane.setOneTouchExpandable(true);
            getContentPane().add(splitPane);
        public static void main(String[] args) {
          AudioFile sp = new AudioFile();
            sp.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            sp.setVisible(true);
    }

  • Record Voice in Flex Using Red5

    Can any1 post me the code for recording voice in flex using
    red5 or else brief me the procedure how to record voice in flex
    using red5.....

    I think a Flash media Server could handle this.
    http://www.adobe.com/products/flashmediaserver/
    Flex does have controls for Microphone and Video capture, but
    it doesn't have any way of handling/storing that data without a
    media server as far as I know.
    Maybe someone has an alternative solution.

  • Connect Mysql in Flex Using VB

    Hai All,
        Could any one tell me how to connect Mysql in flex using vb. I tried, but i am getting the below error.How to import mysql class.
    Compiler Error Message: BC30002: Type  'MySql.Data.MySqlClient.MySqlConnection' is not defined.
    Source  Error:
    Line 5: 
    Line 6:  Public Class Database
    Line 7:      Public DBConnection As MySql.Data.MySqlClient.MySqlConnection
    Line 8: 
    Line 9:      Public Function DBNAME() As String
    And i want to convert the text to voice, how to do this?? Any idea .. please help me
    Thanks and Regards,
    Arun Kumar

    System.err.println("Exception: " + e.getMessage());You should do something more useful instead, like e.printStackTrace(). THe message of an exception doesn't always say very much.
    You are probably getting a "class not found exception" signaling that the class com.mysql.jdbc.Driver cannot be found --- you need to somehow make JCreator aware of the JDBC driver.

  • Self Reference Model Class - How to populate using Entity Framework

    Hi,i have table in SQL Server named Employees as follows:
    EmployeeId lastName FirstName reportsTo
    1 Davolio Nancy 2
    2 Fuller Andrew NULL
    3 Leverling Janet 2
    4 Peacock Margaret 2
    5 Buchanan Steven 2
    6 Suyama Michael 5
    7 King Robert 5
    8 Callahan Laura 2
    9 Dodsworth Anne 5
    I would like to use Entity Framework to populate my Model Class .My model class looks as follows:
    public class Employees
        readonly List<Employees> _children = new List<Employees>();
        public IList<Employees> Children
            get { return _children; }
        public string FirstName { get; set; }
        public string LastName {get; set;}
    I want to use this class in ViewModel  to populate my TreeView control. Can anyone help me in order to define Linq to Entities in order to populate my model class Employees from table in SQL Server as defined. Thanks in advance.
    Almir

    Hello Fred,
    unfortunately it does not work, maybe I can be more specific about what I'm trying to get. I'm following Josh Smith's article on CodeProject related to WFP TreeView
    Josh Smith article. He has Class named Person with the following structure
    public class Person
    readonly List<Person> _children = new List<Person>();
    public List<Person> Children
    get
    return _children;
    public string Name { get; set; }
    The same is populated from Database class using method named GetFamilyTree() which look as follows:
    public static Person GetFamilyTree()
    // In a real app this method would access a database.
    return new Person
    Name = "David Weatherbeam",
    Children =
    new Person
    Name="Alberto Weatherbeam",
    Children=
    new Person
    Name="Zena Hairmonger",
    Children=
    new Person
    Name="Sarah Applifunk",
    new Person
    Name="Jenny van Machoqueen",
    Children=
    new Person
    Name="Nick van Machoqueen",
    new Person
    Name="Matilda Porcupinicus",
    new Person
    Name="Bronco van Machoqueen",
    new Person
    Name="Komrade Winkleford",
    Children=
    new Person
    Name="Maurice Winkleford",
    Children=
    new Person
    Name="Divinity W. Llamafoot",
    new Person
    Name="Komrade Winkleford, Jr.",
    Children=
    new Person
    Name="Saratoga Z. Crankentoe",
    new Person
    Name="Excaliber Winkleford",
    I'm trying to figure out how should I write
    GetFamilyTree() method using Entity Framework in order to connect to my SQL Server database and populate this Person class as it was populated manually in Joshs Example. The table I'm using in SQL Server is described in
    my first post named Employees (it's self reference table)

Maybe you are looking for

  • Exception occurs only the first time

    The server listens on a port to which client connects in applet mode. Every time client connects to server for the first time (i.e. after a fresh server installation), the client pops an exception: java.io.InvalidClassException: javax.swing.ImageIcon

  • Cutaways and Effects in FCPX

    I am trying to place a cutaway above the main video, and have that cutaway show full screen for a few seconds then move to a picture in picture in the corner. I can accomplish all of this easily,  except I want the cutaway to have a fadeout at the en

  • Inject EJB using @EJB in Servlet Filter on Weblogic 11g

    Hi All, I want to inject the EJB (Local interface) into the Servlet Filter and the EAR is deployed on Weblogic 11g. My question is: Shall the @EJB Annotation work on Weblogic 11g or it will be ignored in case of Servlet or Servlet Filter? OR I have t

  • Gr based iv no flag

    Dear Forum, If in po, there is NO gr based iv being flagged, 1) after GR, when I do IR, even either quantity or price difference, system will post to price difference but no block as gr based iv not ticked? 2) no GR made yet when I do IR, system will

  • Connections to database

    I have problems with database connections. Cursors are being kept open. I think I have closed all RowSetIterators. Does anyone have som suggestion on solution. It looks like the RowSetIterators used in JSP page are kept open. I am using ADF.