Sowh ItemName in a query manager

If I do a query using items, when i choose de range of items only show ItemCode and numbers of records, how can also show itemname??. I refere the List of existing values when window opening from the query selection . In this windows only sohw it the named parameter and the record number. and my question is, is posible to show also the ItemName??
thanks.

No, it is not possible. The list of existing valu window is a fix feature of SBO.
There are queries making possible selecting by more data, but theese are for setting a field value by an FS. (It stores the first value from the selected line.) You may use the selected value later in a query.

Similar Messages

  • U00BFhow can I show ITemname in Query manager?

    If I do a query using items, when i choose de range of items only show ItemCode and  numbers of records, how can also show itemname??
    thanks.

    Dear Mariano,
    You can get the details information about all the fields of the OITM table
    by doing the following step :-
    1. Open the Query Manager in the SAP Business One Application.
    2. Select the Table OITM
    Then you will get all the details information about the fields available in OITM table with
    description.
    After that you can select the fields of the OITM table as per your requirement.
    Regards,
    Rakesh Pati
    SAP Business One Forum Team

  • How can  show itemname in Query manager?

    If I do a query using items, when i choose de range of items only show ItemCode and  numbers of records, how can also show itemname??

    Dear Mariano Fernandez Bustillos,
    You could show the ItemName like following query:
    SELECT T0.[ItemCode], T0.[ItemName]
    FROM OITM T0
    WHERE T0.[ItemCode] > 'A00001'
    Best Regards
    Jane Jing
    SAP Business One Forums team

  • Query Manager Issue

    Hello everybody.
    I'm having a problem with the Query Manager.
    If i put this query on the manager:
    Select * from [dbo].[OITM] where itemname = '[%0]'
    the variable don't show any imput box, and an error message appear on the StatusBar. The error haven't message.
    Thx,
    Sergio Alejandro Masolini

    Thx for the help, but i still having the error.
    The real query is:
    select * from (SELECT
    A.DOCENTRY as NroDocumento,
    max(A.DOCDATE) AS FECHA,
    max(CASE WHEN A.U_TGV_FLETTER = 'A' AND A.U_TGV_ACC_ORD_FLAC <> 1 THEN '1'
    WHEN A.U_TGV_FLETTER = 'B' AND A.U_TGV_ACC_ORD_FLAC <> 1 THEN '6'
    WHEN A.U_TGV_FLETTER = 'C' AND A.U_TGV_ACC_ORD_FLAC <> 1 THEN '11'
    WHEN A.U_TGV_FLETTER = 'E' AND A.U_TGV_ACC_ORD_FLAC <> 1 THEN '19'
    WHEN A.U_TGV_FLETTER = 'M' AND A.U_TGV_ACC_ORD_FLAC <> 1 THEN '51'
    WHEN A.U_TGV_FLETTER = 'A' AND A.U_TGV_ACC_ORD_FLAC = 1 THEN '60'
    WHEN A.U_TGV_FLETTER = 'B' AND A.U_TGV_ACC_ORD_FLAC = 1 THEN '61'
    WHEN A.U_TGV_FLETTER = 'C' AND A.U_TGV_ACC_ORD_FLAC = 1 THEN '62' ELSE 'NA'
    END) AS TIPOCOMP,
    max(isnull(Convert(varchar,isnull(A.U_TGV_FOLIO_PREFIX,'0')) + '-' + Convert(varchar,A.folionum),'')) AS NUMCOMP,
    max(isnull(A.CARDNAME, '')) AS RAZONSOCIAL,
    max(Replace(LICTRADNUM,'-','')) AS CUIT,
    round(sum(case when a.U_TGV_TVAT_POS_BP = 'EX' then 0 else case when b.vatprcnt = 0 then b.linetotal else 0 end end), 4) as NOGRAVEXCENTO,
    round(sum(case when b.vatprcnt <> 0 then b.linetotal else 0 end),4) as IMPGRAVADO,
    max(b.vatprcnt) as ALICUOTA,
    round(sum(b.vatsum),4) as IVA,
    round(sum(case when a.U_TGV_TVAT_POS_BP = 'EX' then b.linetotal else 0 end),4) as OPEXENTA,
    max(round(ISNULL(AA.TOTAL, 0),4)) AS PERCIVA,
    max(round(ISNULL(BB.TOTAL, 0),4)) AS PERCIIBB,
    '1' AS CONSULTA
    FROM [dbo].[OPCH]  A
    INNER JOIN [dbo].[PCH1]  B ON A.DOCENTRY = B.DOCENTRY
    LEFT JOIN (SELECT A.DOCENTRY, SUM(A.LINETOTAL) AS TOTAL FROM [dbo].[PCH1] A
                                       INNER JOIN [dbo].[OITM] B ON A.ITEMCODE = B.ITEMCODE
                                       INNER JOIN [dbo].[OWHT] C ON B.ITEMCODE = C.U_TGV_CODE_ITEM
                                       WHERE U_TGV_PERCEP_FLAG = 1 AND U_TGV_PERC_TYPE = 1
                                       group by A.DOCENTRY) AA ON AA.DOCENTRY = A.DOCENTRY
    LEFT JOIN (SELECT A.DOCENTRY, SUM(A.LINETOTAL) AS TOTAL FROM [dbo].[PCH1] A
                                       INNER JOIN [dbo].[OITM] B ON A.ITEMCODE = B.ITEMCODE
                                       INNER JOIN [dbo].[OWHT] C ON B.ITEMCODE = C.U_TGV_CODE_ITEM
                                       WHERE U_TGV_PERCEP_FLAG = 1 AND U_TGV_PERC_TYPE = 2
                                       group by A.DOCENTRY) BB ON BB.DOCENTRY = A.DOCENTRY
    INNER JOIN [dbo].[OITM] I on  b.ItemCode = I.ItemCode
    Where I.U_TGV_PERCEP_FLAG = 0
    group by a.DOCENTRY,  b.taxcode
    UNION ALL
    SELECT
    A.DOCENTRY as NroDocumento,
    max(A.DOCDATE) AS FECHA,
    max(CASE WHEN A.U_TGV_FLETTER = 'A' THEN '3'
    WHEN A.U_TGV_FLETTER = 'B' THEN '8'
    WHEN A.U_TGV_FLETTER = 'C' THEN '13'
    WHEN A.U_TGV_FLETTER = 'M' THEN '53'
    ELSE 'NA'
    END) AS TIPOCOMP,
    max(isnull(Convert(varchar,isnull(A.U_TGV_FOLIO_PREFIX,'0')) + '-' + Convert(varchar,A.folionum),'')) AS NUMCOMP,
    max(isnull(A.CARDNAME, '')) AS RAZONSOCIAL,
    max(Replace(LICTRADNUM,'-','')) AS CUIT,
    round(sum(case when b.vatprcnt = 0 then b.linetotal else 0 end), 4) as NOGRAVEXCENTO,
    round(sum(case when b.vatprcnt <> 0 then b.linetotal else 0 end),4) as IMPGRAVADO,
    max(b.vatprcnt) as ALICUOTA,
    round(sum(b.vatsum),4) as IVA,
    round(sum(case when a.U_TGV_TVAT_POS_BP = 'EX' then b.linetotal else 0 end),4) as OPEXENTA,
    max(round(ISNULL(AA.TOTAL, 0),4)) AS PERCIVA,
    max(round(ISNULL(BB.TOTAL, 0),4)) AS PERCIIBB,
    '1' AS CONSULTA
    FROM [dbo].[ORPC] A
    INNER JOIN [dbo].[RPC1] B ON A.DOCENTRY = B.DOCENTRY
    LEFT JOIN (SELECT A.DOCENTRY, SUM(A.LINETOTAL) AS TOTAL FROM [dbo].[PCH1] A
                                       INNER JOIN [dbo].[OITM] B ON A.ITEMCODE = B.ITEMCODE
                                       INNER JOIN [dbo].[OWHT] C ON B.ITEMCODE = C.U_TGV_CODE_ITEM
                                       WHERE U_TGV_PERCEP_FLAG = 1 AND U_TGV_PERC_TYPE = 1
                                       group by A.DOCENTRY) AA ON AA.DOCENTRY = A.DOCENTRY
    LEFT JOIN (SELECT A.DOCENTRY, SUM(A.LINETOTAL) AS TOTAL FROM [dbo].[PCH1] A
                                       INNER JOIN [dbo].[OITM] B ON A.ITEMCODE = B.ITEMCODE
                                       INNER JOIN [dbo].[OWHT] C ON B.ITEMCODE = C.U_TGV_CODE_ITEM
                                       WHERE U_TGV_PERCEP_FLAG = 1 AND U_TGV_PERC_TYPE = 2
                                       group by A.DOCENTRY) BB ON BB.DOCENTRY = A.DOCENTRY
    INNER JOIN [dbo].[OITM] I on  b.ItemCode = I.ItemCode
    Where I.U_TGV_PERCEP_FLAG = 0
    group by a.DOCENTRY,  b.taxcode
    UNION ALL
    SELECT max(TOT.C1) as NroDocumento,max(TOT.C2) as Fecha, max(TOT.C3), max(TOT.C4), max(TOT.C5),max(TOT.C6),sum(TOT.NOGRAVEXCENTO),sum(TOT.IMPGRAVADO),max(TOT.ALICUOTA),sum(TOT.IVA),sum(TOT.OPEXENTA),max(TOT.PERCIVA),max(TOT.PERCIIBB),max(TOT.CONSULTA) FROM
    SELECT
    '' AS C1,
    '' AS C2,
    '' AS C3,
    '' AS C4,
    '' AS C5,
    '' AS C6,
    round(sum(case when b.vatprcnt = 0 then b.linetotal else 0 end), 4) as NOGRAVEXCENTO,
    round(sum(case when b.vatprcnt <> 0 then b.linetotal else 0 end),4) as IMPGRAVADO,
    max(b.vatprcnt) as ALICUOTA,
    round(sum(b.vatsum),4) as IVA,
    round(sum(case when a.U_TGV_TVAT_POS_BP = 'EX' then b.linetotal else 0 end),4) as OPEXENTA,
    max(round(ISNULL(AA.TOTAL, 0),4)) AS PERCIVA,
    max(round(ISNULL(BB.TOTAL, 0),4)) AS PERCIIBB,
    '2' AS CONSULTA
    FROM [dbo].[OPCH] A
    INNER JOIN [dbo].[PCH1] B ON A.DOCENTRY = B.DOCENTRY
    LEFT JOIN (SELECT A.DOCENTRY, SUM(A.LINETOTAL) AS TOTAL FROM [dbo].[PCH1] A
                                       INNER JOIN [dbo].[OITM] B ON A.ITEMCODE = B.ITEMCODE
                                       INNER JOIN [dbo].[OWHT] C ON B.ITEMCODE = C.U_TGV_CODE_ITEM
                                       WHERE U_TGV_PERCEP_FLAG = 1 AND U_TGV_PERC_TYPE = 1
                                       group by A.DOCENTRY) AA ON AA.DOCENTRY = A.DOCENTRY
    LEFT JOIN (SELECT A.DOCENTRY, SUM(A.LINETOTAL) AS TOTAL FROM [dbo].[PCH1] A
                                       INNER JOIN [dbo].[OITM] B ON A.ITEMCODE = B.ITEMCODE
                                       INNER JOIN [dbo].[OWHT] C ON B.ITEMCODE = C.U_TGV_CODE_ITEM
                                       WHERE U_TGV_PERCEP_FLAG = 1 AND U_TGV_PERC_TYPE = 2
                                       group by A.DOCENTRY) BB ON BB.DOCENTRY = A.DOCENTRY
    INNER JOIN [dbo].[OITM] I on  b.ItemCode = I.ItemCode
    Where I.U_TGV_PERCEP_FLAG = 0
    group by b.taxcode
    UNION ALL
    SELECT
    '' AS C1,
    '' AS C2,
    '' AS C3,
    '' AS C4,
    '' AS C5,
    '' AS C6,
    round(sum(case when b.vatprcnt = 0 then b.linetotal else 0 end), 4) as NOGRAVEXCENTO,
    round(sum(case when b.vatprcnt <> 0 then b.linetotal else 0 end),4) as IMPGRAVADO,
    max(b.vatprcnt) as ALICUOTA,
    round(sum(b.vatsum),4) as IVA,
    round(sum(case when a.U_TGV_TVAT_POS_BP = 'EX' then b.linetotal else 0 end),4) as OPEXENTA,
    max(round(ISNULL(AA.TOTAL, 0),4)) AS PERCIVA,
    max(round(ISNULL(BB.TOTAL, 0),4)) AS PERCIIBB,
    '2' AS CONSULTA
    FROM [dbo].[ORPC] A
    INNER JOIN RPC1 AS B ON A.DOCENTRY = B.DOCENTRY
    LEFT JOIN (SELECT A.DOCENTRY, SUM(A.LINETOTAL) AS TOTAL FROM [dbo].[PCH1] A
                                       INNER JOIN [dbo].[OITM] B ON A.ITEMCODE = B.ITEMCODE
                                       INNER JOIN [dbo].[OWHT] C ON B.ITEMCODE = C.U_TGV_CODE_ITEM
                                       WHERE U_TGV_PERCEP_FLAG = 1 AND U_TGV_PERC_TYPE = 1
                                       group by A.DOCENTRY) AA ON AA.DOCENTRY = A.DOCENTRY
    LEFT JOIN (SELECT A.DOCENTRY, SUM(A.LINETOTAL) AS TOTAL FROM [dbo].[PCH1] A
                                       INNER JOIN [dbo].[OITM] B ON A.ITEMCODE = B.ITEMCODE
                                       INNER JOIN [dbo].[OWHT] C ON B.ITEMCODE = C.U_TGV_CODE_ITEM
                                       WHERE U_TGV_PERCEP_FLAG = 1 AND U_TGV_PERC_TYPE = 2
                                       group by A.DOCENTRY) BB ON BB.DOCENTRY = A.DOCENTRY
    INNER JOIN [dbo].[OITM] I on  b.ItemCode = I.ItemCode
    Where I.U_TGV_PERCEP_FLAG = 0
    group by b.taxcode
    ) TOT
    group by TOT.ALICUOTA) TOTGEN
    where TOTGEN.FECHA between '[%0]' and '[%0]'
    order by TOTGEN.consulta, TOTGEN.fecha, TOTGEN.nrodocumento
    someone can see the error?
    Edited by: Sergio Alejandro Masolini on Oct 22, 2008 8:31 PM

  • How to add drop down list for query manager report in sap business one

    Hi Every one,
    I need drop down list for parameter selection in sap business one Query Manager.I have two Parameters 'Sales Order','Invoice'.
    Please suggest.
    Thanks and Regards
    DEV

    Hi,
    you need to use this :
    /*select from [dbo].[OINV] T2*/
    DECLARE @Invoice varchar(100)
    /*where*/
    set @Invoice =/* T2.DocNum  */N'[%2]'
    you can change the tables and the parameter number but you have to write it exactly that way.
    when you run the query within the SBO you will get list of objects ( in this case list of invoices)
    hope it was helpful
    Shachar

  • Unable to create new query using query manager

    Hi friends,
    I have been trying to create a query using query manager for couple of hours but still not able to.I am following the instructions given in oracle Peopletools 8.52 : Peoplesoft query
    Chapter - creating new queries.
    Below are the steps I am going through to create new query:
    Step - I open the component Reporting Tools-> Query->Query Manager , I don't get the tabbed pages one for search an existing query and another for create new query.
    Please follow this link to see how the page is displayed in first step:
    http://uploadpic.org/v.php?img=EvMvVAXX1E
    Step 2 - When I click on create new query link, I am redirected to a page where it asks for record name to add in the query. But, even this page is not displayed as how it supposed to be
    http://uploadpic.org/v.php?img=GzHh3f6krU
    Step 3 - Following the above step, when I click on Person record to add into my query I am asked to select the fields that I want to display in the output.
    But I somehow do not get the proper tabbed pages where individual pages are there to add the attributes to complete the query like adding multiple records, fields, query, expressions, prompt...etc
    http://uploadpic.org/v.php?img=Wbbla3Q3jE
    I am neither able to select multiple records in my query nor able to customize my query to get the desired results.
    Below is the query that I want to create using query manager:
    SELECT P.EMPLID,P.BIRTHDATE, N.NAME, A.ADDRESS1, A.ADDRESS2, A.CITY
    FROM PS_PERSON P, PS_NAMES N, PS_ADDRESSES A
    WHERE P.EMPLID = N.EMPLID AND
    N.EMPLID = A.EMPLID AND
    P.BIRTHDATE BETWEEN to_date('1990/1/1','yyyy/mm/dd') and to_date('1991/1/1','yyyy/mm/dd');

    Hi,
    As I cannot access your screenshot by the blocking of company firewall rules.
    I'm guessing currently you are using PT 8.52.00 version, correct?
    This should be a bug, that you need to apply the 8.52.0X patch, not sure which patch fix this, you can apply the latest one to solve this issue for no tab page of query manager. (PT 8.52.06)
    Hope this helps.
    Thanks,
    Saxon SI

  • Pass parameter to sql statement in query manager

    Hai to all,
               I want to pass the percentage  as the parameter into the sql statemnet.i what to execute it in the query manager.
              If i execute that statement then cann't found the tablename error is coming.
             Other than the data in the table (general data)  pass to the parameter in the sql at runtime.
    for example:
    select [%0] *100
    how to pass 10 to that sql statement.
    Please help me...
    Regards,
    Raji.

    Hi Ramya,
    You can create a SP with parameters to accept and then execut this SP from SAP Business One Query Manager by passing the parameter (in your case 10). The result will be as desired.
    Ex:
    Create this Procedure in SQL Management Studio
    create proc Test(@a as int)
    as
    begin
    select (@a*100)
    end
    To Execute the Query use this Query and pass the desired values with parameters
    execute Test 10
    Regards,
    Reno

  • Query Manager Problem

    Here's an interesting problem a client is having. I have a simple query for them that retrieves some information from the primary B1 database, along with a UDT. The query works just fine inside SQL Server Management Studio. When we implement it into the query manager, before saving it, it worked just fine. We then saved it then tried running it again. One of the columns is not visibil. When click the edit button and try running it, it still doesn't work. But when we add or delete whitespace while in edit mode the query works just fine. I haven't been able to find anything on the notes yet and the customer is on 2007A PL 10 but they are planning on upgrading to 8.8+.
    Any ideas on why the query manager is behaving this way? Is it a bug thats been fixed in a later patch for 2007A or is it something else entirely?

    You may add index to U_slsm column.
    Update your query as:
    Select T0.U_slsm as 'Slsm',
    LEFT(T0.Code,9) as 'PC No',
    T0.U_date,
    T3.CardCode,
    T1.DocNum as 'Shop',
    T2.DocNum as 'Quote',
    T0.U_amount,
    T0.U_dm,
    T0.U_comment
    From [dbo].[@ORDERLOG T0]
    Left Join dbo.ORDR T1 on T0.U_DocNum = T1.DocNum
    Left Join dbo.OQUT T2 on T0.U_quote = T2.DocNum
    Left Join dbo.OCRD T3 on T0.U_CardCode = T3.CardCode
    Where T0.U_slsm = '[%0]'
    Order By T0.U_date Desc, T0.U_amount
    I have doubt regarding your links to those 3 system tables. Are those documents having internal links?

  • Easy query is not showing on Easy query Management(Browser)

    Dear all,
              I want to consume a bex query into SAP UI5. For that I found this document:-
         http://cms.int13h.nl/wordpress/wp-content/uploads/2013/01/How-to-Create-OData-Services-for-Analytic-Queries.pdf
         In this document, the first step is to define a query as EasyQuery. So I checked the option "By Easy Query" under Release for External Access.
         After this I checked in Easy Query Management using EQMANAGER tcode, but there was no entry found for this query. It was blank.
         Please help me in this issue.

    HI Antony Jerald J,
    Do you have variables in your Bex Query.
    Please check the pre requisites in the following link:
    http://help.sap.com/saphelp_nw73ehp1/helpdata/en/b6/53d6c4e26a4504b8971c6e690d2105/frameset.htm
    BR
    Prabhith

  • Not able to save / update SQL Query in Query manager

    Hi,
    I am using SBO 2005 B PL 25, facing unique problem in Query Manager.
    There are various queries saved in Query manager, tried updating & creating  / saving new query but not able to do so.
    System displays messaged as operation completed successfully, but the query is not updated.
    Kindly let me know is there any setting which blocks the updation.
    Regards,
    Yogesh Jadav
    Edited by: YOGESH JADAV on Aug 11, 2008 3:07 PM

    Hi
    You cannot Modify or Update query in the 'System' Category.
    If you are trying to create/ modify/ update query in some other category, check for the authorizations in
    'Administration -> System Initialization -> Authorizations Window' -> Reports ->Query Generator'.
    Check if you have authorizations for the following
    New Queries
    Create/Edit Categories
    Saved Queries - Group No. 1
    Saved Queries - Group No. 20

  • Query in Query Manager

    Hey All
    How I can run query from Query Manager from addon level?
    regards
    Krzysztof Sala

    Hi Krzysztof,
    There is no object in the SDK to access and execute the queries programmatically so you have to use the UI to simulate the user opening and selecting the query (ie activate the menu object for the query you want to run, populate any parameters then click on the OK button to execute the query). It's a bit of a messy solution but it can work ok.
    The alternative is to execute your query from within your add-on and display the results in a new form. This form can just have a matrix and an OK button so it's very easy to create (via Screenpainter or at runtime).
    Hope this helps,
    Owen

  • Query Manager Authorisations

    Hi,
    I want to restrict areas in the query manager to certain users.  How can I do this please?
    Thanks,
    vankri

    You may check these  threads for further info:
    Re: query manager
    Query Group in Query Category different with Authorization's group number
    Thanks,
    Gordon

  • How to set paramters through Query manager.

    Hi,
    I need to get Parameters when we are executing SQL Query through Query Manager.
    In Query manager how to set prompt window for parameters.
    Below I applied parameters for from date and to date but its showing error. How to set parameters prompt window.
    SELECT     OJDT.TransId, OJDT.Number,NNM1.SeriesName,ojdt.baseref as BaseRefNumber, JDT1.Account,JDT1.StornoAcc,OACT.AcctName,jdt1.credit,jdt1.debit, jdt1.profitcode as [Customer/Vendor],JDT1.OcrCode2 as [Region/Location] , JDT1.OcrCode3 as  Department,
                          JDT1.OcrCode4 as [Core/Deputees/DailyWage/General], JDT1.OcrCode5 as [SubAccofCA&CL],OJDT.RefDate, OJDT.Project,jdt1.project
    FROM         OJDT
    INNER JOIN JDT1 ON OJDT.TransId = JDT1.TransId
    INNER  JOIN OACT on OACT.AcctCode=JDT1.Account
    INNER JOIN NNM1 ON OJDT.Series = NNM1.Series
    where ojdt.transType=30 and  ojdt.refdate >= '[%0]' AND ojdt.refdate <= '[%1]'
    Please guide me.
    Regds,
    Sampath kumar devunuri.

    hi sampath,
    Try this query
    SELECT T0.TransId, T0.Number,T3.SeriesName,T0.baseref as BaseRefNumber, T1.Account,T1.StornoAcc,T2.AcctName,T1.credit,T1.debit, T1.profitcode as CustomerVendor,T1.OcrCode2 as RegionLocation , T1.OcrCode3 as Department,
    T1.OcrCode4 as CoreDeputeesDailyWageGeneral, T1.OcrCode5 as SubAccofCACL,T0.RefDate, T0.Project,T1.project
    FROM dbo.OJDT T0
    INNER JOIN JDT1 T1 ON T0.TransId = T1.TransId
    INNER JOIN OACT T2 on T2.AcctCode=T1.Account
    INNER JOIN NNM1 T3 ON T0.Series = T3.Series
    where
    T0.transType='30' and CAST(T0.refdate AS datetime) BETWEEN '[%0]' AND '[%1]'
    Jeyakanthan

  • QUERY MANAGER RELATED QUESTION

    mY QUESTIONIS I WANT TO ADD CALANDER AS INPUT PARAMETER IN QUERY MANAGER IS THIS POSSIBLE AND IF THAN HOW?
    PLEASE HELP ME OUT
    THANKS IN ADVANCE
    TARUN CHAUHAN

    Hi nagarajan,
    Let me elaborate my question one again.
    1)i had taken two date parameter in my query in query manager.on manul filling up those date parameter my query give the result which i am fetching from my data base.
    But instead of manual entry of date in above two parameter i want that i should give calendar button so that user can opt the date from that calendar, as in the same manner as we are doing in inventory posting list report .for your reference i am attaching the screen shot.
    Please help.
    Thanks
    Tarun Chauhan

  • Descriptor query manager and custom PL/SQL call for the data update

    hi all,
    in the application, I'm currently working on, the operations for the data INSERT/UPDATE /DELETE are allowed only by means of PL/SQL function. Using the descriptor's query manager I'm trying to modify default behavior of TopLink and execute PL/SQL when there is a request to modify the data.
    DescriptorQueryManager entityQueryManager = session.getClassDescriptor(MyEntity.class).getQueryManager();
    StoredFunctionCall call = new StoredFunctionCall();
    call.setUsesBinding(true);
    call.setProcedureName("merge_record");
    call.setResult("id", Integer.class);
    call.addNamedArgument("cbic_id", "id"); // MyEntity.getId() – works!
    call.addNamedArgument("publication_flag", "publicationFlag"); // MyEntity.getPublicationFlag () – works!
    call.addNamedArgument("routing_id", "routing"); // MyEntity.getRouring() – works!
    call.addNamedArgument("issue_id", "issue"); // MyEntity.getIssue() – works!
    call.addNamedArgument("country_id", "country"); // MyEntity.getCountry() – works!
    entityQueryManager.setInsertCall(call);
    entityQueryManager.setUpdateCall(call);
    entityQueryManager.setDeleteCall(call);
    the problem:
    when I call: MyEntity savedObject = (MyEntity) UnitOfWork.deepMergeClone(entity);
    the binding doesn’t happen and I see following logs:
    [TopLink Finest]: 2008.02.01 02:51:41.534--UnitOfWork(22937783)--Thread(Thread[AWT-EventQueue-0,6,main])--Merge clone xxx.Entity[id=2000]
    [TopLink Warning]: 2008.02.01 02:51:41.550--ClientSession(8454539)--Thread(Thread[AWT-EventQueue-0,6,main])--Missing Query parameter for named argument: id null will be substituted. (There is no English translation for this message.)
    [TopLink Warning]: 2008.02.01 02:51:41.550--ClientSession(8454539)--Thread(Thread[AWT-EventQueue-0,6,main])--Missing Query parameter for named argument: publicationFlag null will be substituted. (There is no English translation for this message.)
    [TopLink Warning]: 2008.02.01 02:51:41.565--ClientSession(8454539)--Thread(Thread[AWT-EventQueue-0,6,main])--Missing Query parameter for named argument: routing null will be substituted. (There is no English translation for this message.)
    [TopLink Warning]: 2008.02.01 02:51:41.565--ClientSession(8454539)--Thread(Thread[AWT-EventQueue-0,6,main])--Missing Query parameter for named argument: issue null will be substituted. (There is no English translation for this message.)
    [TopLink Warning]: 2008.02.01 02:51:41.565--ClientSession(8454539)--Thread(Thread[AWT-EventQueue-0,6,main])--Missing Query parameter for named argument: country null will be substituted. (There is no English translation for this message.)
    [TopLink Fine]: 2008.02.01 02:51:41.565--ClientSession(8454539)--Connection(6233000)--Thread(Thread[AWT-EventQueue-0,6,main])--BEGIN ? := merge_record(cbic_id=>?, publication_flag=>?, routing=>?, issue=>?, country=>?); END;
    bind => [=> id, null, null, null, null, null] – WHY?
    Calling straight forward the same PL/SQL block using:
    DataModifyQuery updateQuery = new DataModifyQuery();
    updateQuery.setCall(call);
    updateQuery.shouldBindAllParameters();
    and passing parameters as Vector works very well.
    Could you please help me to fix the binding problem when I’m using the PL/SQL with Query Manager?
    regards,

    Hello,
    This is fairly common. Since the database is case insensitive (mostly) field names passed in don't really matter much. Unfortunately, java string comparisons are case sensitive, so if you db column for the getId() property is defined as uppercase "ID" it will not match to the lower case "id" defined in the
    call.addNamedArgument("cbic_id", "id");
    This will cause TopLink to get null when it looks for the "id" field in the row it builds from your MyEntity instance.
    Matching the case exactly will resolve the issue.
    Best Regards,
    Chris

Maybe you are looking for

  • Install weblogic server 6 with sp1 failure in W2K

    When I install weblogic server 6 with sp1 in W2K, InstallAnyWhere display, when InstallAnyWhere process 100%, there is nothing in my display about the Install. there is weblogic600sp1_ and javaw in Windows Task manager->process. I have install JDK1.3

  • HtmlCommandLink generation within custom component

    Hey everybody, I had a previous post similar to this, but after solving the one problem I was having another one arose that I'm not sure how to fix either. I've been scouring google and the forums for a definite answer on this to no avail. So, here's

  • Add sysdate filter in query mode

    Hi, I need your help regarding a query inside a forms screen. I know that if you enter query mode, you can put some query conditions in the form fields like: # BETWEEN value_a AND value_b # IN (value_a, value_b, ..., value_n)My question: is it possib

  • Help? My iPad 1 will not respond. Have tried basic troubleshooting.

    My iPad original will not respond.  I have attached it to my iMac and update the software and ensured it's fully charged.  I have tried to reset it by holding both buttons for more than 10 seconds.  The screen remains black. Does anyone have any idea

  • Java error trying to forward logs?

    I'm getting a really strange error when I try to set where my Operations Manager logs direct to. It happens whenever I click on the gears icon for the ANALYTICS, COLLECTOR, WEB, and SUITEAPI folders in Administration > Support > Logs. The error that