Naming: count vs quantity

Which column name is better:
a) [Noun]Count
a) [Noun]Quantity
By [Noun] i mean word that describes something, for example it can be 'Apple', then column name would be either ApplesCount or ApplesQuantity, and i don't know which name is better.
Surely both are better than:
c) ApplesCnt
d) ApsQuantity
Edited by: CharlesRoos on Jun 18, 2010 12:17 AM

CharlesRoos wrote:
Is there any good document in internet that provides a set of such words with naming rules?Any English dictionary should do. ;)
I want to pick for database one and one set of words in naming.
I don't want that one one table we use XXCount and on others YYYQuantity.As already mentioned, "quantity" could apply to a number of units of an item or it could apply to a measurement of an item as in weight, volume etc. whereas count is very explicit in being the number of items, so it depends on what your business is about and what quantity you are measuring. It may be that some of your things should be quantities and some counts, rather than being just one or the other.
I don't want to bother my head by thinking which of following would be better:
BettingRoundDURATION
BettingRoundTIME
BettingRoundTIMEGAP
BettingRoundXXXX
I want that it would be clear in every case, what word to choose.Duration indicates a passage of time. Time usually intimates a point in time unless you say "time_taken" which would be the same as a duration. "timegap" would intimate a period of time between (and likely not inclusive) of two times.
There is no right or wrong, it just depends what you are measuring.

Similar Messages

  • Select Count and Quantity

    Hello
    I have made this query =>
    SELECT Products.ProductName, COUNT(*)*OrderDetails.Quantity
    FROM Products INNER JOIN OrderDetails ON (Products.ProductID=OrderDetails.ProductID)
    GROUP BY Products.ProductName, OrderDetails.Quantity, OrderDetails.OrderID
    Well it counts the total from each product but it has also Multiplicate it with the quantity.
    My quey is not working because it's shows several time the same product name and the quantity is not correct.
    The Group by is not working as it should work. And i think i need to use a SUM() for the quantity.
    I'm still new to queries.
    Any avice?

    Looks like this:
    DECLARE @products TABLE (productID INT IDENTITY, productName VARCHAR(30))
    DECLARE @orderDetails TABLE (orderID INT, productID INT, quantity INT)
    INSERT INTO @products (productName) VALUES
    ('Orange'),('Apple'),('Inflatable Chicken Suit')
    INSERT INTO @orderDetails (orderID, productID, quantity) VALUES
    (1,1,1),(1,2,1),(2,3,9),(3,2,16)
    SELECT SUM(quantity) AS quantity, p.productID, p.productName
    FROM @orderDetails o
    INNER JOIN @products p
    ON o.productID = p.productID
    GROUP BY p.productID, p.productName
    You where grouping on too many fields. 
    Don't forget to mark helpful posts, and answers. It helps others to find relevant posts to the same question.
    Also, when posting questions it helps to provide DDL and example data (as I did at the top of my example).

  • Cycle count for serialized material

    Guys,
    When we do cycle count for serialized items, it pop up to enter serial # when updating the count. Is there any BADI/User exist to skip this step in counting for serialized materials. We dont want to enter serial#, since volume is hugh and serial# is of less important, only count matters.
    Regards
    TGB

    Once you active the series number, then all the material need marked and managed with series number.
    and stock counting need under series number.
    it will cost more time absolutely than no series number.
    if you think the series number not important, you can Deactivate serial number.
    But please note, the reason why you use serial number is to manage the material one by one against the series number.
    NOT just count the quantity.
    Edited by: JiQing Zhao on Apr 19, 2011 9:45 AM

  • BAPI BAPI_OPPORTUNITY_CREATEMULTI - Problem with Quantity and Unit

    Hi,
    I have the requirement for creating multiple line items in Oppurtunity with BAPI BAPI_OPPORTUNITY_CREATEMULTI, I am able to create multiple line items in product tab in Oppurtunity.
    But now those line items are stored Without Quantity and Units.
    I have passed units in product table at fields : volume_unit, process_qty_unit, process_volume_unit_iso.
    I have passed quantity in product table at fields : process_qty_unit, process_qty_num, process_qty_den.
    Same quantity is also passed at schedule line item field : quantity
    Can any1 please suggest?
    I tried with all combinations of above possible fields.
    I am not sure If i have mistaken in Input fields being passed to this bapi?
    Thanks in advance.
    Regards,
    Narendra.

    Quantity is maintained under scheduling, so you must include in 'CRM_ORDER_MAINTAIN' under exporting parameters also...
    EXPORTING
         it_schedlin_i     = lt_schedlin_i
    Coding for lt_schedlin_i is...
    ls_schedlin_i-ref_handle = "counter".
    ls_crmt_schedlin_extd-quantity = "quantity".
    INSERT ls_crmt_schedlin_extd INTO TABLE ls_schedlin_i-
    Coding for input fields is...
    ls_input_field-ref_handle = "counter".
    ls_input_field-ref_kind  = 'B'.
    ls_input_field-objectname  = 'SCHEDLIN'.
    ls_input_names-fieldname  = 'QUANTITY'.
    INSERT ls_input_names INTO TABLE ls_input_field-field_names.
    INSERT ls_input_field INTO TABLE lt_input_field.
    Regards.

  • Adjustment of GR and IR quantity after GR and IR had been done.

    Hello experts,
    my business scenario is like that.
    my purchasing material is very minute.
    so initially when we go for GR and IR, we don't check it physically.
    but when we  use the material physically, we check it physically and if there is any mismatch in physical quantity and my system quantity.(GR /IR).
    But is it possible in SAP.
    because when i go for return delivery it is asking deficit of PO IR QUANTITY
    EXAMPLE:
    PO QUANTITY: 200 PC
    GR QUANTITY: 200 PC
    IR QUANTITY: 200 PC,
    AFTER physical checking we found that we received only 190 pc,
    so we for credit memo for 10 pc.
    now my ir quantity becomes 190 pc.
    then i go for return delivery for 10 pc.but it didnt allow me to do this...the error is coming like this..
    Deficit of PU IR quantity 10 pc
    can anybody tell me how to overcome this issue.
    regards.
    raghu.

    you can always make return to vendor for the quantity you have not received.
    but once postings is done you cant reverse the posting through lot.
    for this purpose , it is suggested to use inbound delivery
    VL31N
    after inbound w.r.t inbound number you can make GRN after counting the quantity of the material .
    So GRN is made in correct received QTY.then process Quality lot and so payment also happens smoothly without credit memo.
    moreover once IR is done for whole qty you can only accept the material not other way because credit memo is a accounting document which can be raised for many purposes like change in pricing, duty., etc., not only quantity deficiency...
    Edited by: Sarathy on Aug 20, 2009 11:36 AM

  • Count(*) returns 'Column 'Count' not found' SQLException

    I am trying to get the count from a table using the following:
    String query = "SELECT COUNT(*) FROM myTable;"
    I know that the connection is open and working because I am getting back an SQLException:
    'Column 'Count' not found' .
    The same command works fine at the command line. I would be grateful for any suggestions as to why JDBC sends my app searching for a field named count in my table whereas the command line returns the expected number.
    Thanks.

    Found the problem, which is mainly my own stupidity . Is it one of Murphy's laws that the quickest way to find the solution to a problem if first embarrass yourself by asking foolish questions? Sorry to have bothered anyone.

  • SSRS 2012: How to get a "Select All" that returns NULL instead of an actual list of all values from a multi-select parameter?

    I have a multi-select parameter that can have a list of thousands of entries. In general, the user will pick a few entries from the list or "Select All". If they check "Select All", I would much prefer that I get a NULL or an empty string
    instead of a list of all values. Is there any way to do that?
    In experimenting with a work-around, I tried putting an "All" label with a null value in the list, but it is ignored (does not display in the drop-down). If I use an empty string for the value, my "All" entry does get displayed, but so
    does "Select All", which is confusing. Is there a way to suppress "Select All"?
    - Mark

    I adapted the following from a workaround posted by JNeo on 4/16/2010 at 11:14 AM at
    http://connect.microsoft.com/SQLServer/feedback/details/249227/multi-value-select-all-parameter-in-reporting-services
    To get a null value instead of the full list of all values when "Select All" is chosen:
    1) Add a multi-value parameter "MyParam" that lists the values to choose.
    2) Add a DataSet "ParamCount" identical to the one used by "MyParam", except that it returns a single column named [Count] that is a COUNT(*) of the same data
    3) Add a parameter "MyParamCount", set it to hidden and internal, then set the default value to 'Get values from a query', choosing "ParamCount" for the Dataset and the one [Count] column for the Value field.
    4) Change the parameter for the main report DataSet so that instead of using [@MyParam], it uses this expression:
    =IIF(Parameters!MyParam.Count =
    Parameters!ParamCount.Value, Nothing, Join(Parameters!MyParam.Value, ","))

  • How to Delete a Specific Cell in a Matrix + plz Give sample code for Lost F

    hello there !!!!
    i m in Great Trouble please help me out..
    i have to search for a specific Column n then i have to validate that portion, similarly after validating i have to add update delete all the fuction apply... so please help me i m very upset.
    Public Sub HandleEventts_Allowance(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef EventEnum As SAPbouiCOM.BoEventTypes, ByRef BubbleEvent As Boolean)
            Try
                Dim Count As Int32
                If FormUID.Equals("Allowance") Then
                    If (pVal.BeforeAction = True) And (pVal.ItemUID = "1") And (pVal.EventType = SAPbouiCOM.BoEventTypes.et_CLICK) Then
                        If pVal.Row = 0 Then
                            'BubbleEvent = False
                        End If
                        o_Matrix = SBO_Application1.Forms.Item(FormUID).Items.Item("MatAllow").Specific
                        Count = o_Matrix.RowCount()
                        SBO_Application1.MessageBox("Matrix Count is " & o_Matrix.RowCount)
                        Validate(pVal, EventEnum, FormUID, BubbleEvent)
                    End If
                End If
            Catch ex As Exception
                SBO_Application1.MessageBox(ex.Message)
            End Try
        End Sub
        Public Sub Validate(ByRef pval As SAPbouiCOM.ItemEvent, ByRef EventEnum As SAPbouiCOM.BoEventTypes, ByVal FormUID As String, ByRef BubbleEvent As Boolean)
            Dim Row, ii As Integer
            o_Matrix = SBO_Application1.Forms.Item(FormUID).Items.Item("MatAllow").Specific
            o_Matrix.FlushToDataSource()
            Try
                For Row = 2 To o_Matrix.RowCount
                    StrName = Convert.ToString(DBtable.GetValue("CardCode", Row - 1)).Trim()''' i got Error over there n rest of my code is also not working pls...
                    StrUId = Convert.ToString(DBtable.GetValue("U_AlwID", Row - 1)).Trim()
                    StrEnter = Convert.ToString(DBtable.GetValue("U_SupEnter", Row - 1)).Trim()
                    StrExist = Convert.ToString(DBtable.GetValue("U_SupExist", Row - 1)).Trim()
                    If Row - 1 < DBtable.Rows.Count - 1 Or (Not (StrName.Equals(String.Empty) And StrUId.Equals(String.Empty) And (StrEnter.Equals(String.Empty) Or StrExist.Equals(String.Empty))) And (Row - 1 = DBtable.Rows.Count - 1)) Then
                        If (Not StrName.Equals(String.Empty)) And ((StrUId.Equals(String.Empty) Or StrEnter.Equals(String.Empty)) Or StrExist.Trim.Equals(String.Empty)) Then
                            SBO_Application1.StatusBar.SetText("Invalid values provided!Blank values not vllowed", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error)
                            BubbleEvent = False
                            Exit Sub
                        End If
                        For ii = Row To DBtable.Rows.Count - 1
                            If Convert.ToString(DBtable.GetValue("ColName", ii)).Trim().Equals(StrName.Trim()) Then
                                SBO_Application1.StatusBar.SetText("Invalid Allowance ID: Duplication Not Allowed", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error)
                                oForm.Mode = SAPbouiCOM.BoFormMode.fm_UPDATE_MODE
                                BubbleEvent = False
                                Exit Sub
                            End If
                        Next
                        If CDbl(StrName) < 0 Then
                            SBO_Application1.StatusBar.SetText("Invalid values provided!Blank values not vllowed", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error)
                            BubbleEvent = False
                            Exit Sub
                        End If
                    End If
                Next Row
            Catch ex As Exception
                SBO_Application1.MessageBox(ex.Message)
            End Try
        End Sub

    Hello there
    sir i want to Add Update and delete these three basic operation onto the Matrix, Sir u game me a Sample code of Delete a specific Column...
    Sir can u do me a favour pls leave every thing n just told me how to update a matrix ,like i have to fill the matrix field through the DATABASE table now i want to update the DataBase table from the matrix..
    i just only know thta i have to fill back database table with the help of FLUSHTODATABASE()
    here is my Sample Code...n i have to update in the validate portion...
    Public Sub HandleEventts_Allowance(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef EventEnum As SAPbouiCOM.BoEventTypes, ByRef BubbleEvent As Boolean)
            Try
                Dim oCellValue As SAPbouiCOM.EditText
                If FormUID.Equals("Allowance") Then
                    If (pVal.ItemUID = "MatAllow") Then
                        If pVal.Row = 0 Then Exit Sub
                        o_Matrix = SBO_Application1.Forms.Item(FormUID).Items.Item("MatAllow").Specific
                        If (pVal.Row > o_Matrix.RowCount) Then Exit Sub
                        oForm = SBO_Application1.Forms.Item(FormUID)
                        If (pVal.ItemUID = "1" Or EventEnum = SAPbouiCOM.BoEventTypes.et_CLICK) Then
                            o_Matrix = SBO_Application1.Forms.Item(FormUID).Items.Item("MatAllow").Specific
                            If pVal.ColUID = "ColName" And pVal.BeforeAction = True Then
                                If pVal.Row = 0 Then Exit Sub
                                oCellValue = CType(o_Matrix.Columns.Item(pVal.ColUID).Cells.Item(pVal.Row).Specific(), SAPbouiCOM.EditText)
                                If (oCellValue.Value.Trim().Equals(String.Empty) And o_Matrix.RowCount <> pVal.Row) Then
                                    SBO_Application1.StatusBar.SetText("Invalid Allowance ID: Blank Value Not Allowed", )
                                    oCellValue.Active = True
                                    BubbleEvent = False
                                    Exit Sub
                                End If
                            End If
                        End If
                    End If
                End If
                Validate(pVal, EventEnum, FormUID, BubbleEvent)
            Catch ex As Exception
                SBO_Application1.MessageBox(ex.Message)
            End Try
        End Sub
    Public Sub Validate(ByRef pval As SAPbouiCOM.ItemEvent, ByRef EventEnum As SAPbouiCOM.BoEventTypes, ByVal FormUID As String, ByRef BubbleEvent As Boolean)
            Dim str, str1 As String
            Dim checkbox1, Checkbox2 As SAPbouiCOM.CheckBox
            Dim o_Matrix As SAPbouiCOM.Matrix
            Dim Sum As Integer
            Dim oRecordset As SAPbobsCOM.Recordset
            Dim Container As Integer
            Dim Count As Int32
            o_Matrix = SBO_Application1.Forms.Item(FormUID).Items.Item("MatAllow").Specific
            oRecordset = o_CompanyObj.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
            Try
                For Count = 0 To DBtable.Rows.Count - 1
                    CodeFill = Convert.ToString(DBtable.GetValue("Name", Count).Trme())
                    NameID = Convert.ToString(DBtable.GetValue("ColUID", Count).Trim())
                    Price = Convert.ToString(DBtable.GetValue("ColPrice", Count).Trim())
                    Quantity = Convert.ToString(DBtable.GetValue("ColQuant", Count).Trim())
                    Total = Convert.ToString(DBtable.GetValue("ColTotal", Count).Trim())
                    checkbox1 = o_Matrix.Columns.Item("ColSEnter").Cells.Item(Count).Specific
                    Checkbox2 = o_Matrix.Columns.Item("ColSExist").Cells.Item(Count).Specific
                    If (checkbox1.Checked = True) And (Checkbox2.Checked = True) Then
                        Dim Sql As String
                        Sql = "Update [@Supplier] Set U_Price=' " & Price & " ',U_ID=" & NameID & "Where Name ='" & CodeFill & " '"
                        oRecordset.DoQuery(Sql)
                    End If
                Next Count
                SBO_Application1.MessageBox("Record was Updated")
            Catch ex As Exception
                SBO_Application1.MessageBox(ex.Message)
            End Try
        End Sub

  • Table Required for Delivered Qty field in Sales Order

    Hi friends
    I can see confirmed order qty, required qty, quantity committed  in VBEP table.
    But if you see in sales order Schedule Lines you'll see one more field named as
    Delivered Quantity.
    I am not able to find this Delivered Qty in any of the SD tables....
    pls help me to find this table and field
    Pts rewarded for helpful ans..
    Thanks and regards
    Snehal

    hi,
    delivery related data is stored in LIKP and LIPS tables
    related to sd.
    reward points if hlpful.

  • Field and table

    Hi,
    Can any one tell me the difference
    1) We can unarchive repository after right clicking on specified repository
    or right clicking on server.
    What is the difference between two?
    2) Can any one explain me with example what is Qualifier table , qualified record, Display Field, Remote key (which we can see in destination field during field/value mapping). It is not clear to me which source fields we should map with which destination field.
    3) I am some doubt with look up table, fields and taxonomy field Can any one give me simple example rather than link.How can we create all this?
    Thanks in advance.

    Hi Pappu,
    1) We can unarchive repository after right clicking on specified repository
    or right clicking on server.
    What is the difference between two?
    Ans : The only difference between the two is when you unarchieve the repository by right clicking on the server it will ask the name of the repository and creates the new one while in other case it overwrites the existing repository on which you have right clicked for Unarchieving.
    2) Can any one explain me with example what is Qualifier table , qualified record, Display Field, Remote key (which we can see in destination field during field/value mapping). It is not clear to me which source fields we should map with which destination field.
    Ans : Qualifier Table:
    Consider the simple example given below:
    If one Product is to be sold in different countries with different price depending on the country then in such case if you kept all this information in the main table then it creates the redundancy
    E.g.
    Product     Country     Price
    100     India     50
    100     US     60
    100     UK     40
    Now if you model the above data using Qualified table in which Country will be the non-qualifier and price will be qualifier fields then
    Product                                       Country     Price
    100                                             India     50
                                                      US     60
                                                      UK    40
    i.e. you are eliminating the redundancy by storing the repetative information in another table and just forming the link between main table record and its corresponding qualified table records.
    Qualified Records:
    Records stored in the qualified tables are known as qualified records like India 50 is the qualified record in above example.
    Display Field:
    If any field is declared as the Display field then the data of that field will be visible in the main table in MDM Data Manager.
    E.g. Consider the lookup table name Countries with the structure shown below:
    CountryName     Code
    India     Ind
    United States    US
    then when you select the drop down list say while entering data then you will get
    India,Ind
    United States,US
    Otherwise if only code has been set as the Display Field then only code will appear in the drop down list
    Ind
    US
    Remote Key:
    Remote key is used when you want to communicate with many systems like say you want to send particular MDM records to R3 and some records to BW system.Then you have to enable the Remote Key property of the main table and select the remote system say R3 if you want syndicate the records only for R3 system.
    3) I am some doubt with look up table, fields and taxonomy field Can any one give me simple example rather than link.How can we create all this?
    Ans:
    Lookup table:
    These tables are used when you want to select the data from some fixed set of records like countries.
    Create the lookup table countries and assign the table to the field(lookup flat) of main table then when you enter data into that field you will get the drop down list.
    Taxonomy table:
    Taxonomy table is used when there exists some fields whose occurance depends on the value of other some field.
    E.g. Say there a main table field named Product which consists of values like Shoes and Bottles.When you select Shoes then field Brand appears and when you select Bottles field Quantity appears.Now if you create 3 fields named Products Brand and Quantity then for product field value Shoes quantity will be null and similarly for Bottles Brand field will be Null.Imagine the scenario with lacs of records.
    Now when you use taxonomy table to model the above design it will be as shown below:
    1. Create the field Product in the main table with type Lookup Taxonomy.
    2. In the Data Manager create two attributes named Brand and Quantity.
    3. Link the value Shoes with the Brand and Bottles with the quantity.
    Whenever you select Shoes, Brand field will appear automatically and similarly for other case.
    Reward if found useful
    Regards,
    Jitesh Talreja

  • SSMS Intermittent error - "Error message is: SqlDateTime overflow"

    SQL 2008R2(10.50.6000) Standard Edition, 64 Bit on Windows 2008R2 SP1 Enterprise.
    SSMS 10.50.4033
    From time-to-time (several times per week) I receive the following error when running a query from SSMS.
    "An error occurred while executing batch. Error message is: SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM."
    This happens on small single statement queries, large complex admin queries, ad hoc queries, queries that I have source controlled and tested/run many times.  I have exhaustively checked the target tables and don't find any dates out of range.
    Typically, I just rerun the query and it runs fine.
    Another error that occurs less often is
    "An error occurred while executing batch. Error message is: Non-negative number required.
    Parameter name: count"
    This is particularly confusing since I don't have a parameter named "count" which is an illegal T-SQL identifier anyway.
    The references to "SqlDateTime"  and "count" lead me to believe this is an SSMS coding error.
    Ray

    Unfortunately, without a scenario to repro the issue, it is impossible investigate. And overall, intermittent errors are horrendeously difficult to troubleshoot.
    What I would recommend is that you install SSMS 2012 SP2. You can download it for free here:
    http://www.microsoft.com/en-us/download/details.aspx?id=43351
    You can run SSMS2012 against SQL 2008 R2 without problem, and personally I find it nicer to work with.
    Not that I am sure that it will resolve the issue.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • IPad Mini after iOS 8.3 update causes iPhoto 11 repeats

    After upgrading both iPhone 5S and iPad Mini to iOS 8.3 I sync them to my Mac Pro 1.1 Lion there is a peculiar repeat of iPhoto 11 continually trying to load photos.
    It counts the quantity then the iPad or iPhone dismounts. It remounts and it starts again. I shut the iPhoto down and restarted the app. It continues to do it. I will rebooting the Mac Pro and try it.
    Heads for of you still running Mac Pro 1.1 with Lion.

    You can preform a DFU restore.
    Follow my steps:
    - power down your iPad
    - Hold down the home button and don't let go
    - Plug the iPad to your computer
    - Do not let go the home button
    - ITunes will prompt you that the iPad is recovery stage
    - Restore your iPad
    You should be all set and updated issue free.
    Cheers!

  • ABAP Routine in UR Help

    Hi Friends
    We are on BI7 and ECC6.
    We have to get the quantities into BI from ECC for that we are using one field from 2lis_11_vaitm. But we want to count the quantity only when material is a complete package all other values should be 0. Packages are described in the material as for example DMS PACKAGE , DST PACKAGE , DTTS PACKAGE DTTTT PACKAGE.
    Now My thinking is ,Inorder to do that we have to use the offsets in ABAP routine. But the first few letters are not 3 / 4 fixed it may be 3, 4, 5 or 6 letters the PACKAGE will start from the next word..
    Can any one help me how to write the ABAP logic to get the offset for last 11 letters ?
    regards

    F2 & F3 TYPE I.
    F1 = 'DTTS PACKAGE' (F1 contains the value)
    F2 = LENGTH(F1) (F2 determines the length of the field)
    OR
    F2 = STRLEN(F1)
    F3 = F2 - 11 (F3 determines the difference)
    F4 = F1+F3(11) (F4 picks up value based on offset)
    *Not sure if variables are accepted for offsets.

  • How to relate a report page to a tabular form?

    I have a table called PRODUCT
    SQL> desc product
    Name                                      Null?    Type
    PRODUCTNUMBER                             NOT NULL VARCHAR2(15 CHAR)
    PRODUCTDESCRIPTION                                 VARCHAR2(30 CHAR)
    LOCATION                                           VARCHAR2(10 CHAR)
    WARRANTY                                           NUMBER(4)
    PRODUCTSN                                 NOT NULL VARCHAR2(25 CHAR)
    STATUS                                             VARCHAR2(20 CHAR)Now I create a view, and based on this view I create a report page
    CREATE OR REPLACE VIEW V_PRODUCT_OVERVIEW AS
    SELECT PRODUCTNUMBER, PRODUCTDESCRIPTION, LOCATION, WARRANTY, COUNT(PRODUCTSN) QUANTITY
    FROM PRODUCT
    GROUP BY PRODUCTNUMBER, PRODUCTDESCRIPTION, LOCATION, WARRANTY;For each type of product (identified by PRODUCTNUMBER), there may be many instances (identified by PRODUCTSN). I want to put an edit button beside each record on the report page. After clicking the edit button, it will redirect to a detail page, which is based on the specific PRODUCTNUMBER, where I can add or modify products.
    SELECT PRODUCTSN, PRODUCTSTATUS
    FROM PRODUCT
    WHERE PRODUCTNUMBER = #THE_PRODUCTNUMBER_OF_LAST_PAGE#I don't know how to accomplish this, especially how to relate these two pages, and how to pass the PRODUCTNUMBER from the first page to the second. Any idea is appreciated! Thanks!

    Can't run sample appliation. When I run the appliation, login using "demo/#lower_case_workspace_name#", the browser comes with error message:
    ORA-06550: line 2, column 8: PLS-00201: identifier 'CUSTOM_AUTH' must be declared ORA-06550: line 2, column 1: PL/SQL: Statement ignored
    Error      ERR-10460 Unable to run authentication credential check function.

  • For loop in JSF View Pages

    Hi ALL,
    How can I work with iteration operation in JSF View Class as JSP scriptlets won't work in it
    thanks
    Sudhakar

    Hi Sudhakar,
    Thank you for explaining your requirement so clearly.
    The task you are trying to achieve is not possible in the jsp source. The reason being that Creator has a page backing bean where the component declarations are done. Hence adding components via the jsp source would not work as the page backing bean is essential for the working of the application.
    The solution for your problem would be something like this:
    Create an integer property named counter in your session bean and initialise it to 0.
    Add a gridpanel to your page.
    In your page backing bean (Page1.java) constructor add the following code
    for(int i=0; i<array.length;i++){
    SessionBean1 sb = getSessionBean1();
    int ctr = sb.getCounter();
    UIComponent parent = gridPanel1;
    HtmlSelectBooleanCheckbox chkBx = new HtmlSelectBooleanCheckbox();
    chkBx.setId("checkBox" + ctr);
    parent.getChildren().add(chkBx);
    sb.setCounter(ctr+1);
    The above code just uses one for loop. You could extend it to mak use of nested loops.
    I hope this helps
    Cheers
    Giri :-)
    Creator Team

Maybe you are looking for

  • What is the use of tab - "ALLOCATION" in Asset master creation (AS01)?

    Hi experts... in AS01, there are certain tabs like General, Time-dependent, Allocation, origine, Dep area...etc... From these i am not understood the use of "Allocatio" tab. Please tell me when/why/where this can be useful? Regards: Dasu

  • ""i Can't Install oracle 10g client in windows Vista"

    hello,mr or mrs i need help for install oracle10g client in windows vista???? cause there error when i install "abnormal program termination.an internal error has occured.please provide the following files to oracle support : "unknown" "unknown" "unk

  • String does not gets splitted with "|"

    String does not gets splitted with "|" ? String str="abc#def|ijh#klm"; String[] pieces=str.split("|"); System.out.println(pieces[0]);

  • ITunes 7.6.2 Movie rentals for Europe?

    Well, is there going to be? It said that the upgrade would allow this, does that mean it is coming soon?

  • PCCompanion.exe ordinal not found

    Hi all i installed pc companion and now i´m getting this error ordinal 459, in dynamic urlmon.dll i clik ok and then pc companion opens but it's all white, except for  any help?? Solved! Go to Solution.