How to change the lov query??

Hi Friends,
I am trying to extend a controller of the base page to change the lov query. I am not able to get the lov VO since I am not getting the lov AM in the controller.
I want to use the setQuery() to set the lov query programatically in base class controller PR.
My controller code looks like ::
OAApplicationModule am = oapagecontext.getRootApplicationModule();
oapagecontext.writeDiagnostics(this,"The Root AM is : " + am.toString(),6); // displaying oracle.apps.icx.por.req.server.RequisitionAMImpl
OAApplicationModule lovAM = (OAApplicationModule)am.findApplicationModule("RequisitionLovAM"); // Returning Null
OAViewObjectImpl vo = (OAViewObjectImpl)lovAM.findViewObject("ReqSupplierVO");
String seededQuery = vo.getQuery();
oapagecontext.writeDiagnostics(this,"Seeded Query for ReqSupplierVO is "+ seededQuery,6);
String customQuery = "new_query" // here i m writing my new query.
vo.setQuery(customQuery); // setting my custom query.
oapagecontext.writeDiagnostics(this,"Custom Query for the ReqSupplierVO is "+ vo.getQuery(),6);
The following are the details.
Base Page : /oracle/apps/icx/icatalog/shopping/webui/NonCatalogRequestPG
Base Page Controller : logi.oracle.apps.icx.icatalog.shopping.webui.NonCatalogRequestCO
Lov Region : /oracle/apps/icx/lov/webui/ReqSupplierLovRN
Lov Controller : oracle.apps.icx.lov.webui.ReqSupplierLovCO
Lov VO : oracle.apps.icx.lov.server.ReqSupplierVO ( i want to remove outer join in this VO query )
I cant extend the lov controller since the same lov region is using in other pages also where i dont want apply my new lov query.
Is the way i am trying is correct? How can i get the Lov AM in the base page? Any help highly appreciated.

Hi Pratap,
Thanks for coming back on this.
The background of this customization is, We are implementing AME and are trying to restrict the number of approvers in the Change First Approver LOV (ApprroverLovVO.xml) based on company code and cost centre during the creation of Requistion. At the moment, the LOV is bringing back every employee who has a valid WF role.
At the moment (up till I saw this thread) I was trying to customize ReqApprChfCo.java by adding this code to processRequest method
OAMessageLovInputBean CompanyCode = (OAMessageLovInputBean)oawebbean.findIndexedChildRecursive("ChargeAccountFlex0_column"); //this is returing null
OAMessageLovInputBean CostCentre = (OAMessageLovInputBean)oawebbean.findIndexedChildRecursive("ChargeAccountFlex1_column"); //this is returing null
RequisitionLovAMImpl am = (RequisitionLovAMImpl)oapagecontext.getApplicationModule(oawebbean); // this is returning null
OAViewObject approverLovVO = (OAViewObject)oam.findViewObject("ApproverLovVO");
Then, once found to append the viewobject with where clause. Was this the right method of achiving it, or to create a new custom VO and region?
Regards,
Chetan

Similar Messages

  • How to change the standard query "Create a Master Agreement" by a custom one

    Hello Sourcing CLM experts,
    I would need to replace the standard query displayed when the user tries to create a Master Agreement by a custom query to filter the MA types according to some criteria:
    According to this post: Re: Create security profile for a document template in SAP Sourcing, I've tried to achieve it by doing the following steps:
    Create a new query as a copy of exsiting query FCI-ContractTypes
    Modify query group FCI-ContractTypesBP to include my custom query instead of the standard one to only list the MAType "Standard Master Agreement"
    Following you can see the change done into the query group FCI-ContractTypesBP:
    However, standard query has not been replaced and same set of MA Types are listed.
    Therefore, I would like to ask you:
    Is it possible to do this kind of modifications? If so, which query group need to be modified?
    If it is not possible, is there any other way to achieve that requirement?
    Thanks in advance for your time and support!
    Best regards,
    Isaac

    Hello again experts,
    If this query cannot be modified, is there any option to disable button below? Or at lease, to disable the query group to avoid the listing of MA Types when it is pressed?
    The reason is because we are going to set up the system in the way that only it will be possible to create Master Agreements from Template. However, if user keep on using that button he will be able to create MA from document types.
    Any ideas?
    Thanks again and best regards,
    Isaac

  • How to change the SQL-Query in (Report in ReportViewer) by running Java App

    Hello,
    Ich have an App which generates dynamicly SQL-Queries. By pressing a button it should generate a report with this generated Query.
    I´m using the ReportViewer.jar. Further is it possilbe to a extra parameters form app which are not in a DB?

    <p>There are a few ways that you can achieve this. If your SQL Queries have their filters modified (ie. WHERE clause) then this can be easily solved by adding report parameters to the Report filter. Search the in-product help for "Record Filter" and you should get a number of helpful resources returned.</p><p>Additionally, you can pass in java.sql.ResultSet objects with a populated recordset of the data you want to show in the report. We don&#39;t currently provide any tools to assist the creation of the code stubs for thick-client applications (like we do for JSP pages) however you can download a collection of thick-client sample code from here:</p><p><a href="http://support.businessobjects.com/communityCS/FilesAndUpdates/crxi_r2_jrc_desktop_samples.zip">http://support.businessobjects.com/communityCS/FilesAndUpdates/crxi_r2_jrc_desktop_samples.zip</a> </p><p>As I mentioned, this sample contains a collection of code snippets. The one in particular you will be interested in is titled "JRCResultsetDatasource". Hopefully, this will provide you with a few options. </p><p>Regards,<br />Sean Johnson (CR4E Product Manager) </p>

  • How to change a LOV query from Forms Personalization(Doc ID 1534116.1)

    Customer followed the step on Note 1534116.1, but after that close the form and reopening the form , cus is unable to  query the form.
    Please advise.
    Thanks,
    Ling

    Pl post EBS version - what does "unable to query the form" mean ? Any error codes / messages ? Was FRD trace enable to troubleshoot ?
    MOS Doc 438652.1

  • How do I change the underlying query for the task board (and backlog board) on TFS Preview

    All,
    We work with multi-area projects, each area representing a significant component within the project with its own release/iteration cycle. i.e. Several areas may be active at once, each with different iterations.
    When we look at the task board these take no account of the area being worked on. What I need to do is to be able to change the query behind these boards to point to a particular release/iteration for a particular area.
    Unfortunately there is no drop down selection on these pages to see this automatically so I need to be able to change the underlying query that populates these boards to get the the area and release/iteration that I need.... but I can't find where these
    are.
    Using multiple areas is actually highly frustrating with TFS Preview as it doesn't seem geared up at all to make it easy to switch between them... are we doing something wrong?
    I think I can do this by changing the current iteration - but I can't work out how to do this either once an iteration for a particular area has started.
    Can anybody help?
    Thanks

    It is not possible to modify the query behind the task board. If I understand you correctly, you would like to filter the task board by area path.
    In TFS 2012 we have repurposed the area path field to be the field that determines the team you are working on. We are continuously improving our product and being able to filter your task is one of the improvements that we are thinking of.
    Sorry I can't help you better than this for the moment.
    Please remember to mark the replies as answers if they help.
    Hi Ewald,
    We have a similar problem, see the thread "Best approach for multi-team/multi-projects." on this forum. I'm hopping you can help, since so far the different answers doesn't help.
    Best Regards,
    SYSOTI

  • How to change the reference of a Workbook to a Query

    I have a Query Q1 and I have a workbook W1 for this query in 3.5,  I copied query Q1 to a new Query Q2,  and copied workbook W1 to a new workbook W2. (using RSZC)
    Now I have Queries Q1 and Q2 and Workbooks W1 and W2. But as the workbook W2 is a copy of W1, it still has the reference to query Q1. Is there any way to change the reference of a workbook to a query ?
    My requirement is, workbook W2 should refer to query Q2.
    Appretiate your help.
    Regards,
    R. Vodnala

    Go to design mode of the second workbook and change the query using the edit option to Q2 then your workbook W2 will refer to query Q2
    Just to get the idea go through this link here it is shown how to change the query.
    https://wiki.sdn.sap.com/wiki/display/BI/Issue%20with%20Migrating%20BEx%20Query%20and%20Workbook

  • Unable to change the LOV of To locator in Subinventory transfer form

    I am trying to change the LOV of To Locator field in the Subinventory form.
    I have made the trigger event as "When-new-form-instance"
    In actions tab:
    Built in : Create a record group from query and gave a name to the record group
    Property: LOV - ENABLE_LIST_LAMP - Group_name - <gave the name of the record group>
    But it gives an error : Cannot create the record group.
    The name of the column in the form for To Locator is : TRANSFER_LOCATOR and its defined at the item level.
    Can anyone please help?

    During the implementation of a recent project, we suffered from the same issue. There seems to be no way to recolor that part of a pivot table, but you can remove it by disabling the row header... which, in your case, should also remove the header "Class".
    The way I see it, the users would already know what that Class column is supposed to be about. So you don't actually need to have that header displayed, if you ask me.
    If someone has a proper solution to this question though, I'd be interested :)
    Cihan
    Edit: Spelling
    Edited by: cihanc on 14.Eki.2012 23:21

  • How to view the sql query?

    hi,
      how to view the sql query formed from the xml structure in the receiver jdbc?

    You can view SAP Note at
    http://service.sap.com/notes
    But you require SMP login ID for this which you should get from your company. The content of the notes are as follows:
    Reason and Prerequisites
    You are looking for additional parameter settings. There are two possible reasons why a feature is available via the "additional parameters" table in the "advanced mode" section of the configuration, but not as documented parameter in the configuration UI itself:
    Category 1: The parameter has been introduced for a patch or a SP upgrade where no UI upgrade and/or documentation upgrade was possible. In this case, the parameter will be moved to the UI and the documentation as soon as possible. The parameter in the "additional parameters" table will be deprecated after this move, but still be working. The parameter belongs to the supported adapter functionality and can be used in all, also productive, scenarios.
    Category 2. The parameter has been introduced for testing purposes, proof-of-concept scenarios, as workaround or as pre-released functionality. In this case, the parameter may or may not be moved to the UI and documentation, and the functionality may be changed, replaced or removed. For this parameter category there is no guaranteed support and usage in productive scenarios is not supported.
    When you want to use a parameter documented here, please be aware to which category it belongs!
    Solution
    The following list shows all available parameters of category 1 or 2. Please note:
    Parameter names are always case-sensitive! Parameter values may be case-sensitive, this is documented for each parameter.
    Parameter names and values as documented below must be used always without quotaton marks ("), if not explicitly stated otherwise.
    The default value of a parameter is always chosen that it does not change the standard functionality
    JDBC Receiver Adapter Parameters
    1. Parameter name: "logSQLStatement"
                  Parameter type: boolean
                  Parameter value: true for any string value, false only for empty string
                  Parameter value default: false (empty String)
                  Available with: SP9
                  Category: 2
                  Description:
                  When implementing a scenario with the JDBC receiver adapter, it may be helpful to see which SQL statement is generated by the JDBC adapter from the XI message content for error analysis. Before SP9, this can only be found in the trace of the JDBC adapter if trace level DEBUG is activated. With SP9, the generated SQL statement will be shown in the details page (audit protocol) of the message monitor for each message directly.
                  This should be used only during the test phase and not in productive scenarios.
    Regards,
    Prateek

  • How to transport the BW query's variable to BO  webi report

    Hi all
    I'd like to know how to transport the BW query's variable to BO 's webi . today ,I created a sap customer varible in my bw system to get the max calmonth in the active table.The varible in the BW side run's well ,but I use this query to build a new univers ,and created a new webi report base on this univers ,but the question is the webi report can't get the varible's value I wann to know how to transport the bw varible value to BO webi report
    Thanks and regards,
    Peter .zhu

    I have changed my variaable in my bw query ,I found if you use SAP default variable it is ok in BO side . So I get a guidline by SAP default variable ,I changed my customer variable in variables edite ,don't use 'ready for input' .And then the variable can be useful in BO side .
    Edited by: peter zhu on Jun 16, 2008 11:43 AM

  • How to change the "name of column" property of an text item in runtime?

    How to change the "name of column" property of an text item in runtime?
    I look the properties of items in help and found nothing about this!
    It's possible?

    Hi,
    an other solution is change the block property QUERY_DATA_SOURCE_TYPE from "Table" to "Sub-query" , than change at run time the property QUERY_DATA_SOURCE_NAME.
    First create block and add items
    The QUERY_DATA_SOURCE_NAME will be for ex. "Select 'A' as col1, 'B' AS col2, 'C' as col3 from dual"
    Set into items the column name property to col1 , col2 ...
    At run time change the query to "Select 'Z' as col1, 'X' as col2 , 'Y' as col3 from dual"
    in this way you can change the source of column value.
    Caution because if you change value type from varchar2 to date you must cast date into varchar2.
    May be that this way is valid only for view data not for insert-update, i don't remember.
    bye
    Message was edited by:
    Killernero

  • How to change the text of customer tab in Me23n

    Hi
    I have added new customer tab in Me23n at item level.
    Its text is Customer Data.
    I would like to change to some other text.
    How to change the text of customer tab in Me23n
    Regards
    Amruta

    Amruta,
    I had the same query today and finally found the answer.
    In order to change the title text or description of the "Customer Data" tab in ME23N, etc. you need to define a new text symbol in program SAPLXM06. The text symbol must be number 111 for the PO data. Make sure you define this text symbol in the language you are using when viewing the PO. I had issues with this as the original language of object SAPXM06 is not my logon language.
    The standard code which picks up this text is in function module MEGUI_BUILD_PO_ITEM_PLUGIN. I could not find any documentation around this functionality.
    Hope this helps!
    Ben

  • How to change the width of PDF report

    When i download an interactive report to a PDF. All the columns will have the same width, how to change the width of the column?
    Thanks,
    Jen

    I don't think its possible for downloading from interactive report but let's see if anyone else has got a work around.
    The other way to have absolute control over report layout is to create reports using 'Report Query' & 'Report Layout' under 'Shared Components'.
    Regards,
    Ashish Agarwal
    http://www.dbcon.com

  • How to change the QueryRowSet in early access 2?

    hi everybody,
    I do know how to change the query but I want to add a condition on a variable got from a text field, and use by button action.
    I don't know where to initialize this variable exactly?
    provided that the query is created in the session bean.
    please, reply as soon as possible.
    thanx.

    Hi,
    The tutorials under the section Access Databases will answer your question. In particular the tutorial "Using Databound Components to Access Databases". These tutorials can be found at:
    http://developers.sun.com/prodtech/javatools/jscreator/ea/jsc2/learning/tutorials/index.html
    Please post any further Creator 2 EA 2 related queries at:
    https://feedbackprograms.sun.com/login.html
    Cheers
    Giri

  • How to change the font size in sap scripts?

    hi friends,
        i had a query regarding to SAPSCRIPT.
      how to change the font size of a text in sap script form in which it should change it  dynamically.
    is it possible to change the font size dynamically in scripts.
    one more query regarding to this only.
    i need to get the hard copy of a script .
    what is the transaction code to get the hard copy?

    Hi venkata,
    You can specify the font size either in the Character format or pharagraph format.
    You better decide it according to your requirement.  If you want to apply the same font size for the entire form create the Paragraph format and give the paragraph format in the default paragraph format.
    If you want to apply that to limited text, then create character format.
    The process of creating it is just after going inside paragraph format click EDIT-> Create Element and give the font size.
    This applies for character format also.
    Reward points if useful.
    Thanks,
    karthik

  • How to change the skin at run time

    I am using jDeveloper 11.1.1.3 for ADF.
    My UseCase: i want to give a dropdown for skins. User should be able to select the skin at run time and it should be loaded. Please let me know how can i achieve it.
    Zee

    As per usecase, looks like you have the LOV containing the different skins.
    You can ensure that the application is skinned according to the selected value in the LOV.
    Ensure that you have a session scope variable that is set, whenever you change the LOV.
    For more details, look into this link http://download.oracle.com/docs/cd/E14571_01/web.1111/e10140/skinning.htm
    Thanks for your reply, but then...... what will be the skin loaded by default before the user selects the skin - drop down. Do i have to set something default before hand .?Define the LOV such that there are no empty elements. i.e the first element in the LOV is selected.
    In the Managed bean, if the session scope is not set, return the skin family for the first element. This would be the scenario when the application loads.
    Thanks,
    Navaneeth

Maybe you are looking for

  • Problem in working with adf task flow..

    hi all i m trying to run jsf page using adf task flow it is giving me belove error and not running the page what should i do now? Target URL -- http://localhost:7101/Myapp-ViewController-context-root/faces/head.jsf <ViewHandlerImpl> <_checkTimestamp>

  • SAP BW UPDATE RULE  ROUTINE

    Data is coming from one cube to another cube. How to restrict the data in update rule by using routine , which is not require in to another Cube. Thanks, Asit

  • Which DTW template to use to import all the open G/L Accounts 14k accounts.

    Hi Forum, I have imported a customers nearly 14K (14,000) G/L accounts using DTW. They are all the top drawers namely, Assets, Liabilities, Equity, Revenue, Cost of Sales and Expenses. The customer uses 5 dimensions hence many accounts. I believe som

  • IDoc for PSM Earmarked Funds

    Hi @ll, We are currently connecting two SAP-Systems. One of them uses PSM (Public Sector Management) the other doesn't. The PSM is used for billing with FI, the other is the central purchasing system. The purchasing system needs to check earmarked fu

  • Help Me... I can't use IMAQ..

    Tomorrow, I should present about unsharp masking. I made a vi with my friend.. However, it doesn't work because of IMAQ I don't have IMAQ license...Plz help me Change my vi file.....please help me huhu Attachments: unsharp3x3.vi ‏182 KB