How to get the table out put

Hi
I have a function in a package where it's out put is a table.
I call it from FORM level procedure.
Could anybody help me with view the data of my out put for the purpose of debugging.
(Note: I use SQL Navigator as the db tool , Forms Builder (9.0.4.2.0))
Rgds
shabar

I don't exactly know how your datablock is, the aray you are returning but you can use code like this to populate the data block.
Write this code in when new form instance trigger.
declare
  type pkarray is varray(100) of <table_name>.<column_name>%type; --table name on which your varray returning from function is based.
  id_arr pkarray := pkarray();
begin
  id_arr := <function_name>; -- call to your function which returns the array
  go_block('<block_name>');
  clear_record;
  first_record;
   For i in 1..id_arr.count
   loop
       :<block_name>.<item_name> :=  id_arr(i);
       next_record;
   end loop; 
end;You can tweak this code to suit your requirement.
Hope it helps.
Please mark answer as helpful / correct, if it helps you
Navnit

Similar Messages

  • How to get the table of value field? and can we expand the technical limits

    Dear
    I have created value field in COPA with KEA6. And now, I need the table which the value fields are saved. Yet, I have tried a lot to find it and get failure? Can any guy help me? Please tell me how to get the table of a value field.
    And another question is that, can we extend the technical limits for the number of value field for ECC6.0?
    We have a note for R.4.x Please see below:
    OSS note 160892
    You can display the length of a data record using Transaction KEA0 ('Maintain Operating Concern'). After you have navigated to the 'Characteristics Screen' or to the 'Value field Screen' choose menu path 'Extras -> Technical Limits'.
    The maximum displayed here under 'Length in bytes on the DB' is the maximum length permitted by the Dictionary. The reserve required for the release upgrade must be subtracted from this value.
    To increase the allowed number of the value fields, increase the value that is assigned to field ikcge-bas_max_cnt (FORM init_ikcge_ke USING fm_subrc, approx. line 165) in Include FKCGNF20. It specifies the number of the possible value fields. The corresponding part of the source code is attached to the note as a correction.
    David Sun
    Regards!

    how to extend the limit of value numbers? please see the original question.

  • How to get the table with no. of records after filter in webdynpro

    Dear Gurus,
    How to get the table with no. of records after filter in webdynpro?
    Thanks in advance.
    Sankar

    Hello Sankar,
    Please explain your requirement clearly so that we can help you easily.
    To get the table records from your context node use method get_static_attributes_table()
    data lo_nd_mynode       type ref to if_wd_context_node. 
    data lt_atrributes_table  type wd_this->elements_mynode. 
    lo_nd_mynode = wd_context->get_child_node( name = wd_this->wdctx_mynode ). 
    lo_nd_mynode->get_static_attributes_table( importing table = lt_atrributes_table ). 
    Note: You should have already defined your context node as a Dictionary Structure.
    BR,
    RAM

  • How to get the table name and bind columns names in an INSERT statement ?

    I have an INSERT statement with input parameters (for example
    INSERT INTO my_table VALUES (:a, :a, :a)) and I want to know
    without parsing the statement which is the name of table to
    insert to and the corresponding columns.
    This is needed to generate the SELECT FOR UPDATE statement to
    refetch a BLOB before actually writing to it. The code does not
    know in advance the schema (generic code).
    Thanks in advance,
    Joseph Canedo

    Once you have prepared your statement, you can execute the
    statement with the OCI_DESCRIBE_ONLY mode before binding any
    columns. Then you can use OCIParamGet to find out about each
    column (column index is 1-based). You should get OCI_NO_DATA or
    ORA-24334 if there are no more columns in the statement. Note
    that the parameter descriptor from OCIParamGet is
    allocated/freed internally by OCI; you do not need to manage it
    explicitly. The parameter descriptor is passed to OCIAttrGet in
    order to obtain for instance the maximum size of data in the
    column OCI_ATTR_DATA_SIZE. You can also get the column name in
    this way, although I do not remember the #define off the top of
    my head. Getting the table name appears to be much more
    difficult; I have never had to do that yet. Good luck. -Ralph

  • How to get the table name of a field in a result set

    hi!
    i have a simple sql query as
    select tbl_customerRegistration.*, tbl_customerAddress.address from tbl_customerRegistration, tbl_customerAddress where tbl_customerAddress.customer_id = tbl_customerRegistration.customer_ID
    this query executes well and gets data from the database when i get ResultsetMetaData from my result set (having result of above query) i am able to get the field name as
    ResultSetMetaData rsmd = rs.getMetaData();//rs is result set
    String columnName = rsmd.getColumnName(1);
    here i get columnName = "Customer_id"
    but when i try to get the tabel name from meta data as
    String tableName = rsmd.getTableName(1); i get empty string in table name....
    i want to get the table name of the respective field here as it is very important to my logic.....
    how can i do that.....
    please help me in that regard as it is very urgent
    thanks in advance
    sajjad ahmed paracha
    you may also see the discussion on following link
    http://forum.java.sun.com/thread.jspa?threadID=610200&tstart=0

    So far as I'm aware, you can't get metadata information about the underlying tables in a query from Oracle and/or the Oracle drivers. I suspect, in fact, that the driver would have to have its own SQL parser to get this sort of information.
    I'm curious though-- how do you have application logic that depends on the name of the source table but not know in the application what table is involved? Could you do something "cheesy" like
    SELECT 'tbl_customerRegistration' AS tbl1_name,
           tbl_customerRegistration.*
    ...Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • How to get the table strucuture for multiple table

    I need to get the table structure for more than 40 table in a .txt file, is there any query to get this.
    I know how to get it individually but would be good if I can get it in one go
    Regards,

    You could write a procedure using DBMS_METADATA.GET_DDL + DBA|ALL|USER_TABLES
    or
    ask your DBA
    or
    get something like SQL Developer/PL/SQL Developer/TOAD...

  • How to get the table Event action in the controller???

    HI
    Based on my requirement i have extended my controller,but i want to perform some validation like ,,,,
    i have table in one region ,in which one column is having a Button (flex field) action with image,
    i want to write the code in the controller according to the validation ,,,,but i am unable to find the event action in the main controller,
    how to get the event action ?,,,,, of the item type as image
    thanks in advance
    Kash

    If not you can use image component with clientListener and serverListener to preform your requirement set clientListener click event and then inside clientListener java script method call the
    serverListener then will execute serverListener method.

  • How to get the table's text headers

    Hello,
    I have created a certain table with 5 coloums.
    I would like to get the table's coloums header text in a certain function. How do I do that?
    Roy

    Hi Roy,
    Get teh table object ..
    IWDTable t = (IWDTable)view.getElement("Table") ;
        IWDTableColumn cols[] = t.getColumns();
    Now loop through this cols array and use
        cols<i>.getHeader()
    this will give the header of each column in the table...
    Rgds
    Bharathwaj

  • How to get the table name in the trigger definition without hard coding.

    CREATE  TRIGGER db.mytablename
    AFTER UPDATE,INSERT
    AS
        INSERT INTO table1(col1)
        SELECT InsRec.col1   
        FROM
        INSERTED Ins
       --Below i am calling one sp for which i have to pass the table name
       EXEC myspname 'tablename'
      In the above trigger,presently i am hard coding the tablename
      but is it possible to get the table name dynamically on which the trigger is defined in order to avoid hard coding the table name

    I really liked your audit table concept.  You inspired me to modify it so that, the entire recordset gets captured and added a couple of other fields.  Wanted to share my end result.
    USE [YourDB]
    GO
    /****** Object: Trigger [dbo].[iudt_AutoAuditChanges] Script Date: 10/18/2013 12:49:55 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    ALTER TRIGGER [dbo].[iudt_AutoAuditChanges]
    ON [dbo].[YourTable]
    AFTER INSERT,DELETE,UPDATE
    AS
    BEGIN
    SET NOCOUNT ON;
    Declare @v_AuditID bigint
    IF OBJECT_ID('dbo.AutoAudit','U') IS NULL BEGIN
    CREATE TABLE [dbo].[AutoAudit]
    ( [AuditID] bigint identity,
    [AuditDate] DateTime,
    [AuditUserName] varchar(128),
    [TableName] varchar(128) NULL,
    [OldContent] XML NULL,
    [NewContent] XML NULL
    ALTER TABLE dbo.AutoAudit ADD CONSTRAINT
    PK_AutoAudit PRIMARY KEY CLUSTERED
    [AuditID]
    ) WITH( STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    CREATE NONCLUSTERED INDEX [idx_AutoAudit_TableName_AuditDate] ON [dbo].[AutoAudit]
    ( [TableName] ASC,
    [AuditDate] ASC
    )WITH (STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    END
    Select * Into #AuditDeleted from deleted
    Select * Into #AuditInserted from inserted
    While (Select COUNT(*) from #AuditDeleted) > 0 OR (Select COUNT(*) from #AuditInserted) > 0
    Begin
    INSERT INTO [dbo].[AutoAudit]
    ( [AuditDate], [AuditUserName], [TableName], [OldContent], [NewContent])
    SELECT
    GETDATE(),
    SUSER_NAME(),
    [TableName]=object_name([parent_obj]),
    [OldContent]=CAST((SELECT TOP 1 * FROM #AuditDeleted D FOR XML RAW) AS XML),
    [NewContent]=CAST((SELECT TOP 1 * FROM #AuditInserted I FOR XML RAW) AS XML)
    FROM sysobjects
    WHERE
    [xtype] = 'tr'
    and [name] = OBJECT_NAME(@@PROCID)
    Set @v_AuditID = SCOPE_IDENTITY()
    Delete from AutoAudit
    Where AuditID = @v_AuditID
    AND Convert(varchar(max),oldContent) = Convert(varchar(max),NewContent)
    Delete top(1) from #AuditDeleted
    Delete top(1) from #AuditInserted
    End
    END

  • How to get the elements out of a for loop simultaneously during the loop execution

    Hi, 
    I am student. I would like to know how to get the counter values outside the For loop parallely while the loop runs rather that getting the finally value outside the For loop. Looking forward for answers.
    Thanks,
    Athira
    Solved!
    Go to Solution.

    You could use a notifier (since it is a single value) or a reference (with a property node) to a control that gets the value elsewhere in another VI.
    If it is within the same VI, you could use a property node (right click > create > property node > value) from the control within the same VI located outside the loop.
    If you promiss NOT to abuse the use of Local Variables, you could use that to only write from ONE location within the For Loop to a control outside the loop, similar to the property node mentionned earlier.  (Of course, I will be struct by lightening for mentionning that and scolded by other LabVIEW coders for having a change of heart on the use of Locals....  Shivers are already crawling up my spine).
    You could use a queue, but that might be an overkill, unless:  the count is generated faster than it is being read elsewhere...
    As crossrulz mentionned, can you describe what you will be doing with the count?  Because synchronizing data (fresh / stale / etc) is very important within LabVIEW as it executes based on dataflow rather than a sequential order.
    Hope this helps. 
    EDIT: 
    You have not fully provided the answer.  We figured that much of your code from your description, but what is reading the value of the count?  Is it in a separate loop?  If not, it may only deal with the first value, which is likely 0.  The proper advice depends on how you process the received data (count).

  • How to get the table and column details out of desinger database design?

    what is the relation between ci_table_definition, ci_columns, ci_constains and ci_check_constaints?
    I want to get the report on table detail of tablenames, column names, comments, datatype+length and check constraints.
    thanks

    Hi,
    The link is pretty straightforward:
    ci_table_definitions.id = ci_columns.table_reference
    (also correct: ci_table_definitions.ivid = ci_columns.parent_ivid)
    ci_table_definitions.id = ci_check_constraints.table_reference
    Remember to set the Workarea Context - jr_context.set_workarea(' Name of Workarea') - before you start querying, especially when your Repository is versioned.
    good luck.
    Lucas

  • How to get the table/tree/list cell underneath the mouse

    I feel like I must be missing something. How can I find out the tree cell underneath the mouse cursor?
    I am implementing drag and drop from a table to a tree. I need to know which tree cell the user dropped the item on. I can get the drop coordinates (in pixels, I assume) from the drag event, but there doesn't seem to be a way to convert that into the particular cell index. This same question applies to getting the list and table cell under at particular coordinates.
    If there isn't an API for this, has anyone found a reliable workaround (dividing Y by cell height, etc.)
    Thanks,
    Josh

    You need to put event handlers for the D&D events on the Cells that are being created (so you will need to set a custom cell factory). For example, every cell is a Node, and these support properties like 'onDragDroppedProperty', and 'onDragExitedProperty'.
    When you add event handlers to these, you should be notified of items being dragged onto specific Cells of the Tree. A Cell then can be matched with a particular item in the Tree by reading its TreeItem property.
    Also read the documentation for TreeItem. There is a bit there that says:
    "It is important to note however that a TreeItem is not a Node, which means that only the event types defined in TreeItem will be delivered. To listen to general events (for example mouse interactions), it is necessary to add the necessary listeners to the cells contained within the TreeView (by providing a cell factory)."
    Which gives a clear hint at the end that for other interactions, you should add listeners to the Cells.
    Good luck!

  • How to get the table of cost elements data?

    Dear friends,
    I want ot get the Chart_of_Accounts, Cost_Element, Short_Text into an internal table, but how can I find the related tables in SAP system?
    Thanks a lot!

    Hi,
    The table for cost element is  CSKA.
    Alternately you can use the bapi BAPI_COSTELEM_GETDETAIL for getting the details also.
    Regards,
    Ankur Parab

  • How to get the NetConnection out of a flvplayback component in AS3?

    http://www.flashcomguru.com/index.cfm/2009/8/14/flvplayback-obtain-nc-reference
    I followed the above example in AS2,but only get the error:
    Call to a possibly undefined method getNetConnection through a reference with static type fl.video:INCManager.
    Here's my code:
                 this.addEventListener(Event.ENTER_FRAME,
                                       function() {
                                           if ((nc = player.ncMgr.getNetConnection()) != undefined)
                                               trace(nc);
    Anyone knows how to do it in AS3?

    This has worked for me.
    package  
    com.video{
    import flash.display.Sprite; 
    import flash.events.*; 
    import flash.media.Video; 
    import flash.net.NetConnection; 
    import flash.net.NetStream; 
    public class FLVStream extends Sprite{
    public static const ERROR:String="vidError"; 
    private var videoURL:String = ""; 
    private var connection:NetConnection; 
    private var stream:NetStream; 
    private var vidW:Number; 
    private var vidH:Number; 
    public function FLVStream(arg_url:String,arg_w:Number,arg_h:Number){
    videoURL = arg_url;
    vidW = arg_w;
    vidH = arg_h;
    connection =
    new NetConnection();connection.client=
    this;connection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
    connection.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
    connection.connect(
    "rtmp://FEED GOES HERE/");}
    private function netStatusHandler(event:NetStatusEvent):void { 
    switch (event.info.code) { 
    case "NetConnection.Connect.Success":connectStream();
    trace ("success connecting"); 
    break; 
    case "NetStream.Play.StreamNotFound": 
    trace("Unable to locate video: " + videoURL);dispatchEvent (
    new Event(ERROR)); 
    break;}
    private function connectStream():void {stream =
    new NetStream(connection);stream.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
    stream.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);
    var client:Object = new Object();client.onMetaData = onMetaData;
    //client.onBWDone = onBWDone;stream.client = client;
    var video:Video = new Video(vidW,vidH);video.attachNetStream(stream);
    stream.play(videoURL);
    addChild(video);
    private function securityErrorHandler(event:SecurityErrorEvent):void { 
    trace("securityErrorHandler: " + event);}
    private function asyncErrorHandler(event:AsyncErrorEvent):void { 
    // ignore AsyncErrorEvent events.}
    public function onBWDone():void{ 
    trace("onBWDone");}
    public function onFCSubscribe(info:Object):void{ 
    trace("worked");}
    public function onXMPData(infoObject:Object):void{
    //trace("onXMPData Fired\n"); }
    public function onMetaData(infoObject:Object):void{
    //trace("FLVPlayer -> onMetaData");}

  • How to get the Table Level Constraints List

    hi all,
    i created a table as follows,
    create table temp(fld1 number, fld2 number, fld3 varchar2(10),
    constraint fld1_pk primary key (fld1),
    constraint fld2_uk unique (fld2) );
    table has created successfully.
    now i need to get list of constraints (constraint_names) in to Java.
    i checked user_tab_columns table and in that i got only nullable.
    how to get this one, with query;
    regards
    pavan

    Yes!
    SQL> select constraint_name, generated from user_constraints
      2  where table_name = 'EMP'
      3  /
    CONSTRAINT_NAME                GENERATED
    SYS_C003996                    GENERATED NAME
    SYS_C003997                    GENERATED NAME
    EMP_PRIMARY_KEY                USER NAME
    EMP_SELF_KEY                   USER NAME
    EMP_FOREIGN_KEY                USER NAME
    5 rows selected.
    SQL>Cheers
    Sarma.
    Message was edited by:
    Radhakrishna Sarma

Maybe you are looking for

  • Refresh alv grid after user clicks f4( value-request)

    Hello Experts, I am currently developing a module pool program wherein after the user selects a value via f4(value request), my ALV grid(using custom control) should be refreshed to show the new records selected based on the f4 value. How can this be

  • Spotlight endless

    What's wrong with spotlight??? It displays not " Indexing About 58660324 hours remaining". I tried to reset Spotlight, to remove the drive from scanning preferences. But once all back as before, it will scan my hard disk for hours endlessly. Any clue

  • Number of inheritance allowed in Forte.

    Hello all, As a rule of thumb, what number of inheritance should be used in Forte for optimum operation? ( When I asked this question about JAVA, I was told no more than 7). Thanks in advance. Kamran Shafi Systems Engineer EDS Medi-Cal XIX Phone: (91

  • Why does the volume maximize by default when I plug in my headphones?

    Every time I plug in my headphones, if I don't check first and lower the volume, the sound is automatically maximized all the way up and blares through my headphones.  Is there a setting or something to get my iPhone to stop doing this?  This has got

  • DOWNLOADED itunes to new laptop but only recent purchases are listing none of my main older library?

    DOWNLOADED itunes to new laptop but only recent purchases are listing, none of my main older library?