Java fx  keep history of selected columns

Hello, I was glad to find out this wonderful object that is JXTable.
Especially for his setColumnControlVisible function that makes the user able to select the columns he wants to display.
Code :
        lstJrnTable = new org.jdesktop.swingx.JXTable();
        lstJrnTable.setColumnControlVisible(true);But now , I was wondering how I can keep history of these selection.
Example, I display the table, so far so good , I want to display 5 out of the 7 columns. I just do the appropriate clicks and then , imagine I move somewhere else into the application.
What if I open one more time the JTable ? By default , I assume , the 7 columns will be displayed.
What if , I want to keep a kinda history of what has been selected? and how to do it.
thank you so much.

Hello, I was glad to find out this wonderful object that is JXTable.
Especially for his setColumnControlVisible function that makes the user able to select the columns he wants to display.
Code :
        lstJrnTable = new org.jdesktop.swingx.JXTable();
        lstJrnTable.setColumnControlVisible(true);But now , I was wondering how I can keep history of these selection.
Example, I display the table, so far so good , I want to display 5 out of the 7 columns. I just do the appropriate clicks and then , imagine I move somewhere else into the application.
What if I open one more time the JTable ? By default , I assume , the 7 columns will be displayed.
What if , I want to keep a kinda history of what has been selected? and how to do it.
thank you so much.

Similar Messages

  • To keep history

    Hi,
    My case is no deletion no updates in same record, to keep history.
    1- In deletion case I set falge to show the row status,
    and used this code in EntityImpl.java file to override postChange method:
    public void postChanges ( TransactionEvent e )
    if ( getPostState() == EntityImpl.STATUS_DELETED )
    // Custom code to mark database rows
    setFlage( "D" ); //"D" deactivate
    else
    super.postChanges(e);
    2- In update case I set the revsion column, when we update a record we take its values and insert it in database with new revision.
    How can we implement this business rule in BC4J?
    Usama

    Usama,
    In case 1), BC4J do not have built in facility to mark row as "deacticate".
    In case 2), version 9.0.3.3 (available on OTN around mid October), you could set the column used for update history as VERSION NUMBER History Column in Entity Wizard Attributes settings. BC4J will automatically increment this column value by 1 at post change if the row has changed.
    Thanks,
    Yvonne

  • Overwrite crystal report file name with new version but keep history

    I am writing a Crystal Reports .NET SDK in C# code to upload a crystal report files from its destination to CMC folder on BO XI R2 Platform.
    On "Upload Button" click_event, validate the two check boxes controls named "Keep History", and "Remove History". Once "Keep History" check box is selected, check If the SAME report file name exists in the same destination CMC folder, if Yes, overwrite it BUT Keep the History and all its associated objects like "recurring objects". If "Remove History" is selected, then remove the existing report and upload the new report file name.
    Please provide me some codes on how to do this task. This is definitely a "WIN" - "WIN" effort and contribution to my Team Goals.
    P.S. This is a similar scenario when you are uploading report on BO Enterprise R2 CMC.
    When Uploading a new report to a folder but same report file name exists, the BO System will promt message "Report File Name" already exists. Do you want to Overwrite it?" If Yes, then system will overwrite the file but it will keep the history and recurring objects.
    Any help would be greatly appreciated.
    Thanks,
    Bien

    Suggest looking at [this|https://wiki.sdn.sap.com/wiki/display/BOBJ/NETBusinessObjectsEnterpriseSDKSamples] wiki for links to pertinent samples. Also, check out the [Developer Help File|http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/en/WS_SDK/wssdk_server/default.htm]. Searching these forums for similar queries may also prove to be fruitful
    Ludek

  • How to display only selected columns in the table on the tableview

    Hi All,
    I am displaying in the below tableview the data from the SFLIGHTS tables in the tableview using flow logic. It displays all the columns in the database table. How can I set in the code to display only selected columns and not all columns.
    Also, in these columns displayed I want to make the key columns of SFLIGHT as non editable and the rest of the columns in SFLIGHT editiable. Can you please kindly share the code to implement this.
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content design="design2003" >
      <htmlb:page>
        <htmlb:form>
          <htmlb:tableView id              = "tv1"
                           visibleRowCount = "10"
                           selectionMode   = "lineEdit"
                           table           = "<%= flights %>"
                           filter = "SERVER"
                           sort = "server"
                           iterator        = "<%= iterator %>" />
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    Thanks
    Karen

    Hi,
       Please try this code.
    <!-- To display Table control on BSP page with table internal table it_hist  --!>
              <htmlb:tableView id              = "TV_HIST"
                               headerText      = "Previous History"
                               headerVisible   = "TRUE"
                               footerVisible   = "TRUE"
                               design          = "ALTERNATING"
                               selectionMode   = "LINEEDIT"
                               visibleRowCount = "5"
                               fillUpEmptyRows = "TRUE"
                               table           = "<%= it_hist %>"
                               width           = "500" >
    <!--  to show selected columns give required field name --!>
    <htmlb:tableViewColumns>
      <htmlb:tableViewColumn columnName          = "FIELD1"
                                         title               = "COLUMN1"
                                         horizontalAlignment = "CENTER"
                                         width               = "65" >
                  </htmlb:tableViewColumn>
      <htmlb:tableViewColumn columnName          = "FIELD2"
                                         title               = "COLUMN2"
                                         horizontalAlignment = "CENTER"
                                         width               = "65" >
                  </htmlb:tableViewColumn>
      <htmlb:tableViewColumn columnName          = "FIELD3"
                                         title               = "COLUMN3"
                                         horizontalAlignment = "CENTER"
                                         width               = "65" >
                  </htmlb:tableViewColumn>
      <htmlb:tableViewColumn columnName          = "FIELD4"
                                         title               = "COLUMN4"
                                         horizontalAlignment = "CENTER"
                                         width               = "65" >
                  </htmlb:tableViewColumn>
    <!--  to make column editable set edit property to TRUE --!>
      <htmlb:tableViewColumn columnName          = "FIELD4"
                                         title               = "COLUMN4"
                                         edit = "TRUE"
                                         horizontalAlignment = "CENTER"
                                         width               = "65" >
                  </htmlb:tableViewColumn>
                </htmlb:tableViewColumns>
              </htmlb:tableView>

  • Messages not keeping history

    I am having a very weird issue with the Messages app.
    It will not keep history of the chat after I close down the application and open it up again. This is what I have done so far.
    - Deleted relevant .plists, Saved Application State folder, Repaired Permissions, Re-installed 10.8.4 Combo Update, deleted the app from terminal, re-installed the app using Pacifist from the downloaded 10.8 app from the App Store, and also updated the "Pacified" Messages app, using Pacifist again.
    Still any messages will get deleted after i start up.
    In ~/Library/Messages/Archive I can find all of the messages normally.

    Thanks for your help.
    Weird thing, the "Archive" folder was not under my ownership. Changed it, applied to enclosed items... No change. Still loses the history. Although the messages still get saved on their respective folders.
    Now in regards to the log, it stopped logging after a while for no apparent reason. Here is the output:
    At startup
    Last login: Wed Jul 17 14:35:23 on ttys000
    xxxxxxxxxxxx-iMac-2:~ xxxxxxxxx$ /Applications/Messages.app/Contents/MacOS/Messages -errorLogLevel 7
    152651.110737 -registerForHardwareNotification: 1 devices
    152651.113068 ER_AddFilter (0): Adding [xxxxxxx [email protected]]->[0]
    152651.113086 setLocalUserName: xxxxxxxxx [email protected]
    152651.113846 Default video size is (640 x 480)
    152651.114297 H264: (640 x 480) @ 30 fps
    152651.114519 H264: (320 x 240) @ 30 fps
    152651.114789 H263: (352 x 288) @ 30 fps
    152651.114905 H263: (176 x 144) @ 30 fps
    152651.114966 ######################################
    152651.114971 # SoundDec_Create(16000 --> 3) #
    152651.114974 ######################################
    152651.145220 Leaving SoundDec_Create
    152651.146647 Audio Unit Parameter List = 7, result = 0
    152651.146659 CurrentFormatmSampleRate       44100.000000
    152651.146666 CurrentFormatmFormatID         lpcm
    152651.146668 CurrentFormatmFormatFlags      0x00000029
    152651.146671 CurrentFormatmBytesPerPacket   4
    152651.146673 CurrentFormatmFramesPerPacket  1
    152651.146675 CurrentFormatmBytesPerFrame    4
    152651.146678 CurrentFormatmChannelsPerFrame 2
    152651.146680 CurrentFormatmBitsPerChannel   32
    152651.146682 OurFormatmSampleRate       16000.000000
    152651.146685 OurFormatmFormatID         lpcm
    152651.146688 OurFormatmFormatFlags      0x00000029
    152651.146690 OurFormatmBytesPerPacket   4
    152651.146692 OurFormatmFramesPerPacket  1
    152651.146695 OurFormatmBytesPerFrame    4
    152651.146697 OurFormatmChannelsPerFrame 1
    152651.146699 OurFormatmBitsPerChannel   32
    152651.146702 Reached err = 4294956417, 459
    152651.146705 Reached err = 4294956417, 467
    152651.146903 ### NEW STATE: to: VC_INIT, from: VC_INVALID
    152651.146926 ### NEW STATE: to: VC_IDLE, from: VC_INIT
    152651.146938 ++++++++++ confStatusMapRemoveAll
    152651.146942 ( ) -- mapUserIDToSecurityInfo cleared --
    152651.147052 dispatch_CommNATProc
    152651.149149 VCDelegate conforms to VideoConferenceDelegate protocol.
    152651.149199 VTPRecvProc thread(184221696) started...
    152651.149218 SIPManager init with protocol: 0.
    152651.149429 138 routing table entries found.
    152651.149441 IPv4 DEFAULT route, if_idx:4
    152651.149445 IPv4 DEFAULT route, if_idx:5
    152651.149569 2 interfaces found.
    152651.149617 VTP set fd(15) buf size send[9216->225000] recv[196724->225000]
    152651.149708 Start listening on 10.147.106.77:16402(en0) sock 100
    152651.149748 VTP set fd(16) buf size send[9216->225000] recv[196724->225000]
    152651.149791 Start listening on 10.147.106.65:16402(en1) sock 101
    152651.149803 2 valid interfaces found.
    152651.149888 Transport(UDP) Thread start...
    152651.149966 138 routing table entries found.
    152651.149976 IPv4 DEFAULT route, if_idx:4
    152651.149980 IPv4 DEFAULT route, if_idx:5
    152651.150120 Transport checking map for interface = en0, port = 16402
    152651.150152 [0]Creating a port mapping from on interface 0 from external port 55838 to local port16402...
    152651.151469 TPListen on port 16402
    152651.151600 dispatch_AcquireSNATMAPConfigurationProc
    152651.518740 SNATMAP Configuration: snatmap.apple.com:5678
    152651.934325 Found 1 cameras:
    152651.934832      FaceTime HD Camera (Built-in) - 0xfa20000005ac850b (0x101, 0x400)
    152651.946164 Microphone devices:
    152651.946603     Internal microphone
    152651.946948     Line In
    152651.949462 selectedCamera: no camera has been set yet.
    152651.949712 selectedCamera: no camera has been set yet.
    152651.949904 selectedCamera: no camera has been set yet.
    152651.950102 vcCapabilitiesOfCPU returns: 0x000f0fff
    152651.950180 BWD: No existing BWD cache
    152651.950189 BWD: Launching thread to determine focus capability based on bandwidth.
    152651.950203 BWD: Using QuickTime value: 500000
    152651.950213 BWD bandwidth: 500 kbits up, 500 kbits down.
    152651.950209 dispatch_DetermineFocusCapability
    152651.950219 videoNetworkCapable: 1 -- 3 max participants.
    152651.950236 audioNetworkCapable: 1 -- 9 max participants.
    152651.950239 Supports PCMU wideband for audio: 1 / video: 0
    152651.950367 vcCapabilitiesOfNetwork returns: 0x00000fff
    152651.950378 vcCapabilitiesOfRouter returns: 0x00000000
    152651.950382 vcCapabilities returns: 0x00000fff
    152651.950433 Selected microphone is the null device microphone.
    152651.950583 vcCapabilitiesOfCPU returns: 0x000f0fff
    152651.950649 BWD: No existing BWD cache
    152651.950660 BWD: Using QuickTime value: 500000
    152651.950668 BWD bandwidth: 500 kbits up, 500 kbits down.
    152651.950671 videoNetworkCapable: 1 -- 3 max participants.
    152651.950674 audioNetworkCapable: 1 -- 9 max participants.
    152651.950677 Supports PCMU wideband for audio: 1 / video: 0
    152651.950795 vcCapabilitiesOfNetwork returns: 0x00000fff
    152651.950804 vcCapabilitiesOfRouter returns: 0x00000000
    152651.950808 vcCapabilities returns: 0x00000fff
    152651.950944 vcCapabilitiesOfCPU returns: 0x000f0fff
    152651.951004 BWD: No existing BWD cache
    152651.951013 BWD: Using QuickTime value: 500000
    152651.951021 BWD bandwidth: 500 kbits up, 500 kbits down.
    152651.951024 videoNetworkCapable: 1 -- 3 max participants.
    152651.951027 audioNetworkCapable: 1 -- 9 max participants.
    152651.951031 Supports PCMU wideband for audio: 1 / video: 0
    152651.951152 vcCapabilitiesOfNetwork returns: 0x00000fff
    152651.951161 vcCapabilitiesOfRouter returns: 0x00000000
    152651.951165 vcCapabilities returns: 0x00000fff
    152651.953593 Found 1 cameras:
    152651.953640      FaceTime HD Camera (Built-in) - 0xfa20000005ac850b (0x101, 0x400)
    152651.953652 selectedCamera: no camera has been set yet.
    152651.953678 selectCameraByGUID: 0xfa20000005ac850b (0x101) returned 0
    152651.953686 selectCameraWithCMIODeviceID: 0x101 returned 1
    152651.953889 selectedCamera2 GUID returned FaceTime HD Camera (Built-in)
    152651.954284 selectedCamera2 GUID returned FaceTime HD Camera (Built-in)
    152651.954721 Selected mic: Built-in Microphone / imic
    152651.955226 Found 1 cameras:
    152651.955267      FaceTime HD Camera (Built-in) - 0xfa20000005ac850b (0x101, 0x400)
    152651.955297 selectedCamera2 GUID returned FaceTime HD Camera (Built-in)
    152651.955313 selectCameraByGUID: 0xfa20000005ac850b (0x101) returned 0
    152651.955318 selectCameraWithCMIODeviceID: 0x101 returned 1
    152651.955515 selectedCamera2 GUID returned FaceTime HD Camera (Built-in)
    152651.955684 selectedCamera2 GUID returned FaceTime HD Camera (Built-in)
    152651.955987 Selected mic: Built-in Microphone / imic
    152651.967537 vcCapabilitiesOfCPU returns: 0x000f0fff
    152651.967619 BWD: No existing BWD cache
    152651.967631 BWD: Using QuickTime value: 500000
    152651.967640 BWD bandwidth: 500 kbits up, 500 kbits down.
    152651.967643 videoNetworkCapable: 1 -- 3 max participants.
    152651.967646 audioNetworkCapable: 1 -- 9 max participants.
    152651.967649 Supports PCMU wideband for audio: 1 / video: 0
    152651.967766 vcCapabilitiesOfNetwork returns: 0x00000fff
    152651.967776 vcCapabilitiesOfRouter returns: 0x00000000
    152651.967779 vcCapabilities returns: 0x00000fff
    152651.968215 Selected microphone is Internal microphone.
    152651.968449 vcCapabilitiesOfCPU returns: 0x000f0fff
    152651.968516 BWD: No existing BWD cache
    152651.968525 BWD: Using QuickTime value: 500000
    152651.968533 BWD bandwidth: 500 kbits up, 500 kbits down.
    152651.968537 videoNetworkCapable: 1 -- 3 max participants.
    152651.968540 audioNetworkCapable: 1 -- 9 max participants.
    152651.968543 Supports PCMU wideband for audio: 1 / video: 0
    152651.968668 vcCapabilitiesOfNetwork returns: 0x00000fff
    152651.968676 vcCapabilitiesOfRouter returns: 0x00000000
    152651.968680 vcCapabilities returns: 0x00000fff
    152651.969308 Selected microphone is Internal microphone.
    152651.969737 Found 1 cameras:
    152651.969782      FaceTime HD Camera (Built-in) - 0xfa20000005ac850b (0x101, 0x400)
    152651.969812 selectedCamera2 GUID returned FaceTime HD Camera (Built-in)
    152651.969829 selectCameraByGUID: 0xfa20000005ac850b (0x101) returned 0
    152651.969834 selectCameraWithCMIODeviceID: 0x101 returned 1
    152651.970065 selectedCamera2 GUID returned FaceTime HD Camera (Built-in)
    152651.970231 selectedCamera2 GUID returned FaceTime HD Camera (Built-in)
    152651.970617 Selected mic: Built-in Microphone / imic
    152651.972899 vcCapabilitiesOfCPU returns: 0x000f0fff
    152651.972986 BWD: No existing BWD cache
    152651.972997 BWD: Using QuickTime value: 500000
    152651.973006 BWD bandwidth: 500 kbits up, 500 kbits down.
    152651.973010 videoNetworkCapable: 1 -- 3 max participants.
    152651.973013 audioNetworkCapable: 1 -- 9 max participants.
    152651.973016 Supports PCMU wideband for audio: 1 / video: 0
    152651.973140 vcCapabilitiesOfNetwork returns: 0x00000fff
    152651.973149 vcCapabilitiesOfRouter returns: 0x00000000
    152651.973153 vcCapabilities returns: 0x00000fff
    152651.973601 Selected microphone is Internal microphone.
    152652.028287 BWD Configuration Data: snatmap.apple.com (16384/1)
    152652.028317 Connect to bwd server:16384/1 from configuration file.
    152652.028680 BWD_GetBandwidth: SendRequest (from :16393)
    152652.279734 BWD_GetBandwidth: SendRequest (from :16393)
    152652.530813 BWD_GetBandwidth: SendRequest (from :16393)
    152652.781893 BWD_GetBandwidth: SendRequest (from :16393)
    152653.032978 BWD_GetBandwidth: SendRequest (from :16393)
    152653.283268 BWD_GetBandwidth: SendRequest (from :16393)
    152653.534337 BWD_GetBandwidth: SendRequest (from :16393)
    152653.785231 BWD_GetBandwidth: SendRequest (from :16393)
    152654.035430 BWD_GetBandwidth: SendRequest (from :16393)
    152654.285646 BWD_GetBandwidth: SendRequest (from :16393)
    152654.536255 BWD_GetBandwidth: GotResponse
    152654.536285 BWD_Get: signal failed
    152654.536304 BWD GetBW failed.
    152654.536310 GotBandwidth: 0/0 (up/down) @P?7
    152654.536346 BWD bandwidth: 0 kbits up, 0 kbits down.
    152654.536350 videoNetworkCapable: 0 -- 0 max participants.
    152654.536352 audioNetworkCapable: 0 -- 0 max participants.
    152654.536367 Focus Capability (after BWD):
    152654.536370      audioHardwareCapable = 1
    152654.536373      maxAudioParticipantsBasedOnHardware = 9
    152654.536375      audioNetworkCapable = 0
    152654.536378      maxAudioParticipants = 0
    152654.536381      canBeAudioMultipointParticipant = 1
    152654.536383      videoHardwareCapable = 1
    152654.536386      maxVideoParticipantsBasedOnHardware = 3
    152654.536388      videoNetworkCapable = 0
    152654.536390      maxVideoParticipants = 0
    152654.536393      canBeVideoMultipointParticipant = 1
    152654.536395      detectedUpstreamKbits = 0
    152654.536398      detectedDownstreamKbits = 0
    152654.536400 Sending VCCapabilitiesDidChangeNotification
    152654.536421 BWD: Launched thread done.
    152654.654737 in callback
    152654.654765 -sdRef 0x7f94c26478d0 ?
    152654.654778 -flags = 00000000
    152654.654780 -IFIndex 0 ?
    152654.654783 -errorCode == 00000000
    152654.654787 -publicAddr == 0.0.0.0
    152654.654789 -proto == 16
    152654.654792 -privPort == 16402
    152654.654794 -publPort == 0
    152654.654796 -ttl == 0
    152706.152016 CommNAT no result
    152706.152245 142 routing table entries found.
    152706.152255 IPv4 DEFAULT route, if_idx:4
    152706.152266 IPv4 DEFAULT route, if_idx:5
    After about 20 minutes:
    2013-07-17 15:47:56.783 Messages[834:707] *** WARNING: -[NSImage compositeToPoint:operation:] is deprecated in MacOSX 10.8 and later. Please use -[NSImage drawAtPoint:fromRect:operation:fraction:] instead.
    2013-07-17 15:47:56.783 Messages[834:707] *** WARNING: -[NSImage compositeToPoint:fromRect:operation:] is deprecated in MacOSX 10.8 and later. Please use -[NSImage drawAtPoint:fromRect:operation:fraction:] instead.
    And after about 2 hours:
    171359.336269 Calling SIPCloseHandle
    171359.336373 Transport(UDP) Thread end(00000000)...
    171359.340327 ICECloseHandle ... done.
    171359.488130 VTPRecvProc thread(4479188992) end...
    171400.528986 Received VCHardwareCapsChangeNotification
    2013-07-17 17:14:00.529 Messages[834:707] Hardware Caps Dictionary: {
        HasCamera = 1;
        HasDV = 0;
        HasMic = 0;
        HasQ8 = 0;
        Q8List =     (
    171447.169863 [[** MTHelper - [ConfIndex 0][CallID 0] MTHelper_Set_VCNetworkMonitorCallbackInfo en0]  *************]
    2013-07-17 17:14:47.169 Messages[834:707] VCNetworkMonitorCallback: count = 1, changedKeys is (
        "State:/Network/Service/3FEC0AE6-C150-495B-B0C1-A9A84812DCE1/IPv4"
    2013-07-17 17:14:47.172 Messages[834:707] VCNetworkMonitorCallback: localIP's = (
        "10.147.106.65",
        "fe80::1",
        "::1",
        "fe80::129a:ddff:fea5:2fa7",
        "fe80::ca2a:14ff:fe20:e433"
    171447.172715 Sending VCCapabilitiesDidChangeNotification due to network update
    171447.176145 [[** MTHelper - [ConfIndex 0][CallID 0] MTHelper_Set_VCNetworkMonitorCallbackInfo en0]  *************]
    2013-07-17 17:14:47.176 Messages[834:707] VCNetworkMonitorCallback: count = 1, changedKeys is (
        "State:/Network/Service/3FEC0AE6-C150-495B-B0C1-A9A84812DCE1/IPv4"
    2013-07-17 17:14:47.176 Messages[834:707] VCNetworkMonitorCallback: localIP's = (
        "10.147.106.65",
        "10.147.106.77",
        "fe80::1",
        "::1",
        "fe80::129a:ddff:fea5:2fa7",
        "fe80::ca2a:14ff:fe20:e433"
    171447.178662 Sending VCCapabilitiesDidChangeNotification due to network update
    171448.160377 [[** MTHelper - [ConfIndex 0][CallID 0] MTHelper_Set_VCNetworkMonitorCallbackInfo en0]  *************]
    2013-07-17 17:14:48.160 Messages[834:707] VCNetworkMonitorCallback: count = 1, changedKeys is (
        "State:/Network/Service/1728E436-E361-4BC6-9643-713425D538A2/IPv4"
    2013-07-17 17:14:48.160 Messages[834:707] VCNetworkMonitorCallback: localIP's = (
        "10.147.106.77",
        "fe80::1",
        "::1",
        "fe80::129a:ddff:fea5:2fa7",
        "fe80::ca2a:14ff:fe20:e433"
    171448.161359 Sending VCCapabilitiesDidChangeNotification due to network update
    171448.166853 [[** MTHelper - [ConfIndex 0][CallID 0] MTHelper_Set_VCNetworkMonitorCallbackInfo en0]  *************]
    2013-07-17 17:14:48.166 Messages[834:707] VCNetworkMonitorCallback: count = 1, changedKeys is (
        "State:/Network/Global/IPv4"
    2013-07-17 17:14:48.167 Messages[834:707] VCNetworkMonitorCallback: localIP's = (
        "10.147.106.77",
        "fe80::1",
        "::1",
        "fe80::129a:ddff:fea5:2fa7",
        "fe80::ca2a:14ff:fe20:e433"
    171448.168985 Sending VCCapabilitiesDidChangeNotification due to network update
    171448.170147 [[** MTHelper - [ConfIndex 0][CallID 0] MTHelper_Set_VCNetworkMonitorCallbackInfo en0]  *************]
    2013-07-17 17:14:48.170 Messages[834:707] VCNetworkMonitorCallback: count = 1, changedKeys is (
        "State:/Network/Interface/en1/IPv6"
    2013-07-17 17:14:48.170 Messages[834:707] VCNetworkMonitorCallback: localIP's = (
        "10.147.106.77",
        "fe80::ca2a:14ff:fe20:e433",
        "fe80::1",
        "::1"
    171448.170653 Sending VCCapabilitiesDidChangeNotification due to network update
    171450.088722 [[** MTHelper - [ConfIndex 0][CallID 0] MTHelper_Set_VCNetworkMonitorCallbackInfo en0]  *************]
    2013-07-17 17:14:50.088 Messages[834:707] VCNetworkMonitorCallback: count = 1, changedKeys is (
        "State:/Network/Interface/en1/IPv6"
    2013-07-17 17:14:50.089 Messages[834:707] VCNetworkMonitorCallback: localIP's = (
        "10.147.106.77",
        "fe80::1",
        "::1",
        "fe80::129a:ddff:fea5:2fa7",
        "fe80::ca2a:14ff:fe20:e433"
    171450.089348 Sending VCCapabilitiesDidChangeNotification due to network update
    171450.109277 [[** MTHelper - [ConfIndex 0][CallID 0] MTHelper_Set_VCNetworkMonitorCallbackInfo en0]  *************]
    2013-07-17 17:14:50.109 Messages[834:707] VCNetworkMonitorCallback: count = 1, changedKeys is (
        "State:/Network/Service/1728E436-E361-4BC6-9643-713425D538A2/IPv4"
    2013-07-17 17:14:50.110 Messages[834:707] VCNetworkMonitorCallback: localIP's = (
        "10.147.106.65",
        "10.147.106.77",
        "fe80::1",
        "::1",
        "fe80::129a:ddff:fea5:2fa7",
        "fe80::ca2a:14ff:fe20:e433"
    171450.110602 Sending VCCapabilitiesDidChangeNotification due to network update
    171450.116300 [[** MTHelper - [ConfIndex 0][CallID 0] MTHelper_Set_VCNetworkMonitorCallbackInfo en0]  *************]
    2013-07-17 17:14:50.116 Messages[834:707] VCNetworkMonitorCallback: count = 1, changedKeys is (
        "State:/Network/Global/IPv4"
    2013-07-17 17:14:50.119 Messages[834:707] VCNetworkMonitorCallback: localIP's = (
        "10.147.106.65",
        "10.147.106.77",
        "fe80::1",
        "::1",
        "fe80::129a:ddff:fea5:2fa7",
        "fe80::ca2a:14ff:fe20:e433"
    171450.119403 Sending VCCapabilitiesDidChangeNotification due to network update
    171450.134172 [[** MTHelper - [ConfIndex 0][CallID 0] MTHelper_Set_VCNetworkMonitorCallbackInfo en0]  *************]
    2013-07-17 17:14:50.134 Messages[834:707] VCNetworkMonitorCallback: count = 1, changedKeys is (
        "State:/Network/Global/IPv4"
    2013-07-17 17:14:50.134 Messages[834:707] VCNetworkMonitorCallback: localIP's = (
        "10.147.106.65",
        "10.147.106.77",
        "fe80::1",
        "::1",
        "fe80::129a:ddff:fea5:2fa7",
        "fe80::ca2a:14ff:fe20:e433"
    171450.134789 Sending VCCapabilitiesDidChangeNotification due to network update
    171451.089197 [[** MTHelper - [ConfIndex 0][CallID 0] MTHelper_Set_VCNetworkMonitorCallbackInfo en0]  *************]
    2013-07-17 17:14:51.089 Messages[834:707] VCNetworkMonitorCallback: count = 1, changedKeys is (
        "State:/Network/Interface/en1/IPv6"
    2013-07-17 17:14:51.089 Messages[834:707] VCNetworkMonitorCallback: localIP's = (
        "10.147.106.65",
        "10.147.106.77",
        "fe80::1",
        "::1",
        "fe80::129a:ddff:fea5:2fa7",
        "fe80::ca2a:14ff:fe20:e433"
    171451.089811 Sending VCCapabilitiesDidChangeNotification due to network update
    173034.873442 Received VCHardwareCapsChangeNotification
    2013-07-17 17:30:34.873 Messages[834:707] Hardware Caps Dictionary: {
        HasCamera = 1;
        HasDV = 0;
        HasMic = 0;
        HasQ8 = 0;
        Q8List =     (
    173035.176317 Received VCHardwareCapsChangeNotification
    2013-07-17 17:30:35.176 Messages[834:707] Hardware Caps Dictionary: {
        HasCamera = 1;
        HasDV = 0;
        HasMic = 0;
        HasQ8 = 0;
        Q8List =     (
    173040.941587 [[** MTHelper - [ConfIndex 0][CallID 0] MTHelper_Set_VCNetworkMonitorCallbackInfo en0]  *************]
    2013-07-17 17:30:40.941 Messages[834:707] VCNetworkMonitorCallback: count = 1, changedKeys is (
        "State:/Network/Service/3FEC0AE6-C150-495B-B0C1-A9A84812DCE1/IPv4"
    2013-07-17 17:30:40.941 Messages[834:707] VCNetworkMonitorCallback: localIP's = (
        "10.147.106.65",
        "fe80::1",
        "::1",
        "fe80::129a:ddff:fea5:2fa7",
        "fe80::ca2a:14ff:fe20:e433"
    173040.942583 Sending VCCapabilitiesDidChangeNotification due to network update
    173040.947873 [[** MTHelper - [ConfIndex 0][CallID 0] MTHelper_Set_VCNetworkMonitorCallbackInfo en0]  *************]
    2013-07-17 17:30:40.947 Messages[834:707] VCNetworkMonitorCallback: count = 1, changedKeys is (
        "State:/Network/Service/3FEC0AE6-C150-495B-B0C1-A9A84812DCE1/IPv4"
    2013-07-17 17:30:40.948 Messages[834:707] VCNetworkMonitorCallback: localIP's = (
        "10.147.106.65",
        "10.147.106.77",
        "fe80::1",
        "::1",
        "fe80::129a:ddff:fea5:2fa7",
        "fe80::ca2a:14ff:fe20:e433"
    173040.949198 Sending VCCapabilitiesDidChangeNotification due to network update
    173040.951281 Sending VCCapabilitiesDidChangeNotification due to wake from sleep
    173041.939337 [[** MTHelper - [ConfIndex 0][CallID 0] MTHelper_Set_VCNetworkMonitorCallbackInfo en0]  *************]
    2013-07-17 17:30:41.939 Messages[834:707] VCNetworkMonitorCallback: count = 1, changedKeys is (
        "State:/Network/Service/1728E436-E361-4BC6-9643-713425D538A2/IPv4"
    2013-07-17 17:30:41.939 Messages[834:707] VCNetworkMonitorCallback: localIP's = (
        "10.147.106.77",
        "fe80::1",
        "::1",
        "fe80::129a:ddff:fea5:2fa7",
        "fe80::ca2a:14ff:fe20:e433"
    173041.940017 Sending VCCapabilitiesDidChangeNotification due to network update
    173041.948380 [[** MTHelper - [ConfIndex 0][CallID 0] MTHelper_Set_VCNetworkMonitorCallbackInfo en0]  *************]
    2013-07-17 17:30:41.948 Messages[834:707] VCNetworkMonitorCallback: count = 1, changedKeys is (
        "State:/Network/Global/IPv4"
    2013-07-17 17:30:41.948 Messages[834:707] VCNetworkMonitorCallback: localIP's = (
        "10.147.106.77",
        "fe80::1",
        "::1",
        "fe80::129a:ddff:fea5:2fa7",
        "fe80::ca2a:14ff:fe20:e433"
    173041.949764 Sending VCCapabilitiesDidChangeNotification due to network update
    173041.951654 [[** MTHelper - [ConfIndex 0][CallID 0] MTHelper_Set_VCNetworkMonitorCallbackInfo en0]  *************]
    2013-07-17 17:30:41.951 Messages[834:707] VCNetworkMonitorCallback: count = 1, changedKeys is (
        "State:/Network/Interface/en1/IPv6"
    2013-07-17 17:30:41.952 Messages[834:707] VCNetworkMonitorCallback: localIP's = (
        "10.147.106.77",
        "fe80::ca2a:14ff:fe20:e433",
        "fe80::1",
        "::1"
    173041.952962 Sending VCCapabilitiesDidChangeNotification due to network update
    173045.053218 [[** MTHelper - [ConfIndex 0][CallID 0] MTHelper_Set_VCNetworkMonitorCallbackInfo en0]  *************]
    2013-07-17 17:30:45.053 Messages[834:707] VCNetworkMonitorCallback: count = 1, changedKeys is (
        "State:/Network/Interface/en1/IPv6"
    2013-07-17 17:30:45.053 Messages[834:707] VCNetworkMonitorCallback: localIP's = (
        "10.147.106.77",
        "fe80::1",
        "::1",
        "fe80::129a:ddff:fea5:2fa7",
        "fe80::ca2a:14ff:fe20:e433"
    173045.053786 Sending VCCapabilitiesDidChangeNotification due to network update
    173046.053340 [[** MTHelper - [ConfIndex 0][CallID 0] MTHelper_Set_VCNetworkMonitorCallbackInfo en0]  *************]
    2013-07-17 17:30:46.053 Messages[834:707] VCNetworkMonitorCallback: count = 1, changedKeys is (
        "State:/Network/Interface/en1/IPv6"
    2013-07-17 17:30:46.053 Messages[834:707] VCNetworkMonitorCallback: localIP's = (
        "10.147.106.77",
        "fe80::1",
        "::1",
        "fe80::129a:ddff:fea5:2fa7",
        "fe80::ca2a:14ff:fe20:e433"
    173046.053938 Sending VCCapabilitiesDidChangeNotification due to network update
    173046.842682 [[** MTHelper - [ConfIndex 0][CallID 0] MTHelper_Set_VCNetworkMonitorCallbackInfo en0]  *************]
    2013-07-17 17:30:46.842 Messages[834:707] VCNetworkMonitorCallback: count = 1, changedKeys is (
        "State:/Network/Service/1728E436-E361-4BC6-9643-713425D538A2/IPv4"
    2013-07-17 17:30:46.843 Messages[834:707] VCNetworkMonitorCallback: localIP's = (
        "10.147.106.65",
        "10.147.106.77",
        "fe80::1",
        "::1",
        "fe80::129a:ddff:fea5:2fa7",
        "fe80::ca2a:14ff:fe20:e433"
    173046.843511 Sending VCCapabilitiesDidChangeNotification due to network update
    173046.850109 [[** MTHelper - [ConfIndex 0][CallID 0] MTHelper_Set_VCNetworkMonitorCallbackInfo en0]  *************]
    2013-07-17 17:30:46.850 Messages[834:707] VCNetworkMonitorCallback: count = 1, changedKeys is (
        "State:/Network/Global/IPv4"
    2013-07-17 17:30:46.852 Messages[834:707] VCNetworkMonitorCallback: localIP's = (
        "10.147.106.65",
        "10.147.106.77",
        "fe80::1",
        "::1",
        "fe80::129a:ddff:fea5:2fa7",
        "fe80::ca2a:14ff:fe20:e433"
    173046.852353 Sending VCCapabilitiesDidChangeNotification due to network update
    173046.870452 [[** MTHelper - [ConfIndex 0][CallID 0] MTHelper_Set_VCNetworkMonitorCallbackInfo en0]  *************]
    2013-07-17 17:30:46.870 Messages[834:707] VCNetworkMonitorCallback: count = 1, changedKeys is (
        "State:/Network/Global/IPv4"
    2013-07-17 17:30:46.872 Messages[834:707] VCNetworkMonitorCallback: localIP's = (
        "10.147.106.65",
        "10.147.106.77",
        "fe80::1",
        "::1",
        "fe80::129a:ddff:fea5:2fa7",
        "fe80::ca2a:14ff:fe20:e433"
    173046.873444 Sending VCCapabilitiesDidChangeNotification due to network update
    I really cannot find anything relevant, it might be escaping my view though. Weird thing, is that it also deleted some of the chat history within the same instance of the started application. The Archive however contains the whole chatlog.

  • Dynamically Specifying Selection Columns

    Hi experts,
    I'm trying to set dynamically igrid columns in java script:
    document.DetailGrid.getQueryObject().setColumns("DateTime");
    But it says there is not such method for QueryObject.
    Is there anybody who knows right method?
    Thank you..
    -Ekrem

    Looks like there is only setColumnHeaders for the GridObject. 
    The one way I know will work, but generally don't recommend it is to:
    ...getQueryObject().setQuery("Select ColumnA, ColumnB,... from TableOrViewA")
    But I think you will see a bit of a performance hit.  If you are selecting between only two or three layouts, you could change the Display Template object of the Grid Applet (or depending on your design, you could change both the query and display templates).  That would have less impact and would be easier to maintain.
    Regards,
    Mike

  • JTable - Column swap disabling for selected columns

    Hi,
    In my JTable i want to disable the swapping of selected columns, table.getTableHeader().setReorderingAllowed(false); this disables the whole table swapping.
    Is there anyway to disable only selected column swapping?
    Thanks in advance.
    Yours,
    Arun

    I was able to disable the column swapping in all the ways, i.e. i've solved the problem that i've said in my previous post.
    The following are the scenario'scovered, if the user wants to disable swapping of 1st and 2nd column of a JTable
    1. Donot allow dragging of the 1st and 2nd column and
    2. If the user drag-drop 3 or 4 th column in place of 1st or 2nd column, then undo the swap operation by re-swapping the columns.
    Try the following example
    import java.awt.Point;
    import java.awt.event.MouseEvent;
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.event.MouseInputListener;
    import javax.swing.plaf.basic.BasicTableHeaderUI;
    import javax.swing.table.JTableHeader;
    import javax.swing.table.TableColumnModel;
    public class FixedTableColumnsExample
        FixedTableColumnsExample()
            String[] columnNames = {"First","Last Name","Sport","# of Years","Vegetarian"};
              Object[][] data = {
              {"Mary", "Campione","Snowboarding", new Integer(5), new Boolean(false)},
              {"Alison", "Huml","Rowing", new Integer(3), new Boolean(true)},
              {"Kathy", "Walrath","Knitting", new Integer(2), new Boolean(false)},
              {"Sharon", "Zakhour","Speed reading", new Integer(20), new Boolean(true)},
              {"Philip", "Milne","Pool", new Integer(10), new Boolean(false)}
              JTable table = new JTable(data, columnNames);
            TableColumnModel columnModel = table.getColumnModel();
            EditableHeader test = new EditableHeader(columnModel);
            table.setTableHeader(test);  
            JFrame frame = new JFrame("Table Fixed Column Demo");
            frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
            JScrollPane scrollPane = new JScrollPane(table);
            frame.getContentPane().add( scrollPane );
            frame.setSize(400, 300);
            frame.setVisible(true);
        public static void main(String[] args)
            new FixedTableColumnsExample();
    class EditableHeader extends JTableHeader
        public EditableHeader(TableColumnModel columnModel)
            super(columnModel);
        public void updateUI()
            setUI(new EditableHeaderUI());
    class EditableHeaderUI extends BasicTableHeaderUI
        boolean is1and2Swapped  = true;
        protected MouseInputListener createMouseInputListener()
            return new MouseInputHandler((EditableHeader) header);
        class MouseInputHandler extends BasicTableHeaderUI.MouseInputHandler
            protected EditableHeader header;
             public MouseInputHandler(EditableHeader header)
                 this.header = header;
             public void mouseDragged(MouseEvent e)
                 int draggedColumnIndex = ((EditableHeader)e.getSource()).getDraggedColumn().getModelIndex();
                 if(draggedColumnIndex != 0 && draggedColumnIndex != 1 )
                     super.mouseDragged(e);
                     is1and2Swapped = true;
                 else
                     is1and2Swapped = false;
             public void mouseReleased(MouseEvent e)
                 int draggedColumnIndex = ((EditableHeader)e.getSource()).getDraggedColumn().getModelIndex();
                 Point p = e.getPoint();
                 TableColumnModel columnModel = header.getColumnModel();
                 if(p.x < 0)
                     p.x = 0;
                 int index = columnModel.getColumnIndexAtX(p.x);
                 super.mouseReleased(e);
                 if((index == 0 || index == 1) && is1and2Swapped)
                   header.getColumnModel().moveColumn(index,draggedColumnIndex);
    }Is there anyother better way to do the swap disabling? If so please suggest me.
    This solution is having one disadvantage.
    Consider the following scenario,
    a) 1 and 2 are fixed columns.
    b) Move column 4 to 3rd position
    c) Move new 3rd column to 1st or 2nd column's position
    d) the new 3rd column is moving to position 4(its original position when the model was created) instead of position 3.
    This is because the TableColumModel is not updated properly. I'm working on that. Any Suggestions?
    Thanks
    Arun.

  • Focus stays on cell when I select column in JTable

    Hi,
    I am using a JTable and I have defined a function key cntrl-D to perform a function on a selected column. This works fine if I have not yet edited one of the cells in the column, but if I edit any cell and then click the column header and hit cntrl-D, then the column is deselected, the top cell enters edit mode, and my function is called with only one cell selected (always the top cell) instead of the whole column.
    When I debug this, I find that my function is called first, and processKeyEvent in the cell editor is called later. The editor doesn't handle it and calls super().
    I think that somehow the cell is keeping the focus even though I try to deselect it when the column is selected in my column header listener. Any suggestions welcome.
    Here is the code I use to select the column in the column header listener. I have verified that it is called when I click the header:
    public void mouseClicked(MouseEvent e)
    table.requestFocusInWindow();
    Point thePoint = e.getPoint();
    int theColumnIndex = table.columnAtPoint(thePoint);
    int theLastRowIndex = table.getRowCount() - 1;
    if (theLastRowIndex > 0 && theColumnIndex > 0 && theColumnIndex < table.getColumnCount() )
    if ( e.isShiftDown() && table.getSelectedRowCount() == table.getRowCount() )
    table.editingStopped(null);
    if ( table.isEditing() )
    return;
    if ( theColumnIndex <= mColumnStart )
    table.setColumnSelectionInterval( theColumnIndex, mColumnStart);
    else if ( theColumnIndex >= mColumnStart )
    table.setColumnSelectionInterval( mColumnStart, theColumnIndex );
    else if ( e.isControlDown() && table.getSelectedRowCount() == table.getRowCount() )
    table.editingStopped(null);
    if ( table.isEditing() )
    return;
    if (table.isColumnSelected(theColumnIndex))
    table.removeColumnSelectionInterval(theColumnIndex, theColumnIndex);
    else
    table.addColumnSelectionInterval(theColumnIndex, theColumnIndex);
    else
    table.editingStopped(null);
    if ( table.isEditing() )
    return;
    table.clearSelection();
    table.setEditingRow(-1);
    table.setEditingColumn(-1);
    table.setRowSelectionInterval(0, theLastRowIndex);
    table.setColumnSelectionInterval(theColumnIndex, theColumnIndex);
    mColumnStart = theColumnIndex;
    SampleManager.getInstance().setupMenus();

    I found the answer. This is a feature that worked in 1.3.1 but broke in 1.4.1. It turns out that there is a new feature in JTable that jumps into edit mode when a key event is detected, and that causes the column selection to be canceled. To inactivate this feature I put the following line into the constructor of my JTable subclass:
    putClientProperty("JTable.autoStartsEdit", Boolean.FALSE);

  • Keep history pl-sql changes

    I want to keep history of pl-sql changes
    I have already found an example..
    CREATE TABLE SOURCE_HIST -- Create history table
    AS SELECT SYSDATE CHANGE_DATE, USER_SOURCE.*
    FROM USER_SOURCE WHERE 1=2;
    CREATE OR REPLACE TRIGGER change_hist -- Store code in hist table
    AFTER CREATE ON SCOTT.SCHEMA -- Change SCOTT to your schema name
    DECLARE
    BEGIN
    if DICTIONARY_OBJ_TYPE in ('PROCEDURE', 'FUNCTION',
    'PACKAGE', 'PACKAGE BODY', 'TYPE') then
    -- Store old code in SOURCE_HIST table
    INSERT INTO SOURCE_HIST
    SELECT sysdate, user_source.* FROM USER_SOURCE
    WHERE TYPE = DICTIONARY_OBJ_TYPE
    AND NAME = DICTIONARY_OBJ_NAME;
    end if;
    EXCEPTION
    WHEN OTHERS THEN
    raise_application_error(-20000, SQLERRM);
    END;
    show errors
    but the select statement doesnt return any row
    SELECT sysdate, user_source.* FROM USER_SOURCE
    WHERE TYPE = DICTIONARY_OBJ_TYPE
    AND NAME = DICTIONARY_OBJ_NAME;

    Looks to me like the names were changed in 9i.
    8i guide shows SYSEVENT,
    LOGIN_USER, INSTANCE_NUM, DATABASE_NAME, DICTIONARY_OBJ_TYPE, DICTIONARY_OBJ_NAME, DICTIONARY_OBJ_OWNER
    as available.
    This PSOUG page shows variables ora_sysevent, ora_dict_obj_owner, ora_dict_obj_name being used.
    The 9i App Dev Guide Ch 16 shows the new names.
    So change DICTIONARY_OBJ_NAME to ORA_DICT_OBJ_NAME etc and you should be good to go. Shows you that you have to check information you find on Google!
    HTH
    Regards Nigel

  • Report Does Not Follow Select Column Order

    Hi all,
    Apex 2.2 on 10gXE
    I always encounter this problem, the display column on report does not follow the select column sequence order in the "region source".
    It is very tedious clicking the up/down arrow one-by-one in the "report attributes" especially if the display columns are plenty like 40 columns.
    Is there a fix/patch or alternative tips for this bug?
    Thanks a lot,
    Edited by: 843228 on May 24, 2011 10:32 PM

    Apex 2.2 on 10gXEStart by upgrading from this old unsupported version.
    >
    I always encounter this problem, the display column on report does not follow the select column sequence order in the "region source".
    It is very tedious clicking the up/down arrow one-by-one in the "report attributes" especially if the display columns are plenty like 40 columns.
    Is there a fix/patch or alternative tips for this bug?
    >
    This is not a bug. APEX maintains the original column order of the report. This avoids problems downstream in areas like the processing of <tt>g_fnn</tt> arrays in declarative tabular forms, where the assigned arrays are column-order dependent.
    APEX 4.x fixes column ordering bugs that could lead to report corruption, and includes drag-and-drop column ordering in the new tree view in addition to the up/down arrow re-ordering.
    If you really want column order to follow that in the source query, the workaround is to create a new report using the modified query.

  • Interactive Report - Include Non-selected Column in Row Text Search

    Hi,
    We have an interactive report that contains many columns. NAME VARCHAR2(30), TYPE VARCHAR2(30) etc and DESCRIPTION VARCHAR2(4000).
    Normally the DECRIPTION column would not be shown (avalilable for dispaly via 'Select Columns' but not selected), however we need the default Row Text Search (ie direct entry into the search field instead of creating a column filter) to search the DESCRIPTION field wether it is selected for display or not.
    This will allow the user to enter a term that may be contained in the DESCRIPTION to find records without trying to display a 4000 character field in the report - which just looks horrible.
    We are using ApEx 4.1.1.
    Thanks,
    Martin Figg

    Hi Ray,
    As I expected this has got us very close. We went with the code:
    select
    facility_id,
    facility_name,
    '<span title="' || facility_desc|| '">'||substr(facility_desc,0,50)||decode(sign(length( facility_desc)-50),1,' (More...)',NULL)||'</span>' facility_desc,
    equipment_id,
    equipment_name,
    '<span title="' || equipment_desc|| '">'||substr(equipment_desc,0,50)||decode(sign(length( equipment_desc)-50),1,' (More...)',NULL)||'</span>' equipment_desc,
    from
    rf_full_item_list_vwhich works well. The only issue is that when you download to csv you get the html tags etc as well. Put I am a lot closer to a solution than we were.
    Thanks again.
    Martin

  • How to find out the selected column in Table Control

    Hi all,
          How to find out the selected column in Table Control?
    Thanks & Regards,
    YJR

    Hi,
    Let your table control name in Screen painter be TC1.
    READ TABLE TC1-COLS INTO WA_COLS (some wok area)
                 WITH KEY SELECTED = 'X'.
            IF SY-SUBRC = 0.
              CLEAR: W_DUMMY, W_COL_NAME.
              SPLIT WA_COLS-SCREEN-NAME AT '-' INTO W_DUMMY
                                                   W_COL_NAME.
            endif.
    W_COL_NAME gives you the column name.
    Hope it helps.
    cheers
    sharmistha

  • How to select columns in a table by their column id and not the column name

    Hello,
    How do you select columns from a table based on their column_id.
    I have create a view
    but other than Select * , i cant now select one just one column from it
    the view as follow:
    create view count_student as
    select a.acode "acode",aname "Activity Name",count(ae.acode) "Number of student joined"
    from aenrol ae, activity a
    where a.acode= ae.acode
    group by a.acode,aname;

    The issue is that you have decided to use quoted column names. A pretty horrible idea (mostly for the reasons that you are now finding).
    Re-create the view and get rid of the silly double quotes.

  • How to export selected columns in a table using expdp of oracle10g

    Hi all..
    I have a table with 10 columns and i want to export only 4 columns(selected columns) data using expdp
    Pl. tell me if we can do this and if yes what is the syntax.
    Thanks..
    Sekhar

    That's not possible, you could use QUERY to specify where clause but not columns in select clause,
    for example,
    QUERY=employees:'"WHERE department_id > 10 AND salary > 10000"'
    you could use
    create table2export as select c1,c2,c3,c4 from tableof10columns;and export the temp table.

  • How to use java source in Oracle when select by sqlplus.

    How to use java source in Oracle when select by sqlplus.
    I can create java source in Oracle
    import java.util.*;
    import java.sql.*;
    import java.util.Date;
    public class TimeDate
         public static void main(String[] args)
    public String setDate(int i){
    GregorianCalendar calendar = new GregorianCalendar();
    calendar.setTime(new Date((long)i*1000));
    System.out.println("Dateline: "
    + calendar.get(Calendar.HOUR_OF_DAY) + ":"
    + calendar.get(Calendar.MINUTE) + ":"
    + calendar.get(Calendar.SECOND) + "-"
    + calendar.get(Calendar.YEAR) + "/"
    + (calendar.get(Calendar.MONTH) + 1) + "/"
    + calendar.get(Calendar.DATE));
    String n = calendar.get(Calendar.YEAR) + "/" + (calendar.get(Calendar.MONTH) + 1) + "/" + calendar.get(Calendar.DATE);
         System.out.print(n);
         return n;
    I have table name TEST
    ID DATE_IN
    1 942685200
    2 952448400
    When I write jsp I use method setDate in class TimeDate
    The result is
    ID DATE_IN
    1 1999/11/16
    2 2003/7/25
    Thanks you very much.

    It is unclear where you are having a problem.  Is your issue at runtime (when the form runs in the browser) or when working in the Builder on the form?
    Also be aware that you will need to sign your jar and include some new manifest entries.  Refer to the Java 7u51 documentation and blogs that discuss the changes.
    https://blogs.oracle.com/java-platform-group/entry/new_security_requirements_for_rias
    http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/manifest.html

Maybe you are looking for