Hot to use the data grid to edit column objects

I have a simple object type:
CREATE OR REPLACE TYPE TIMESLICE AS OBJECT
SINCE TIMESTAMP (6),
UNTIL TIMESTAMP (6)
And a simple table with one column containing objects of this type:
CREATE TABLE TABLE1
COLUMN1 TIMESLICE
I can insert into the table:
INSERT INTO SLICES VALUES (timeslice (NULL, NULL));
But when I try to use the data grid and write there the same string "timeslice (NULL, NULL)" as value I get the following error during commit:
One error saving changes to table "TABLE1":
Row 1: ORA-06550: line 1, column 55:
PL/SQL: ORA-00932: inconsistent datatypes: expected UDT got CHAR
ORA-06550: line 1, column 7:
PL/SQL: SQL Statement ignored
The data grid interprets the value as characters instead of an expression.
How do I have to enter the object in the data grid?

Is it possible to access the cache datasource inside the script component which is available in the same data flow task??
Thanks in advance,
Saravanan

Similar Messages

  • Using PHP Data Services to create an object and accessing that objects data in an unbound way in AS

    Hello,
    I've been able to use the php data services and bind the results of a function to a component. However I am having a hard time figuring out the syntax to use the data services to create an object out of the results, and then use that object as an array of filenames to provide the current index of the filename to a new sound object.
    My problem is obviously in not being able to figure out the specific syntax, I have declared the service and and object of the services returned type and in the creationComplete() function I have assigned object.token = service.getData();
    I've tried various ways of then pulling that data out of the object, with no success.
    Can someone point me in the right direction?
    This code probably looks horrible because it doesn't work yet.
    - Joel
                import flash.media.Sound;
                import flash.media.SoundChannel;
                import mx.controls.Alert;
                var playing:Sound = new Sound();
                var channel:SoundChannel = new SoundChannel();
                var sndIndex:int=0;
                var skpTr:String;
                public function init():void{
                 mp3Array.token = mp3service.getData();
                 currentTrack(mp3Array.lastResult.filename); 
                     trace(mp3Array.lastResult.filename[sndIndex]);
                public function currentTrack(t:String):void{
                    playing = new Sound();
                    playing.load(new URLRequest("mp3/" +t));
                public function skip():void{
                    stop();
                    if (sndIndex != mp3Array.lastResult.length-1){
                        sndIndex++;
                        var skipTr:String=mp3Array.lastResult.filename[sndIndex].data;
                        currentTrack(skipTr);
                        play();
                    } else {
                        sndIndex=0;
                        skipTr=mp3Array.lastResult.filename[sndIndex].data;
                        currentTrack(skipTr);
                        play();
                public function stop():void{
                    channel.stop();
                public function play():void{
                    channel = playing.play();
        <fx:Declarations>
            <s:CallResponder id="mp3Array"/>
            <mp3services:Mp3Service id="mp3service" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>

    Hello Joel;
    In retrieving your data - what is your php returning to FB, an object, object array, an array?  Either way, I have a brief example below that an object(s) is being returned.  Pull the data from the lastResult in a ResultEvent.  The object instantiated in the resultEvent will contain your data and you can do what you want from there. 
    Also, I always use Network Monitor to see what data (if any) is being returned from the server, you can also see how it is being sent back.
    John
    private function init():void
         mp3Array.token = mp3service.getData();
         mp3Array.addEventListener(FaultEvent.FAULT, faultHandler);
         mp3Array.addEventListener(ResultEvent.RESULT, mp3Array_resultHandler);
    protected function faultHandler(event:FaultEvent):void
         Alert.show("There was a fault error!" + event.message, "Fault Error", Alert.OK);
    protected function mp3Array_resultHandler(event:ResultEvent):void
         // Not sure if your service is sending back an object or an array or ?
        var info:Object = mp3Array.lastResult;
         doSomeFunction(info)
    protected function doSomeFunction(data:Object):void
         trace(info.filename);

  • How to determine # of recs in the data grid - with filter being used

    Say I'm looking at table or view that has 10,000 rows. I put a filter on the filter line such as state = 'WA'. Let's say the data grid (where I see the data clicking the 'data' button) now has 2,500 rows with the filter in effect.
    So, how do I tell how many rows are in the data grid now? I can see how to retrieve the total number of rows for the table or view, but how when a filter is in effect.
    Thanks.

    Okay thanks.
    Sure would have preferred to see (dare I say ... like TOAD) where you can just right click in the data grid and choose record count.
    But thanks - I'll use the COUNT method (till of course it's added 8-)
    Russ

  • ALV GRID CELL EDIT without object use

    Hi !
    I'm not using grid object, I'm using the standard
    function.
    I want to edit one cell only in the grid,
    again - I'm not using the alv grid object.
    how can I change the style of one cell.
    thank you
      Adi

    Hi,
    You can edit one column as below.But I am not sure about editing a cell.
      DATA: line_fieldcat TYPE slis_fieldcat_alv.
    line_fieldcat-fieldname = 'WS_CHAR'.
      line_fieldcat-tabname   = 'I_DATA'.
      line_fieldcat-seltext_l = 'Test Character Field'.
      line_fieldcat-datatype  = 'CHAR'.
      line_fieldcat-outputlen = '15'.    
      line_fieldcat-edit      = 'X'.     
      APPEND line_fieldcat TO i_fieldcat. " column.

  • Populating the data grid

    OK I think that is resolved but I cannot pull the Data.
    The Grid does not populate with data......Just keeps trying to pull it.
    THE CFC FUNCTION:
    <cffunction name="comments" access="remote" returntype="struct">
      <cfargument name="page" required="true">
      <cfargument name="pageSize" required="true">
      <cfargument name="gridsortcolumn" required="true">
      <cfargument name="gridsortdirection" required="true">
       <cfquery name="selectAll" datasource="#dsn#" dbtype="#i#">
        SELECT autoid, CONVERT(VARCHAR(10), sDate, 101) as sDATE, DAGRSN, branch,
          DODAAC, clin, hours
        FROM reporting.DAGRSCRAPS
       </cfquery>
      <cfreturn queryconvertforgrid(selectAll,page,pagesize)/>
    </cffunction>
    THE DATA GRID ITSELF:
    <cfform name="myform" id="myformid">
    <cfgrid
    name = "myGrid"
    format="html"
    bindOnLoad="yes"
    bind="cfc:pdgps.admin.backoffice.components.Data.comments({cfgridpage },{cfgridpagesize},{cfgridsortcolumn},{cfgridsortdirection})"
    pageSize="10"
    preservePageOnSort="true"
    selectMode="single"
    selectOnLoad="no"
    font="Verdana"
    fontsize="11"
    label="True"
    stripeRows="true"
    stripeRowColor="##D9CCFF"
    selectColor="##994FE6">
      <cfgridcolumn name="autoid" display="no" >
      <cfgridcolumn name="branch" header="SERVICE" type="string_noCase" >
      <cfgridcolumn name="DODAAC" header="DODAAC" type="string_noCase" >
      <cfgridcolumn name="DAGRSN" italic="yes" display="yes" header="DAGRSN">
      <cfgridcolumn name="sDATE" display="yes" header="Date" mask="EEE DD-MMM-YY H:NN A">
      <cfgridcolumn name="clin" width="35" display="yes" >
    </cfgrid>
    </cfform>

    <cfargument name="gridsortdirection" required="true">
    <cfset var selectAll = "">
    <!--- this 'var' scopes the selectAll variable to be local to this function --->
    <cfquery name="selectAll" datasource="#dsn#" dbtype="#i#">
    Also, where are the 'dsn' and 'i' variables defined.  They do not appear to be part of this function.  Using a CFC function remotely has a great effect on what variables scopes may or may not be accessed.

  • Can I automate the creation of a cluster in LabView using the data structure created in an autogenerated .CSV, C header, or XML file?

    Can I automate the creation of a cluster in LabView using the data structure created in an auto generated .CSV, C header, or XML file?  I'm trying to take the data structure defined in one or more of those files listed and have LabView automatically create a cluster with identical structure and data types.  (Ideally, I would like to do this with a C header file only.)  Basically, I'm trying to avoid having to create the cluster by hand, as the number of cluster elements could be very large. I've looked into EasyXML and contacted the rep for the add-on.  Unfortunately, this capability has not been created yet.  Has anyone done something like this before? Thanks in advance for the help.  
    Message Edited by PhilipJoeP on 04-29-2009 04:54 PM
    Solved!
    Go to Solution.

    smercurio_fc wrote:
    Is this something you're trying to do at runtime? Clusters are fixed data structures so you can't change them programmatically. Or, are you just trying to create some typedef cluster controls so that you can use them for coding? What would your clusters basically look like? Perhaps another way of holding the information like an array of variants?
    You can try LabVIEW scripting, though be aware that this is not supported by NI. 
     Wow!  Thanks for the quick response!  We would use this cluster as a fixed data structure.  No need to change the structure during runtime.  The cluster would be a cluster of clusters with multiple levels.  There would be not pattern as to how deep these levels would go, or how many elements would be in each.   Here is the application.  I would like to be able to autocode a Simulink model file into a DLL.  The model DLL would accept a Simulink bus object of a certain data structure (bus of buses), pick out which elements of the bus is needed for the model calculation, and then pass the bus object.  I then will take the DLL file and use the DLL VI block to pass a cluster into the DLL block (with identical structure as the bus in Simulink).  To save time, I would like to auto generate the C header file using Simulink to define the bus structure and then have LabView read that header file and create the cluster automatically.   Right now I can do everything but the auto creation of the cluster.  I can manually build the cluster to match the Simulink model bus structure and it runs fine.  But this is only for an example model with a small structure.  Need to make the cluster creation automated so it can handle large structures with minimal brute force. Thanks!  

  • How to use Jquery Data Grid in HTML

    can anyone please tell me how to use JQuery Data grid in my HTML page with example.
    I have one HTML page i want the standard JQuery Data Grid with search and pagination functionality.

    Guys I have got the solution
    thanks a lot
    please refer this link for JQGrid
    http://www.codeproject.com/Articles/609442/Using-JqGrid-in-ASP-NET

  • Problem rendering a combo box in the data grid

    Hi,
    I am rendering a combo box in the data grid control using an
    item renderer. When I click on it to select a value from the drop
    down, the combo box immediately closes giving no time to even click
    on the dropdown. This doesn’t happen every time the combo is
    clicked, although it happens frequently. What I think is that the
    problem arises because the data grid tries to refresh the renderers
    and during this process, the existing combo is removed, thereby
    getting closed automatically. Please let me know of a work around.
    Thanks,
    Cheree

    hi hiwa,
    i have to add combo box in datagrid dynamically.
    it should append as and when i add the data in the above text boxes.
    thanks in advance.

  • Using the data cable with Mac OS 10.5.4

    Is it possible to use the data cable to connect my Nokia N70 to Mac OS X Leopard? I want to use it as a GPRS modem, and can do so via bluetooth, but get very slow speeds. Therefore, I'd like to try using the data cable.
    There isn't a Mac version of PC Suite (Mac Suite?!), is there?
    Thanks in advance.

    no, there's no Mac Suite product. however, i'd consider that a good thing since my fiancé's PC Suite has YET to be able to connect her to the internet via USB or Bluetooth (!@#$'ing windows). she's got an N82 and windows vista home [adjectives ad infinium] and the latest N-series pc suite.
    for her, we had to switch to WalkingHotSpot. that and JoikuSpot are essentially the same product. while this isn't an option on the N70 (no wifi), i thought i'd at least point out that PC Suite on windows doesn't seem to work well either.
    now, about that USB connectivity: yes, i would think it SHOULD work. i'll try settin up my n95 in this manner (though i use WalkingHotSpot or bluetooth modem as needed)
    what version of macos are you running?
    -bit
    EDIT: this article may get you started:
    http://the.taoofmac.com/space/HOWTO/Setup%20GPRS/U​MTS%20Access%20on%20a%20Mac
    note the section near the bottom that talks about using a Nokia device with a default APN set, and therefore not needing to configure any of the complicated stuff mentioned earlier in the article.
    -bit
    Message Edited by bitflung on 31-Oct-2008 12:17 PM
    N95-1 ---> N97-NAM ---> N900 ---> E7-00 + N900 (I use them both)
    (N95 was pretty good, N97 had potential but utterly failed to deliver, N900 is absurdly good. Those of you wondering, "should I try N900/Maemo/MeeGo"? The answer is a resounding YES)

  • Extract all the data grids in one click

    Hi All,
    I need to download all the data forms that i have in the system.
    We have a fat hierarchy and i'm looking for a short way to extract all the data grids without extracting from every folder in the hierarchy separately.
    I don't care about the type of the file/files. it can be one long file...
    Do you know what action i can perform here?
    Thanks,
    Orit

    Hi,
    What operating system are you using?  What version of Excel are you using?  It's possible you are using a version of Excel we do not support.  Also, can you send me an email with your exported Excel file, so I can try opening it myself?  My email address is [email protected]
    Thanks,
    Todd

  • LR is using meta data from previous edited photos on new imports

    LR is using meta data from previous edited photos on new imports-
    When I am importing new photos to a new catalog LightRoom gave all the photo settings that I had used on a previous catalogs photo I had to delete the catalog because I could not find an answer anywhere. Tried the deleteing and importing 3 times with same result.
    Once I did Start another new catalog and pressed reset on everything I could find it worked.
    What can I do if this happens again? Anybody know what setting that involves?

    On the right side of the Import screen, there's a heading "Apply during import". (If it doesn't show, right-click on the panel on the right and choose it from the menu.) One of its sub-fields is Metadata. That field and the Keywords field below it, I think are "sticky". You need to make sure that they contain the metadata that you want applied in your current import.
    It's almost always a bad idea to delete your catalogue or re-import images. Both those things fall at the very end of possible remedies because they cost you a lot of work, and there are almost always cheaper ways of solving your problem.
    Hal

  • HT201178 How do I use the wireless keyboard to edit my iPhone contacts?

    How do I use the wireless keyboard to edit my iPhone contacts?

    Type in the field for first name, last name etc. When you're ready to go to the next field, hit enter/return.

  • Create a Purchase order using the BAPI using the data in the XML file.

    Hello Gurus,
    here is the scenario can anyone help me how to proceed explaining the procedure?
    Create a Purchase order using the BAPI using the data in the XML file.
    comprehensive explanations are appreciated.
    thanks in advance.

    hi,
      first use fm "bapi_po_create".
      then use fm "BAPI_ACC_GL_POSTING_POST"
    The demo environment was made with real business scenario in mind, but following subjects need to be addressed in a live implementation:
    •     No exceptions and error handling is implemented, except the order rejection (e.g. partly delivery);
    •     In Navision both XML Ports and the XML DOM has been used to integrate with SAP XI, because XML ports has some drawbacks regarding to Namespaces in XML Documents (mandatory in SAP XI);
    •     A minimum of SAP and Navision customization is required to implement this solution. (e.g. user exit in SAP, Navision XML DOM).

  • Error while importing the tables from MySQL using the data source connection

    Hi,
    I am trying to import tables from MySQL into Powerpivot using the data source connection, if use the import using the Query option its working fine but not with the select list of table option.
    when i click on the select list of tables option, i get the below error after selecting all the tables to be imported:
    OLE DB or ODBC error.
    An error occurred while processing table 'XXXXXXXXXX'.
    The current operation was cancelled because another operation in the transaction failed.

    Hi Bharat17an,
    Please provide the detail information when create the MySQL connection in your PowerPivot model. Here is a good article regarding "how to Use MySQL and Microsoft PowerPivot Together" for your reference, please see:
    http://www.datamensional.com/2011/09/how-to-use-mysql-and-microsoft-powerpivot-together-2/
    If this issue still persists, please help to collection windows event log information. It maybe helpful for us to troubleshoot this issue.
    Regards,
    Elvis Long
    TechNet Community Support

  • My old computer (a Sony) with my iTunes crashed. I have a new MAC and want to make sure I can keep all of my music (mostly from old CD's that have been lost). I bought iTunes match hoping that would work but it isn't using the data on my phone. HELP!

    My old computer (a Sony) with my iTunes crashed. I have a new MAC and want to make sure I can keep all of my music (mostly from old CD's that have been lost). I bought iTunes match hoping that would work but it isn't using the data on my phone. HELP!

    Since you have purchased a new Mac (which, BTW, is not typed in all capitals) why not buy a Time Capsule <http://www.apple.com/airport-time-capsule/> which is designed specifically to work with OS X and Time Machine?
    You don't say what part of your Sony "crashed." If it was not the HDD it is possible to take the computer apart, put the HDD in an external case, then recover the data off of it (including the music) simply drag-n-drop. If it was the HDD that "crashed" that makes it more difficult.
    If you are able to recover the music from the Sony you can then add it to the iTunes library on the Mac and iTunes Match will then scan, match and upload the tracks to be mirrored in the cloud.

Maybe you are looking for

  • Download data from jsp to Excel

    Originally, when I was using tomcat as the web server (installed at my local machine), I wrote a jsp which allows users to download Oracle table data to a Excel file. When the user clicks "Download" data, a "File Download" dialog box pops up and asks

  • Can't find mysterious message

    I've read every email and every missed call and yet there is still an icon showing that I have 1 message. I can't figure out where/what this message is. My SMS is separate and has a different icon so I know it's not that. Anybody have any idea? Thank

  • Palm Pre2 Self Hard Reset

    Yesterday, when about to make a phone call, the screen was black and there was no reaction to any command, including a long press on the power button. I understood the phone was crashed and, as a long timer IT person, I just removed the battery, wait

  • Application is in maintenance mode. New logins are not allowed

    Hi, Trying to login with New user in existing application, getting this error:- "Application is in maintenance mode. New logins are not allowed" Any suggestion will be appreciated. Thanks Sanjay

  • Connectivity of Applet with Oracle

    I am able to connect an Applet to oracle.It is displayed on the client browser only when there is an .java.policy file in my home directory.I created a .java.policy file on my server home directory.It is not running on the client machine.Please let m