Difference between named where clause param and simple ui exposed bv

Hi ppl,
I just had a small question ,
Assuming i have a view object with a named bind variable ( i give it at time of creation/definition itself ) ..
In order to set this, for some simple usage such as a list table , i believe there are two ways:-
1) in my managed bean , i could set the bind variable using the setNamedWhereClauseParameter
OR
2) i could expose the setter of my bind variable to the client interface and then set it manually
following either of the above , i would do a vo.executeQuery() ....
Are there any differences in the above approach ? which would be more appropriate ?
K

Hi,
except for that using a client method is less code to write because you don't have to get a handle to the VO first, I don't see a difference.
However, you can also create a binding in the pagedef fiel to the ExectuteWithParams operation on the ViewObject, in which case you could
- get a handle to the ExecuteWithParams binding (e.g. named "myHandlerToExecute")
- then do
myHandlerToExecute.getParamMap().put("bindVar Name", value);
myHandlerToExecute.execute();
Might be the smarter way and probably best practices too (for more details see the developer guide)
Frank

Similar Messages

  • Programmatically setting UI Hints for runtime named where clause params

    Hi,
    At runtime, I've added some named where clause parameters to my view object instance, set the where clause and then executed the query. Then, when navigating to the target page, where a af:query panel is shown and a af:table shows the filtered results, I see the bind variables I've just created appearing in the search area as mandatory fields.
    My question is: how can I hide those runtime bind variables?
    Thanks
    JDeveloper 11.1.1.3.0

    I do want where clauses to be created at runtime instead of design time to improve DB performance
    whereClause += "AND DEPARTMENT_ID = " + departmentId;Marge -
    What you are doing is a recipe for POOR performance, not good performance. String concatenation in a where clause with no bind variables... ugh! Poor performance + poor security (you are now susceptible to SQL injection attacks).
    I suggest that you do this at design time (where possible) and have a read of the documentation about view criteria.
    And please, no matter what approach you use, PLEASE PLEASE PLEASE start using bind variables and not just jamming strings together to make your where clause, otherwise you are heading straight for disaster. I cannot stress this enough.
    John

  • Where is the difference between MacBook Pro ME294D/A and ME294B/A  and ME294Z/A?

    Where is the difference between MacBook Pro ME294D/A and ME294B/A  and ME294Z/A?

    The country the computers originally shipped in.
    (98433)

  • Difference between SY-SUBRC EQ 0 and SY-SUBRC EQ ' 0 '

    Dear All,
    I am not from abap background.
    I have a simple question.
    what is the difference between sy-subrc eq 0 and sy-subrc eq '0'
    How does it impact a statement like this for example
    SELECT /BIC/ZAGENT /BIC/ZBATCH_MO /BIC/ZDOC_NUM /BIC/ZCUSTOMER
               /BIC/ZSTORE /BIC/ZLINE_NUM /BIC/ZMATERIAL /BIC/ZBARCODE
          FROM /BIC/AZO_AMVN100
          INTO CORRESPONDING FIELDS OF TABLE it_aquisition
          WHERE /BIC/ZAGENT EQ SOURCE_FIELDS-/BIC/ZAGENT
          AND /BIC/ZDOC_NUM EQ SOURCE_FIELDS-/BIC/ZDOC_NUM
          AND /BIC/ZOCFLAG = '1'.
        if sy-subrc EQ '0'.
          SELECT SINGLE /BIC/ZDOC_NUM FROM /BIC/AZO_PMVN300
            INTO v_docnum
            WHERE /BIC/ZDOC_NUM EQ SOURCE_FIELDS-/BIC/ZDOC_NUM
            AND /BIC/ZAGENT EQ SOURCE_FIELDS-/BIC/ZAGENT
    kindly help me with this.
    Pleae do a little more research before posting questions here...even if you are new to ABAP.
    Edited by: kishan P on Aug 24, 2010 10:00 AM

    Hi,
    Please refer [Wiki post|http://wiki.sdn.sap.com/wiki/display/ABAP/Sy-Subrc].
    hope it help you,
    regards,

  • Difference between checking Objects in SU24 and in ABAP code

    Hi all,
    What is the difference between objects checked in SU24 and the objects checked in ABAP Code.
    I think if objects are even checked to No in SU24 and they are in ABAP code then user is able is able to execute that object, is this correct?
    and vice versa, if objects are checked to yes in su24 and not in the ABAP code then user wont be able to excute? is this correct
    or what is the purpose of maintaing objects both in SU24 and in ABAP Code.
    Thanks,
    Sun

    This is what is known in German as a "Schwerer Geburt"... (not sure whether there is an English term which has the same meaning)...
    When you searched, did you read this thread?:
    F110 - S_BTCH_ADM
    >
    Julius Bussche wrote:
    > My understanding of this confusion is ...
    >
    > ... SAP's development systems deem an "unknown" check to be successfull until specifiied for a check (this is different in customer systems - which leads many to believe that adding and removing check indicators from SU24 will add and remove authority-checks....),
    >
    > ...This problem then reproduces itself both in SU53 and ST01 once the SU22 / SU24 error has been made.
    >
    > ...It is one of those things which you need to know or find on your own (not too difficult), otherwise you simple don't know it.
    It is context specific, when the context is known to the customer system where the code is running => You cannot activate a check in SU24 if it is not coded anywhere (please distingish between starting a transaction, using it, and navigating further from that transaction...). The only case where SAP does what you seem to be assuming (or hoping for...) is infact to turn an authority-check off in some cases or to make the calling context known when it is remote (in which case sy-tcode or the entry point context is not known)...
    *It is not to turn the check on when it is not coded anywhere!!!
    Perhaps you would like to phrase your final question just one more time.
    Cheers,
    Julius

  • Difference between business process, sales process and order process

    what is the difference between business process, sales process and order process?

    Dear Gopala,
    business process is a general definition of the process which you have:
    for example, you get an order, you have no goods, but you can produce them, you start an assambly processing, the production order will be created, then the goods will be prepatred, then the delivery will be created, the goods issue booked then your customer gets thwe goods and send the delivery confirmation, you create an invoice etc.etc.
    sales process is a part of  a business process.
    Sales process shows how you sell the goods, there are different sales document  categories to do this: sales orders, contracts, scheduling agreements etc.
    order process is only one of possibilities of the sales process.
    Order process is used if you get really a one-time (or at lease not on a regular basis many times) the simple orders where your customer says what goods he would like to receive and when. Then you create a sales order (in dialog transaction VA01) and can create a delivery. There are different types of sales orders in the standard. The customizing of sales order types is available under the transaction VOV8.
    I hope, this info help you a little bit further to understand SD design.
    Kind regards,
    Akmal Vakhidov
    Development Support SD, SAP

  • Differences between Hyperion Workspace, Web Analysis and Financial Reportin

    Hello,
    Can anybody explain me the differences between Hyperion Workspace, Web Analysis and Financial Reporting?
    Thank you

    In real simple terms....
    Financial reporting - Perfect for producing standardised monthly reporting such as P&L, balance sheets etc. Highly formatted, print well in PDF format.
    Web Analysis - Highly graphical, web based analysis tool more suited to dashboards, pinboards etc with slice and dice capability.
    Workspace - Common environment where reporting content in deployed. Users can access web anlysis, fin reports, Interactive reports plus other content through the workspace. It was the start of the 'log on to one place for all reporting' concept instead og logging on to multiple products.
    Hope that helps
    Regards
    CD

  • Getting Big Headache, What is difference between Flash Lite 3.1 and Flash Player 7

    Hello, I am asking questions about the two similar yet different programs for Pocket PC version only:
    1) Which came first, Flash Lite 3.1 or Flash Player 7?
    2) If I have both in my Pocket PC, will there be product incompatibility?
    3) What is the difference between Flash Lite 3.1 and Flash Player 7.
    4) I have a Flash Lite 3.1 but uninstall information says "Flash Lite 3.1 for Opera Mobile", did you releaase this? Is this an illegal copy? A developer's copy?
    *I don't know exactly where I got it, but I got it from the HTC developer's forum: XDA-developers.com
    *I also use Opera mobile, a web browser for Pocket PC's.
    5) What is difference between Flash Lite 3.1 and Flash Lite 3.1 for Opera? Is the only difference is that Flash Lite Supports everything flash related, while Flash Lite Opera supports only flash in opera?
    Hi, I don't expect all answers, but I hope someone or someone from adobe support can clear some things up for me.

    The program under my "remove programs" list is specifically called "Adobe Flash Lite for Opera". The XDA forums people said along time ago that it was Flash Lite, and kept calling it Flash Lite, and not Flash Player 7.
    Now what about this:
    http://www.adobe.com/products/flashlite/version/
    The table shows the differences between FP 7 SDK, FL 2.1, and FL 3.1. And it's quite obvious that FL 3.1 has way more features than Flash Player 7. What does SDK mean? And why are you telling me FP 7 has more features?
    With this information, can you or anyone else provide any more details and clarification?

  • What's the difference between a not-initialed object and a null object

    hi guys, i wanna know the difference between a not-initialed object and a null object.
    for eg.
    Car c1;
    Car c2 = null;after the 2 lines , 2 Car obj-referance have been created, but no Car obj.
    1.so c2 is not refering to any object, so where do we put the null?in the heap?
    2.as no c2 is not refering to any object, what's the difference between c2 and c1?
    3.and where we store the difference-information?in the heap?

    For local variables you can't have "Car c1;" the compiler will complain.That's not true. It will only complain if you try to use it without initializing it.
    You can have (never used, so compiler doesn't care):
    public void doSomething()
       Car c1;
       System.out.println("Hello");
    }or you can have (definitely initialized, so doesn't have to be initialized where declared):
    public void doSomething(boolean goldClubMember)
       Car c1;
       if (goldClubMember)
           c1 = new Car("Lexus");
       else
           c1 = new Car("Kia");
       System.out.println("You can rent a " + c1.getMake());
    }

  • Difference between the two modes ws_policy and sap_wsdl

    Dear All,
    what is the difference between the two modes ws_policy and sap_wsdl and how do we set them and where do we set them.
    do let me know the steps to be followed.
    Thanks & Regards
    Venugopal

    Venu,
    Please check this document from Bill where he has explained clearly:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c00ca32e-f991-2b10-f5be-97114bd2b08f?overridelayout=true
    Regards,
    ---Satish

  • What is the difference  between apple care protection plan and apple care

    What is the difference between apple care protection plan and apple care +

    apple care protection plan
    That is the extended warranty (total of 3 years including the standard warranty for the first year) for any Mac computer.
    apple care +
    That is the extended warranty (total of 2 years including the standard warranty for the first year) for any iDevice (iPad, iPhone, etc).
    For either, the standard warranty is usually referred to as hardware warranty (not Applecare); see an example for the warranty for an iMac:
    http://www.apple.com/legal/warranty/products/embedded-mac-warranty-us.html
    whereas the extended Applecare is referred to as that:
    http://www.apple.com/legal/sales-support/

  • Difference between Reports in normal ABAP and Reports in CRM

    Hi Experts,
    I am new to CRM. Can someone tell me the Difference between Reports in normal ABAP and Reports in CRM.
    It will be very useful if someone explains with example.
    Some where in SDN i read in CRM we should not select statment. Then how to fetch data?
    Please give me more basic concepts about CRM programming.
    Thanks,
    RAGU

    Hi Ragu,
    You can find much information at http://service.sap.com/crm-inst.
    Go to Installation & Upgrade Guides -> SAP Business Suite Applications -> SAP CRM
    Check the CRM version in which you are working and get the documents.
    FMs are specific to the requirement. Like all Business Partner related FMs generally start with BUPA* or BAPI_BUPA*.
    For CRM transaction data you can get info using FM CRM_ORDER_READ. To create a new transaction use CRM_ORDER_MAINTAIN and CRM_ORDER_SAVE.
    More information can be fetched by surfing through the SDN threads and checking in SE37 t-code.
    Hope this helps!
    Regards,
    Saumya

  • Difference between After parameter Form Trigger and before Report Trigger

    hi,
    Can some one tell me difference between After parameter form Trigger and Before parameter trigger.
    Why do we need both these trigger , why can't we use any one of them because after parameter trigger will obviously fire before report trigger and similarly before report trigger will fire after parameter form.
    Thanks
    Ram

    Hi,
    i will make it clear..!
    Actually, we have four type of triggers in reports..!
    Before Parameter -- fires before params are suppied to the calling report..
    After Parameter -- fires after params are suppied to the calling report..
    Before Report -- fires before report is generated..
    After Report. -- fires after report is generated..
    Before Report and After Report triggers are used for formatting the report design..
    like u can specify a report to be displayed based on a condition in the Before
    Report trigger and u can specify some backend updations in the after report trigger
    which fires after report is generated..

  • Difference between ALC Forms ES module and ALC Output ES module

    Hi,
    I would like to know if anyone has implemented just the Adobe Output ES module in any of the projects.
    I am into a project where we are integrating ALC with one of the insurance application for document generation and correspondence generation.
    Confused whether to go with Forms ES module, Output ES module or both?
    Can someone please throw light on these modules? I know there is info on the website but would like to know the advantages and disadvnantages of using either one of the module or both?
    If just Output module is used how will the insurance application interact with ALC?

    Jianghuai,
    The link you have gotten from Ivan provides great information sources.
    Note that those are not four different distributions, meaning linux-based operating systems, all are RHEL -- check out the FAQ, items 1 and 2. I would say main differences between family members are licensing and support offerings or subscriptions. AS, ES for "server" and WS, Desktop for the "desktop".
    "ES is licensed for servers with up to 2 CPUs and 16GB of main memory while AS is licensed for servers of any size and any architecture."
    Oracle products are generally not supported on the desktop variants.

  • Difference between SAP-CRM 2007 UI and previous version UI.

    hi,
    anyone knows the differences difference between SAP-CRM 2007 UI and previous version UI.
    anykind of links or files are helpful.
    regards.
    raman.

    Hi,
    actually quite a late response and I think all the rather technically focuses comments have already been given, incl. the link to a really good slide deck, that explains all the technical architecture details on what exactly we did.
    From an end user perspective some other statements on what we did:
    (1) From an information architecture and visualization perspective we acted based on feedback from our customers in the last years, which led to some restructuring of the screen, e.g. moving the navigation bar from the top area of the screen (horizontal) to the left hand side --> sounds simple but users tend to have problem seeing thing at the top of the screen. We also decided to arrange the information for e.g. an account or an opportunity not in a tab oriented format. Again usability tests in CRM had shown that users often find it hard to see and understand that tabs contain additional information. We now show the details in assignment blocks below the header information in a scrollable format. Vertical scrolling is a behavior of a screen that most users know from their internet experience. Those are just two exampels of what we did in this area
    (2) We also have put a large focus on well known web behaviors, like drag & drop and personalization in general, knowing that on the one hand side, no matter what standard UI we deliver, users tend to adapt it exactly based on their needs and wishes. So you will find really easy to understand personalization options everywhere in the new CRM Web Client UI. To achieve this we used lots of web 2.0 techologies that enable especially these easy interactive capabilitites.
    (3) Finally, and this relates directly to the arguments mentioned in (2) we focused as well on really easy UI configuration. Again, in every customer project user interface changes are made, to adapt the SAP default to the customers needs. here we invested a lot to make the 60-80% most common UI changes done in projects as easy as possible, that even non-technical people can generally do it (like Power users).
    Hope this clarifies some arguments what from the users point of view has been done and what the advantages are.
    When you follow the same link as mentioned by Nadine above, you can also find a presentation UI Concept, which explains all the details rather from a users perspective.
    Best regards and enjoy the new UI ..and every feedback is very much welcome, only with your feedback we can improve the solution even more.
    Ingo

Maybe you are looking for