APEX 4.1 - Populate DB based on right panel of shuttle

APEX version: 4.1.1.00.23
Oracle 11g
I have a shuttle on a page, and when I move item(s) to the right panel from the left, I want to update a table in the database with what is in a select list.
In this case, when I select 'Analyst_1' from the drop down, it will populate the right side based on javascript.
[Screen Shot 1|http://i.stack.imgur.com/WhB6h.jpg]
DB table (before clicking button):
             Field                          Analyst
Co-Borrower Credit Score       Analyst_1
Appraised Value               (null)
Appraisal Identifier          (null)Then, after I move some items from the left panel to the right panel and click 'Apply Changes', I want 'Analyst_1' to be put in the analyst field on the DB for each of the field names on the right panel.
[Screen shot 2|http://i.stack.imgur.com/nMSvU.jpg]
DB table (after clicking button):
            Field                        Analyst
Co-Borrower Credit Score    Analyst_1
Appraised Value             Analyst_1
Appraisal Identifier        Analyst_1Here is my code for when the button 'Apply Changes' is clicked.
UPDATE data_table
   SET analyst_name = :P51_ANALYST
WHERE field IN (SELECT a_field
                   FROM
                     xmltable('/root/e/text()' passing xmltype('<root><e>'
                     || REPLACE(:P51_SHUTTLE_RIGHT,':','</e><e>')
                     || '</e></root>') columns a_field VARCHAR2(50) path '/'));Edited by: Sid_244 on Nov 14, 2012 12:35 PM
Edited by: Sid_244 on Nov 14, 2012 12:37 PM

Rohit -
I tried your example, but when I click the 'Apply Changes' button, the DB table removes all of the items that are associated with the analyst in the select list. So if there was anything in the right panel or items that I moved over to the right panel, the analyst is removed from their attribute.
Here is an example of what I am trying to accomplish:
http://apex.oracle.com/pls/apex/f?p=27554:51
login: demo
pw: demo
Here is the code that I ran:
DECLARE
l_selected HTMLDB_APPLICATION_GLOBAL.VC_ARR2;
BEGIN
  l_selected := HTMLDB_UTIL.STRING_TO_TABLE(:P51_SHUTTLE);
  FOR i IN 1..l_selected.count
  LOOP
        UPDATE DQ_MANUAL_EDIT
          SET DQ_ANALYST = :P51_ANALYST
          WHERE DQ_ATTRIBUTE in (l_selected(i));
  END LOOP;
END;Other failed codes:
declare 
v_count number;
begin
-- First check if the
select count(*) into v_count
from DQ_MANUAL_EDIT
where dq_attribute = :P51_SHUTTLE_RIGHT
and :P51_SHUTTLE_RIGHT is not null;
if v_count > 0 then
  -- If it exists then save it
  update DQ_MANUAL_EDIT
  set DQ_ANALYST = :P51_DQ_ANALYST
  where DQ_ATTRIBUTE = :P51_SHUTTLE_RIGHT;
else
  -- Else insert a new record into the table
  insert into DQ_MANUAL_EDIT
  (DQ_ANALYST, DQ_ATTRIBUTE)
  values
  (:P51_DQ_ANALYST, :P51_SHUTTLE_RIGHT);
end if;
end;
--Test #2
declare
    tab apex_application_global.vc_arr2;
begin
    tab := apex_util.string_to_table (:P51_SHUTTLE_RIGHT);
    for i in 1..tab.count loop
        UPDATE DQ_MANUAL_EDIT
          SET DQ_ANALYST = :51_ANALYST
          WHERE DQ_ATTRIBUTE = :P51_SHUTTLE_RIGHT;
    end loop;
end;
--Test #3
declare
    tab apex_application_global.vc_arr2;
begin
    tab := apex_util.string_to_table (:P51_SHUTTLE_RIGHT);
    for i in 1..tab.count
    loop
       UPDATE DQ_MANUAL_EDIT
       SET DQ_ANALYST = :51_ANALYST
       WHERE DQ_ATTRIBUTE = tab(i);
    end loop;
end;
--Test #4
DECLARE
var_test  VARCHAR2(2000):= NULL ;
begin
SELECT a_field into var_test
                   FROM
                     xmltable('/root/e/text()' passing xmltype('<root><e>'
                     || REPLACE(:P51_SHUTTLE_RIGHT,':','</e><e>')
                     || '</e></root>') columns a_field VARCHAR2(50) path '/');
end;

Similar Messages

  • Populate DB after moving item from right panel to left panel of shuttle

    Refer to the following forum: Re: APEX 4.1 - Populate DB based on right panel of shuttle
    Refer to the following apex app: http://apex.oracle.com/pls/apex/f?p=27554:51
    Login: demo
    PW: demo
    APEX version: 4.1.1.00.23
    Oracle 11g
    What do I need to add to the page process that when shuttle items are moved from the right panel back to the left panel, 'null' is assigned to the 'Analyst' column of the DB table?
    My current page process updates the DB table column 'DQ_ANALYST' with the name in the select list based on the items in the right panel of the shuttle. (Again see the previous thread: Re: APEX 4.1 - Populate DB based on right panel of shuttle
    declare
        tab apex_application_global.vc_arr2;
        l_count number;
    begin
        tab := apex_util.string_to_table (:P51_SHUTTLE);
        for i in 1..tab.count
        loop
        select count(*) into l_count from DQ_MANUAL_EDIT WHERE DQ_ATTRIBUTE = tab(i);
         if l_count > 0 then
           UPDATE DQ_MANUAL_EDIT
           SET DQ_ANALYST = :P51_DQ_ANALYST
           WHERE DQ_ATTRIBUTE = tab(i);
        end if;
        end loop;
    end;DB table (before clicking button):
    Field                          Analyst
    Co-Borrower Credit Score       Analyst_1
    Appraised Value               Analyst_1
    Appraisal Identifier          Analyst_1When 'Appraised Value' and 'Appraisal Identifier' are moved from the right panel back to the left panel and the 'Apply Changes' button is clicked, I am wanting the 'Analyst' column to be updated with 'null'.
    DB table (before clicking button):
    Field                          Analyst
    Co-Borrower Credit Score       Analyst_1
    Appraised Value               (null)
    Appraisal Identifier          (null)Here is my test code:
    declare
        tab apex_application_global.vc_arr2;
        l_count number;
    begin
        tab := apex_util.string_to_table (:P51_SHUTTLE);
        for i in 1..tab.count
        loop
        select count(*) into l_count from DQ_MANUAL_EDIT WHERE DQ_ATTRIBUTE = tab(i);
         if l_count > 0 then
           UPDATE DQ_MANUAL_EDIT
           SET DQ_ANALYST = :P51_DQ_ANALYST
           WHERE DQ_ATTRIBUTE = tab(i);
        end if;
    --Doesn't work but here is an example of what I am trying to accomplish
         if l_count > 0 then
           UPDATE DQ_MANUAL_EDIT
           SET DQ_ANALYST = null
           WHERE DQ_ATTRIBUTE <> tab(i);
        end if;
        end loop;
    end;

    I used the following code. First, I run an update statement setting the DQ_ANALYST to null where the DQ_ANALYST is equal to the select list field (:P51_DQ_ANALYST). Then based on what is currently on the right panel, set the DQ_ANALYST to what is in the select list field (:P51_DQ_ANALYST).
    declare
        tab apex_application_global.vc_arr2;
        l_count number;
    begin
        UPDATE DQ_MANUAL_EDIT
        SET DQ_ANALYST = null
        WHERE DQ_ANALYST = :P51_DQ_ANALYST;
        tab := apex_util.string_to_table (:P51_SHUTTLE);
        for i in 1..tab.count
        loop
        select count(*) into l_count from DQ_MANUAL_EDIT WHERE DQ_ATTRIBUTE = tab(i);
         if l_count > 0 then
                  UPDATE DQ_MANUAL_EDIT
                  SET DQ_ANALYST = :P51_DQ_ANALYST
                  WHERE DQ_ATTRIBUTE = tab(i);
        end if;
        end loop;
    end;

  • How to populate right side of Shuttle with display/return values?

    Hello,
    I know, that the proper way to populate the right side of shuttle is that:
    declare
         v_list     apex_application_global.vc_arr2;
    begin
         select profile_name return_value
           bulk     collect
           into     v_list
           from     user_profiles
          where     user_id = :p61_user_id;
         return (apex_util.table_to_string (v_list));
    end;It is comfortable for the user to see the name of the profile.
    However, I need a profile_id as a return value, like I have it on the left side of the shuttle.
    The left side of the shuttle is populated with a select list with display/return values, as you know.
    I need both sides of the shuttle to return profile_id in order to create a merge.
    How is it possible to populate the right side of the Shuttle with display/return values?

    All you have to do is to use the subset of shuttle query to assign value to the right side shuttle.
    http://apex.oracle.com/pls/apex/f?p=50942:95
    I have created a dummy page with shuttle query
    SELECT ename, empno FROM emp ORDER by 1then I have defined a pl-sql before header process to assign values to shuttle variable
    using the code
    begin
    :P95_SHUTTLE := '7566:219:7900:7782:90';
    end;since 90 is not one the result set of the shuttle query it is getting displayed as number, and for others it is displaying the text. Thanks.
    --Manish                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • New Z-table to auto-populate description based on the key field entered

    Hi Gurus,
    I have to created a z-table, there are several fields however I am interested in only two
    1) VSTEL and 2) PADEST for shipping point and the printer name. Also there are two other fields I have added to the table that are the descriptions for VSTEL and PADEST. Now the requirement is that when the user enteres a value in table maintenance ( sm30)
    for say VSTEL, then its description should auto populate or propose the right values. Same should happen for the PADEST and its description field.
    Thanks.

    Goto the Table maintenance generator of the Table.
    On this screen.
    Environment -
    > Modification -
    > Events
    Create New entry in the table with T = 05 and Z <any name>
    Save it.
    An editor button appears next to the from name.
    Click on it and create an include.
    Write your code in this include...
    select vstel
           padest
           from table XXXX into table I_XXXX
           where vstel = (Z_VSTEL)User enterd VSTEL in module pool.
    If sy-subrc = 0.
          loop at I_XX into wa_xxx.      
              if wa_xxx-vstel = Z_vstel.
                z_padest(Desc field in Tab maint) = wa_XXX-PADEST.  
              endif.
          endloop.
    endif.
    The same logic can be used to get the desc for VSTEL and PDEST.
    You can change this in many ways based on performance.
    The above code is just to give an idea...
    Regards,
    Kittu

  • How to drag image in left panel then drop into right panel??

    Dear friends.
    I have following code, it is runnable, just add two jpg image files is ok, to run.
    I tried few days to drag image from left panel then drop into right panel or vice versa, but not success, can any GUI guru help??
    Thanks.
    Sunny
    [1]. main code/calling code:
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class ImagePanelCall extends JComponent {
         public  JSplitPane ImagePanelCall() {
              setPreferredSize(new Dimension(1200,300));
              JSplitPane          sp = new JSplitPane();
              sp.setPreferredSize(new Dimension(1200,600));
              sp.setOrientation(JSplitPane.HORIZONTAL_SPLIT);
              add(sp);
              ImagePanel     ip = new ImagePanel();
              ImagePanel     ip1 = new ImagePanel();
              ip.setPreferredSize(new Dimension(600,300));
              ip1.setPreferredSize(new Dimension(600,300));
              sp.setLeftComponent(ip);// add left part
              sp.setRightComponent(ip1);// add right part
              sp.setVisible(true);
              return sp;
         public static void main(String[] args) {
              JFrame frame = new JFrame("Test transformable images");
              ImagePanelCall  ic = new ImagePanelCall();
              frame.setPreferredSize(new Dimension(1200,600));
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.getContentPane().add(ic.ImagePanelCall(), BorderLayout.CENTER);
              frame.pack();
              frame.setVisible(true);
    }[2]. code 2
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class ImagePanel extends JComponent {
         private static final Cursor DEFAULT_CURSOR = new Cursor(Cursor.DEFAULT_CURSOR);
         private static final Cursor MOVE_CURSOR = new Cursor(Cursor.MOVE_CURSOR);
         private static final Cursor VERTICAL_RESIZE_CURSOR = new Cursor(Cursor.N_RESIZE_CURSOR);
         private static final Cursor HORIZONTAL_RESIZE_CURSOR = new Cursor(Cursor.W_RESIZE_CURSOR);
         private static final Cursor NW_SE_RESIZE_CURSOR = new Cursor(Cursor.NW_RESIZE_CURSOR);
         private static final Cursor NE_SW_RESIZE_CURSOR = new Cursor(Cursor.NE_RESIZE_CURSOR);
         public Vector images;
         * Create an ImagePanel with two images in.
         * A MouseHandler instance is added as mouse listener and mouse motion listener.
         public ImagePanel() {
              images = new Vector();
              images.add(new TransformableImage("swing/dnd/Bird.gif"));
              images.add(new TransformableImage("swing/dnd/Cat.gif"));
              setPreferredSize(new Dimension(600,600));
              MouseHandler mh = new MouseHandler();
              addMouseListener(mh);
              addMouseMotionListener(mh);
         * Simply paint all the images contained in the Vector images, calling their method draw(Graphics2D, ImageObserver).
         public void paintComponent(Graphics g) {
              Graphics2D g2D = (Graphics2D)g;
              for (int i = images.size()-1; i>=0; i--) {     
                   ((TransformableImage)images.get(i)).draw(g2D, this);
         * Inner class defining the behavior of the mouse.
         final class MouseHandler extends MouseInputAdapter {
              private TransformableImage draggedImage;
              private int transformation;
              private int dx, dy;
              public void mouseMoved(MouseEvent e) {
                   Point p = e.getPoint();
                   TransformableImage image = getImageAt(p);
                   if (image != null) {
                        transformation = image.getTransformation(p);
                        setConvenientCursor(transformation);
                   else {
                        setConvenientCursor(-1);
              public void mousePressed(MouseEvent e) {
                   Point p = e.getPoint();
                   draggedImage = getImageAt(p);
                   if (draggedImage!=null) {
                        dx = p.x-draggedImage.x;
                        dy = p.y-draggedImage.y;
              public void mouseDragged(MouseEvent e) {
                   if (draggedImage==null) {
                        return;
                   Point p = e.getPoint();
                   repaint(draggedImage.x,draggedImage.y,draggedImage.width+1,draggedImage.height+1);
                   draggedImage.transform(p, transformation,dx,dy);
                   repaint(draggedImage.x,draggedImage.y,draggedImage.width+1,draggedImage.height+1);
              public void mouseReleased(MouseEvent e) {
                   Point p = e.getPoint();
                   draggedImage = null;
         * Utility method used to get the image located at a Point p.
         * Returns null if there is no image at this point.
         private final TransformableImage getImageAt(Point p) {
              TransformableImage image = null;
              for (int i = 0, n = images.size(); i<n; i++) {     
                   image = (TransformableImage)images.get(i);
                   if (image.contains(p)) {
                        return(image);
              return(null);
         * Sets the convenient cursor according the the transformation (i.e. the position of the mouse over the image).
         private final void setConvenientCursor(int transfo) {
              Cursor currentCursor = getCursor();
              Cursor newCursor = null;
              switch (transfo) {
                   case TransformableImage.MOVE : newCursor = MOVE_CURSOR;
                        break;
                   case TransformableImage.RESIZE_TOP : newCursor = VERTICAL_RESIZE_CURSOR;
                        break;
                   case TransformableImage.RESIZE_BOTTOM : newCursor = VERTICAL_RESIZE_CURSOR;
                        break;
                   case TransformableImage.RESIZE_LEFT : newCursor = HORIZONTAL_RESIZE_CURSOR;
                        break;
                   case TransformableImage.RESIZE_RIGHT : newCursor = HORIZONTAL_RESIZE_CURSOR;
                        break;
                   case TransformableImage.RESIZE_TOP_LEFT_CORNER : newCursor = NW_SE_RESIZE_CURSOR;
                        break;
                   case TransformableImage.RESIZE_TOP_RIGHT_CORNER : newCursor = NE_SW_RESIZE_CURSOR;
                        break;
                   case TransformableImage.RESIZE_BOTTOM_LEFT_CORNER : newCursor = NE_SW_RESIZE_CURSOR;
                        break;
                   case TransformableImage.RESIZE_BOTTOM_RIGHT_CORNER : newCursor = NW_SE_RESIZE_CURSOR;
                        break;
                   default : newCursor = DEFAULT_CURSOR;
              if (newCursor != null && currentCursor != newCursor) {
                   setCursor(newCursor);
         public static void main(String[] args) {
              JFrame frame = new JFrame("Test transformable images");
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.getContentPane().add(new ImagePanel(), BorderLayout.CENTER);
              frame.pack();
              frame.setVisible(true);
    }[3]. code 3
    import java.awt.*;
    import javax.swing.*;
    import java.awt.image.*;
    public final class TransformableImage extends Rectangle {
         public static final int MOVE = 0;
         public static final int RESIZE_TOP = 10;
         public static final int RESIZE_BOTTOM = 20;
         public static final int RESIZE_RIGHT = 1;
         public static final int RESIZE_LEFT = 2;
         public static final int RESIZE_TOP_RIGHT_CORNER = 11;
         public static final int RESIZE_TOP_LEFT_CORNER = 12;
         public static final int RESIZE_BOTTOM_RIGHT_CORNER = 21;
         public static final int RESIZE_BOTTOM_LEFT_CORNER = 22;
         public static final int BORDER_THICKNESS = 5;
         public static final int MIN_THICKNESS = BORDER_THICKNESS*2;
         private static final Color borderColor = Color.black;
         private Image image;
         * Create an TransformableImage from the image file filename.
         * The TransformableImage bounds (inherited from the class Rectangle) are setted to the corresponding values.
         public TransformableImage(String filename) {
              ImageIcon ic = new ImageIcon(filename);
              image = ic.getImage();
              setBounds(0,0,ic.getIconWidth(), ic.getIconHeight());
         * Draw the image rescaled to fit the bounds.
         * A black rectangle is drawn around the image.
         public final void draw(Graphics2D g, ImageObserver observer) {
              Color oldColor = g.getColor();
              g.setColor(borderColor);
              g.drawImage(image, x, y, width, height, observer);
              g.draw(this);
              g.setColor(oldColor);
         * Return an int corresponding to the transformation available according to the mouse location on the image.
         * If the point p is in the border, with a thickness of BORDER_THICKNESS, around the image, the corresponding
         * transformation is returned (RESIZE_TOP, ..., RESIZE_BOTTOM_LEFT_CORNER).
         * If the point p is located in the center of the image (i.e. out of the border), the MOVE transformation is returned.
         * We allways suppose that p is contained in the image bounds.
         public final int getTransformation(Point p) {
              int px = p.x;
              int py = p.y;
              int transformation = 0;
              if (py<(y+BORDER_THICKNESS)) {
                   transformation += RESIZE_TOP;
              else
              if (py>(y+height-BORDER_THICKNESS-1)) {
                   transformation += RESIZE_BOTTOM;
              if (px<(x+BORDER_THICKNESS)) {
                   transformation += RESIZE_LEFT;
              else
              if (px>(x+width-BORDER_THICKNESS-1)) {
                   transformation += RESIZE_RIGHT;
              return(transformation);
         * Move the left side of the image, verifying that the width is > to the MIN_THICKNESS.
         public final void moveX1(int px) {
              int x1 = x+width;
              if (px>x1-MIN_THICKNESS) {
                   x = x1-MIN_THICKNESS;
                   width = MIN_THICKNESS;
              else {
                   width += (x-px);
                   x = px;               
         * Move the right side of the image, verifying that the width is > to the MIN_THICKNESS.
         public final void moveX2(int px) {
              width = px-x;
              if (width<MIN_THICKNESS) {
                   width = MIN_THICKNESS;
         * Move the top side of the image, verifying that the height is > to the MIN_THICKNESS.
         public final void moveY1(int py) {
              int y1 = y+height;
              if (py>y1-MIN_THICKNESS) {
                   y = y1-MIN_THICKNESS;
                   height = MIN_THICKNESS;
              else {
                   height += (y-py);
                   y = py;               
         * Move the bottom side of the image, verifying that the height is > to the MIN_THICKNESS.
         public final void moveY2(int py) {
              height = py-y;
              if (height<MIN_THICKNESS) {
                   height = MIN_THICKNESS;
         * Apply a given transformation with the given Point to the image.
         * The shift values dx and dy are needed for move tho locate the image at the same relative position from the cursor (p).
         public final void transform(Point p, int transformationType, int dx, int dy) {
              int px = p.x;
              int py = p.y;
              switch (transformationType) {
                   case MOVE : x = px-dx; y = py-dy;
                        break;
                   case RESIZE_TOP : moveY1(py);
                        break;
                   case RESIZE_BOTTOM : moveY2(py);
                        break;
                   case RESIZE_LEFT : moveX1(px);
                        break;
                   case RESIZE_RIGHT : moveX2(px);
                        break;
                   case RESIZE_TOP_LEFT_CORNER : moveX1(px);moveY1(py);
                        break;
                   case RESIZE_TOP_RIGHT_CORNER : moveX2(px);moveY1(py);
                        break;
                   case RESIZE_BOTTOM_LEFT_CORNER : moveX1(px);moveY2(py);
                        break;
                   case RESIZE_BOTTOM_RIGHT_CORNER : moveX2(px);moveY2(py);
                        break;
                   default :
    }

    I gave you a simple solution in your other posting. You never responded to the suggestion stating why the given solution wouldn't work, so it can't be that urgent.

  • I have lost my "Basic" panel in the Develop module and can't figure out how to get it back. My right panel goes from the Histogram straight to the Tone Curve panel.  My Basic panel should be below the Histogram.  Any ideas how to get it back.  I have even

    I have lost my "Basic" panel in the Develop module and can't figure out how to get it back. My right panel goes from the Histogram straight to the Tone Curve panel.  My Basic panel should be below the Histogram.  Any ideas how to get it back.  I have even uninstalled my lightroom and reinstalled it with same issue.  Help!!!

    Right click on or near one of the other headers and a pop-up will appear and you will be able to select the Basic Panel for viewing.

  • Develop Mode: Right panel missing

    I have moved from Library to Develop mode and selected an image but the right panel is totally absent. Clicking on the right panel arrow does nothing. This is a first for me. Help appreciated; I suspect it is something very simple.

    I tried all of the above with no result. I should have tried rebooting before I asked but after shutting down and restarting I again came up empty. This time, however, clicking on the right arrow resurrected the missing panel. Never happened before and I have no idea why it did now but it is corrected. Thanks for the prompt response.

  • Moving Fields from left panel to right panel

    Hello All
    I am involved in configuring web ui screens. I want to actually move captions and fields from left panel ( Colums A-H) to Right Panel ( Colums I-P). When I go into field properties, it;s not giving me the option to enter colums from right panel.
    Or show me how to do this
    Please reply asap Gurus
    Thanks

    Hi,
    Please follow below steps:
    1. Go to config tab
    2. Choose the right config.
    3. Go to edit mode.
    4, Display available fields.
    5. you can see two blocks now. One with available fields and other with your displayed fields.
    6. In your displayed fields block you can see two buttons in top left corner (right above A column). One with plus sign and other with minus. Similarly you can see two buttons on top right corner( right above P column) of your displayed fields block.
    7. select a field you want to move from displayed columns by clicking on it. Click on minus button on top( the one above A). Now this field would be moved to available fields under its context node. Locate the field there.
    8.Select the field on Available fields block and then click on 'plus' button on right side( one above P).
    Your field would be moved to Right side.
    Also you can click on a field and click on show properties button and directly mention the column where you want this field to appear( Make sure you are edit mode so that you can change the column names). Also while doing this please make sure the columns you are entering are not occupied by other field.
    Hope that helps.
    Regards,
    BJ

  • Right panel in Windows Explorer

    Good afternoon,
    What I've to do late in this afternoon is displaying a hierarchy of icons. They have to be portrayed like the icons for folders in the right panel in Windows Explorer. In Visual Basic the ListView component is the work horse that does this exactly.
    JListView | JTable | JPanel
    Is the java component JListView reliable? Or can I better use a JTable component? Or ImageIcon within JLabel (or JButton's) within a JPanel within a JScrollPane like suggested in Dec. 2002 on this forum?
    JTable: http://www.fawcette.com/javapro/2003_01/magazine/features/bkurniawan/
    JPanel: http://forum.java.sun.com/thread.jspa?forumID=57&messageID=1357444&threadID=331621
    Thank you!

    Right pane
    A JTree I would use for the left pane, I want to know how to set up a set of icons in the right pane.
    An abstract tree
    Now, while I'm on this forum... What's the best way to set up an abstract tree?
    1.) I have defined TreeElement with the attribute 'children' (a vector that does contain more TreeElement objects). But, maybe there is some custom way to do it.
    2.) Is it smart to use JTree and keeping it invisible? Can I use the iterator() interface in that case? Do I have to implement that myself or what does it prefer to iterate first: siblings or children (width or depth)?
    3.) TreeModel seems to be a binary tree, that's not what I need.
    XML
    Do you have good advice with coupling such a tree to a xml document for data storage? I saw already some third party (JAXB)

  • Infoview Opening Report in Right Panel

    System XI R3.0 - Java-Infoview
    Dear All,
    I would like have the folder-structure in the left navigation-panel (down to a single report). Clicking a report should show the report in the right panel of InfoView. I know, that in previous versions you could collapse the navigation panel and show the report in the right panel.
    I couldn't find informations about whether this can be set in any preferences in CMC or in Infoview.
    Thanks,
    Stefan

    Hi, moj
    How is the report being run from the form?
    a) run_product(reports, 'rdfname', etc)?
    b) run_report_object('repobjname')?
    c) web.show_document('url')?
    d) other??
    If you're using c), you can set the desname parameter to something.doc or something.xls, and the browser will try to open it in Word or Excel, on the client machine.
    If you're using a) or b), maybe setting FORMS60_REPFORMAT registry variable (in the Webserver) to a different file extension... I'm not sure about this one, but if it works, it will affect every report run from forms, not just that one.
    Hope this helps,
    Pedro.
    null

  • Bug?  In LR5 Mac, Develop module, option+slider undocks right panel!

    Holding down option key (LR5 Mac) with slider causes entire right panel to undock
    In the Develop module, I used to be able to hold down the option key while adjusting a slider, giving some extra features in the panel section.  (To see the extent of masking in the Detail panel group, in white/black, for example)
    Now, the entire panel undocks and I can't slide the slider, instead the panel moves around in th LR5 workspace. While I am unintentionally moving the panel, there is a blue border that appears around the panel.  See the screenshot.  Has anyone had this issue, and if so, were you able to fix it?

    In develop module, Details panel group (sharpening), I hold down option key and attempt to move any of the sliders.  Instead of the view changing as described in this page: http://laurashoe.com/2012/11/26/develop-module-secret-lightroom-powers-revealed-the-altopt ion-key/, the whole panel becomes undocked and moves in the LR workspace.
    While its moving, there is a blue border around the panel window (as I show in my screenshot). 
    The slider does not move, the whole panel becomes undocked. In the screenshot, I was attempting to slide the Sharpening/Detail slider.
    I am working with OS Mavericks, LR 5.3

  • How to populate/persist right-side of Shuttle in apex 3.1.2 after submit

    In the new Shuttle I can only specify one LOV (select empname, empid from emp where empid not in (1,3,4)) but I also want to populate the right-side of the shuttle to show values which the non-members (select empname, empid from emp where empid in (2,5)) so that the user can make selections which persist after submit.

    Rashid,
    The method that worked for me was to:
    1) Create the LOV to populate the Left side of the shuttle (unselected).
    2) Define the Source property to populate the Right side (selected). In my case, I used a PL/SQL Function Body type, but any would work.
    I set the Source Used to Always, so that my user always started with the same default selection, but if you set it to "Only set when session value is null", that should do what you're asking for.
    Good luck (and thanks for the points by marking my answer helpful or correct),
    Stew

  • How do you populate right side of Shuttle control

    Hi,
    I am trying to use shuttle control. I am not sure how to populate the right side of the shuttle control from database. I am using the following code. But, it is not populating the right side. In this code, P35_COUNTRIES is my shuttle. P35_X is a text field just to test the output. I can see an output 5:8:9 in the text field. But, my shuttle right side is empty. Am I doing something wrong here ? I would really appreciate any suggestions.
    DECLARE
    vCountries VARCHAR2(100);
    vSEP VARCHAR2(1);
    BEGIN
    :P35_X := 'Inside test';
    vCountries := '';
    FOR C IN (SELECT country_id FROM countries WHERE territory_id = 1)
    LOOP
    vCountries := vCountries || vSEP || c.country_id;
    :P35_X := vCountries;
    vSEP := ':';
    END LOOP;
    :P35_COUNTRIES := vCountries;
    :P35_X := vCountries;
    END;
    Thanks

    Hi,
    Yes, it is getting populated: [http://apex.oracle.com/pls/otn/f?p=30879:5]
    My Source settings for the shuttle ("P5_SHUTTLE") are:
    Source Used: Only...
    Source Type: Static Assignment...
    Source Value: (Blank)
    Post Calc Computation: (Blank)
    Default Value: (Blank)
    List of Values Definition: SELECT DNAME d, DEPTNO r FROM DEPT ORDER BY 1
    Settings for my Computation for this item:
    Item Name: P5_SHUTTLE
    Type: PL/SQL Function Body
    Computation Point: Before Header
    Computation:
    DECLARE
    vDEPT APEX_APPLICATION_GLOBAL.VC_ARR2;
    i NUMBER := 1;
    BEGIN
    FOR c IN (SELECT DISTINCT DEPTNO FROM EMP WHERE ENAME LIKE 'A%')
    LOOP
      vDEPT(i) := c.DEPTNO;
      i := i + 1;
    END LOOP;
    RETURN APEX_UTIL.TABLE_TO_STRING(vDEPT);
    END;This computation is unconditional, so runs everytime the page is loaded.
    Andy

  • Is there a way to auto-populate text based on a selection?

    I honestly don't even know how to word my question haha... so the title may be misleading...
    For my job I need to fill out indesign files, and at one part of the file based on the state a person is from I need to paste a specific e-mail in several places.
    Is there a way where maybe I create a dropdown menu of the several state e-mails I can choose from, and upon choosing it auto-populates that choice into the several other places?
    I guess, is there a way where if I make a select or input text into one area it will generate in the other areas as well?

    Maybe you need some kind of clipboard manager to choose several texts to paste
    http://lifehacker.com/5298615/five-best-clipboard-managers

  • Inspection lot creation based on "right" inspection plan version

    I manage inspection plan ( inspection lot origin 01 ) with Change number; in this way I have differents inspection plan version based on date.
    When I do a Good Entry based on purchase order , I need that system creates inspection lot version based on the purchase order creation date and not , as now, based on good entry date
    Is it possible ?
    When I create the purchase order I send to vendor also the inspection plan characteristich that have to be maintened ; for this reason I need to find same characterist during good entry inspection
    Regards
    Silly

    You need to use one of the enhancements that Do-Wook has suggested.  There is no standard SAP way to suppress the inspection based on the vendor batch number.
    With the first enhancement you use the system to check for a previously received vendor batch and if one is found, then that batch number is proposed and not the next one from the numbering series.  In this case, the lot isn't created than due to the inspection lot control of the inspection type.
    With the second enhancement you check the vendor batch number and if it's been received you suppress the inspection lot creation and the stock goes right to unrestricted.
    You'll probably need to do one or the other.  Myself, I prefer the first enhancement.
    Craig

Maybe you are looking for

  • HP Laserjet 1020 is not recognized by Airport Extreme(2nd gen)

    Per instructions on the manual, I hooked up my HP Laserjet 1020 to the USB port on the Extreme, hoping to use it as a network printer for 4 computers.  It does not show up on the printer list and everything I have tried, including updating drivers an

  • How do I download os6 to my 1st generation iPad

    My first generation iPad will not download OS6, is there any way to do it?

  • Usage of Bapi_Transaction_Commit?

    Sorry for not noticing that it is an ABAP Programming forum. Hi, How can I use Bapi_Transaction_Commit in conjunction with a standard BAPI_A( for e.g) in webdynpros? wdContext.currentBAPI_AElement.modelobject.execute(); The above source code would im

  • Aperture Previews NOT Showing

    I uploaded an album of 6 pics earlier today and as I was going to check the images, after I click them they appear on the large preview window for about a second before dissapearing. I checked my older albums and they are all doing the same thing. I

  • Find My iphone offline after update

    I updated my find my iphone App yesterday and now i can no longer find my ifphone.  It says its offline.  Even when i log in on my pc to the icloud i can't find a location.  Any idea whats gone wrong here when it was working perfectly fine??