Why sap.ui.view is just a method & not a constructor function ?

Hey,
Every control in UI5 is defined as a Constructor Function, but why is sap.ui.view which is also a control just defined as a method !! Any reasons behind it?
Thanks & Regards
Sakthivel

sorry, the 'would you mind' wasn't meant to sound
snotty! its amazing how bad forums can be for getting
feeling across. I meant to say something like 'oh
hell, I can't see how to do this. I don't suppose you
happen to have an example lying around the place, do
you?'
I'll give it a go...I sounded a bit harsh perhaps. Sorry.
I only saw someone give an answer and a couple of minutes later a follow-up asking for "example code", which lead me to believe you did not do any research/googling on what was suggested. I now read your original post and saw that you already knew of the AffineTransform class.
Anyway, when I want to see some classes "in action" I always go to http://www.exampledepot.com . It also has some snippets on how to use the AffineTransform class:
http://www.google.com/custom?domains=exampledepot.com&q=AffineTransform&sa=Google+Search&sitesearch=exampledepot.com&client=pub-6001183370374757&forid=1&ie=ISO-8859-1&oe=ISO-8859-1&cof=GALT%3A%23008000%3BGL%3A1%3BDIV%3A%23336699%3BVLC%3A663399%3BAH%3Acenter%3BBGC%3AFFFFFF%3BLBGC%3A336699%3BALC%3A0000FF%3BLC%3A0000FF%3BT%3A000000%3BGFNT%3A0000FF%3BGIMP%3A0000FF%3BFORID%3A1%3B&hl=en
Good luck.

Similar Messages

  • Why applets are not having constructors?

    hi,
    could anyone please explain ,why do we need to use init() method instead of constructor to initialize the applets.why applets are not having constructors?.
    thanks in advance
    Santhosh

    Sure u CAN have constructors for applets. Event though you havnt wrote it, its always there... There cant be a class without a constructor......
    The point is that its a standard that the applets init will be caled by the browser the first time.....but still you can have a constructor.

  • Why SAP has taken Java for their development instead of ABAP completely

    Hi
    I am Neelima, new to SAP and abap,
    Can u please explain
    Why SAP has taken Java for their development instead of ABAP completely
    Thanks in advance
    Regards,
    Neelima

    Hi Neelima ,
      Answer to Q . Why SAP has taken Java for their development instead of ABAP completely ?
      First of all in my view SAP has not taken Java as Such instead of ABAP .
      But you nowdays whole lot of java is coming in SAP by doors of SAP NetWeaver .
    Now why they choosed java only <b> IN MY VIEW</b>
    1)     Java is open source so SAP in tie up with SUN can develop SAP specific API’s and that’s what happenings . In Net Weaver Developer studio (NDS of SAP like eclipe of Java ) we use packages ,classes , methods for SAP.
    2)     In my view Java is rocking in Web world , Every single popular product ( like IBM MQ series , Oracle Apps ) is making use Java for making things web based .
    So why not SAP .
    3)     Now data ultimately data is getting saved in XML . And java is best to deal with that . In SAP also Idoc data is stored in XML and so same data can be used anywhere inspite of Platform , technology .
    4)     Java has much established base of web Solution , Web services .They have got beautiful architecture so that Best Web sevices can be developed with EJB (Enter prise java beans  ) , sturts  and all .
    5)     Now It’s time for SAP to be Mobile Enabled .i.e. to Run SAP over PDA , Blackberry .Such solutions possible with SAP + Java combination .Java provides that framework to understand Mobile OS platform.
    6)     Another thing now Its time of EAI (Enterprise Application Integration) . Integration is future . Multiple product integrated and used togetherly , exchanges data. Take case SAP’s message goes to Sieble , people soft .For this Java + XML is best suied as both product understand it .
    Utimately SAP is Using java to provide Best Web ERP solutions
    But it does not mean ABAP is not there. With webDynpro ABAP  you can do every thing that WD java does . In fact incase if you have existing ABAP recourses then use WD ABAP for developing web services in SAP. In uses OO ABAP as base programming language .
    Please refer to this link
    IS Webdynpro for ABAP/JAVA is same?
    so hope your question is cleared
    Cheers
    <b>Parry</b>

  • Create a new button in a sap-standard-view WD4A

    In webdynpro for ABAP
    I have changed the text on an existing button in a sap-standard-view using configuration (change application configuration/go to component configurator/implicit configuration and then on the view-component change the text) it works perfect.....
    my next step is to create a new button beside the old one with a new text on it, I created a new button by using "enhance view" (I copied the existing button) the new button appears (so far so good) but when I go into the configuration to change the text on the new button (using configuration the same way I did when I changed the text on the existing button) I  cant find my new button in the view-component list....why can't I find it there so I can change the text?
    Can anyone help me this one?

    I don't believe that the Configuration tool picks up Enhancement Objects because of the way they are linked to the original component at Runtime. Why set the text using configuration?  You can control the text within the enhancement object.  Do you want different texts based upon multiple configurations?

  • Why Table or View does not exist???

    Hi to all. I have an issue with my Business Objects. I have a relationship between two entities with the following cardinality:
    EntityA 1......* Entity B, the relation is a composition and the IDs for them are DB Sequence.
    I have created the corresponding views and the view link and they all work fine in the Application Module. Also, in the View Object for the EntityA ( ViewObjectA ), I have created a View Criteria, a nested one, with two attributes: the first one is an att from the*ViewObjectA* and use a value from a bind variable (Integer), and the second one is an attribute from the Entity B son and it's value is static (1). I tested with the query button and says OK. When I run the AppModule for test the ViewCriteria, I got this error: ORA-00942: table or view does not exist . And for my sorprise, I checked the query resultant and it's wrong!! Please see an example below:
    SELECT Att1,Att2 FROM EntityA WHERE ( ( ( (EntityA.att1 = :id ) AND (EXISTS(SELECT 1 FROM EntityBNQ1 EntityBNQ1 WHERE ( (*EntityBDNQ1.att1 = :id*) ) AND ( EntityA.att1 = EntityBDNQ1.att1 ))) ) ) ) AND (EntityA.att1 = EntityBDNQ1.Att1))) ) ) )
    As can be seen, the name of the tabla for the EntityB has NQ1 attached, and I don't know why. The view link works perfectly, as also the create operation for both ViewsObjects.
    Please can anyone tell me what I'm doing wrong, if I have a mistake? What should I do??
    Thanks in advance.
    PS: In a new application, I created a Business Components from DataBase, and it works my WiewCriteria. I just can't believe that I should start all over again.
    Thanks in advance again.

    Hi and thanks for the answers. Apologize for my forgetfulness of the version. It's 11.1.1.5.0 and ADF Business Components 11.1.1.60.13
    I created a new Application and I made a Business Components From Table with only the two Entities mentioned before. Once configured (Put the ID as a DBSequence), created the views an the View Criteria and it's just all fine.
    Hear is fragment of the XML from my EntityA (the god one). The first part it's the key attribute, the second one its the key.
    This is the god working version
    <Entity
      xmlns="http://xmlns.oracle.com/bc4j"
      Name="Person"
      Version="11.1.1.61.92"
      DBObjectType="table"
      DBObjectName="EntityA"
      AliasName="Person"
      BindingStyle="OracleName"
      UseGlueCode="false">
      <DesignTime>
        <Attr Name="_codeGenFlag2" Value="Access"/>
        <AttrArray Name="_publishEvents"/>
      </DesignTime>
      <Attribute
        Name="EntityId"
        ColumnName="EntityA_ID"
        SQLType="NUMERIC"
        Type="oracle.jbo.domain.DBSequence"
        ColumnType="NUMBER"
        TableName="EntityA"
        PrimaryKey="true"
        IsUpdateable="while_insert"
        Domain="oracle.jbo.domain.DBSequence" //Different
        RetrievedOnInsert="true">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="39"/> //Different, but don't think it's important
          <Attr Name="_SequenceStart" Value="1"/>
          <Attr Name="_SequenceName" Value="EntitiA_SEQ"/>
        </DesignTime>
      </Attribute>
    ...This is the bad working version
    <Entity
      xmlns="http://xmlns.oracle.com/bc4j"
      Name="EntityA"
      Version="11.1.1.60.13"
      DBObjectType="table"
      DBObjectName="EntityA"
      AliasName="EntityA"
      BindingStyle="OracleName"
      UseGlueCode="false"
      RowClass="criminal.model.entities.filiative.EntityAImpl">
      <DesignTime>
        <AttrArray Name="_publishEvents"/>
        <Attr Name="_codeGenFlag2" Value="Access"/>
        <Attr Name="_isCodegen" Value="true"/>
      </DesignTime>
      <Attribute
        Name="Entity_ID"
        IsUpdateable="while_insert"
        DefaultValue="@0"    //Different
        ColumnName="EntityA_ID"
        SQLType="NUMERIC"
        Type="oracle.jbo.domain.DBSequence"
        ColumnType="NUMBER"
        TableName="EntityA"
        PrimaryKey="true"
        RetrievedOnInsert="true">
        <DesignTime>
          <Attr Name="_SequenceStart" Value="1"/>
          <Attr Name="_SequenceName" Value="EntityA_SEQ"/>
        </DesignTime>
      </Attribute>
    ... Hear is the constrain (the god one) related to the key att:
    <Key
        Name="EntityAEntityAIdCheck10">
        <DesignTime>
          <Attr Name="_DBObjectName" Value="EntityA_EntitAy_ID_CHECK_10"/>
          <Attr Name="_checkCondition" Value='"EntityA_ID" IS NOT NULL'/>
          <Attr Name="_isCheck" Value="true"/>
        </DesignTime>
        <AttrArray Name="Attributes"/>
      </Key>
    ...Hear is the constrain (the bad one) related to the key att:
      <Key
        Name="EntityAEntityAIdCheck10">
        <DesignTime>
          <Attr Name="_isNotNull" Value="true"/>
          <Attr Name="_DBObjectName" Value="EntityA_EntityA_ID_CHECK_10"/>
          <Attr Name="_checkCondition" Value='"EntityA_ID" IS NOT NULL'/>
          <Attr Name="_isCheck" Value="true"/>
        </DesignTime>
        <AttrArray Name="Attributes">
          <Item Value="model.EntityA.EntityA_ID"/>
        </AttrArray>
      </Key>
    ...Hear is the XML of the EntityB The differences are the same that in EntityA
    the key att:
    <Entity
      xmlns="http://xmlns.oracle.com/bc4j"
      Name="EntityB"
      Version="11.1.1.61.92"
      DBObjectType="table"
      DBObjectName="EntityB"
      AliasName="EntityB"
      BindingStyle="OracleName"
      UseGlueCode="false">
      <DesignTime>
        <Attr Name="_codeGenFlag2" Value="Access"/>
        <AttrArray Name="_publishEvents"/>
      </DesignTime>
      <Attribute
        Name="EntityBId"
        ColumnName="EntityB_ID"
        SQLType="NUMERIC"
        Type="oracle.jbo.domain.DBSequence"
        ColumnType="NUMBER"
        TableName="EntityB"
        PrimaryKey="true"
        IsUpdateable="while_insert"
        Domain="oracle.jbo.domain.DBSequence"
        RetrievedOnInsert="true">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="39"/>
          <Attr Name="_SequenceStart" Value="1"/>
          <Attr Name="_SequenceName" Value="EntityB_SEQ"/>
        </DesignTime>
      </Attribute>
    ...this is the bad one
    <Entity
      xmlns="http://xmlns.oracle.com/bc4j"
      Name="EntityB"
      Version="11.1.1.60.13"
      DBObjectType="table"
      DBObjectName="EntityB"
      AliasName="EntityB"
      BindingStyle="OracleName"
      UseGlueCode="false"
      RowClass="model.EntityBImpl">
      <DesignTime>
        <Attr Name="_codeGenFlag2" Value="Access"/>
        <AttrArray Name="_publishEvents"/>
        <Attr Name="_isCodegen" Value="true"/>
      </DesignTime>
      <Attribute
        Name="EntityB_ID"
        IsUpdateable="while_insert"
        ColumnName="EntityB_ID"
        SQLType="NUMERIC"
        Type="oracle.jbo.domain.DBSequence"
        ColumnType="NUMBER"
        TableName="EntityB"
        PrimaryKey="true"
        RetrievedOnInsert="true">
        <DesignTime>
          <Attr Name="_SequenceStart" Value="1"/>
          <Attr Name="_SequenceName" Value="EntityB_SEQ"/>
        </DesignTime>
      </Attribute>
    ...the key (the god one)
    <Key
        Name="FkEntityB">
        <DesignTime>
          <Attr Name="_isCascadeDelete" Value="true"/>
          <Attr Name="_referencedKey" Value="EntityA_PRIMARY_KEY_10"/>
          <Attr Name="_isForeign" Value="true"/>
          <Attr Name="_DBObjectName" Value="FK_EntityB"/>
        </DesignTime>
        <AttrArray Name="Attributes">
          <Item Value="project1.EntityB.EntityBEntityBId"/>
        </AttrArray>
      </Key>
    ...the bad one
    <Key
        Name="FkEntityB">
        <DesignTime>
          <Attr Name="_isCascadeDelete" Value="true"/>
          <Attr Name="_referencedKey" Value="EntityA_PRIMARY_KEY_10"/>
          <Attr Name="_isForeign" Value="true"/>
          <Attr Name="_DBObjectName" Value="FK_EntityB"/>
        </DesignTime>
        <AttrArray Name="Attributes">
          <Item Value="project1.EntityB.EntityBEntityBId"/>
        </AttrArray>
      </Key>
    ...Sorry if is too long.
    What might be wrong? It's that enough to determine the error?
    Thanks again.
    PS: I did try look for NQ1 as kdario said and nothing was found. I had already done regenerate the association as 969750 said and still habe the same error.

  • Why Does Live View In DW Not Work With BC Template?

    The live view using a BC template in DW CS6 shows "PAGE NOT FOUND" in the body section but the header and footer look fine. I should also point out that the index.htm page works fine, it's just the other pages that have this problem. What makes it weirder is that the site works fine in all other modes including when viewing in a normal browser, it's ONLY when in live view! I also noticed that if I delete the .htm extension in the url in the DW browser when in Live View it fixes the problem, but this requires me to do this everytime I want to switch to live view and surely is either a problem with how the BC template files are named or DW CS6 is buggy? Hopefully this is an easy one to answer??

    Hi Alex,
    Thanks for your reply, I have done a video demo at http://screencast.com/t/RsutrvoFn0xZ
    Date: Thu, 14 Feb 2013 05:49:55 -0800
    From: [email protected]
    To: [email protected]
    Subject: Why Does Live View In DW Not Work With BC Template?
        Re: Why Does Live View In DW Not Work With BC Template?
        created by Alex Pavelescu in Dreamweaver & Business Catalyst - View the full discussion
    Hi, Please provide the site url, and if you can, a video demo of the issue you're facing, using http://www.techsmith.com/jing.html, where you could also display the way you have your side setup ( Dreamweaver menu > Site > Site manager > http://screencast.com/t/GqqBk9MY4ck ) Kind Regards,Alex
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5072585#5072585
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5072585#5072585
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5072585#5072585. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Dreamweaver & Business Catalyst by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Why does my app store say payment method decline

    why does my app store say payment method decline when i down load a free app

    Are you using a debit card?  I read somewhere that debit card are not being accepted by itunes.  Go to settings/itunes & app store, tap on the ID there then on view account, log in and check payment details to see if they are correct.

  • SQ01 - SAP List Viewer - Ability to get the count of the output records

    Hello All,
    I have a problem with the SAP List Viewer output for an SAP Query.
    I have created a SAP query (SQ01) for a table. Its a basic query that queries on just one table (VTBFHA)
    When I run the query, for the output in the SAP List Viewer (ALV) format, Could anyone kindly help me figure out how to get the count of the number of records displayed in the output?
    For Eg: when we run the T code SE16, It gives us the number of records displayed in the output.
    Similarly, does anyone know if there is a way I could display the count of the number of records displayed in the output of the SQ01 query?
    I have tried checking the "Counter" in the basic list tab, but it does not give me the count.
    Any help will be greatly appreciated
    Thanks
    Subhani

    Yes there is a solution. Follow these steps
    Select your query
    Hit the button InfoSet Query
    Go to Edit->Settings->
    Check the box "Count in the Output list" in the Output tab
    Hit Save
    In pop up box select the user group
    hit enter
    Hit the back arrow (F3)
    now Execute the query
    You should be able to see the count in the output.
    The count will appear on the right most column of the output. If it does not go to the "Change layout" option and make sure it is part of the "Displayed columns list".
    Regards

  • Why cant i view adobe tv content on firefox?

    why cant i view adobe tv content on firefox?
    ive...
    reinstalled firefox
    reinstalled flash player
    adjusted flash player global settings
    lots of people are having problems with this. why isn't adobe helping?

    Hi Jeff,
    I am not certain what "the HTML5 player" is.
    To repeat my earlier question:
       "Why doesn't Adobe address this? Searches reveal that there is a plethora of people having the same problem."  See this link (https://www.google.com/search?q=adobetvdoesntworkonfirefoxsite:forums.adobe.com&lr=&hl=en&as_qdr=all&biw=1920&bih=748)
    I could search help pages all day long if I didn't have to, y'know... work. This is obviously a problem to which Adobe needs to research the solution.
    I am within the requirements of the service stated on the AdobeTV page, yet it doesn't work. Is it too much to ask that Adobe throw me a bone here?
    Sorry if I sound frustrated, but I spent hours of my time a couple of months ago, the last time I wanted to use AdobeTV, trying to figure this crap out and finally just gave up.
    Cheers,
    Paul Fisher
    Sent with Sparrow (http://www.sparrowmailapp.com/?sig)

  • Opening outlook file (*.msg) using SAP document viewer...

    Hello Gurus,
    My program uses a function module called 'ARCHIVOBJECT_DISPLAY' to display archived document. This opens SAP dcoument viewer in which I am able to display all kind of files such as doc, pdf, xls but when I try to open a msg file i.e outlook files, it just gives some junk.
    Can someone throw some light on this ?
    Regards,
    Rajesh.

    Try to pass DOC as the DOC_TYPE. Outlook messages are actually a Winword file.
    Regards,
    Naimesh Patel

  • Why GenericServlet has init() with no arg method?

    1)why GenericServlet has init() with no arg method also?.......when do we need this method, is there any such scenario?
    2) why subclass of HttpServlet must override at least one DoXXX method and why we don't override service method? how does the server via "public service" method recognize to call the corresponding doXXX method like for get request call doGet() ?
    Thanks in advance
    Rahul

    1) the javadocs explain exactly what the use of this method is. It's nothing more than a convenience method.
    2) Technically you can override service() and ignore doGet() and doPost(). But that's just bad design, for all you know the service() method does more then just calling doGet() and doPost(). Do what the javadocs tell you, and they tell you to implement doGet() and/or doPost().
    how does the server via "public service" method recognize to call the corresponding doXXX method like for get request call doGet()The answer is already in your question! The service() method checks the request method (get/post/put) and then calls the corresponding method in HttpServlet :s You can check this yourself, call HttpServletRequest.getMethod().

  • Why has my phone book just become invisible in my bmw 5

    why has my phone book just become invisible in my bmw 5

    Well--let me see if I can explain myself better. If I take my HD footage from the browser to the viewer
    it looks fine. The persons head is in full frame. At fit to window it sits @33 %. I then drag it into the timeline and at 25% i have this teeni frame that is now in the Canvas with only the part of the head showing and the parameters looking more like something for DV footage and not widescreen. The fit to window reads 83%.
    Again--this is only happening with the one clip even though it has the same specs as the others.
    Still miffed as to why this is happening and if this is what I'm stuck with.

  • Why SAP travel advance can't be breakdown??

    Hi experts,
    as we know, SAP Standard for enter travel advance is just allow us to enter total amount of advance.
    my requirement is to breakdown those advance through different expense (that just appear on travel expense transaction)
    is there any other way to achieve this?
    and if it is not possible by standard,
    do anyone can explain and provide detail on why SAP travel advance only provide to enter advance amount only.
    thanks in advance.

    Hi there
    Your quite right, there is no standard functionality to provide breakdown of travel advance, unfortunately I couldnt find any specific reason for this (although as you probably know the advance is also not possible to edit once the travel request is saved so would expect this is a contributing factor and also that advance has to be treated differently to expense type based on its own table T706B1_A) but can only confirm that indeed, this is by design.
    Sally

  • Why is my viewer black?

    Why is my viewer black? I cannot get any motion operations or effects to work when double-clicking on a photo or video clip. Can see it in the canvas, but the viewer remains black. FCP 5.1.4 Preferences deleted. PLENTY of room on the hard drive This is a Power Mac-just before intell processor.

    >Do you think I need to uninstall?
    What, because you pressed the W key by mistake? That's a bit drastic.
    Load something into the Viewer and press W again.

  • Why does the back arrow just reload the same page most of the time

    why does the back arrow just reload the same page most of the time
    == This happened ==
    Not sure how often
    == most of the time since I installed it

    Hi Keith.
    This is probably a normal behavior that's induced by the way pages are done. Can you provide a link to a page where this happens?
    For example, wikipedia articles often have links that lead to sections of the article and not to actually different pages, as you may know. If you click the Back button, Firefox will lead you to the section of the page you were looking at when you clicked that link. Is this perhaps what you're talking about?
    AJAX pages (i.e. pages that take advantage of heavy duty javascript code and server side technologies) often have troubles like these. It's very hard to prevent this from happening from the browsers' point of view, but Mozilla is trying to find a way for Firefox 4 (at least like time I checked they were). So using the back and forth buttons in gmail will probably be troublesome.

Maybe you are looking for

  • Vendor Replication and Different Back-end Systems

    Hello, Currently, we have vendor replication were the vendor number from the back-end is used in SRM-EBP.  Now, we want add another back-end but there are vendor number conflicts.  Is there a way to configure it so that the new back-end replicaition

  • Photoshop crashes on start up after recent update

    Title says it all, after applying the recent security updates, as soon as I click to launch photoshop I get the following report: Process: Adobe Photoshop CS3 [909] Path: /Applications/Adobe Photoshop CS3/Adobe Photoshop CS3.app/Contents/MacOS/Adobe

  • Sample Web Service URL's

    Hi, I want to test my file to soap scenario, for that i need some generic url's . Can body provide me the generic web services . Thanks & regards, Venkat

  • Where is the color palette for the chosen Keynote theme?

    Each Keynote theme has its own look and its own colors, right? And if you create a bar chart, all the colors of the different bars will nicely match the chosen theme. So, shouldn't these few theme-compatible colors be listed somewhere in the color ch

  • InDesign CC Libraries panel is blank

    The Libraries panel in InDesign CC on my Windows 7 PC is blank. It shows up correctly in Illustrator and Photoshop. Any suggestions? All the apps show as updated in my Apps folder. Thank you. InDesign Libraries Illustrator Libraries