VIEW TABLE EXAMPLE

CAN ANYONE GIVE ME A STRUTS JSP EXAMPLE OF JUMPING FROM A BROWSE FORM ON ONE TABLE, PASSING A KEY TO PULL UP A RECORD ON THE SECOND TABLE AND EDIT THEN RETURN. (NOT USING THE BUILT IN EDIT FEATURE ON THE BROWSE SCREEN).

continued......
<b>Default Table View Model</b>
To Display the static data into a table structure, we can use this class
single or two d arrays can be used here.
Now let us see how to  <i>create object for Default table View:-</i>
DefaultTableViewModel model=new DefaultTableViewModel(data,col)
now totatl page information would be available in this  variable 'model'.
default table view model display according to the width and design we specify.
Design->What all row, to be highlighted,Bold etc
Now let us see the <u><b>JCO table View Model</b></u>
In this case the the data is coming from any ERP or RDBMS systems.  and woudl be diplayed in the this table.
To display the <b>dynamic data</b> in a table structure, coming from external systems, then we can use JCO table view model.
(to be continued....)

Similar Messages

  • Attach User define tables and view table need add to database into my add-o

    Hi there,
    I want to deploy an addon, there are User define tables and view table need add to database.
    I need some advice on some issues..
    1. Can I attach User define tables and view table need add to database into my addon.
    2. I wonder which chance is properly to add them, if add these user define objects in time of install and I can't get the enough information that connect to SQL server
    Thanks for any help.

    Hi Weerachai,
    Here's an example of how to create a user-defined table in code. My suggestion would be to check if it exists when your add-on starts up and then if not, create the tables, fields and objects.
    'User Table
        Private Sub CreateTable(ByVal sTable As String, ByVal sDescription As String, ByVal oObjectType As SAPbobsCOM.BoUTBTableType)
            Dim oUserTablesMD As SAPbobsCOM.UserTablesMD
            Dim iResult As Long
            Dim sMsg As String
            oUserTablesMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserTables)
            If Not oUserTablesMD.GetByKey(sTable) Then
                oUserTablesMD.TableName = sTable
                oUserTablesMD.TableDescription = sDescription
                oUserTablesMD.TableType = oObjectType
                iResult = oUserTablesMD.Add()
                If iResult <> 0 Then
                    oCompany.GetLastError(iResult, sMsg)
                    MessageBox.Show("Error Creating Table: " & sTable & " Error: " & sMsg)
                End If
            End If
            System.Runtime.InteropServices.Marshal.ReleaseComObject(oUserTablesMD)
        End Sub
    'User Field
        Private Sub CreateField(ByVal sTable As String, ByVal sName As String, ByVal sDescription As String, _
                                ByVal iSize As Integer, ByVal aFieldType As SAPbobsCOM.BoFieldTypes, _
                                ByVal aSubType As SAPbobsCOM.BoFldSubTypes, ByVal sLink As String, _
                                ByVal bMandatory As SAPbobsCOM.BoYesNoEnum)
            Dim oUserFieldsMD As SAPbobsCOM.UserFieldsMD
            Dim oTable As SAPbobsCOM.UserTable
            Dim iResult As Long
            Dim sMsg As String
            Dim i As Integer
            Dim x As Integer
            Dim bFound As Boolean = False
            Dim oField As SAPbobsCOM.Field
            oTable = oCompany.UserTables.Item(sTable)
            For i = 0 To oTable.UserFields.Fields.Count - 1
                oField = oTable.UserFields.Fields.Item(i)
                'MessageBox.Show(oField.Name)
                If oField.Name = "U_" & sName Then
                    bFound = True
                End If
            Next
            System.Runtime.InteropServices.Marshal.ReleaseComObject(oTable)
            If Not bFound Then
                oUserFieldsMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields)
                oUserFieldsMD.TableName = "@" & sTable
                oUserFieldsMD.Name = sName
                oUserFieldsMD.Description = sDescription
                oUserFieldsMD.Type = aFieldType
                If aFieldType = SAPbobsCOM.BoFieldTypes.db_Alpha Or aFieldType = SAPbobsCOM.BoFieldTypes.db_Numeric Then
                    oUserFieldsMD.EditSize = iSize
                Else
                    oUserFieldsMD.SubType = aSubType
                    oUserFieldsMD.Mandatory = bMandatory
                End If
                oUserFieldsMD.LinkedTable = sLink
                iResult = oUserFieldsMD.Add()
                If iResult <> 0 Then
                    oCompany.GetLastError(iResult, sMsg)
                    MessageBox.Show("Error Creating Field: " & sTable & "." & sName & " Error: " & sMsg)
                End If
                System.Runtime.InteropServices.Marshal.ReleaseComObject(oUserFieldsMD)
            End If
        End Sub
    If you want to create a View I think you would have to use the RecordSet object. This will ensure that you don't have to log in to the database again
    Hope it helps,
    Adele

  • Creating a Maintenance View Table on SE11

    Hi, Experts.  I want to create a Maintenance View Table on SE11 (View option on SE11 and then selecting Maintenance view from the View Type List).  Is there anyone who have a document that will be able to help me create this table or pointers that will help me.
    Thanks for your help.
    Regards

    hi,
    steps are
    Goto SE 11.
    Choose the radio button of Views, give the view name and create.
    Enter the short description and table names for which u want to create view.
    Select the 2nd table-name field and click on relationship button.
    Then goto view fields tab.
    Select the table name and the fields u want to display.
    Save and activate.
    please see this
    steps  to create a view

  • How to get the column values from a BC4J View Table in UIXML?

    I am using a default UiXML Application for Order Entry system with Orders & Order Lines & Customers. I have a uix file OrdersView1_View.uix which displays (no updateable columns) all the Orders. How do I get the column value of a selected row in a BC4J Table (example:OrdersId) when a Submit button is pressed using UIXML or Java Classes?
    I appreciate any help on this.

    Hi,
    You need to use keyStamp, an example:
    <bc4j table name="orders">
    <bc4j:keyStamp>
    <bc4j:rowKey name="key" />
    </bc4j:keyStamp>
    Furthermore, you can automatically send the selected row key using the go event handler, so in the handlers section you could send the key to an orderInfo page:
    <event name="show">
    <!-- forward to the update page, passing
    the selected key as a page property -->
    <ctrl:go name="orderInfo" redirect="true">
    <ctrl:property name="key">
    <ctrl:selection name="orders" key="key" />
    </ctrl:property>
    </ctrl:go>
    </event>

  • MVC: Create a view which populates two (or more) joined tables in a single view table

    I am beginner in MVC and I would like to create a view which populates two (or more) joined tables in a single view table as described below.
    I have two tables:
    1 - Bloggers: - bloggerID (int);
                        - bloggerName (string)
    2 - Blogs: - blogID (int);
    bloggerID (int);
                    - blogTitle (string);
                    - blogImage (string)
    A blogger can have one or more blogs while one blog must be related to only one blogger.
    I would like to have a view table on my webpage as the following:
    Blogger Name
    Blog Title
    Blog Image
    Noris Gang
    Virus
    virus.jpg
    Noris Gang
    Desktops
    desktop.jpg
    Gauthier
    Books
    books.png
    John Leon
    NNNMHJhjdhj
    Nmbj.jpg
    I'm using MVC 4 (or at least 3).
    Thanks for your help.

    Hello,
    From your description, it is not very clear that what you mean about the View, if it means the View concept in database as SQL Server, your required view should be as below:
    Create view
    as
    Select Bloggers.bloggerName, Bloggers.blogTitle, Bloggers.blogImage
    From Bloggers join Blogs on Bloggers.bloggerID = Blogs. bloggerID
    If it means the UI view in MVC concept, I suggest you could ask it on the MVC forum:
    http://forums.asp.net/1146.aspx
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to edit data from a "View Table"?

    I am importing data from a "table view" where in sql it joins several tables into one view. When I passed it in using the template it doesnt have the "Edit command column" like other direct link tables. Is there anyway I could make a view table editable? Can I manually try to do it or I have to edit the individual ables? thanks

    oh sorry about that.The "template" I mean in HTMLDB when I start building a new application I used "Based on existing tables" method and with single tables it generates everything fine with search fields and edit column to the left. I have a table view that combines about 4 tables together and I used the same template (Based on existing tables) and it has the search and create but it doesnt have the "edit" column on the left. Is there a way I can edit the view table's information so that the other tables that the view combines will be updated/edited?
    The reason is that lets say I dont know this person's ID number but I know his name. I search for his name on table A and it returns some general data including his ID number. Instead of going to another Table B with the person's ID number and edit that table I really want to see the information just from one search (Table A)- if a global search can be implemented that would be great too. Thanks Sergio.

  • Error in creating Transport Request for a view table

    Hello all,
    I have an ECC IDES 6.0 system named EC1 and another one which is ECC EhP4 IDES named EA1 which I have just installed.
    One of my requesters has a view table named ZVAITM_TBLE in EC1 and she wants it to be transported to EA1.
    So I created a workbench transport in SE10 and included the following:
    PgmID = R3TR
    Obj = VDAT
    Object name = ZVAITM_TBLE
    But when I press enter, I encountered the following error:
    No object definition exists for Customizing object ZVAITM_TBLE
    Message no. TK427
    Diagnosis
    The Customizing object R3TR VDAT ZVAITM_TBLE is not defined in the tables of the Change and Transport System.
    This means that you cannot use the Transport Organizer to edit it.
    System Response
    The function terminates.
    Procedure
    First check whether the name of the object is correct. Then you (or the system administrator) should check the object definition, to ensure that the object was created correctly (transaction SOBJ).
    If the object does not exist, then create it or delete it from the request/task.
    I am new to transports so I have no idea how to proceed.
    Please advise.
    Thanks a lot!
    Cha Cha

    Hello Cha,
    Kindly open this custom table using SM30 and try creating a transport request from there.
    Regards
    Vivek

  • Unable to view table list in sql developer

    I am able to connect to the database through sql developer but unable to view tables list.
    Select query is displaying the contents though.
    Any Help ???

    Using SQL Developer, I log in using the owner user id and password. I can see all but one of my materialized views. It was definitely created by the user id I'm logged in as. A query of user_objects in sql+ shows all MVs, including the one that's missing in SQL Developer. If I log in using the same credentials in TOAD, the MV is displayed in the current schema, as I'd expect. The super weird thing is that if I use the previous version of SQL Developer, I see that MV! Any thoughts?
    Edited by: [email protected] on Feb 25, 2009 9:19 AM

  • Business user  needs to view tables with out SE16 access

    Hi ,
    There is a requirement where  business user  ( Data team)    need to view some master and transactional data tables  in  production . But , as per our process , end users will not  be given SE16  access .
    Is there any solution where we can allow the end user  to view tables with out SE16 access ?
    Thanks in advance .
    Thanks .
    Dharma.

    Hi,
    Using Function Module C160_TRANSACTION_CALL you can call any tcode which dont have access..
    Create a report  and call function module and pass se16 to parameter .
    CALL FUNCTION 'C160_TRANSACTION_CALL' "
      EXPORTING
        i_tcode =        'SE16'            " sy-tcode
      EXCEPTIONS
        ILLEGAL_INPUT = 1           "
        INTERNAL_ERROR = 2          "
        .  "  C160_TRANSACTION_CALL
    now create a tcode for this report as ZSE16.,
    hope this helps u.,
    You can also create Data browser ( SE16 ) in report and display as ALV., using Field Symbols and RTTS.
    Thanks & Regards,
    Kiran

  • Using View Tables in SQ01 and SQ02, getting 'Not Authorized to Read Table'

    We are trying to use a SAP Standard View Table (CAUFV) in an SQ01 and SQ02 transaction. Even though there is no Authorization Group assigned to the View we still get "You have no authorization to read table caufv' when running the linked transaction. We tried assigning the CA and KA authorization groups to the role and got the same results. (The tables used to create the View are AFKO and AUKF and thier Authorization groups are CA and KA.) We tried other views and received the same results. Does anyone have any experience with this?

    Hello Chuck,
    There are 2 ways to restrict this
    1: The user should be a part of at least one user group to run the corresponding ABAP query. This automatically restricts the access of the user to specific functional areas, and thus the corresponding underlying logical databases.
    2: The authorization object S_QUERY should be used to give proper authorizations to the user for a query. This authorization object has a field named ACTVT, which can take values 02 for Change, 23 for Maintain and 67 for Translate.
    This value determines whether the user can create and modify the query. The possible authorizations in the object are as follows:
    S_QUERY_ALL          Change, maintain and translate query
    S_QUERY_UPD         Change and Translate

  • Create View table with multiple table

    I want to create View table with relation with multiple tables.
    for ex
    table 1
    mrnno
    mrnqty
    table 2
    mrnno
    issqty
    table 3
    mrnno
    retqty
    want to create view table where i can see the sum (mrnqty), sum(issqty),sum(retqty) group by mrnno
    sandy

    Hi
    CREATE OR REPLACE FORCE VIEW my_view AS
    WITH t1 AS
    (SELECT mrnno,
                      SUM(mrnqty) sum1
    FROM table_1
    GROUP BY mrnno),
    t2 AS
    (SELECT mrnno,
                      SUM(issqty) sum2
    FROM table_2
    GROUP BY mrnno),
    t3AS
    (SELECT mrnno,
                      SUM(retqty) sum3
    FROM table_3
    GROUP BY mrnno)
    SELECT mrnno,
                    sum1,
                   sum2,
                   sum3
    FROM t1,t2,t3
    WHERE t1.mrnno = t2.mrnno
    AND       t1.mrnno = t3.mrnnoCheers
    Ben
    http://www.munkyben.wordpress.com
    Don't forget to mark replies helpful or correct ;)

  • Which views/tables to use for retrieving item information

    Hi All,
    I need to write a PL/SQL procedure for retrieving detailed information for a specified item (given inventory item ID and organization ID). I'm not quite sure which views/tables to us for this.
    I found out that view MTL_SYSTEM_ITEMS_FVL is the underlying view for the Master Item Form (via help / record history menu option). But when looking up in eTRM following warning is described:
    Warning: Oracle does not recommend you query or alter data using this view. It may change dramatically in subsequent minor or major releases.
    The second view I found is MTL_SYSTEM_ITEMS_VL. But when quering for data in this view, it turned out that the view is empty.
    Can anybody tell me for what purposes this view is used?
    Is it the correct way to use one of these views (or any other?) for retrieving detailed item information or should I better define a new query within the procedure using tables such as MTL_SYSTEM_ITEMS_B, MTL_SYSTEM_ITEMS_TL and MTL_PARAMETERS (any others) ?
    Any ideas for that?
    Best Regards,
    Carolin

    Hi Carolin,
    It's usually more efficient to use base tables instead of views. The tables you will actually need will depend on your requirements. Regarding your question about MTL_SYSTEM_ITEMS_VL, it's usually ok to use the _VL views. These typically contain the same information as the base tables plus some logic to get the appropriate translations for fields that can be shown in different languages (for instance, DESCRIPTION). Typical table names you will need could be:
    Item Master: MTL_SYSTEM_ITEMS_B
    Organizations: MTL_PARAMETERS
    Subinventories: MTL_SECONDARY_INVENTORIES
    Units of Measure: MTL_UNITS_OF_MEASURE
    Onhand Quantity: MTL_ONHAND_QUANTITIES_DETAIL
    Material Transactions: MTL_MATERIAL_TRANSACTIONS
    Categories: MTL_CATEGORIES_B, MTL_CATEGORY_SETS_B, MTL_ITEM_CATEGORIES
    If your query didn't return any data, it's probably because the language was not properly setup in your session (check USERENV ('LANG') so see what's the language in your session).
    Hope it helps.

  • Streams on materialized view table vs. local table

    We are in a situation where we temporarily need to implement Streams on several materialized view tables. During development and testing I've noted that a local table with streams implemented on it yields 50% faster performance on apply than the materialized view tables. Can anyone tell me (1) why this is, it doesn't make sense since data is being retrieved from a buffered queue not the tables, and (2) a work around to this to improve performance on the mv tables. Any hellp would be appreciated.

    Can't give you an answer why. I would suggest that you try (1) creating the materialzed views on prebuilt tables and (2) add parallelism to the apply process(es)

  • Updating XML thru view table

    Given the following view table that i created
    CREATE OR REPLACE VIEW PO_DETAIL_VIEW ( PAYLOADID,
    ORDERNUMBER, LINENUMBER, SHIPPEDITEMQTY, COST,
    ORDEREDITEMQTY, ACTION, UOM, DESCRIPTION,
    SKU, STATUS, CURRENCY, PLANNEDRECEIPTDATETIME
    ) AS select extractValue(value(p),'/OrderMessage/MessageHeader/@payloadId'),
              extractValue(value(p),'/OrderMessage/Order/@orderNumber'),
              extractvalue(value(i),'/OrderLine/@lineNumber'),
    extractvalue(value(i),'/OrderLine/@shippedItemQty'),
    extractvalue(value(i),'/OrderLine/@cost'),
    extractvalue(value(i),'/OrderLine/@orderedItemQty'),
    extractvalue(value(i),'/OrderLine/@action'),
    extractvalue(value(i),'/OrderLine/@uom'),
    extractvalue(value(i),'/OrderLine/@description'),
              extractvalue(value(i),'/OrderLine/@sku'),
              extractvalue(value(i),'/OrderLine/@status'),
              extractvalue(value(i),'/OrderLine/@currency'),
              extractvalue(value(i),'/OrderLine/@plannedReceiptDateTime')
    from PURCHASEORDER p, table(xmlsequence(extract(value(p),'/OrderMessage/Order/OrderLine'))) i
    when i executed the following command:
    UPDATE po_detail_view
    SET ORDERNUMBER = '500001' where PAYLOADID='1'
    I get end of file error which disconnect me from my oracle database.
    but when i update my another view table it is fine.
    CREATE OR REPLACE VIEW PO_MASTER_VIEW ( VERSION,
    PAYLOADID, TIMESTAMP, SENDERNAME, SENDERCOMPONENT,
    DOCUMENTREFERENCEID, SINGLETRANSACTION, INDEX0, INDEX1,
    INDEX2, INDEX3, CLOSED, ORDERNUMBER,
    ORDERTYPE, UNIQUEBUSINESSKEY, HANDLINGCODE, BUYERID,
    BUYERPARTYNAME, BUYERROLE ) AS select extractValue(value(p),'/OrderMessage/MessageHeader/@version'),
    extractValue(value(p),'/OrderMessage/MessageHeader/@payloadId'),
    extractValue(value(p),'/OrderMessage/MessageHeader/@timeStamp'),
    extractValue(value(p),'/OrderMessage/MessageHeader/@senderName'),
    extractValue(value(p),'/OrderMessage/MessageHeader/@senderComponent'),
    extractValue(value(p),'/OrderMessage/MessageHeader/@documentReferenceId'),
    extractValue(value(p),'/OrderMessage/MessageHeader/@singleTransaction'),
    extractValue(value(p),'/OrderMessage/MessageHeader/HeaderIndexedAttribute[1]/@content'),     
    extractValue(value(p),'/OrderMessage/MessageHeader/HeaderIndexedAttribute[2]/@content'),               
    extractValue(value(p),'/OrderMessage/MessageHeader/HeaderIndexedAttribute[3]/@content'),
    extractValue(value(p),'/OrderMessage/MessageHeader/HeaderIndexedAttribute[4]/@content'),
    extractValue(value(p),'/OrderMessage/Order/@closed'),
    extractValue(value(p),'/OrderMessage/Order/@orderNumber'),
    extractValue(value(p),'/OrderMessage/Order/@orderType'),
    extractValue(value(p),'/OrderMessage/Order/@uniqueBusinessKey'),
    extractValue(value(p),'/OrderMessage/Order/@handlingCode'),
    extractValue(value(p),'/OrderMessage/Order/Buyer/@Id'),
    extractValue(value(p),'/OrderMessage/Order/Buyer/@PartyName'),
    extractValue(value(p),'/OrderMessage/Order/Buyer/@Role')
    from PURCHASEORDER p
    UPDATE po_master_view
    SET VERSION = '2.0' where PAYLOADID='1'
    i can see that the problem lies with
    table(xmlsequence(extract(value(p),'/OrderMessage/Order/OrderLine'))) i
    is there any better way or solutions to work ard with it?
    Thanks.

    Thanks Mark,
    That's what i suspected the case, will log the itar later when i am free.
    Actually my main issue is that I am using forms 9i to view and edit the view tables that are based on the xml schema. Forms is giving me problem in accessing complicating views.
    I think my only solution is to:
    1)create a custom table updated by the view table.
    2)Create my form block based on custom table.
    3)update the xml data using updateXML() from the custom table.

  • Prvent from the user  deleting specific line in view table

    HI,
    In our Project we have a View Table which user can maintain ,
    the user can change or delete the line (and fields)  in this table.
    what i want is for one line for specific combination in the table to prevent from the user to delete this line ,
    so when he push on change mode and mark the line and push on delete i want to give him a error message that he can't delete this line (because the specific combination ).
    i new for the concept of the PBO PAI....
    so i appreciate any help or suggestions.
    Best regards
    Micheal A

    [Table maintenance Events|http://www.google.com/url?sa=t&source=web&ct=res&cd=4&url=https%3A%2F%2Fwww.sdn.sap.com%2Firj%2Fservlet%2Fprt%2Fportal%2Fprtroot%2Fcom.sap.km.cm.docs%2Flibrary%2Fabap%2FHow%2520to%2520implement%2520Events%2520in%2520Table%2520Maintenance.doc&ei=txFUSdKHKISeNbG1_dQP&usg=AFQjCNF3AI-77PC-MS20vx-ARd4a6zxUfg&sig2=Y_IWbHOsETvyoIrFzPxpCg]
    [SAP help|http://help.sap.com/saphelp_erp2005vp/helpdata/en/91/ca9f0ea9d111d1a5690000e82deaaa/content.htm]

Maybe you are looking for

  • What will be impacted if we change Acquisition value in closed year

    hello, I want to change the Net value of asset to zero for tax depreciation area for the closed year. I will change this by transaction type posting for acquisition value and ordinary depreciation. My question is: The year in which I need to post is

  • Ipod Touch 2.0

    Will i be able to buy an Ipod touch 2.0 after july 11th at best buy or radioshack or will i have to wait for them to recieve them. Also will it be cheaper? and will they come with more memory? What new applications will be added?

  • Error: HTTP_RESP_STATUS_CODE_NOT_OK 401 Unauthorized

    Hi all, I am having one issue i.e Error: HTTP_RESP_STATUS_CODE_NOT_OK 401 Unauthorized I am doing HTTP to RFC.. Plz anyone can help me on this

  • Security, firewall, malware protection, and cookie cleaner

    HHow do I turn on the firewall, is there malware on the iPad mini, and is there a cookie cleaner?

  • Delata load errors

    Hi, delta load is failure and getting below errors how to resolve and where  to check the IM1907693 nos. RSMO: data load error in BWP                        IM1907693 SXMB_moni: XML Messages error in GXP       IM1907695 DB02: tablespace reached 97% i