Hashtables and Objects, ugly.

Let's see...
I'll give you everything, then highlight problems.
package Analyze;
import java.io.*;
import java.util.*;
public class Work {
    public static int Operate(String directory, String filename, String directory2, String filename2, String ext, int number) {
        int sum=0;
        try{
            BufferedWriter out = new BufferedWriter(new FileWriter(directory+filename));
            BufferedReader in = new BufferedReader(new FileReader(directory2+filename2+ext));
            String str;
            int b;
            int w;
            int low=10000;
            int high=0;
            int count=0;
            Hashtable table=new Hashtable();
            while ((str = in.readLine()) != null) {
                if  ((w=str.indexOf("Total Run Time"))>0)
                {w=str.indexOf("Total Run Time");
                 String substr=str.substring(0, w-1);
                 String change="<TH>";
                 String newString=Replace.replace(str,substr,change);
                 int z=newString.indexOf(":");
                 String substr2=newString.substring(0, z+2);
                 String change2="";
                 String finalString=Replace.replace(newString, substr2, change2);
                 int i = Integer.parseInt(finalString);
                 int q=1;
                 if (table.get(new Integer(i))==null)
                    {table.put(new Integer(i),new Integer(q));}
                 if (table.get(new Integer(i))!=null)
                    {int v=Integer.parseInt(table.put(new Integer(i),new Integer(q)));
                     v=v+q;
                     table.put(new Integer(i), new Integer(v));
                 if (i>high)
                     high=i;
                 if (i<low)
                     low=i;
                 sum+=i;
                 count++;
            BufferedWriter instances = new BufferedWriter(new FileWriter("C:\\development\\test\\test_Local\\archives\\number"+Date.whatMonth()+Date.whatDay()+Date.whatYear()+"test"+number+".txt"));
            for (int n=0; n<=high; n++)
                { if (table.get(new Integer(n))!=null)
                  {instances.write(table.get(new Integer(n))+" threads took "+n+" seconds.");
                    instances.flush();}
            instances.close();
            String strSum=""+sum;
            String strLow=""+low;
            String strHigh=""+high;
            double average=(double)sum/count;
            String strAverage=""+average;
            String strCount=""+count;
            out.write("<HTML> <BODY>");
            out.write("<P>These are the results of the stress test conducted for: "+Date.whatMonth()+"-"+Date.whatDay()+"-"+Date.whatYear()+"<P>");
            out.write("<BR><I>Total number of users ----- </I>"+strCount+" <B>(Note: This number is number of users multiplied by number of cycles.)</B>");
            out.write("<P><B>Time to complete in seconds: </B>"+strSum);
            out.write("<BR><B>The quickest thread took</B> "+strLow+" <B>seconds.</B>");
            out.write("<BR><B>The longest thread took</B> "+strHigh+" <B>seconds.</B>");
            out.write("<BR><B>The average is </B>"+strAverage+" <B>seconds.</B>");
            out.write("<P><P>The corresponding log file is: <a href=archives/"+filename2+Date.whatMonth()+Date.whatDay()+Date.whatYear()+".txt> Located in the archives bin. </A>");
            out.write("<P><P>The list of times and their instances is located :<a href=archives/number"+Date.whatMonth()+Date.whatDay()+Date.whatYear()+"test"+number+".txt> here </A>");
            NewFile.MakeFile(directory, "testlist.html");
            BufferedWriter lister = new BufferedWriter(new FileWriter(directory+"testlist.html", true));
            String strNum=""+number;
            lister.write("<a href="+filename+">Results from: "+Date.whatMonth()+"-"+Date.whatDay()+"-"+Date.whatYear()+"(Test number: "+strNum+")</A><P>");
            lister.close();
           /* File file=new File(directory+filename2);
            int compare=1;
            if (file.exists())
            {BufferedReader text = new BufferedReader(new FileReader(file));
             String stuff;
             if( (stuff=text.readLine())!=null)
                 compare=Integer.parseInt(stuff);
             text.close();
            float second=((compare/sum)-1)*100;
            int benchmark=1500;
            float third=((benchmark/sum)-1)*100;
            String strThird;
            String strSecond;
            if (second < 0)
                strSecond="<font color=red>"+second+"% </font>";
            else strSecond=""+second+"% ";
            if (third < 0)
                strThird="<font color=red>"+third+"% </font>";
            else strThird=""+third+"% ";
            out.write("<BR><B>Compared to yesterday, there has been a </B>"+strSecond+"<B>change</B> (Note: Positive values shows the processes being done faster. Negative values demonstrate a dropoff in performance.)");
            out.write("<BR><B>Compared to the benchmark, there has been a </B>"+strThird+"<B>change</B> (Note: Positive values shows the processes being done faster. Negative values demonstrate a dropoff in performance.)");*/
            out.write("</BODY></HTML>");
            in.close();
            out.close();
            /* BufferedWriter cout = new BufferedWriter(new FileWriter("C:\\development\\test\\test_Local\\archive"+Date.whatMonth()+Date.whatDay()+".txt"));
            cout.write(strSum);
            cout.close(); */
           File fil = new File(directory2, filename2+ext);
            if (fil.exists()==false)
                System.out.println("File doesn't exist!");
            File archive = new File("C:\\development\\test\\test_Local\\archives\\");
            if (archive.exists()==false)
            {archive.mkdir();
           /* File other=new File("C:\\development\\test\\test_Local\\archives\\"+filename2+Date.whatMonth()+Date.whatDay()+Date.whatYear()+".txt");
            boolean success= fil.renameTo(new File(archive, other.getName()));
            if(!success)
            {System.out.println("Could not move file");*/
        catch (IOException e)
        {System.out.println(e);}
        number++;
        return number;
}Now, I don't really understand hashtables, so this may be completely wrong. However, here's the goal:
I'm taking in a ton of ints, ranging from 1 to infinity. I want to create a hashtable which has the integer as the key, and the number of times it has come up as its value. Now, if an integer comes up more than once, I need to increase the value, I can't just throw it out. However, the hashtable keeps telling me that if I'm getting the value from a key I select and trying to put it into a new int, I'm an idiot because the value is of type Object. Now, how are objects going in, and not ints? Is my compiler just being crazy, or is it me?
Also, is it necessary to create new Integers everytime I use a method from the hashtable? I haven't gotten past the compiling stage, so I don't know how the execution will go...
Please note, everything except for the hashtable works. I have a classes that handle almost everything else, so Date.whatMonth() is really a valid command ;) Everything that's commented out is because I haven't completed the feature. Don't worry about that stuff.

Okay, let's start with the return type.
Hashtable.get(key) returns a value of type Object, as I'm sure you've noticed. It does this because that's as much as it can guarantee about the returned data; it could be any kind of Object, depending on what you put in. Java, however, remembers what kind of Object it is and stores its type internally.
Thus...
Object o = new Integer(1);
System.out.println(o.intValue());...is illegal. Object.intValue() doesn't exist, and that's what you're asking it to do. However...
Object o = new Integer(1);
System.out.println(o.hashCode()); // legal because Object.hashCode() exists
System.out.println( ((Integer)o).intValue() ); // legal because the Object was constructed as an Integer
System.out.println( ((Short)o).shortValue() ); // throws a ClassCastException because the Object was not constructed as a ShortThus, all you need to do is recast the return value of Hashtable.get(Object) to the type that you know it should be. For example,
Integer integer = (Integer)(my_hashtable.get(key_that_maps_to_integer));...is legal.
Now, as for creating Integers every time... well, you probably shouldn't. I would recommend creating the following class to use as the value and the key. Note, however, that any object you create that is used as the key in a Hashtable should probably override the equals(Object) and hashCode() methods of Object.
public class MutableInteger
    protected int m_value;
    public MutableInteger(int base)
        m_value = base;
    public int getValue()
        return m_value;
    public void setValue(int new_value)
        m_value = new_value;
    public int hashCode()
        // This must be done or all of the keys will map to the same hash code.  That would reduce the performance of the Hashtable to a linked list!
        return m_value;
    public boolean equals(Object o)
        // This must be done because, without it, no two MutableIntegers will be considered the same.
        if (o instanceof MutableInteger)
            // If the other MutableInteger has the same internal value, consider it legal.
            return (  ((MutableInteger)o).getValue() == m_value );  // Note the use of casting here.  instanceof has guaranteed that this cast is legal.
        } else
            // If the Object isn't a MutableInteger, it can't be equal to this one.
            return false;
}Now, your code would read...
MutableInteger key_object = new MutableInteger(0);   // Use as the key
MutableInteger value_object = null;
Hashtable table=new Hashtable();
while ((str = in.readLine()) != null) {
    if ((w=str.indexOf("Total Run Time"))>0) {
        w=str.indexOf("Total Run Time");
        String substr=str.substring(0, w-1);
        String change="<TH>";
        String newString=Replace.replace(str,substr,change);
        int z=newString.indexOf(":");
        String substr2=newString.substring(0, z+2);
        String change2="";
        String finalString=Replace.replace(newString, substr2, change2);
        int i = Integer.parseInt(finalString);
        int q=1;
/*new*/ key_object.setValue(i);
/*dif*/ if (table.get(key_object)==null) {
/*dif*/     table.put(key_object,new MutableInteger(q))  // Created as a MutableInteger.  The Hashtable won't remember, but the JVM will.
/*new*/     key_object = new MutableInteger(0);  // Because the old one now belongs to the table.
/*dif*/ if (table.get(key_object)!=null) {  // Won't this always be true?  You just put a value in there.
        // Am I correct in understanding that this code is designed to increase the value stored in the table by "q"?  If so, use the following code.
/*new*/     value_object = (MutableInteger)(table.get(key_object));  // Note the cast.  We know that the Object returned was constructed as a MutableInteger; after all, we put it there.
/*new*/     value_object.setValue(value_object.getValue()+1);
/*new*/     table.put(key_object,value_object);
        if (i>high) high=i;
        if (i<low) low=i;
        sum+=i;
        count++;
}Good luck, and have fun! ;)

Similar Messages

  • Jax-ws 2.1 - problems returning hashtable and hashmap

    Hi,
    We're developing a set of applications that communicate via web services.
    The company decided that to do this we should use jax-ws 2.1.
    Everything is going ok, its really easy to use, except for a web method that returns a java.util.Hashtable.
    In the endpoint there's no problem, it compiles and deploys to a tomcat 5.5 without a problem.
    The client can access the wsdl via url, download it and create the necessary files (we use netbeans 5.5 for this).
    We can invoke the method getConfig without a problem, but the object returned only has the java.lang.Object 's methods, not the java.util.Hastable 's .
    Endpoint:
    package xxx.cdc_pm_i;
    import java.util.Hashtable;
    import javax.jws.WebMethod;
    import javax.jws.WebParam;
    import javax.jws.WebService;
    import javax.xml.bind.annotation.*;
    @WebService()
    public class cdc_pm_i{
    @WebMethod
    public Hashtable getConfig() {
    Hashtable<String,String> config = new Hashtable<String,String>();
         config.put("1","1");
         config.put("2","2");
    return config;
    Client:
    try { // Call Web Service Operation
    xxx.CdcPmIService service = new xxx.cdc_pm_i.CdcPmIService();
    xxx.cdc_pm_i.CdcPmI port = service.getCdcPmIPort();
    // TODO process result here
    xxx.cdc_pm_i.Hashtable result = port.getConfig();
    } catch (Exception ex) {
         ex.printStackTrace();
    I'm fairly unexperienced in Web Services and i have no idea why this works for any kind of return object (as long as its serializable) and has this problem with hashtables and hashmaps.
    Any idea on how to solve this?
    Thanks in advance,
    Rui

    Didn't find the solution for this, but any object that contains an Object in its methods / attributes had the same problems, so i just built my own table that only supports Strings and the problem was solved.
    If anyone knows why i had this problem and wants to share a solution, please do so.

  • Passing a hashtable and retaining a copy?

    I'm a little unclear about how parameters work in Java. I have a hashtable that contains some data. It gets passed into another class via a set method. The other class (B) takes the original hashtable and assigns it to a static field.
    I"ll illustrate it better with some pseudocode:
    class ClassA
        // assume this gets populated at some point
        private static HashTable originalTable;
        void someMethod()
            ClassB.setTable(originalTable);
    class ClassB
        static HashTable myTable;
        public void setTable(Hashtable newTable)
            myTable = newTable;
    }I thought all objects in Java were pass by reference. So, wouldn't ClassB.myTable get affected by any changes to ClassA.originalTable? I tried to clear ClassA.originalTable, but noticed that ClassB.myTable was unaffected.
    Why is this?

    I'm still confused. If I clear originalTable in
    ClassA, then somewhere in ClassB I try to access
    myTable, shouldn't myTable also be cleared? When I
    do this however, its as if ClassB retained its own
    copy.Huh? Note how I post code that contradicts what you write, while you only
    make vague statements :-)
    import java.util.*;
    class ClassA {
        public static void main(String[] args) {
            originalTable = new HashMap < String, String > ();
            originalTable.put("1", "one");
            originalTable.put("2", "two");
            someMethod();
            System.out.println("originalTable = " + originalTable);
            System.out.println("myTable = " + ClassB.myTable);
            System.out.println("clearing originalTable...");
            originalTable.clear();
            System.out.println("originalTable = " + originalTable);
            System.out.println("myTable = " + ClassB.myTable);
        static Map < String, String > originalTable;
        static void someMethod() {
            ClassB.setTable(originalTable);
    class ClassB {
        static Map < String, String > myTable;
        static void setTable(Map < String, String > newTable) {
            myTable = newTable;
    }

  • HashTable and Vector

    when we will use hashTable and Vector..plz explain with example..

    well, the main difference is, that a vector is a simple set of objects, while a map (e.g. HashTable) maps values to keys.
    a simple example (not java specific as you can see) to make this transparent:
    "Adam",
    "Bert",
    "Cesar"
    would be a list, while a Map looks like this:
    "A" -> "Adam",
    "B" -> "Bert",
    "C" -> "Cesar"
    and with the key you can actually access the value, thus retrieving the object bound to "A" from the map will give you "Adam"

  • Communication between javascript and Objective-c in iOS.

    We wanted to have a communication between javascript and objective c code. We have already tried the below approach.
    To load fake URLs in JS and append a string which will be used as parameter to the Objective-C code and parse that URL in this delegate method:
    -(BOOL)webView(UIWebView *)webView shouldStartLoadWithRequest(NSURLRequest *)request navigationType(UIWebViewNavigationType)navigationType
    Then send the return value by calling the native method stringByEvaluatingJavaScriptFromString again with parameter callID.
    But we wanted to access Objective class object in Javascript code so that we can call it's methods from javascript code using this object.Android supports this behaviour using addJavaScriptInterface method in webview. Is it possible to have the similar approach in IOS? If not what is the best approach possible to acheive this? If we could achieve similar behaviour then we don't need to change the Jacascript code and will be reused. Please suggest the best possible solution.
    Regards,
    Karthik M.

    https://developer.apple.com/library/mac/documentation/AppleApplications/Conceptu al/SafariJSProgTopics/Tasks/ObjCFromJavaScript.html

  • System and Object privileges question

    hello everyone.
    I was really making it a priority to really understand both system and object privileges for users. I have setup a couple of 'sandboxes' at home and have done lots of testing. So far, it has gone very well in helping me understand all the security involved with Oralce (which, IMHO, is flat out awesome!).
    Anyway, a couple of quick questions.
    As a normal user, what view can I use to see what permissions I have in general? what about permissions on other schemas?
    I know I can do a:
    select * from session_privs
    which lists my session privileges.
    What other views (are they views/data dictionary?) that I can use to see what I have? Since this is a normal user, they don't have access to any of the DBA_ views.
    I'll start here for now, but being able to see everything this user has, would be fantastic.
    Cheers,
    TCG

    Sorry. should have elaborated more.
    In SQLPLUS, (logged in while logged into my Linux OS), I am working to try and get sqlplus to display the results of my query so it is easy to read. Right now, it just displays using the first 1/4 or 1/3 of the monitor screen to the left. Make sense? So it does not stretch the results out to utilize the full screen. it is hard to break down and read the results because they are "stacked" on top of each other.
    Would be nice if I could adjust sqlplus so the results are easier to read.
    HTH.
    Jason

  • How to remove file path location listings from photos and objects in Acrobat Pro 9.0 PDF?

    After converting a windows-based Powerpoint 2007 presentation to an Acrobat Pro 9.0 PDF, the file path location of all photos and objects are shown in a dialogue box when the cursor is moved over the image as seen in this screenshot below. How can I stop this from happening and remove this feature on my pdf documents? 

    I saw that referenced on a forum, but it does not seem to address the issue I am having.
    As per Adobe Acrobat X Standard * What’s new, the equivalent to the "Tools > Protection > Remove Hidden Information" utility found in Acrobat X Standard is the same as the "Document > Examine Document" feature in Acrobat Pro 9.0. Those tools seem to cover meta data, book marks, hidden text, and deleted or cropped content, but not the file path listings that appear on images and objects converted from Powerpoint presentations and other MS Office programs.
    I have reviewed the settings used while creating a pdf, and have also tried the “Advanced > Preflight tool”, but could not find anything to apply to the issue at hand.
    Thus, this issue has not been resolved, but seems like it should be an easy fix that anyone who publishes pdf documents would want to use to publish clean, professional documents without anyone seeing the file path location of every object and image shown in the document on their hard drive.

  • Reset Text Wrap and Object Placement defaults?

    Using Pages 5.5.2 (w Yosemite).
    Wondering if there's any way to set a default preference for the Text Wrap and Object Placement parameters in the Format > Arrange tab? 
    For example, more often than not I need to have Text Wrap set to "None", rather than "Automatic".  I was at least hoping that once I'd set a particular object to "None", any new objects I created or which were dragged into that same document would inherit that same Text Wrap setting (in much the same way that any new drop shadow setting becomes the new default when applying the drop shadow effect to subsequent selections). But even THAT doesn't seem to be the case with the Text Wrap & Object Placement options -- much less being able to reset a new global preference.
    Any suggestions (which still involve using Pages 5.5.2) appreciated.
    Thanks,
    John B

    just discovered a related topic: when importing images in Pages, how do I set the default object placement to "stay on page" and "no text wrap"?
    But that thread ends up going in a slightly different direction, since having to create placeholder shapes, and then duplicating (+ individually repositioning) same, for almost every time I dragged an image into a Pages doc would actually be MORE work than the current annoyance of having to reset the Text Wrap setting for most new objects.
    I just want a way to set a global preference for that adjustment -- or at least a preference to have all new objects start off with the same Text Wrap (and Object Placement) settings as the last ones used.
    Possibility?  Or Feature Request?

  • XML attributes and object types

    I want to create an XML Document of the following form
    <family>
    <parent attr1="val1">
    <child attr2="val2" attr3="val3"/>
    </parent>
    </family>
    Using object table and object type (for the child element), I am able to produce the following XML Document (with a "select * from family" query)
    <family> <!-- rowset -->
    <parent> <!-- row -->
    <attr1>val1</attr1>
    <child>
    <attr2>val2</attr2>
    <attr3>val3</attr3>
    </child>
    </parent>
    </family>
    The question is: how am I going to query these data so that the "attr" elements are mapped to attributes (using XSU only, without XSLT)?
    I have already tried the following:
    1. Using
    SELECT attr1 as "@attr1",
    f.child.attr2 "@attr2",
    f.child.attr3 "@attr3"
    FROM family f
    all the attributes are obviously appended to the "parent" element.
    2. Using nested table for "child" and the following query
    SELECT attr1 as "@attr1",
    CURSOR (
    SELECT n.child.attr2 as "@attr2", n.child.attr3 as "@attr3"
    FROM TABLE(f.child n)
    ) AS "child"
    FROM family f
    I am getting the following document
    <family>
    <parent attr1="val1">
    <child>
    <child_ROW attr2="val2" attr3="val3"/>
    </child>
    </parent>
    </family>
    Is there a smart SQL query to produce the desired document? What data types
    is it recommended to use to define my db schema (object types, nested tables...)?
    Thank you in advance
    null

    Finally, I got the desired XML format output from relational tablse using schema based XMLType views.
    Wherein I created Object Types from relational table, generated the schema for the Object type, registered the schema and finally created XMLType Views for populating the XML data from Relational Tables.
    I guess, you all might aware of my problem, where I got struck. Instead of printing the data in XML format I am successful in generating the XML format data Using the Query Select from BLABLA_Type_view* . I am able to print the number of rows, that I require which is in the fallowing format.
    Column Name
    1. SYS.XMLTYPE ----- As a row
    The view I am querying for is printing the data in a string format, where in I got to do the fallowing query
    SELECT SYS.XMLTYPE.getStringVal(OBJECT_VALUE) FROM BLABLA_Type_view. Which ultimately gave me the required data in XML format with tags.
    Thanks for every one who tried to give a try to solve, especially "mdrake"

  • Time_building_block_id and object version number

    Hello,
    could someone help me out with an explanation how the time_building_block_id and object version number to be interpreted?
    Are these independent? What actions create new ID and new ovn?
    My first idea was that one ID can have different instances in the table with different object version numbers. However I found cases belonging to the same parent buildingblock where both the id and ovn are different.
    So based on this only one of the columns could be primary.
    However for the joins both are used typically at the same time, suggesting that the two together constitutes a primary key.
    Are the DETAIL level records belonding to the same DAY level record to be treated as co-existing entries and their measure to be summarized? Or only the latest (bigger ovn?) to be considered, so it is an updated version of the record with the previous ovn?
    thanks!

    The version number in the TC Building blocks is used to identify changes to timecard building blocks. It is not the same as an object version number on a record in a table.
    OTL keeps an audit history of all changes to the timecard, at whatever level they occur. It uses this in retropay processes to identify the 'true' hours to use.
    TC Building blocks have a 'scope', for example there are building blocks at these levels:
    Timecard
    Period / Application
    Day
    Detail
    If you entered 8 hours on a new timecard for Monday 07/09/09 it would create a building block record for that date and call it version 1.
    If you later make a change to that DAY, OTL will create a new record with version 2. Say this one shows 7 hours.
    OTL can then interpret this as -8 + 7 = -1 and make the appropriate adjustment.
    Hope that helps explain it!
    Regards
    Tim

  • Scope and Objectives of making java swing scientific calculator

    I am going to write code for java swing scientific calculator..... can any body help me to write scope and objectives of this project.... please please :-(

    If this is for school work, then defining the scope is part of the problem. The only advice I will give you is that you only need to implement what the assignment specifies. It is probably intentionally vague so you can bite off way too much and not finish -- failure should teach you something too.
    I had just such an assignment in my software engineering class in college -- create a cross compiler from X to Y where X and Y where known instruction sets. That was the entire assignment -- plus the instruction sets for X and Y. My team looked at the allotted time and resources availabe and decided to do a minimal implementation.
    We where the only team to complete the assignment and all recieved A's because we accurately implemented the required solution and were able to evaluate the real problem--resource allotment--accurately.
    Each other team tried to add "extras" that would "guarantee" them an A grade. In actuallity it was just a lot more work than they could do though and it hurt them in the long run--No matter how good the work was to the point they had at the end of the semester, each student in the other teams only recieved a B or less grade in the class due to failure on that project. Resource allocation and planning--only you can do that for your team/project.

  • Problem with editing the size of artboard and objects in illustrator!

    I was using a custom size of artboard in illustrator, but I now I want to change it to A4 size for printing. However, when I change it to a A4 size artboard, the size of objects on that artboard remain unchange. As a result these objects do not fit the new size of artboard. Are there any way that I can change both the size of artboard and objects at once? Thank you!

    Probably not.  Don't suppose you have a proportion scale handy?  Alright, don't worry about it.  Give me the size of your original ( in inches ) and the size of A4 ( in inches ), I can give you the scale percentage ( you input into the scale dialog box ).  Whatever you do, keep your original file and do the enlargement on a "copy" of the original.  You already have the new artboard, not it is just a simple matter of enlarging the artwork to fit the new size.

  • Type Messages and Objects turned from white to black in PDF

    When I exported my Keynote presentation to a PDF the Type Messages and Objects turned from white to black. The display in ”Preview” is ok but in Acrobat PDF Viewer it looks black instead of white. Only happens on some slides. I could not find a reason why this happened. Seemed kind of random to me when it happened. But the error was reproducable unless I rebuild it with new silides.

    Can you get the exact wording for that error? Is it can't mount iPod?
    Also, make sure iTunes is up to date...
    iTunes
    Finally, make sure your iPod's battery is charged up.
    btabz

  • Issue with html5 panoramas and objects

    I have a problem in visualizing panoramas and objects on my website (www.dee-lay.com); all other browsers do not have this flickering problem ..is something about my mistake?

    A good place to ask advice about web development is at the MozillaZine "Web Development/Standards Evangelism" forum.
    *http://forums.mozillazine.org/viewforum.php?f=25
    The helpers at that forum are more knowledgeable about web development issues.<br>
    You need to register at the MozillaZine forum site in order to post at that forum.

  • Roles and Object queries tab not visible in MBO attribute properties

    Hi,
    We have installed the SUP Personal developer edition 2.0 on a windows 2008 server. I am trying to create a sample application for getting the list of sales orders by using the SAP BAPI. Once I have the MBO in place, I see that I cannot view the 'Roles' and 'Object Queries' tabs in the 'Attributes' section of the MBO properties.
    Does anyone know why this happens? Is it due to configuration issues? Do help me out as we're trying to get a demo working.
    Thanks & Regards,
    Vaishnavi

    Hi Vaishnavi,
    Check whether you have selected "Advanced" mode . You should be able to see it.
    Regards,
    Viju

Maybe you are looking for

  • How can I move a clip on the timeline less than one frame?

    I need to move an audio clip on the timeline to match the video but it snaps one frame at a time and I need to move it less than that.?

  • FILE TO RFC2 MAIL

    Hi, Requirement : online sale order creation. i need solution for theis sender is file adapter receiver is RFC adapter using BAPI Function Module.After creating sale order in R/3 iam intimate to customer through mail... using mail adapter ...is a sin

  • Disk is too slow or System Overload Error on new Core i7 iMac

    Well I just unboxed the new supercomputer, 27 inch iMac with Core i7 and 8gigs of ram. Spent several hours installing Logic Studio 9 and for an opening act I loaded up the demo song by Lily Allen. Too my utter dismay within seconds of playing the dem

  • JSF/ADF/Toplink object from multiple schemas

    We are considering starting a new project using JSF/ADF/Toplink using a already existent database. How is it possible to create toplink object from tables when tables belongs to different schemas? I think there must be a way to do this and in jdevelo

  • Subcontracting stock

    Hi guys. I need to assign an account in the moment that I make a Good Issue from the warehouse to subcontractor. Actually the system don´t create any FI document. Is there any way to do this??? Can you help me on this, please. Thanks in advance!!! Ed