Invisible string

I have magic string magicString , it prints the same as ordinaryString. I want to catch magicString in my program and if it is magic string println: " he-he, I won, magicString" :)
How can I find invisible characters in magicString?

Well it printrs as:
String ordinaryString ="                                 ";
System.out.println(ordinaryString);
System.out.println(magicString);
//the same output but  magicString.equals(ordinaryString) == false

Similar Messages

  • How to handle an invisible character in a string?

    Hi,
    I have an interesting situation-
    select bac_person_id, length(bac_person_id) from bkmap_personid_stg where BAC_PERSON_ID like '%27136317%'
    The result is -
    BAC_PERSON_ID|LENGTH(BAC_PERSON_ID)
    27136317|     9
    I don't know what is the invisible character here?
    It is certainly not a blank character as trim is not working -
    select * from bkmap_personid_stg where trim(BAC_PERSON_ID) = '27136317'
    no records!!
    But substr does give me the resullt -
    select * from bkmap_personid_stg where substr(BAC_PERSON_ID,1,8) = '27136317'
    How can I know which is the last character? and How to handle it?

    girija_pathak wrote:
    How can I know which is the last character? and How to handle it?You use the DUMP() function in SQL in order to see the actual content of the column.
    E.g.
    select DUMP(bac_person_id) from bkmap_personid_stg where bac_person_id like '%27136317%'
    The decimal character values will be displayed - enabling you to see where and what control characters characters exist in the string value for that column.

  • Make string of MCs invisible/visible...

    I have a map of states state when a particular state is clicked on, the fla centers on and zooms to that state.  When you click on a state a unique ID is pulled from an xml.  Using this ID, I can then call all the counties that are part of this state through the county's xml which is also loaded on my stage.
    For example if I click on Arizona, it zooms and I get a trace of all the instance names of the counties within Arizona.
    //call all instance names of Arizona counties
    cldcnfips=(cntXml.Records.Record.(STATE_FIPS==cldstfips).afips.children());
    trace(cldcnfips);
    //The trace looks like this
    a04001a04003a04005a04007a04009a04011a04012a04013a04015a04017a04019a04021a04023a04025a04027
    //where "a" is the first character in each county's instance name
    One of my first lines of code makes my counties invisible.
    //dont show the counties yet
    this.cnt.all_cnt.visible=false;
    What I'd like to do is make just the called state's counties visible on zoom.
    Since I've created a var which is a string of the counties I am interested in, can I specify that just those counties become visible?  I've tried this code but it does not work
    this.cnt.all_cnt[cldcnfips].visible=true
    I am worried that the string I am pulling as a reference for those counties (cldcnfips) might not work for calling those instances.
    Does anyone have any suggestions or insights?

    The only hitch is making all the states visible when i tween over to a new state...
    For example.. This code is the final step in my tween.. It scales the parent mc and makes the state invisible..  It is rerun everytime a select a new state.
    function zoomhide(){
              cnt.scaleX=scprop;
              cnt.scaleY=scprop;
              cnt.all_sts[calledfips].visible=false;
    What code can I use to make all state visible so then when i rerun this function, only the selected state is invisible..
    I tried placing
    cnt.all_sts.visible=true;
    Before zoomhide runs but this does not work..  If you'd like to see the whole function that is powering the zoom, tween and scale, here it is..
    function ststwn(e:MouseEvent):void{
         //I tried using this to make everything visible before making the selected state invisible
            this.cnt.all_sts.visible=true;
         var calledfips:String;
         calledfips=stsXml.Records.Record.afips[e.currentTarget.ivar];     
         //create vars for x,y cordinates of clicked county (child)
         var calledx:Number;
         calledx=(cnt.all_sts[calledfips].x);
         var calledy:Number;
         calledy=(cnt.all_sts[calledfips].y);
         var goto:Point=new Point(0-calledx,0-calledy);
         TweenLite.to(cnt.all_sts,.5,{x:goto.x,y:goto.y});
         TweenLite.to(cnt.all_cnt,.5,{x:goto.x,y:goto.y});
         TweenLite.to(cnt.stsout,.5,{x:goto.x,y:goto.y,onComplete:twnn});
         var wprop:Number;
         wprop=stage.stageWidth/cnt.all_sts[calledfips].width;
         var hprop:Number;
         hprop=stage.stageHeight/cnt.all_sts[calledfips].height;
         var cldstfips:Number;
         cldstfips=(stsXml.Records.Record.(afips==calledfips).STATE_FIPS);
         var     cldcnfips;
         cldcnfips=(cntXml.Records.Record.(STATE_FIPS==cldstfips).afips.children());
         cnt.all_sts[calledfips].visible=true;
         function cnnn(){
                   cnt.all_sts[calledfips].visible=false;
                   if (wprop>hprop){
                   var scprop:Number=hprop*.85;
                        } else {
                        var scprop:Number=wprop*.85;
         function twnn(){
              cnt.scaleX=scprop;
              cnt.scaleY=scprop;
              cnt.all_sts[calledfips].visible=false;

  • How to invisible perticular row of a table column?

    Hi All,
    I want to set invisible or blank in perticular row of table column.
    I have a table, contains 2 row in that , one of the column contains button. If i clik on this button(ex: 1st row button ) it add new row with different data, it contains button also in that column, but i want to invisible that button . I tried like this
    I create one attribute of type WDUI_VISIBILITY. and bind visible property of that column. and code in button action is..
         DATA lo_el_context TYPE REF TO if_wd_context_element.
       DATA ls_context TYPE wd_this->Element_context.
       DATA lv_visible TYPE wd_this->Element_context-visible.
    get element via lead selection
       lo_el_context = wd_context->get_element( ).
    get single attribute
       lo_el_context->set_attribute(
         EXPORTING
           name =  `VISIBLE`
           value = wdyn_ui_visibility_none ).
    But, All buttons are invisible here. i.e., in first 2 rows buttons also invisible. But i want to invisible 3 row button only. How to do this? It is possible?
    Thanks,
    Kris.

    Hi Sarbjeet,
    button1 - name1-marks.
    button2-sname1-marks.
    on click of button1 - output is ---name2-marks, if i click again on button getting name3-marks.
    if i click on button2 --- sname4-marks, but required output is  --- sname2-marks.
    if i click on button1 again o/p is -- name5-marks, but req is name4-marks.
    code :
      DATA lv_count LIKE ls_context-count.
      data count type char2.
    get element via lead selection
      lo_el_context = wd_context->get_element(  ).
    get single attribute
      lo_el_context->get_attribute(
        EXPORTING
          name =  `COUNT`
        IMPORTING
          value = count ).
    count = count + 1.
    lo_el_context->set_attribute(
        EXPORTING
          name =  `COUNT`
          value = count ).
      data: lr_node type ref to if_wd_context_node,
            ls_data type if_main_view=>element_node,
            lt_data type if_main_view=>elements_node.
    data indx type i.
          DATA lo_el TYPE REF TO if_wd_context_element.
          lr_node = wd_context->get_child_node( 'NODE' ).
          lo_el = wdevent->get_context_element( 'CONTEXT_ELEMENT' ).
          indx = lo_el->get_index( ).
    if indx = 1.
         data seg type string value  'Nomenclature'.
    data count type char2.
      CONCATENATE seg count into seg.
      CONDENSE seg.
    ls_data-name = seg.
    ls_data-variant = 'NOBUTTON'.
    APPEND LS_DATA TO LT_dATA.
    LR_NODE->BIND_TABLE(
    NEW_ITEMS = LT_DATA
    SET_INITIAL_ELEMENTS = ABAP_false ).
    clear count.
    clear seg.
    endif.
    If indx = 2.
    clear count.
        data seg1 type string value  'Sub Nomenclature'.
      CONCATENATE seg1 count1 into seg1.
      CONDENSE seg1.
    ls_data-name = seg1.
    ls_data-variant = 'NOBUTTON'.
    APPEND LS_DATA TO LT_dATA.
    LR_NODE->BIND_TABLE(
    NEW_ITEMS = LT_DATA
    SET_INITIAL_ELEMENTS = ABAP_false ).
    clear count1.
    endif.
    Thanks,
    kris.
    Edited by: kissnas on Feb 1, 2011 7:05 AM

  • How do I make a JTextArea invisible to the mouse?

    Consider the applet below. There is a small JTextArea sitting in the glass pane. There are 3 JButtons sitting in a JPanel that is sitting in the content pane. One is completely under the JTextArea, one is half in and half out, & the last is completely outside it (at least I hope thats what it looks like on your machine.) The idea is when you click the disable button the JTextArea is disabled and you can click on the button that's underneath it.
    But it doesn't work that way. even when the JTextArea is disabled the mouse still cant click through it.
    Is there some way to make the JTextArea completely invisible to the mouse so I can click through it? I know setVisible(false) on the glass panel will work but I only want it to be invisible to the mouse, not my eyes.
    Thanks.
    /*  <applet code="MyTest14" width="400" height="100"></applet>  */
    // testing glass panes
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import javax.swing.*;
    public class MyTest14 extends JApplet implements MouseListener
    TextPanel textPanel;
    JPanel buttonPanel;
    JButton underButton, enableButton, disableButton;
    JTextArea jta;
    public void init()
      Container contentPane = getContentPane();
      contentPane.setLayout(new FlowLayout());
      contentPane.setBackground(Color.WHITE);
      underButton = new JButton("Under textarea");
      underButton.addMouseListener(this);
      enableButton = new JButton("Enable textarea");
      enableButton.addMouseListener(this);
      disableButton  = new JButton("Disable textarea");
      disableButton.addMouseListener(this);
      buttonPanel = new JPanel(new BorderLayout());
      buttonPanel.add(underButton, "West");
      buttonPanel.add(enableButton, "Center");
      buttonPanel.add(disableButton, "East");
      jta = new JTextArea();
      jta.setPreferredSize(new Dimension(200,80));
      jta.setOpaque(false);
      jta.setLineWrap(true);
      jta.setWrapStyleWord(true);
      textPanel = new TextPanel();
      textPanel.setLayout(new FlowLayout(FlowLayout.LEFT));
      textPanel.add(jta);
      jta.setBorder(BorderFactory.createLineBorder(Color.black));
      contentPane.add(buttonPanel);
      setGlassPane(textPanel);
      textPanel.setVisible(true);
    public void mouseClicked(MouseEvent e)
      if (e.getSource() == enableButton) { jta.setEnabled(true); }
      else if (e.getSource() == disableButton) { jta.setEnabled(false); }
      else if (e.getSource() == underButton) { System.out.println("You reached the under button!"); }
    public void mouseExited(MouseEvent e) {}
    public void mouseEntered(MouseEvent e) {}
    public void mouseReleased(MouseEvent e) {}
    public void mousePressed(MouseEvent e) {}
    class TextPanel extends JPanel
      public TextPanel()
       super();
       setOpaque(false);
      public void paintComponent(Graphics g) { super.paintComponent(g); }
    }

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Test extends JFrame {
      Container content = getContentPane();
      JButton jb = new JButton("Press"), disenable = new JButton("Enable");
      JTextArea jta = new JTextArea("Now is the time for all google men to come to the aid of their browser");
      public Test() {
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        JPanel jp = new JPanel();
        content.add(jp, BorderLayout.CENTER);
        jp.add(jb);
        jb.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent ae) { System.out.println("Click!"); }
        jta.setLineWrap(true);
        jta.setWrapStyleWord(true);
        jta.setOpaque(false);
        jta.setEnabled(false);
        JScrollPane jsp = new JScrollPane(jta);
        jsp.setOpaque(false);
        jsp.getViewport().setOpaque(false);
        jsp.setPreferredSize(new Dimension(130,130));
        JPanel glass = (JPanel)getGlassPane();
        glass.add(jsp);
        glass.setVisible(true);
        jta.addMouseListener(new MouseListener() {
          public void mouseReleased(MouseEvent me) { mousy(me); }
          public void mouseClicked(MouseEvent me) { mousy(me); }
          public void mouseEntered(MouseEvent me) { mousy(me); }
          public void mouseExited(MouseEvent me) { mousy(me); }
          public void mousePressed(MouseEvent me) { mousy(me); }
        content.add(disenable, BorderLayout.SOUTH);
        disenable.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent ae) {
            jta.setEnabled(!jta.isEnabled());
            disenable.setText(jta.isEnabled()?"Disable":"Enable");
        setSize(200,200);
        setVisible(true);
      void mousy(MouseEvent me) {
        if (jta.isEnabled()) return;
        Point p = SwingUtilities.convertPoint((Component)me.getSource(), me.getPoint(), content);
        Component c = content.findComponentAt(p);
        if (p!=null) c.dispatchEvent(SwingUtilities.convertMouseEvent((Component)me.getSource(), me, c));
      public static void main(String[] args) { new Test(); }
    }

  • Running in invisible mode

    Hi,
    I have a Java Frame that i want to run in invisible mode. The problem is that i have to set it to visible first, then invisible otherwise it doesn't seem to execute. Also if i set it to ICONIFIED, the program doesn't run until it is maximized.
    How can i make it so i never have to make it visible and have it still run?
    Thanks for any help.

    First explain what you mean by "executing a frame". Hi, this is the first time i have done anything in Java. I am trying to run this java program from a C program, but don't want to see the window pop up at all. But if i don't have the f.setVisible(true) where it is, the viewer modules, which are capturing streaming data and writing to bmp's to not work. The same is true if i set to ICONIFIED.
    Thanks, hope this helps...
    public static void main(String args[])
    ms_standalone = true;
    Frame f = new Frame(AppID.getAppID().getAppName());
    f.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent we)
    System.exit(0);
    f.setSize(352, 320);
    f.setLayout(new BorderLayout());
    int numCams = 0;
    StringBuffer concatURL = new StringBuffer();
    for (int i=0;i< args.length;i++)
    String arg = args;
    if (arg.startsWith("-")) {
    int eqidx = arg.indexOf("=")+1;
    if (arg.startsWith("-num=")) {
    numCams = Character.getNumericValue(arg.charAt(eqidx));
    } else {
    usage();
    System.exit(0);
    } else {
    if (concatURL.length() != 0)
    concatURL.append("|");
    concatURL.append(arg.trim());
    // create multiple viewers
    Viewer cv[] = new Viewer[numCams];
    for (int i = 0;i < numCams; i++) {
    cv[i] = new Viewer();
    cv[i].m_parameters.put(PAR_ACCESSORIES, "none");
    String tmpStr = concatURL.toString() + i + ".a";
    cv[i].m_parameters.put("url", tmpStr);
    cv[i].m_camNum = i;
    f.add(BorderLayout.CENTER, cv[i]);
    cv[i].init();
    f.setVisible(true);
    cv[i].start();
    f.setVisible(false);

  • Custom control for list of string,num​eric values

    Hi,
    I want to create a control in labView 6.1 that presents the user with a list
    of string values on the front panel. The actual strings are material names
    (e.g. Si, Al). With each string value would be associated a floating point
    value that would then be used on the diagram for some numerical processing.
    What I have done is create an array of {string,digital control} clusters,
    but it looks kind of clunky on the front panel. Is there a more elegant
    solution?
    Thanks,
    -John P
    God is a comedian playing to an audience too afraid to laugh.
    - Voltaire

    Some ideas that I use when making this kind of button:
    Make an array of clusters of {string, numeric, boolean} in which:
    The numeric is hidden (right click menu/advanced/hide control) (skip
    this if you want the numeric to display
    and
    The boolean is colored TRANSPARENT and overlaid on the string. So it
    it seems to the user that he clicks on the string but in fact clicks
    on an invisible boolean.
    Another idea is to combine the strings and booleans into one set of
    buttons by making a cluster of identical booleans arranged so that
    they look like an array and setting the boolean text on each button
    to the desired string.
    These ideas imply writing some radio button logic to generate an
    index to select the desired numeric element. This is more work than it
    m
    ight seem
    Easiest is to use events and convert the mouse coordinates into an
    array index. I just made one of these and I have the code handy if
    you like.
    Adam
    On Wed, 18 Jun 2003 19:06:45 -0500, John P wrote:
    >Hi,
    >
    >I want to create a control in labView 6.1 that presents the user with a list
    >of string ...

  • How to save string in a file with special-chars

    Hello,
    i´m usingthe MD5-llb to create a password.
    Then i  want to save this MD5-string to a file and later read it back abd compare.
    Works perfect with one proplem:
    Some word create a "\r" in the MD5-string and when i save this string to a file and read it back then its read back as a "\n" so that the compare is not working.
    My question is: How can i save a string exactly like it is to somewhere and read it back (also invisible chars)
    For example the word: heinz
    is in MD5: \r\FB^\07\A6\07T\C7\D9\C2\94\AB\C9\1DS\95 (string indicator as codes display)
    when i save the string to a file then i rerad back: \n\FB^\07\A6\07T\C7\D9\C2\94\AB\C9\1DS\95
    I used the "write text file" and "read text file"
    What do i have to use to save and read the same?
    Thx
    Solved!
    Go to Solution.

    I believe an MD5 hash is 16 bytes long. Use the binary read and write file I/O functions and specify the length of the data to be read or written.
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • Can you make a column in atable invisible

    Hi,
    I am using the defaulttablemodel to display my table.
    The data are in a vector which are sorted in descending order based on a column.
    Is it possible to make a column in a table invisible.
    The reason is that I need to sort my table based on a particular column but i don't want to display that column.
    ---thanks

    Hi,
    I tried to code yout example:
    JTableHeader header = tblKundenInteressenten.getTableHeader();
    header.setReorderingAllowed(false);
    DefaultTableColumnModel columnModel = (DefaultTableColumnModel) header.getColumnModel();
    int lastIndex = columnModel.getColumnCount() - 1;
    TableColumn columnOid = columnModel.getColumn(lastIndex);
    columnModel.removeColumn(columnOid);
    header.setColumnModel(columnModel);
    tblKundenInteressenten.setTableHeader(header);
    ...but whenever I want to get the data back like this:
    DefaultTableModel dtm = (DefaultTableModel) tblKundenInteressenten.getModel();
    Vector daten = dtm.getDataVector();
    Vector zeile = (Vector) daten.firstElement();
    String oid = (String) zeile.lastElement();
    System.out.println("OID: " + oid);
    I have an empty JTable in my GUI ...
    what happened?

  • Cursor becomes invisible in JTextField after using default button

    In my application there is an update screen (JPanel). I am using default button in that panel. The input field is a normal JTextField. When the update is over the cursor goes back to the input JTextField.
         Now my problem is that when I carry out update with mouse, the cursor is correctly placed into the input JTextField and is visible after the update is over. On the other hand, if I carry out the same update operation using default button (using keyboard), the cursor gets placed correctly in the input JTextfield column, but becomes invisible. If I minimize and then again maximize the window, the cursor appears back. What am I missing ? Note that I am using component.requestFocusInWindow() to get focus back to the input JTextField.
    regards,
    nirvan

    While trying to reproduce the behaviour for SSCCE, I found that it is the JOptionPane.showMessageDialog() that is causing the problem. Here is the SSCCE.
    package com.ns;
    import java.awt.BorderLayout;
    import java.awt.Dimension;
    import java.awt.Toolkit;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JButton;
    import javax.swing.JOptionPane;
    import javax.swing.JPanel;
    import javax.swing.JTextField;
    import javax.swing.WindowConstants;
    public class TestFocus extends javax.swing.JFrame {
        // Variables declaration - do not modify
        private JTextField field1;
        private JTextField field2;
        private JPanel jPanel1;
        private JButton reset;
        private JButton update;
        // End of variables declaration
        public TestFocus() {
            initComponents();
            setDefaultButton();
        @SuppressWarnings("unchecked")
        // <editor-fold defaultstate="collapsed" desc="Generated Code">
        private void initComponents() {
            jPanel1 = new JPanel();
            field1 = new JTextField();
            field2 = new JTextField();
            update = new JButton();
            reset = new JButton();
            setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
            field1.setPreferredSize(new Dimension(40, 20));
            jPanel1.add(field1);
            field2.setPreferredSize(new Dimension(40, 20));
            jPanel1.add(field2);
            update.setText("Update");
            update.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent evt) {
                    updateActionPerformed(evt);
            jPanel1.add(update);
            reset.setText("Reset");
            reset.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent evt) {
                    resetActionPerformed(evt);
            jPanel1.add(reset);
            getContentPane().add(jPanel1, BorderLayout.CENTER);
            Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
            setBounds((screenSize.width-385)/2, (screenSize.height-258)/2, 385, 258);
        }// </editor-fold>
        public void setDefaultButton(){
            this.getRootPane().setDefaultButton(update);
        private void updateActionPerformed(ActionEvent evt) {
            // TODO add your handling code here:
            JOptionPane.showMessageDialog(this,"Activity Updated Succesfully in Database.",
                                            "Information",
                                            JOptionPane.INFORMATION_MESSAGE);
            update.setEnabled(false);
            field1.setEditable(false);
            reset.setEnabled(true);
            this.getRootPane().setDefaultButton(reset);
        private void resetActionPerformed(ActionEvent evt) {
            // TODO add your handling code here:
            field1.requestFocusInWindow();
            field1.setText("");
            field1.setEditable(true);
            reset.setEnabled(false);
            update.setEnabled(true);
            this.getRootPane().setDefaultButton(update);
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new TestFocus().setVisible(true);
    }If I remove the JOptionPane.showMessageDialog() method, everything works fine with mouse as well as keyboard.
    regards,
    nirvan.

  • Invisible character as a separator

    I have a description column (VARCHAR2 type) in a table. I need to add a separator (at a pre-determined position which is based on some logic) within the description to identify it in 2 portions. The description with the separator needs to be persisted in the table. I also need to display the description in the online pages, but without the separator.
    Eg: If I use '|' as the separator then the description would be -
    Databases are|useful
    For the online page, I would need to use some kind of trim() in the SELECT query to remove the '|'. The trim() is going to be an overhead and I'm trying to see if this can be avoided.
    Is there any special character which can be used as a separator, but doesn't have to be trimmed? Something like a character which exists in the column but is invisible in ouput of a SELECT query.

    museshad wrote:
    I have a description column (VARCHAR2 type) in a table. I need to add a separator (at a pre-determined position which is based on some logic) within the description to identify it in 2 portions. Not very sensible in data modeling and design terms. You are now forcing a single string attribute (implemented as a database column) of the entity to have an inherent structure and intelligence. And this is not supported by the string data type.
    There are two basic approaches to this problem.
    If the data model is correct and the string attribute is correctly modeled, then you have a rendering issue - how to display that attribute's value to an end-user. This is a client application issue. It deals with the actual rendering part of the data in the data model. It should be applying the "+split text over multiple lines+" logic.
    If the data model is not correct and the attribute contains 2 "sub elements" then that should be corrected. The existing column should be redefined as 2 columns and a single mass UPDATE applied to the table to correct the contents (and create the intelligent data structure). Alternatively, the single column can be re-used and the string data type changed into a structure that supports the required intelligence that is needed. An user defined ADT (Advance Data Type) can be created in SQL to support this structure.
    Keep in mind that if you hack the existing column's contents, you are now injecting structure data that is not part of the actual column value. All clients using that table and that column, will now need to recognise that and be able to determine the actual structure for that that column. This is not a sensible approach.

  • How to programmatically set the Visibility of an Iview INVISIBLE ?

    Hi ..... I need to programmatically set the visibility of an IView for a user Invisible - In order to achieve that , I am trying the below code....But getting errors-
    Code -
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sapportals.portal.pcd.gl.PcdInitialContextFactory");
                 env.put("com.sap.portal.jndi.requested_aspect","com.sap.portal.pcd.gl.PersistencyAspect");
    env.put("java.naming.factory.object", "__IPcdContext__");
    InitialContext iCtx = null;
    String iViewID = "pcd:portal_content/ABC/1Portal/mywork/iviews/XYA_iViews/adf.ivw_ess_jspdynpage";
                 iCtx = new InitialContext(env);
                 IiView result =(IiView)iCtx.lookup(iViewID);     
                 IiViews iViewSrv = (IiViews)PortalRuntime.getRuntimeResources().getService(IiViews.KEY);
    INewObjectDescriptor IVtoCreate =(INewObjectDescriptor) iViewSrv.instantiateDescriptor(CreateMethod.NEW,"par:/applications/com.sap.km.cm/components/navigation",request.getUser());
    IVtoCreate.putAttribute("com.sap.portal.navigation.invisible", true);
    the above method putAttribute is not apllicablt for (String,Boolean)\
    Please suggest as to how can I programmatically set an Iview Visible/Invisible .

    I think the property is com.sap.portal.navigation.Invisible with a capital I for invisible...
    This blog has an example: Hiding portal role content with a simple iView

  • How to set a single tab in JTabbedPane invisible

    Hello,
    I want to set only a single tab invisible out of 9 tabs in JTabbedPane. I can disable the tab but not able to set invisible.
    Thanking you in advance.

    you may use JTabbedPane.removeTabAt(int) method as long as you don't want the tab to appear & when needed use JTabbedPane.insertTabAt(String, Icon, Component, String, int) method.
    as far as i know this is only way to achieve our want. this should help you.
    regards,
    Afroze.

  • Why are the buttons invisible on WM_CREATE?

    Can anybody tell me why the buttons are invisible at Program start? They are only then visible, if the client are is invalidated, in other words, if i resize/minimize the window etc.
    public class Calculator extends Frame
         private Button[] button;
         private Panel p_button;
         public Calculator()
              super();
              SetWindowProperties();
              button = new Button[10];
              p_button = new Panel();
              CreateButtons();
              AddPanels();          
              AddButtons();
              SetButtonProperties();          
              addWindowListener(new WindowHandler());
         private void SetWindowProperties()
              setTitle("Calculator");
              setBackground(Color.white);
              setLayout(new BorderLayout());
              setSize(400,400);
              setLocation(250,200);
              setVisible(true);
         private void CreateButtons()
              for (int i=0; i<=9; i++)
                   button[i] = new Button(String.valueOf(i));
         private void SetButtonProperties()
              for (int i=0; i<=9; i++)
                   button.setSize(50, 50);
                   button[i].setBackground(Color.gray);
         private void AddButtons()
              p_button.setLayout(new GridLayout(5, 3, 5, 5));
              for (int i=1; i<=9; i++)
                   p_button.add(button[i]);
              for (int i=1; i<=9; i++)
                   button[i].addActionListener(new ButtonHandler());
         private void AddPanels()
              add(p_button, BorderLayout.CENTER);

    move
    SetWindowProperties();
    after
    SetButtonProperties();
    if i do that, i never can see the buttons, and this is obvoius.(your suggestion is not logical)
    I am a C++-Programmer and i simply dont like the Java coding convention.
    By the way, does anyone have still an idea, why the buttons are not visible at programstart?
    What about:
    button = new Button(String.valueOf(i));
    What do you think of that statement?What should i think of ? It creates buttons with captions 1,2,3 ...
    PS: At the end of line i forgot to copy the last end-block statement from the code during posting.
    So if anyone tries the code, please add a " } "

  • How can i make a plot in a 3d graph invisible

    hello all,
    attached is a half-way completed vi which shows how i would make the plot/plots in the 3d graph invisible. unfortunatly i do not know how "item" can refer to the plot i want to make invisible.
    any ideas?
    Solved!
    Go to Solution.
    Attachments:
    remove plot in 3d graph.vi ‏27 KB

    You are almost correct.
    The Item input is a string whose value is the name of the target plot. You can view all the plots names from shortcut menu->"CWGraph3D" group->"Properties" item->"Plots" tab ->"Plots" list.
    Attachments:
    remove plot in 3d graph.vi ‏20 KB

Maybe you are looking for

  • HP OJ Pro 8600-N911a, W-7 USB, lost natural Scan and Ink Level displays and/or capabilities

    HP Officejet Pro 8600 e-All-in-One Printer - N911a printer connection = USB (no wireless) operating system = Windows 7 64 bit Windows 7 64-bit OS laptop computer = HP Pavilion DV7-6187CL no recent hardware/software changes by me that I am aware of »H

  • Backup fail...........................

    Hello my backup going to be fail... logs as Job started Step 001 started (program RSDBAJOB, variant &0000000000241, user ID BASIS) Execute logical command BRBACKUP On host sapodev Parameters:-u / -jid ALL__20080802111822 -c force -t online -m all -p

  • Down payment request for other special GL transactions

    Hi ALL, Is it possible to post down payment request for other special GL transactions? If not , I Have a scenario that I have to generate down payment request with different alternative reconciliation accounts , but same reconciliation account. As we

  • Inbound Process Code for ARTMAS

    Hello, Can any body help me which Inbound Process Code I need to use for Message type ARTMAS. When I used process code AFSA, Idoc created with status 51 and it says Function module not allowed: AFS_RETAIL_ARTMAS_IDOC_INPUT We are using SAP Retail 4.6

  • Bridge not Remembering Last Position for Side Panels?

    The side panels in Bridge CS6 will not stay to the last set position when I close? I have thought that this was a case of bridge not closing properly on Windows (7) shutdown. I then tried setting the side panels to where I would like them and went Fi