Fscommand and flex objects

soooo fscommand is not working and having little experience
with it, i need to guidence.
<mx:Application creationComplete="init()"/>
<mx:Script>
<![CDATA[
import mx.*; //just being lazy here. not actually what i
have.
public function init():void
main_panel();
private function main_panel():void
var pl:Panel = new Panel();
pl.x = 100;
pl.y = 100;
pl.width = 300;
pl.height = 500;
var bt:Button = new Button();
bt.addEventListener(MouseEvent.CLICK, clickHandler);
pl.addChild(bt);
this.addChild(pl);
//remove eventlistener!
private function clickHandler():void
fscommand("fullscreen", "true");
]>
</mx:Script>

oh, so it's clear I'm trying to scale the panel to
fullscreen, not the button. the button is just the
eventlistener

Similar Messages

  • Performance and Sprite objects

    I've written an application in Flex 2 that consists of
    several accordions containing custom canvas objects, and it is
    having performance problems.
    I'm running the application within IE 6.0 under Windows 2000.
    The application loads an XML file and uses the data to create
    custom Sprite objects in the canvases. Each Sprite consists of two
    swf images that are loaded using the Loader class, a small
    rectangle created by using the Sprite graphics property, and a text
    label. In addition, each Sprite is connected to one or more other
    Sprites by a line drawn using the Sprite's graphics property. The
    Sprites have the capability for being dragged, and for being
    highlighted when clicked.
    My problem is performance; these Sprites perform slower than
    a similiar program that I wrote in ActionScript 2.0. From what I
    understand, Flex 2.0, ActionScript 3.0, Flash 9, and the new Sprite
    class are supposed to deliver greatly improved performance, but my
    new application seems worse than the old one under Flash 7 using
    MovieClips. The more Sprites on the screen, the worse the
    performance, and the lines seem to contribute to the degradation.
    There is way too much code involved to include in this
    message, so I'm looking for general info. Is there some basic point
    I am missing?
    The performance is also degraded when triggering instances of
    the Menu and Popup classes. When running the Task Manager during
    the application, I've noticed that both Memory Usage and GDI
    objects increase whenever I display a Menu or Popup. Both Memory
    Usage and GDI objects go up and down, but there is a steady
    increase in both metrics as I continue to use Menus and Popups. As
    far as I can tell, I am disposing of both types of objects
    properly, but it appears that their allocation is remaining in
    memory.

    I've written an application in Flex 2 that consists of
    several accordions containing custom canvas objects, and it is
    having performance problems.
    I'm running the application within IE 6.0 under Windows 2000.
    The application loads an XML file and uses the data to create
    custom Sprite objects in the canvases. Each Sprite consists of two
    swf images that are loaded using the Loader class, a small
    rectangle created by using the Sprite graphics property, and a text
    label. In addition, each Sprite is connected to one or more other
    Sprites by a line drawn using the Sprite's graphics property. The
    Sprites have the capability for being dragged, and for being
    highlighted when clicked.
    My problem is performance; these Sprites perform slower than
    a similiar program that I wrote in ActionScript 2.0. From what I
    understand, Flex 2.0, ActionScript 3.0, Flash 9, and the new Sprite
    class are supposed to deliver greatly improved performance, but my
    new application seems worse than the old one under Flash 7 using
    MovieClips. The more Sprites on the screen, the worse the
    performance, and the lines seem to contribute to the degradation.
    There is way too much code involved to include in this
    message, so I'm looking for general info. Is there some basic point
    I am missing?
    The performance is also degraded when triggering instances of
    the Menu and Popup classes. When running the Task Manager during
    the application, I've noticed that both Memory Usage and GDI
    objects increase whenever I display a Menu or Popup. Both Memory
    Usage and GDI objects go up and down, but there is a steady
    increase in both metrics as I continue to use Menus and Popups. As
    far as I can tell, I am disposing of both types of objects
    properly, but it appears that their allocation is remaining in
    memory.

  • Data from SOAP response not getting into Flex object

    I'm trying to get data from an ALM application we use(Collabnet TeamForge) using a SOAP webservice, and am running into a problem.  I should mention that I am new to both Flex, and webservices.
    I used the "Import Web Services" option in Flex Builder 3, and had it generate code for all operations in the WSDL.  Some of them work just fine.  However, there are several where the data from the SOAP response does not get into the Flex object. The senario that doesn't work is when the response contains a data type that extends another datatype.  In TeamForge, they have a type called TrackerSoapRow.  It extends FolderSoapRow, adding 3 fields.  The problem seems to be that in the response from TeamForge, the 3 fields defined in TrackerSoapRow are in the middle of the fields defined in FolderSoapRow.  I've debugged into it, and the problem occures in mx.rpc.xml.XMLDecoder.getApplicableValues( starting at line 2204 of XMLDecoded.as).  As I read the code, the only way a match can be found is if the fields in the response are in the exact same order as in the definintion.  When its processing the extended data type(  by a call to XMLDecoder.decodeComplexExtension ) at some point, one of the derived type's fields is encountered, and the process stops.
    I have called the service using soapui and verified that all the data I expect is in the response.
    As I mentioned, I'm new to web services.  So, I suppose its possible that the format of the data being returned from TeamForge is incorrect.  That they are not supposed to intermingle base and derived fields.  If thats the case, then I need to report this as a bug to Collabnet.
    All help is appreciated.
    Marc Robertson

    Not knowing any of the details about how you call a web service from OAF myself - I'd suggest you post on the proper forum for OA Framework questions: {forum:id=210}
    John

  • Same fonts used in Flash and FLEX are different

    Fonts used in Flash and Flex differs in appearance even though they are same. It lacks the anti alias property and shows pixelated in flex even if it appears normal in flash. Please see attachment.

    There can be several reasons for that.  First make sure the font is embedded properly.  Rotate the object and see how it looks.  It is also possible that in Flex the fonts are being captured as a bitmap which can turn off AA at times.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • Passing a Flex object to CFC

    I have no problem passing a query object to my Flex app and
    use it to populate a datagrid (arraycollection).... however, I want
    to use this same data to update the database when the user clicks
    on save, and instead of looping through each row (calling my
    remoteobject each time) is there a way I can format this
    information into an array, array collection or some other form of
    flex object and pass ti back to another cfc function to do the
    update?????
    I've read elsewhere that its possible to do with a
    remoteobject, however, my attempts were futile and I cannot find an
    example anywhere.
    I cant find a solution anywhere so and help would be
    appreciated.

    Here is a simple example I just wrote real quick. This is how
    I normally go about passing something an array of items to
    Coldfusion. Hope this helps.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Script>
    <![CDATA[
    import mx.controls.Alert;
    import mx.managers.CursorManager;
    import mx.rpc.events.ResultEvent;
    import mx.rpc.events.FaultEvent;
    [Bindable] private var apples:Array = new Array(
    {name:"Normal Apple", color:"Red"},
    {name:"Sweet Apple", color:"Ged"},
    {name:"Rotten Apple", color:"Brown"});
    private function createApples():void {
    AppleManager.Create_Apples(apples);
    private function createApplesResult(event:ResultEvent):void
    Alert.show("You have successfully added some apples into our
    system.", "System Notice");
    ]]>
    </mx:Script>
    <mx:RemoteObject
    id="AppleManager"
    destination="ColdFusion"
    source="cfc.AppleManager"
    endpoint="Your endpoint here"
    showBusyCursor="true"
    fault="CursorManager.removeBusyCursor();Alert.show(event.fault.message,
    'System Notice')">
    <mx:method name="Create_Apples"
    result="createApplesResult(event)"/>
    </mx:RemoteObject>
    <mx:Button x="10" y="10" label="Create Apples"
    click="createApples()"/>
    <mx:DataGrid left="10" right="10" top="40" bottom="10"
    dataProvider="{apples}">
    <mx:columns>
    <mx:DataGridColumn headerText="Apple Name"
    dataField="name"/>
    <mx:DataGridColumn headerText="Apple Color"
    dataField="color"/>
    </mx:columns>
    </mx:DataGrid>
    </mx:Application>

  • QTP 11 and Flex 4.5

    I am using QTP 11, Windows 7 64bit PC, Flex 4.5, on IE9. I am able to identify objects in the record mode and they do get added to the local object repository. However, when using QTP with Object Spy or (Object Repository > Object > Add Objects to Local), I get the error "Internet Explorer has stopped working". The error locks the whole system and a restart is forcfully required.
    The problem is persistent even with the flex store provided by Adobe: http://examples.adobe.com/flex2/inproduct/lcds/flexstore/flexstore.html
    The image contains the plug-ins and patches which I have all successfully installed.
    Is anyone able to assist me with this issue? I have contacted HP but they mentioned that the Flex plug-in is maintained by Adobe.

    Earlier we were not facing the same issue but after making the changes mentioned by PasaD626 Oct 28, 2013 3:19 PM (in response to PCS.Secure), we were able to resolve this issue. Please check you must have valid admin rights.
    Thanks to PasaD.
    Can any one help me to resolve GetROProperty(abs_x) empty value issue in QTP11 and Flex 4.5?
    [FLEX-30478] QuickTest Professional (QTP) 11 with Flex Addin 4.5 no longer returns a value for width property when using…

  • Flex Objects disappearing automatically from QTP Object repository

    Application : Flex 3
    Automation Tool: QTP 10
    Plug-ins installed - Flex 3.0.0
    Whenever we try to add the flex objects in our application to QTP Object repository, the same is getting analyzed, added and gets disappeared automatically in seconds.
    Could there be a reason for this, we tried to uninstall & reinstall all plug-in & QTP as well. Still issue persists.
    Please help.

    Hi
    I am facing the same issue; but for our application. I am able to work fine with other Flex application, the issue is with only one application.
    Is there any reason or solution to this. Please advice.
    Thanks
    Komala

  • How to merge borders of repeating frame and frame objects?

    Hi All,
    I have a repeating frame inside a frame.
    Can someone tell me how to merge borders of repeating frame and frame objects?
    I have searched this forum and spent lot of time. But I think I am missing simple thing.
    THanks,
    Sathish

    I think 'Flex' mode is on. Change to Off. Flex mode icon is on the paper layout editor. For more, search report help for
    Changing the current mode

  • Build the connection between Arduino and Flex 4.0 via JSON

    Hi,
    I try to make a connection between arduino and Flex 4.0, I included the JSON lib and also as3corelib.swc to Flex. When I run the Flex file the connection between PC to arduino is working (I can see it in SERPROXY window) and also I don't have any problems in Flex window, I added the SWF file of Flex to the list at //http://www.macromedia.com/support/documentation/tr/flashplayer/help/settings_manager04.htm l, Bu the reading result is not shows in the SWF,    I couldn't understand why !, thanks for help
    here the code
    package
    import com.adobe.serialization.json.JSON;
    import flash.display.Sprite;
    import flash.errors.*;
    import flash.events.*;
    import flash.net.Socket;
    import flash.text.TextField;
    public class deneme extends Sprite
    {private var magnetic:Socket=new Socket("localhost",5331);
      private var magneticValue:Number=0;
      private var distance:Number;
      private var newText:TextField=new TextField();
      private var listText:TextField=new TextField();
      private var MNx:Number;
      private var MNy:Number;
      private var MNz:Number;
      private var d:Object={"x":null, "y":null, "z":null};
      public function deneme()
       socketDataHandler();
      private function socketDataHandler():void
       newText.text=magnetic.readUTFBytes(magnetic.bytesAvailable);
       d= JSON.decode(newText.text);
       MNx=d["x"];
       MNy=d["y"];
       MNz=d["z"];
       listText.x=10;
       listText.y=10;
       listText.width=600;
       listText.height=100;
       listText.text=newText.text;
       addChild(newText);

    package
    {    import com.adobe.serialization.json.JSON;
    import flash.display.Sprite;
    import flash.errors.*;
    import flash.events.*;
    import flash.net.Socket;
    import flash.text.TextField;
    import mx.rpc.events.ResultEvent;
        public class deneme2 extends Sprite
            private var newText:TextField=new TextField();
            private var listText:TextField=new TextField()
            private var magnetic:Socket=new Socket("localhost",5331);
            private var MNx:Number;
            private var MNy:Number;
            private var MNz:Number;
            private var d:Object={"x":null, "y":null, "z":null};
            public function deneme2()
                 magnetic.addEventListener(ProgressEvent.SOCKET_DATA,getDATA);
             private function getDATA(event:ProgressEvent):void
                newText.text=magnetic.readUTFBytes(magnetic.bytesAvailable);
                d= JSON.decode(newText.text);
                MNx=d["x"];
                MNy=d["y"];
                MNz=d["z"];
                listText.x=10;
                listText.y=10;
                listText.width=600;
                listText.height=100;
                listText.text="X="+String(MNx)+" Y="+String(MNy)+" Z="+String(MNz);
                addChild(listText);

  • ValueObjects and Flex 3 or 4 Wizards

    I think I have many of the VO concepts down but still am not quite getting it to work so if I could get some quick feedback it would be much appreciated.
    So I have a RemoteObject which calls a cfc that then calls a MySql Stored Procedure and ultimately returns to flex a (I guess) structure/object/query/Array/ArrayCollection??? in the sense that I don't have any data typing in the cfc (ie I can display the returned results in a Datagrid where the headers are the database field names).
    Now, various tutorials SEEM to suggest datatyping the results in the cfc and then via the alias attribute I think mapping said cfc to a similarly defined flex vo (which the Flex 3 cfc wizard purports to do automatically).  I again think this step also includes essentially stripping off the database fieldnames and thereby benefiting from reduced data transmission and flex receipt computation requirements -- but to me it seems an imposition of logic on the CF "layer" (whereas I've thought that the app would be best with logic at mainly the dbase but secondly at the flex client layer).  Am I correct in this/these deduction(s) -- fwiw I have yet to find a tutorial which spells such a process out without assuming a better knowledge of CF than I have -- and what are opinions on the performance implications???
    Secondly (and regardless of whether cfc typing occurs) I think I have been missing the step in the vo process in which the vo is stored in a "model" layer. Cairngorm/Mate/etc aside, if say in my main app I import the CustomVO.as then the next steps are to "populate an instance" of the vo -- but then to further save said instance in a "model" (the step I've been missing) -- and then bind my app components to the model (ie NOT to the instance), right?
    Obviously such a process is not necessary in every application but fwiw my app detects visitor location (based on ip) and then returns a look&feel specific for say each state.  Moreover, members who then log in are shown the look&feel they may have previously customized.  Now, the backend dbase to do this works fine but on the flex/client side I'm thinking (derived from tutorials) to:
    A.) Include in the main app a <mx:Model> with default look&feel values (not much data and good insurance for if say dbase goes down)
    B.) have a initialize=". . . "  call a <mx:RemoteObject> which returns the state specific values which then overwrite the values in the model above
    C.) Upon successful signin return member specific values  (I THINK that before overwriting the model here I want to write the (B) values to a SharedObject such that upon signout there is not the need for another call to the server.
    Anyway, thanks for reading this novel, let me know if I am on the right track (or continuing the trainwreck )
    Edit:  Not to further impose but relatedly what are best practices for say search results (ie paginated lists) -- should/need they be valueObjects (seems like a great deal of computing to me) and/or typed on the CF server side?

    bump

  • Communicating between seperate flex objects

    Hello,
    I want to have an invisible flex object in the menu frame of
    my website and have a certain page, displayed in the other frame,
    in which there would be another flex control with all the necessary
    controls to control the invisible flex object. Is this possbile and
    how should I go about this?
    Thank you.

    yeah!!! it is possible, you can use the ExternallInterface
    class and some javascript functions for communicating between
    them.

  • Issues in persisting dynamic entity and view objects using MDS

    Hi All,
    I'm trying to create dynamic entity and view objects per user session and to persist these objects throughout the session, I'm trying to use MDS configurations(either file or Database) in adf-config.xml.
    I'm facing following two errors while trying to run the app module:
    1. MDS error (MetadataNotFoundException): MDS-00013: no metadata found for metadata object "/model/DynamicEntityGenModuleOperations.xml"
    2. oracle.mds.exception.ReadOnlyStoreException: MDS-01273: The operation on the resource /sessiondef/dynamic/DynamicDeptEntityDef.xml failed because source metadata store mapped to the namespace / DEFAULT is read only.
    I've gone through the following links which talks about the cause of the issue, but still can't figure out the issue in the code or the config file. Please help if, someone has faced a similar issue.
    [http://docs.oracle.com/cd/E28271_01/doc.1111/e25450/mds_trouble.htm#BABIAGBG |http://docs.oracle.com/cd/E28271_01/doc.1111/e25450/mds_trouble.htm#BABIAGBG ]
    [http://docs.oracle.com/cd/E16162_01/core.1112/e22506/chapter_mds_messages.htm|http://docs.oracle.com/cd/E16162_01/core.1112/e22506/chapter_mds_messages.htm]
    Attached is the code for dynamic entity/view object generation and corresponding adf-config.xml used.
    ///////////App Module Implementation Class/////////////////////////
    public class DynamicEntityGenModuleImpl extends ApplicationModuleImpl implements DynamicEntityGenModule {
    private static final String DYNAMIC_DETP_VO_INSTANCE = "DynamicDeptVO";
    * This is the default constructor (do not remove).
    public DynamicEntityGenModuleImpl() {
    public ViewObjectImpl getDepartmentsView1() {
    return (ViewObjectImpl) findViewObject("DynamicDeptVO");
    public void buildDynamicDeptComp() {
    ViewObject internalDynamicVO = findViewObject(DYNAMIC_DETP_VO_INSTANCE);
    if (internalDynamicVO != null) {
    System.out.println("OK VO exists, return Defn- " + internalDynamicVO.getDefFullName());
    return;
    EntityDefImpl deptEntDef = buildDeptEntitySessionDef();
    ViewDefImpl viewDef = buildDeptViewSessionDef(deptEntDef);
    addViewToPdefApplicationModule(viewDef);
    private EntityDefImpl buildDeptEntitySessionDef() {
    try {
    EntityDefImpl entDef = new EntityDefImpl(oracle.jbo.server.EntityDefImpl.DEF_SCOPE_SESSION, "DynamicDeptEntityDef");
    entDef.setFullName(entDef.getBasePackage() + ".dynamic." + entDef.getName());
    entDef.setName(entDef.getName());
    System.out.println("Application Module Path name: " + getDefFullName());
    System.out.println("EntDef :" + entDef.getFileName() + " : " + entDef.getBasePackage() + ".dynamic." + entDef.getName());
    entDef.setAliasName(entDef.getName());
    entDef.setSource("DEPT");
    entDef.setSourceType("table");
    entDef.addAttribute("ID", "ID", Integer.class, true, false, true);
    entDef.addAttribute("Name", "NAME", String.class, false, false, true);
    entDef.addAttribute("Location", "LOCATION", Integer.class, false, false, true);
    entDef.resolveDefObject();
    entDef.registerSessionDefObject();
    entDef.writeXMLContents();
    entDef.saveXMLContents();
    return entDef;
    } catch (Exception ex) {
    System.out.println(ex.getLocalizedMessage());
    return null;
    private ViewDefImpl buildDeptViewSessionDef(EntityDefImpl entityDef) {
    try {
    ViewDefImpl viewDef = new oracle.jbo.server.ViewDefImpl(oracle.jbo.server.ViewDefImpl.DEF_SCOPE_SESSION, "DynamicDeptViewDef");
    viewDef.setFullName(viewDef.getBasePackage() + ".dynamic." + viewDef.getName());
    System.out.println("ViewDef :" + viewDef.getFileName());
    viewDef.setUseGlueCode(false);
    viewDef.setIterMode(RowIterator.ITER_MODE_LAST_PAGE_FULL);
    viewDef.setBindingStyle(SQLBuilder.BINDING_STYLE_ORACLE_NAME);
    viewDef.setSelectClauseFlags(ViewDefImpl.CLAUSE_GENERATE_RT);
    viewDef.setFromClauseFlags(ViewDefImpl.CLAUSE_GENERATE_RT);
    viewDef.addEntityUsage("DynamicDeptUsage", entityDef.getFullName(), false, false);
    viewDef.addAllEntityAttributes("DynamicDeptUsage");
    viewDef.resolveDefObject();
    viewDef.registerSessionDefObject();
    viewDef.writeXMLContents();
    viewDef.saveXMLContents();
    return viewDef;
    } catch (Exception ex) {
    System.out.println(ex.getLocalizedMessage());
    return null;
    private void addViewToPdefApplicationModule(ViewDefImpl viewDef) {
    oracle.jbo.server.PDefApplicationModule pDefAM = oracle.jbo.server.PDefApplicationModule.findDefObject(getDefFullName());
    if (pDefAM == null) {
    pDefAM = new oracle.jbo.server.PDefApplicationModule();
    pDefAM.setFullName(getDefFullName());
    pDefAM.setEditable(true);
    pDefAM.createViewObject(DYNAMIC_DETP_VO_INSTANCE, viewDef.getFullName());
    pDefAM.applyPersonalization(this);
    pDefAM.writeXMLContents();
    pDefAM.saveXMLContents();
    ////////adf-config.xml//////////////////////
    <?xml version="1.0" encoding="windows-1252" ?>
    <adf-config xmlns="http://xmlns.oracle.com/adf/config" xmlns:config="http://xmlns.oracle.com/bc4j/configuration" xmlns:adf="http://xmlns.oracle.com/adf/config/properties"
    xmlns:sec="http://xmlns.oracle.com/adf/security/config">
    <adf-adfm-config xmlns="http://xmlns.oracle.com/adfm/config">
    <defaults useBindVarsForViewCriteriaLiterals="true"/>
    <startup>
    <amconfig-overrides>
    <config:Database jbo.locking.mode="optimistic"/>
    </amconfig-overrides>
    </startup>
    </adf-adfm-config>
    <adf:adf-properties-child xmlns="http://xmlns.oracle.com/adf/config/properties">
    <adf-property name="adfAppUID" value="TestDynamicEC-8827"/>
    </adf:adf-properties-child>
    <sec:adf-security-child xmlns="http://xmlns.oracle.com/adf/security/config">
    <CredentialStoreContext credentialStoreClass="oracle.adf.share.security.providers.jps.CSFCredentialStore" credentialStoreLocation="../../src/META-INF/jps-config.xml"/>
    </sec:adf-security-child>
    <persistence-config>
    <metadata-namespaces>
    <namespace metadata-store-usage="mdsRepos" path="/sessiondef/"/>
    <namespace path="/model/" metadata-store-usage="mdsRepos"/>
    </metadata-namespaces>
    <metadata-store-usages>
    <metadata-store-usage default-cust-store="true" deploy-target="true" id="mdsRepos">
    <metadata-store class-name="oracle.mds.persistence.stores.file.FileMetadataStore">
    <property name="metadata-path" value="/tmp"/>
    <!-- <metadata-store class-name="oracle.mds.persistence.stores.db.DBMetadataStore">
    <property name="jndi-datasource" value="jdbc/TestDynamicEC"/>
    <property name="repository-name" value="TestDynamicEC"/>
    <property name="jdbc-userid" value="adfmay28"/>
    <property name="jdbc-password" value="adfmay28"/>
    <property name="jdbc-url" value="jdbc:oracle:thin:@localhost:1521:XE"/>-->
    </metadata-store>
    </metadata-store-usage>
    </metadata-store-usages>
    </persistence-config>
    </adf-config>
    //////////////////////////////////////////////////////////////////////////////////////////////////////////

    Hi Frank,
    I m trying to save entity and view object xml by calling writeXMLContents() and saveXMLContents() so that these objects can be retrieved using the xmls later on.
    These methods internally use MDS configuration in adf-config.xml, which is creating the issue.
    Please share your thoughts on resolving this or if, there is any other way of creating dynamic entity/view objects for db tables created at runtime.
    Nik

  • BI-IP and Business Objects?

    Please refer to the thread:
    BI-IP and Business Objects?

    Ian,
    reading through the messages, there seem to be a few questions that are raised.  After attending SAP Financials 2008, here is what I got from it:
    1. IP vs BPC:  IP is still in production and will be developed (no commitment on time though.  I was told somewhere between 18-24 months before it goes to maintenance mode).  There is some functionality difference from BPC and right now these are two separate products.  There is a talk of a possible integration in the "distant" future
    2. BPC is in process of being developed for BI, but currently it is only running on top of Microsoft SQL server. The BI version is slated to be released June 28th, but majority of the experts are fairly pessimistic about that date.
    Now, the main question is what will happen to IP when BEx and BO tools converge into one - based on my understanding, we are going to see ADDITIONAL functionality.  Since all the WAD and Excel activities are based on BEx API's, it is highly unlikely that they are going to be dismissed in the new product.  The process in which we assign functions/commands to the planning model might change, but I think only for the best
    Pavel

  • Difference b/w DATA TYPE and DATA OBJECT & differences b/w TYPE and LIKE

    hai
    can any one say the differences between Data type and Data Object.
    And also differences between TYPE and LIKE
    thanks
    Gani

    hi,
    _Data Types and Data Objects_
          Programs work with local program data – that is, with byte sequences in the working memory. Byte sequences that belong together are called fields and are characterized by a length, an identity (name), and – as a further attribute – by a data type. All programming languages have a concept that describes how the contents of a field are interpreted according to the data type.
          In the ABAP type concept, fields are called data objects. Each data object is thus an instance of an abstract data type. There are separate name spaces for data objects and data types. This means that a name can be the name of a data object as well as the name of a data type simultaneously.
    Data Types
       As well as occurring as attributes of a data object, data types can also be defined independently. You can then use them later on in conjunction with a data object. The definition of a user-defined data type is based on a set of predefined elementary data types. You can define data types either locally in the declaration part of a program using the TYPESstatement) or globally in the ABAP Dictionary. You can use your own data types to declare data objects or to check the types of parameters in generic operations.
         All programming languages distinguish between various types of data with various uses, such as ….. type data for storing or displaying values and numerical data for calculations. The attributes in question are described using data types. You can define, for example, how data is stored in the repository, and how the ABAP statements work with the data.
    Data types can be divided into elementary, reference, and complex types.
    a. Elementary Types
    These are data types of fixed or variable length that are not made up of other types.
    The difference between variable length data types and fixed length data types is that the length and the memory space required by data objects of variable length data types can change dynamically during runtime, and that these data types cannot be defined irreversibly while the data object is being declared.
    Predefined and User-Defined Elementary Data Types
    You can also define your own elementary data types in ABAP using the TYPES statement. You base these on the predefined data types. This determines all of the technical attributes of the new data type. For example, you could define a data type P_2 with two decimal places, based on the predefined data type P. You could then use this new type in your data declarations.
    b.  Reference Types
    Reference types are deep data types that describe reference variables, that is, data objects that contain references. A reference variable can be defined as a component of a complex data object such as a structure or internal table as well as a single field.
    c. Complex Data Types
    Complex data types are made up of other data types. A distinction is made here between structured types and table types.
    Data Objects
          Data objects are the physical units with which ABAP statements work at runtime. The contents of a data object occupy memory space in the program. ABAP statements access these contents by addressing the name of the data object and interpret them according to the data type.. For example, statements can write the contents of data objects in lists or in the database, they can pass them to and receive them from routines, they can change them by assigning new values, and they can compare them in logical expressions.
           Each ABAP data object has a set of technical attributes, which are fully defined at all times when an ABAP program is running (field length, number of decimal places, and data type). You declare data objects either statically in the declaration part of an ABAP program (the most important statement for this is DATA), or dynamically at runtime (for example, when you call procedures). As well as fields in the memory area of the program, the program also treats literals like data objects.
            A data object is a part of the repository whose content can be addressed and interpreted by the program. All data objects must be declared in the ABAP program and are not persistent, meaning that they only exist while the program is being executed. Before you can process persistent data (such as data from a database table or from a sequential file), you must read it into data objects first. Conversely, if you want to retain the contents of a data object beyond the end of the program, you must save it in a persistent form.
    Declaring Data Objects
          Apart from the interface parameters of procedures, you declare all of the data objects in an ABAP program or procedure in its declaration part. These declarative statements establish the data type of the object, along with any missing technical attributes. This takes place before the program is actually executed. The technical attributes can then be queried while the program is running.
         The interface parameters of procedures are generated as local data objects, but only when the procedure is actually called. You can define the technical attributes of the interface parameters in the procedure itself. If you do not, they adopt the attributes of the parameters from which they receive their values.
    ABAP contains the following kinds of data objects:
    a.  Literals
    Literals are not created by declarative statements. Instead, they exist in the program source code. Like all data objects, they have fixed technical attributes (field length, number of decimal places, data type), but no name. They are therefore referred to as unnamed data objects.
    b.  Named Data Objects
    Data objects that have a name that you can use to address the ABAP program are known as named objects. These can be objects of various types, including text symbols, variables and constants.
    Text symbols are pointers to texts in the text pool of the ABAP program. When the program starts, the corresponding data objects are generated from the texts stored in the text pool. They can be addressed using the name of the text symbol.
    Variables are data objects whose contents can be changed using ABAP statements. You declare variables using the DATA, CLASS-DATA, STATICS, PARAMETERS, SELECT-OPTIONS, and RANGESstatements.
    Constants are data objects whose contents cannot be changed. You declare constants using the CONSTANTSstatement.
    c.  Anonymous Data  Objects
    Data objects that cannot be addressed using a name are known as anonymous data objects. They are created using the CREATE DATAstatement and can be addressed using reference variables.
    d.  System-Defined Data Objects
    System-defined data objects do not have to be declared explicitly - they are always available at runtime.
    e.  Interface Work Areas
    Interface work areas are special variables that serve as interfaces between programs, screens, and logical databases. You declare interface work areas using the TABLES and NODESstatements.
    What is the difference between Type and Like?
    Answer1:
    TYPE, you assign datatype directly to the data object while declaring.
    LIKE,you assign the datatype of another object to the declaring data object. The datatype is referenced indirectly.
    Answer2:
    Type is a keyword used to refer to a data type whereas Like is a keyword used to copy the existing properties of already existing data object.
    Answer3:
    type refers the existing data type
    like refers the existing data object
    reward if useful
    thanks and regards
    suma sailaja pvn

  • Newbie question about entity and view objects

    Hi everyone,
    My first ADF application in JDeveloper is off to a difficult start. Having come from a forms background, I know that it is necessary avoid using post-query type lookups in order to have full filtering using F11/Ctrl+F11. This means creating an CRUDable view and getting as much of the lookup data as possible into the view without losing the ability to modify the data. In JDeveloper, I do not know how to build my data model to support that. My thought was to start with a robust updateable view as my main CRUD EO and then create a VO on top of that with additional EOs or VOs. But, I have found that I cannot add VOs to another VO. However, if I link the VOs then I have a master-detail which will not work for me.
    For example, I have two joins to CSI_INST_EXTEND_ATTRIB_V shown in the queries below and need to have that show in the table displaying the CRUD VO’s data. It seemed that the best way to do this is to create a CSI_INST_EXTEND_ATTRIB_V entity object and view object. The view object would have two parameters, P_INSTANCE_ID and P_ATTRIBUTE name. Both the building and the unit are needed on the same record, and this is not a master-detail even though it might look that way. (A master-detail data control will not work for me because I need all this data to appear on the same line in the table.) So, I need help figuring out the best way to link these to the main (CRUD) view; I want as much of this data as possible to be filterable.
    select
    cieav.attribute_value
    from
    csi_inst_extend_attrib_v cieav
    where cieav.instance_id = p_instance_id
    and cieav.attribute_code = 'BUILDING NAME'
    select
    cieav.attribute_value
    from
    csi_inst_extend_attrib_v cieav
    where cieav.instance_id = p_instance_id
    and cieav.attribute_code = 'UNIT NAME'
    Ultimately, I need to display a ton of data in each record displayed in the UI table, so a ton of joins will be needed. And, I need to be able to add records using the UI table also.
    James

    Hi Alejandro,
    Sorry if I caused confusion with my first post. What I had in mind assumed that I could have a single CSI_INST_EXTEND_ATTRIB_V EO with a BuildingVO and UnitVO on top of it. So, I wrote the queries individually to show how I would invoke each view. When I realized that confused the issue, I rewrote the query to explain things better.
    Now having seen your 2 queries. You need to create 2 EO. One for each table. Then create an association between the 2 aeO (this will be the join you are talking about). Then, you need to create a VO based on one of the EO and after you can modify and add the second EO (in here you select the join type).
    After your done with this, youll have 1 VO that supports CRUD in both tables.
    There were three tables in the query: CIEAV_BUILDING, CIEAV_UNIT, and T -- the main CRUD table. When you say that I should create two EOs, do you mean that they are to be for CIEAV_BUILDING and CIEAV_UNIT? Or, CIEAV and T? Assuming CIEAV and T, that sounds like it would allow me to show my building or unit on the record but not both.
    By the way, everything is a reference except for the main CRUD table.
    Look forward to hearing from you. Thanks for your help (and patience).

Maybe you are looking for

  • 0FIAR_C02, 0FIAR_C03

    I am sure many of you here have enhanced 0FIAR_C02 or  0FIAR_C03 cubes, could you please tell me what new custom fields did you add and what was the business process behind it?  FULL POINTS

  • Query to find the list of workbooks and worksheets assiciated to those book

    Hi Gurus, Could you help me with the tables / Query to fetch the list of workbooks and associated worksheets names as welll. Thanks in advance!! Rgds, Santosh

  • Fireworks cs5 slicing images issue

    when i go to export images only to be sliced and i have those images selected, and i press "export," nothing. nothing appears in my folder as it would with photoshop. why can i not export images only? i've tried every possible setting in the export d

  • Word import preset files in Windows 8

    Hello, Where are the Word import preset files stored in Windows 8? Thanks for the help, Jean

  • How to assign TAB Sequence ?

    Hey.. Can anybody tell me how to assign tab sequence...? I mean if I have some buttons & controls on the front panel try to visualize front panel of login ; whenever I press TAB from keyboard i want the selection of the buttons & controls should be i