BW 3.5 authorization question - cross posting

Hi All,
My client is utilizing dynamic hier node authorizations (via customer exit) on 0EMPLOYEE, and we have come to a road block.The ABAP is processing the variable at I_step = 0 or 1, and is working perfectly. The problem is that when a query is written against the same infoprovider and 0employee is not part of the columns/rows/free char. The user gets a no authorization eror, as 0employee is not part of the query and thus the variable does not get raised. Along the same lines i also have 0person which has 0employee as an attrib. so if 0employee is not part of the query, but 0person, is, i get the same authorization error. The third deviation of the same issue is that when 0employee is added to the query and hier is NOT active on 0employee everything I get the same no authorization (I believe the last scenario is working the way it was designed)  The possible work around is to give a ":" for 0employee however this fails the security test as now if only 0person is used in the query w/o 0EMPLOYEE, users can drill down on 0person (tied to 0employee) even when they do not have access to the node where that 0employee pernr resides.
I am utilizing "" for 0employee and for the hier node am utilizing the variable. If anybody has a fix for it, plz let me know. Also we went down the path of ading 0employee to all queries and hiding it from display, however the query results in redundant rows which will not work for user experience. I do not believe there is a fix for this in BI 7 either as the special value of "#" theoratically will not work either, unless i am mistaken ? pllz advise.

hii reddy,
check the foll link,
http://help.sap.com/saphelp_nw04/helpdata/en/80/1a689ae07211d2acb80000e829fbfe/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/80/1a689ae07211d2acb80000e829fbfe/frameset.htm
hope it helps,
Assigning the points is to say thanks,
regards,
raghu.
Edited by: Raghu on Sep 17, 2008 1:04 PM

Similar Messages

  • Cross-post: Question on generics

    Hi,
    I have just posted a question on the generics in the generics forum, but I'm also cross-posting to this forum since the generics forum is a low volume forum.
    I'd appreciate any help.
    http://forum.java.sun.com/thread.jspa?threadID=753065&tstart=0
    Kaj

    Hi @sonshine ,
    Is this still a problem for you? I'm just trying to see if I can help you on this one.  
    Best,
    Russ 
    I worked for HP.

  • BI Authorization Question

    Authorization error

    I am going to lock this thread to keep the answers together....
    Please avoid "cross-posting"...
    PS: You might get more enthusiastic answers if you follow-up on your 63 unresolved questions...

  • Need to know how to remove ALL previous Outlook settings in Registry and file locations (cross posted)

    Problem: I cannot get a newly installed Outlook 2013 to connect to the [online Office 365] server with old [non-domain] logon profile. That is my issue, and what I'd like to fix. (There's some services and settings on the old profile
    that cannot be easily duplicated. Also, I'm just enough annoyed by this to ask for suggestions.)
    Background: I upgraded an existing Office 2007 install of several years back to Office 2013 on an continuously used [non-domain] user profile (I needed connections to several Exchange accounts at various domains I remotely admin
    and was tired of logging on through OWA, so it was time to upgrade). Up to Sunday last, I have never had issues with Outlook and Office 365 connections to that account; upgrading Office 2013 "killed" my outlook.office365.com connection to emails.
    Testing: I created a new [non-domain] logon profile, and Outlook 2013 connects to my outlook.office365.com account just fine with the new logon profile. To repeat:
    there were NO connectivity issues in connecting to my Office 365 account in the
    new [test] logon profile with Outlook 2013, and using Outlook 2013 on the new [non-domain] profile.
    The problem is profile specific, to an older existing profile (I'd like to use).
    Just FYI: my [vanity] domain tests just fine with the Exchange 365 online tools. Office 365 works. OWA works. Outlook 2013 works (in the new logon profile). Mobile devices work.
    There are no major problems with the domain name in MXToolbox, or Microsoft Remote Connectivity Tester. Both Windows and Office are fully patched on my workstation. There's no malware.
    The problem is something in my older logon profile. Something somewhere locally to that logon and/or Outlook-specific profile is keeping it from logging into the [Office 365] mail server. I just get the typical "cannot connect to
    the server" error.
    What's Needed: So what I need is a link to a webpage (or pages) that details ALL [existing] Outlook/Exchange settings that are profile specific ...so I can
    manually remove them from the Registry, from the drive, etc.
    ...something on the order of "...remove all profiles under
    HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem" and "...delete all files in
    C:\Users\username\AppData\Local\Microsoft\Outlook" (neither of which fixed the issue, whatever the real issue may be ...but that's all I found so far that seemed pertinent). Anyways, "stuff"
    like that.
    Alternatively, if someone knows what Registry keys, other settings, etc., I can export/import from the test logon profile to my "real" logon profile(s), that would be worth a shot, and greatly appreciated.
    Or maybe just some google search suggestions that might find the above links (listing error message contents hasn't been useful: too many hits).
    Me: I'm a sys admin with over 30 years experience. I'm not looking for suggestions on how to set up an Exchange account, or an Office 365 account, or to setup a new mail profile or logon profile (or to remove either of those), or to add
    a new email account (manually or with auto-discover), or to remove an old account. None of that applies and/or has worked in this case.
    Thanks in advance for your interest. I really need a knowledgeable wizard, since I'm looking for a solution to a complex issue. My own googling and troubleshooting has just turned up the usual noob' stuff. At this point, I'm at a loss. The well is dry.
    Update:
    This question is cross-posted from the general "answers" forum (at the suggestion of a moderator).
    Update: I also came across
    this page of "advanced" Outlook settings (and it hasn't helped so far, either).

    I too, for over 30 days have been trying to find an answer as my situation is as similar as it gets.  I too have tried all and everything as you have.
    How I wish there would have been an answer to your question.  It would have answered mine as well.
    Seems typical to microsoft "help" unless it is the usual noob response and/or "more clarification" (I with no tech degree understood exactly what you refer to) the only response is well, just no response......

  • Cross-post: strange file in trash

    In my trash I have found a file associated with iTunes/iPod: iPod2,12.2.1_5H11aRestore.ipsw
    I didn't put it there, and don't know why it should be there - the trash was empty not long before, and I haven't restored my iPod for years.
    My questions: is it safe to trash it? If not, where does it properly belong?
    Thanks in advance for any help. This is a cross-post from the iPod Classic forum

    Yes, you can delete it. It's a discarded backup that was produced when you last synched your iPod.

  • Cross-post: Using the "as" operator vs casting

    I'm cross posting this because it is technically an
    Actionscript question, but it has real Flex consequences.
    I've recently been reading the docs regarding data types in
    AS3 and am still not clear on a few things. If anyone has blogged
    on this, please point me there.
    One problem is that "casting" syntax is the same as top-level
    function syntax. Compare String(objString) to XML(event.result).
    The latter is a top-level function, but the former is a "cast". Or
    is it?
    An option to the String cast is objString.toString(). What is
    the difference? I am not so much interested in the underlying
    details of the language, as in understanding when to use which.
    The same question exists for the top-level function
    XML(event.result), which can be done with the "as" operator:
    event.result as XML. When to use which? Are there performance
    issues? The "as operator" documentation is unsatisfying.
    Any discussion of this will be appreciated.
    Tracy

    Maltus now I'm totally confused.
    The Flex manual in the TOP LEVEL section (Guess TOP LEVEL
    means that they don't belong to any package) clearly states this
    functions:
    Function Description
    Array Creates a new array.
    Boolean Converts the expression parameter to a Boolean value
    and returns the value.
    decodeURI Decodes an encoded URI into a string.
    decodeURIComponent Decodes an encoded URI component into a
    string.
    encodeURI Encodes a string into a valid URI (Uniform
    Resource Identifier).
    encodeURIComponent Encodes a string into a valid URI
    component.
    escape Converts the parameter to a string and encodes it in
    a URL-encoded format, where most nonalphanumeric characters are
    replaced with % hexadecimal sequences.
    int Converts a given numeric value to an integer value.
    isFinite Returns true if the value is a finite number, or
    false if the value is Infinity or -Infinity.
    isNaN Returns true if the value is NaN(not a number).
    isXMLName Determines whether the specified string is a valid
    name for an XML element or attribute.
    Number Converts a given value to a Number value.
    Object Every value in ActionScript 3.0 is an object, which
    means that calling Object() on a value returns that value.
    parseFloat Converts a string to a floating-point number.
    parseInt Converts a string to an integer.
    String Returns a string representation of the specified
    parameter.
    trace Displays expressions, or writes to log files, while
    debugging.
    uint Converts a given numeric value to an unsigned integer
    value.
    unescape Evaluates the parameter str as a string, decodes
    the string from URL-encoded format (converting all hexadecimal
    sequences to ASCII characters), and returns the string.
    XML Converts an object to an XML object.
    XMLList Converts an object to an XMLList object.
    So how do I do a XML type casting without using the XML
    function for example? or is it the same?

  • Off Topic/cross-post

    Off Topic - Cross Post:
    Does anybody here enjoy reading flamefull threads as much as I do? Like the ones where someone asks a stupid
    question and get bombarded with rude, snappy, witty comments. I love to read them, even when there directed at me. I wish there was a thread that acted like a directory of these flaming threads so that I could directly read them all in sequence.
    Thank you very much for endless humor and entertainment.
    Keep up the good work guys and girls...
    Ian Mechura

    Thanx for ur answer to me - however dear i do not need password or hacking type stuff - actually i just wanna IDs as string into my vector class. look u can by clicking to any ID (yahoo messenger online IDs) can send message or so and can use just for messaging them - my intension is just like that - not to access her password or to use her id for any other thing - i just to message them. but first i had to take his/her id as string into a vector. then later send them message. Is this illegal or so.
    please this is really an assignment of my college.
    please reply me at
    [email protected]
    or in my question here i post -
    i had also stop posting question again and again as i think people understand my question as wrong.
    thanx in advance
    thax again sir for ur advice in advance
    Saeed

  • Question not posting

    I had a question I determined there were two appropriate forums, so I posted in both (on usenet you could cross post). My post in this forum is not being posted, the second time I changed it a little incase it was looking for an exact match. I see no e-mail warning that it would not be posted. Are there some rules about cross posting? Anyway to find out why question in second forum is not posting?

    Paul:
    Posting duplicate topics in two different forums is not encouraged as that makes it difficult to follow the discussion, especially for those who try to respond to your question. That said, I don't understand why the question did not post in a second forum, as many people have successfully double posted. Once the duplicate post is discovered, however, the hosts may delete one of them.
    cornelius

  • [LAVA Cross Post] CTRL+SHIFT+ Shortcuts sometimes not working in LabVIEW

    Cross-post from LAVA: http://lavag.org/topic/15619-ctrlshift-shortcuts-sometimes-not-working-in-labview/
    See the above post for more information - here's a synopsis:
    CTRL+SHIFT modifiers are not working while running LabVIEW in a Parallels 7 virtual machine. This problem affects both LV2011 and LV2012. I'm not certain that this is a LabVIEW bug - could be an issue with my virtual machine environment or it's configuration - except that CTRL+SHIFT modifiers work in other applications on the affected VMs. It's just LabVIEW that appears to ignore shortcuts with the CTRL+SHIFT modifiers.
    Any ideas? 
    a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"] {color: black;} a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"]:after {content: '';} .jrd-sig {height: 80px; overflow: visible;} .jrd-sig-deploy {float:left; opacity:0.2;} .jrd-sig-img {float:right; opacity:0.2;} .jrd-sig-img:hover {opacity:0.8;} .jrd-sig-deploy:hover {opacity:0.8;}

    X. wrote:
    Still well and alive in Parallels 9 and LabVIEW 2013 SP1. Of course I could upgrade to the latest versions to check whether things have gotten any better.
    Any news on that?
    @mellroth figured out the solution :-)
    a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"] {color: black;} a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"]:after {content: '';} .jrd-sig {height: 80px; overflow: visible;} .jrd-sig-deploy {float:left; opacity:0.2;} .jrd-sig-img {float:right; opacity:0.2;} .jrd-sig-img:hover {opacity:0.8;} .jrd-sig-deploy:hover {opacity:0.8;}

  • [LAVA Cross Post] CTRL+SHIFT+Alpha Shortcuts don't work in LabVIEW

    Cross-post from LAVA: http://lavag.org/topic/15619-ctrlshift-shortcuts-sometimes-not-working-in-labview/
    Bug Synopsis: CTRL+SHIFT+Alpha shortcuts do not work in LabVIEW. Most notably, CTRL+SHIFT+Z, CTRL+SHIFT+E, and CTRL+SHIFT+S
    Test setup: LV2012 32bit with f1 patch running in Win7 64bit inside a Parallels 8 VM in OS X 10.8.1
    To summarize the testing I have tried:
    Many different LabVIEW, Guest OS, and Host OS combinations all fail, including:
    LV2012f1 32 and 64 bit, and LV2009 32 bit
    Win7 32 and 64bit, and also WinXP x64
    Parallels 7 and Parallels 8
    OS X 10.7 and 10.8
    Capturing the keyboard by the VM
    Twiddling every keyboard setting possible on Parallels, Guest, and Host
    Reinstalling keyboard drivers
    Plugging in a known-good keyboard that works on a native Windows machine
    Deleting LabVIEW.ini and letting it regenerate
    Remapping the shortcuts from, e.g., CTRL+SHIFT+E to CTRL+E - in this case, "Show in Project" works, so this might indicate it's a problem registering the shortcut press, not invoking the action itself.
    Sending the keystrokes via on-screen keyboards from both Guest and Host
    Sending the keystrokes via SendInput from user32.dll WinAPI
    Testing every imaginable combo of FN, CONTROL, ALT/OPTION, COMMAND/CMD, SHIFT
    Reinstalling VMs from scratch and reinstalling LV
    Here's a kicker: CTRL+SHIFT+Alpha shortcuts work fine on other Windows programs (I've tried 4 different programs, including Chrome, Notepad++, Paint.NET), yet it does NOT work for VIPM with CTRL+SHIFT+C. This means that the only two programs where the CTRL+SHIFT+Alpha bugs exist are both LabVIEW-related.
    Here's another kicker: It's only CTRL+SHIFT+Alpha shortcuts with the prob - CTRL+SHIFT+3 properly toggles grid alignment, and the "Tools >> Options >> Menu shortcuts" will register any CTRL+SHIFT+Non-alpha shortcut; it just does not respond to the CTRL+SHIFT+Alpha shortcuts.
    Any new troubleshooting ideas are highly appreciated; please feel free to jump in here or on LAVA.
    a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"] {color: black;} a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"]:after {content: '';} .jrd-sig {height: 80px; overflow: visible;} .jrd-sig-deploy {float:left; opacity:0.2;} .jrd-sig-img {float:right; opacity:0.2;} .jrd-sig-img:hover {opacity:0.8;} .jrd-sig-deploy:hover {opacity:0.8;}
    Solved!
    Go to Solution.

    X. wrote:
    Still well and alive in Parallels 9 and LabVIEW 2013 SP1. Of course I could upgrade to the latest versions to check whether things have gotten any better.
    Any news on that?
    @mellroth figured out the solution :-)
    a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"] {color: black;} a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"]:after {content: '';} .jrd-sig {height: 80px; overflow: visible;} .jrd-sig-deploy {float:left; opacity:0.2;} .jrd-sig-img {float:right; opacity:0.2;} .jrd-sig-img:hover {opacity:0.8;} .jrd-sig-deploy:hover {opacity:0.8;}

  • Book printing - Unique Workflows? - Cross-Posted from Aperture forum

    (Cross-posted. I think this post might be of interest to iPhoto users as well)
    I am exploring the book printing features in Aperture. My goal was to build the book in Aperture and get this into iPhoto so that I could use MyPublisher to print the book. MyPublisher currently has a 50% off coupon for orders over $50. iPhoto needs their plugin to upload to MyPublisher instead of Apple when the BuyBook button is chosen. (code is MAC2550 - good though Dec 31). The design features in Aperture are rudimentary at best. It's simple to customize the design for photo placement, adding and deleting photos, resizing, etc. The type design features are not simple to customize, though. However, with patience a suitable design can be made. You can add and delete text boxes at will but these will always default to the template's built in style. I continually had to reformat the type by right clicking on the selected text and applying my preferred style. One trick when cutting and pasting text is to place the cursor one letter in from the beginning of a preformatted line, select the remaining text and paste - this will pick up the current style rather than default to the template default. Then delete the leftover first character of the line. From Aperture I printed the book to PDF, being sure to choose letter size and borderless paper option. Once book is printed to PDF I opened in Acrobat and "saved as" to PNG. In the PNG options I chose 600ppi (the default of 300ppi might have been just fine for quality, not sure). Saving to PNG creates an individual file for each page. In testing Apple's Preview software for this I found it would make a nice PNG - but of just one page at a time. I then imported all PNG pages into iPhoto. Within iPhoto create a book. I used "Modern Lines" with double sided pages. To create the cover (it's actually a label that is adhered to the linen hard cover book) I had to import the actual cover photo used in Aperture to recreate a new design based on the "Modern Lines" template. I then recreated my pages using the template. The key step being to assign the single photo page design for each page. For each page I dropped in the corresponding PNG file which included all type and images created previously in Aperture. One minor point when adjusting the placed PNG images in the iPhoto template is the option to fit photo to frame size (an option when right clicking on the photo). When fit photo is selected the image gets resized very slightly. I opted not to use this feature as I thought the resizing might compromise quality. I then clicked on the "buy book" button and the file was assembled and sent to MyPublisher. Since I had the 50% coupon I opted for the leather bound book option and ordered two 24 page books for $53.74 which included $9.98 standard FedEx fee. As for quality I'll have to wait and see. I'll post back once books are in hand.

    It is important to realize there are two aspects to an index.
    1) Topics
    2) Page References
    Topics have no relation to the text of the actual document. Topics can
    be imported from one InDesign document to another. Also, creating topics
    from a list of text is trivial. Just type all the words (or place them
    from a text document or Word doc) and then press Ctrl+A to select all of
    them and press Ctrl+Alt+Shift+[, then delete the text.
    Page references, however are not as simple. These have to be created at
    each place in the text where you want the page to be referenced it the
    index. This *can* in fact be done Word if you are using the text from
    the Word document.
    What you really have to watch out for is that when you want to create a
    page reference you have the "Reference" radio button selected in the
    index panel. Otherwise you will just be creating a topic. It is best to
    work with hidden characters turned on so you can see and make sure
    InDesign created an index marker in the text after you created your page
    reference.

  • Details for last question I post

    the original code for last question I post(about the DataInputStream& EOFException) is here, thanks if anyone will bother to read it
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.net.*;
    import java.io.* ;
    public class MasterMindServer
         public MasterMindServer()
              try{
                   ServerSocket serverSocket=new ServerSocket(8000);
                   Socket socket=serverSocket.accept();
                   HandleAClient thread=new HandleAClient(socket);
                   thread.start();
                   }catch(IOException e){System.out.println("Error:"+e.toString());}
         public static void main(String args[])
              new MasterMindServer();
    //inner class
    class HandleAClient extends Thread
         DataOutputStream out;
         DataInputStream in;
         BufferedReader fromFile;
         private Socket socket;
         String line;
         public HandleAClient(Socket socket)
              this.socket=socket;
         public void run()
              int x,o;
              try{
                     out=new DataOutputStream(socket.getOutputStream());
                   in=new DataInputStream(socket.getInputStream());
                   fromFile=new BufferedReader(new FileReader("colorcode.txt"));
                  while((line=fromFile.readLine())!=null)
                    for(int i=0;i<10;i++)
                      String t=in.readUTF();
                      x=check_column(t);
                       System.out.println(x);
                       o=check_color(t);
                       System.out.println(o);
                       out.writeInt(x);
                       out.writeInt(o);
                       if(x==6) break;
                     out.writeUTF(line);
                   socket.close();
                   System.out.println("close");
             }catch(IOException e){
             System.out.println("Error:"+e.toString());}
         public int check_column(String s)
              String str;
              str=s;
              int count=0;
              for(int i=0;i<6;i++)
                   if(s.charAt(i)==line.charAt(i))
                   count++;
              return count;
         public int check_color(String s)
              String str;
              str=s;
              int count=0;
              for(int i=0;i<6;i++)
                   if((line.indexOf(s.charAt(i))!=-1)&&(line.charAt(i)!=s.charAt(i)))
                   count++;
              return count;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.net.*;
    import java.io.* ;
    public class MasterMindClient extends JFrame implements MouseListener,ActionListener
      /** Default constructor */
      //keep track of the row (or trial) and column number
      int trial_num, col_now ;
      Socket socket;
      int count[]={5,5,5,5,5,5};
    JPanel A[]  = new JPanel[10];
      JPanel B1[] = new JPanel[10];
      JPanel B2[] = new JPanel[10] ;
      JPanel notice = new JPanel() ;
      JPanel sub_notice = new JPanel();
      JPanel D1, D2 ;
      static JTextField [][]color = new JTextField[10][6] ;
      static JTextField [][]Output = new JTextField[10][2];
      static JTextField [][]Answer = new JTextField[1][6] ;
      static JButton []ok = new JButton[10];  
      JLabel L1 = new JLabel("Click the textfield to change color");
      JLabel L2 , L3, L4 ;
      String colorRange="BCGRYW";
      Color colorName[]={Color.black,Color.cyan,Color.green,Color.red,Color.yellow,Color.white};
      String temp ;
    public MasterMindClient() {
        // initialize
        trial_num = 0;
        col_now = 0;
        //sub_notice is Panel where the heading labels are placed
        sub_notice.setLayout(new GridLayout(1,3)) ;
        L2 = new JLabel("  ") ;
        L3 = new JLabel("X");
        L3.setHorizontalAlignment(JTextField.CENTER);
        L4 = new JLabel("O");
        L4.setHorizontalAlignment(JTextField.CENTER);
        L3.setToolTipText("matching color and column");
        L4.setToolTipText("matching color but not matching column" );
        sub_notice.add(L2);
        sub_notice.add(L3);
        sub_notice.add(L4);
        notice.setLayout(new GridLayout(1,2)) ;
        notice.add(L1) ;
        notice.add(sub_notice) ;
        // Get the content pane of the frame
        Container c = getContentPane();
        // Set GridLayout, 4 rows, 3 columns, and gaps 5 between
        // components horizontally and vertically
        c.setLayout(new GridLayout(12, 1, 5, 5));
        c.add(notice);
         JPanel Display = new JPanel() ;
         Display.setLayout(new GridLayout(1,2,5,5)) ;
       //create a Panel for each row to accept use input
       // color[][] textfield is where the user input
       // Output[][] is where to display the number of X and O
        for (int i = 0; i <= A.length-1 ; i++)
        A[i] = new JPanel() ;
        A.setLayout(new GridLayout(1, 2,10,10));
    B1[i] = new JPanel();
    B1[i].setLayout(new GridLayout(1,6,5,5)) ;
    B2[i] = new JPanel();
    B2[i].setLayout(new GridLayout(1,3,5,5)) ;
    for (int j = 0; j <= color[i].length-1 ; j++)
    color[i][j] = new JTextField() ;
    color[i][j].setHorizontalAlignment(JTextField.CENTER);
    if (i == 0)
    {color[i][j].setEditable(true) ;
    else
    {color[i][j].setEditable(false);
    color[i][j].addMouseListener(this);
    B1[i].add(color[i][j]) ;
    } // j loop
    ok[i] = new JButton("SEND");
    if(i==0)
         ok[i].setEnabled(true);
    else
         ok[i].setEnabled(false);
    ok[i].addActionListener(this);
    B2[i].add(ok[i]) ;
    Output[i][0] = new JTextField();
    Output[i][1] = new JTextField();
    Output[i][0].setEditable(false);
    Output[i][1].setEditable(false);
    Output[i][0].setHorizontalAlignment(JTextField.CENTER);
    Output[i][1].setHorizontalAlignment(JTextField.CENTER);
    B2[i].add(Output[i][0]);
    B2[i].add(Output[i][1]);
    A[i].add(B1[i]);
    A[i].add(B2[i]) ;
    c.add(A[i]) ;
    } //for i loop
    //D panel is where we store the answer[][]
    D1 = new JPanel();
    D1.setLayout(new GridLayout(1,6)) ;
    D2 = new JPanel();
    D2.setLayout(new GridLayout(1,2)) ;
    for (int j = 0; j <= Answer[0].length-1 ; j++)
    Answer[0][j] = new JTextField(0) ;
    Answer[0][j].setHorizontalAlignment(JTextField.CENTER);
    Answer[0][j].setEditable(false) ;
    D1.add(Answer[0][j]) ;
    Display.add(D1) ;
    Display.add(D2) ;
    c.add(Display) ;
    public void runClient()
         try
    {      socket=new Socket("localhost",8000);
    DataInputStream in=new DataInputStream(socket.getInputStream());
    int x=0;
    int o=0;
    try{
    while(true)
         while(trial_num<10)
              x=in.readInt();
              //System.out.println(x);
              Output[trial_num][0].setText(String.valueOf(x));
              o=in.readInt();
              //System.out.println(o);
              Output[trial_num][1].setText(String.valueOf(o));
              for(int i=0;i<6;i++)
              color[trial_num][i].setEnabled(false);
         ok[trial_num].setEnabled(false);
         trial_num++;
         col_now=0;
         if(x==6)
                   JOptionPane.showMessageDialog( null, "Congratulation, you've won the game !! " );
                   //ok[trial_num].setEnabled(false);
    break;
         if(trial_num<10)
         {  for(int i=0;i<6;i++)
              color[trial_num][i].setEditable(true);
              count[i]=5;
         ok[trial_num].setEnabled(true);
         if(x!=6)
         {  JOptionPane.showMessageDialog( null, "sorry you did not win the game");
         temp=in.readUTF();
         System.out.println(temp);
         //temp=in.readUTF();
         //System.out.println("can");
         for(int i=0;i<6;i++)
         System.out.println(i);
         char a=temp.charAt(i);
         int index=colorRange.indexOf(String.valueOf(a));
         Answer[0][i].setBackground(colorName[index]);
         trial_num=0;
         for(int j=0;j<10;j++)
         for(int k=0;k<6;k++)
         color[j][k].setBackground(Color.white);
         for(int j=0;j<10;j++)
         for(int k=0;k<2;k++)
         Output[j][k].setText(null);
         for(int i=0;i<6;i++)
              color[trial_num][i].setEditable(true);
              count[i]=5;
         ok[0].setEnabled(true);
         catch(EOFException em){}
         }catch(IOException ex){
              System.out.println("Error:"+ex.toString());}
    public void mouseClicked(MouseEvent e)
    for(int i=0;i<6;i++)
         if(e.getComponent()==color[trial_num][i])
         {         col_now=i;
         break;
    count[col_now]=(count[col_now]+1)%6;
    color[trial_num][col_now].setBackground(colorName[count[col_now]]);
    public void mouseEntered(MouseEvent e)
    public void mouseExited(MouseEvent e)
    public void mouseReleased(MouseEvent e)
    public void mousePressed(MouseEvent e)
    public void actionPerformed(ActionEvent e)
         try{
              send();
         }catch(IOException et){System.out.println("Error:"+et);}
    public void send()throws IOException
         DataOutputStream out=new DataOutputStream(socket.getOutputStream());
         char cbuf[]=new char[6];
         for(int i=0;i<6;i++)
              cbuf[i]=colorRange.charAt(count[i]);
    System.out.println(cbuf);
         out.writeUTF(new String(cbuf));
    /** Main method */
    public static void main(String[] args) {
    MasterMindClient frame = new MasterMindClient();
    frame.setTitle("Master Mind");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.setLocation(300,300) ;
    frame.setSize(450, 450);
    frame.setVisible(true);
    frame.runClient();
    } // end of class

    I notice that you have several hundred lines of GUI code there. None of them have anything to do with the problem you are trying to solve. So put them all aside and write a SMALL test program that does nothing but the little loop you are having a problem with. Shouldn't be more than 20 lines of code.

  • Cross-post: Multiple feature requests

    Thanks to Jeff Schewe for pointing out the error of my ways in posting in the wrong thread. :)
    Sorry for the cross-post, but didn't want these suggestions to be missed.
    Hi everyone,
    Well, I've been using LR 1.1 for a couple of weeks now, and overall, I love it.
    Having said that, I think LR has room for improvement, especially when compared to something like Lightcraft's LightZone.
    # In particular: 'Default' settings for Identity Plates - At the moment, I have to re-edit the IP every time I create a new catalog
    - In fact, why can't I create Catalog 'templates'? This would be nice for collections, defaults, etc depending on the job I'm doing
    # 'Localized' edits - Lightzone has a cool 'Regions' feature that allows me to selectively apply adjustments to a given region (in fact, so does Capture NX)
    - These regions are specific to the tool (i.e. layer), but I think there is probably a more elegant solution to this
    - In particular, LZ is S-L-O-W compared to LR ... this is probably because they wrote it in Java. On my 2Gb 1.7Ghz, it runs like a DOG, but LR zips along very nicely
    - In particular, a variation on Nikon's uPoint technology (since they patented it and all, I don't imagine Adobe will 'pony up' for a license) - very nice
    # Command-line support / scripting - Why can't I start LR from a script or set defaults, etc using LUA?
    # Edit a LAYERED photoshop document - Why doesn't LR let me edit in photoshop with the original image underneath the LR adjusted one?
    - This makes it impossible to use the LR black & white tools (say) and 'hand colour' the image without significant workflow interruption
    # File / directory naming - Why can't I use replacement tags to name my directories?
    - Why can't I create an individual SESSION-BASED Import number (i.e. to record each card for a given job)?
    - This needs to be much more flexible than it is already
    That's about it, I think (at this stage, I guess - give me a few more weeks with it). All of these things would really help to make the workflow much more seamless and efficient, IMMHO.
    With all that said, the speed and efficiency of editing with LR is lovely. I'm very happy with the breadth and depth of the tool, I just hope that 2.0 takes into account all of the above.
    Oh, one more thing:
    # Why do the stacking options not work in collections?! - It took me AGES to figure this out, and it's so non-intuitive
    K, so ONE more thing ...
    Wouldn't it be nice if we could select multiple images in a stack and export them to a LAYERED PSD as individual layers?
    Imagine the possibilities of blending various develop presets selectively with masks ...
    Right now, there's no easy way to do this. :(
    Cheers,
    Matthew

    Localised or targeted editing along with some kind of 3rd party plug-in structure is pretty much the holy-grail next step for Lr in my eyes.
    If it can be successfully implemented then I'd waste less time nipping back and forth between Lr and other apps. And I REALLY would like Lr to become my one-stop photography work-flow solution.
    I'd also be very keen to see some commercially developed pre-sets for the web and slide modules. I'm hopeless at that sort of development, but would happily pay for some high quality solutions.
    Lastly - in the print module I'd find it very helpful if I could drag and drop photos to any grid cells I have set up. once there, dragging them around to rearrange them would also be a very nice addition.
    I'll add my voice to the praise - V1.1 is a very elegant way of working for me and I really enjoy the interface. Lastly, Lr hasn't crashed on me since the 1.1 upgrade.
    Nice.
    Anndra.

  • Cross Posting should be allowed

    Hold on....I know some of you may ask me to go through Rules of Engagement and there are obvious benefits of not allowing cross posting. I myself have used Abuse button number of times for people who cross post and moderators have sometimes locked them.
    But in certain scenarios it makes sense:-
    1. Assuming I am facing a issue in an ESS area, there is ERP-Employee Self Service and Portal forums.
    2. I am developing a Web Dynpro Java Applciation which utilizes Web Services an d have an issue in  WSDL configuration then it would make sense to post in Web Dynpro Java as well SOA forum
    3. I am developing a Interactive Form in VC and having some issue. (A similar thread in Adobe Forums prompted to open this thread.). Should i open a thread in Adobe Forums or VC?
    The reason is simple for cross posting - All forums have different set of users/contributors and when you are stuck somewhere in between, you want to maximize your chance of any help from all corners.
    Isn't it why people log in SCN? Get help and resolve issues. What are your thoughts?

    Until we get a improved system with [tagging|http://en.wikipedia.org/wiki/Tag_%28metadata%29] (as mentioned already by Thomas), let's think what we can do with the current SCN forums. I agree that there are definitely cases where multiple forum categories are applicable. However, as Rob pointed already out, the real problem with cross-postings is that you get two more or less independent threads (even if cross-referenced) with people wasting their valuable time (either because they don't know about the other ones or it's hard to make sense out of the answers posted to those multiple threads).
    Thus my general recommendation would be the following:
    <ol>
    <li>Start with one thread in the most promising and applicable forum.</li>
    <li>If after some time (I'd say at least a day, probably more) the thread doesn't produce anything useful, create a new thread in the next forum referencing the old one.</li>
    <li>Now add in your original thread a link to the new one and mark the original one as answered.</li>
    </ol>
    It's still kind of awkward, because one cannot close a thread without marking it as answered (so we put in some kind of future debt, hoping that the other thread will get an answer). Having moderators lock the thread is in my opinion not feasible, because we shouldn't bother them with silly work like this (I'm sure they are already overloaded with their work as is). As I don't really think the forums are currently a great knowledge base, I think it's acceptable to close the old thread by marking it as answered (even though it or the new thread might never be answered).
    In a way this approach is like bumping your thread and pitching it possibly to a different audience. When used with great care (and I mean that!), I think this is acceptable. Concurrent active cross-postings in different forums are in my opinion not acceptable.
    Cheers, harald

  • TS1277 i cant remember my 2 authorization questions  answers and when when i click send to email it sends to an email adress thats not mine and now i cant use my $100 what should i do?

    i cant remember my authorization questions answers and when i click send to email it sends to a random email thats not even created but hotmail.
    what should i do???!

    You need to ask Apple to reset your security questions. To do this, click here and pick a method; if that page doesn't list one for your country or you're unable to call, fill out and submit this form.
    (126538)

Maybe you are looking for

  • Can't log in to iMessages/FaceTime on Mac

    I am having trouble logging in to iMessages and FaceTime on my Mac. I read everything here and have tried a bunch of suggestions (if not all of them) in an attempt to rectify the problem. No luck. MBP 17 (late 2010), Mavericks 10.9.4 Here's what I've

  • Windows support software download

    I'm trying to install windows on my mac via boot camp, I've tried downloading the windows support software but everytime the status bar gets half way across it just seems to hold there forever, I've even seen a movie in the elapsed time, help please.

  • How to get smile sad face ?

    My Project If you push the �Smile� button you get a smiling face. If you push the �Sad� button you get a sad face. i am not able to get how to build smile face and sad face in the frame null

  • Not Check Internal Order - Budgeting in ME21N

    Hi Expert; Please help me. When PR is converted into a PO using account assignment:F, System do not check budget ??? Internal Order = 30007 and Budget =  100,000. Thanks.

  • Unwanted Contact Sync disaster

    I have just got the 7.1 upgrade. Unbeknownst to me the BB has picked one of my email addresses and synced all my contacts to it over the net . . . this is really bad as I don;t want my contacts synced to any of my email accounts, ever. i just want th