How to setWhereClauseParams based upon request parms

How can I setWhereClauseParams on a ViewObject using values passed as request parms in the url when a JSF jsp page is first called?
I tried doing the setWhereClauseParams in the jsp page's backing bean constructor, and the code seems to run fine, but I guess the where clause is getting overridden somewhere later in the processing of the jsf page.

If you're looking for a programmatic solution, I'd recommend checking out example #60 on my blog...
http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html#60
If you want to do this declaratively, there are two approaches:
(1) If you are taking advantage of the new 10.1.3 feature that view objects offer to supported named bind variables, you can use the corresponding, new built-in action called "ExecuteWithParams" instead of the previous "Execute" action to execute the query and set the named bind variables at the same time. By using an "invokeAction" in your executables section of the page definition, with an appropriate "Refresh" and "RefreshCondition" property set, you can have this built-in action trigger when the page is first loaded in a declarative manner.
(2) You can encapsulate the bind variable setting in an application module custom method which accepts as many parameters as you need to pass in from the client to do the job. Then, publish the method on the client interface of the applictaion module. Then create a method action in the bindings section of the page definition to wrap the details of invoking the custom method. Finally, use an invokeAction in the executable section as mentioned above to cause this method action binding to be invoked when you want it to be.
All of these things are covered in depth in the about-to-be released "ADF Developer's Guide for Forms/4GL" developers. We're hoping it will go live this week on OTN as the final edits are done now. If you are in a pinch and need a pre-release copy, send me an email at [email protected] and page in the URL to this forum thread so I remember the context. Thanks.

Similar Messages

  • How to see the data records for a dso based upon the request id?

    Hi all,
    How to see the data records based upon the request id on the dso.
    I need to see the data for a dso based upon the request id 444493 loaded from another dso through repair full update.
    thanks

    Hi,
    Step 1: select your request from DSO request tb
    Step 2: Select your DSO just above your contents/requests/reconstruction tabs
    Step 3: Click contents(Spectacles symbol) in the top area of your screen
    Step 4: Slect the required fields
    Regards,
    Suman

  • Filter based upon results of another request

    How do I troubleshoot a Filter based upon results of another request issue?
    I have a report that lists every account that purchased a product in May.
    I have a report that lists every account that purchased a product between Jan - April.
    I have a report that lists every account that purchased a product in May and also between Jan-apr. The problem is it's returning Account Names that are valid for May but not for Jan-apr and I dont' know why. It filters some but not others, interestingly enough it seems to split it down the middle.
    Report A = 222 customers
    Report B = 673
    Report C = 111???
    When I compare A to B manually I get 94.
    Any ideas as to how I troubleshoot this?

    Worked it out ;-D

  • How to update the price based upon PGI date

    Hi
            I have issue of updation of the Prices and freight based on PGI date in the billing we are using the two billing types for the excsies and tax invoice creation .And in the copy control pricing type is maintained Aas "C" for the billing types with single delivery but someHow MRP in the excise billing has been picked from the condition record thats validity is ended and in Tax invoice it picks up the correct prices
    Both pricing condition types has pricing type "B" from Billing date and in the freight we have maintained as "A" SRD
    But for the some cases specially for the excise related part that is based upon the MRP we are facing this issue
    Pricing date is some how coming from sales document
    Please find the problem details in the attachment

    Hi,
    if you see two condition tabs snap shots you can understand clearly because that two invoices has been created in two different dates and you have maintained the pricing date C-billing date ( KOMK-FKDAT).Due to this,the price of ZMRP is coming differently.After you creation of first invoice then you would have changed ZMRP amount.Now while you are creating second invoice ,system has taken new price of ZMRP in billing level.
    Note:While creating second invoice, PGI date might have come into billing level but someone would be changed billing date manually at header level of billing document.Please check that one also.
    Kindly let me know if you need further help on this.
    Thanks,
    Naren

  • How to go about changing settings based upon logged in user

    Hi all,
    I'm wondering if anyone has any thoughts on how one would go about changing a property on a node based upon the logged in user.
    For example, say you have a path property at /apps/myComponent/settings.path=/content/dam/genericfolder that for an author have the value of /apps/myComponent/settings.path=/content/dam/sandbox, and for an approver have the value of /apps/myComponent/settings.path=/content/dam/approvalsandbox

    Hi Ove,
    Thanks for the tip on the user role. I had thought about taking that approach, however, leveraging the user role and properties associated with it would be the correct approach if writing custom components. What I am looking for is a way to take existing components, and essentially use them in context of the user.
    For example, say if you are trying to give a sub group of users access to a subset of the DAM directory, and you don't particularly wish to hack around the existing WCM DAM component, there is a setting in the tree navigator (/libs/wcm/core/content/damadmin/treeRoot) that lets you specify where the root of the tree is. (There are more settings to work with, but this is just one used to illustrate.)
    If you can change the property based upon the user, that gives you the functionality without altering code.
    I would like to know if this is possible, if this is an inherently bad practice, if so why, and whether there may be another alternative out there which lets you avoid having to alter the code of an existing component.
    Thanks again for answering.

  • How can I use an application based upon the Siebel High Interactive Framework?

    I ma trying to use an application that is based upon the Siebel High Interactive Framework and can't open the software on my MacBook Pro. IS there any solution to this problem?

    My vote is pick up VirtualBox and download Windows 8 Preview, both are free, and see how that goes. Even though a deveoper preview and has IE10 this is my primary OS and browser. Only issue is getting it into a VM but that should be okay, and at least you can decide from there.
    Windows 7 64-bit SP1 Home Premium System Builder ($95) otherwise and then Parallels 7 or run natively.
    http://news.softpedia.com/news/Download-and-Install-Windows-8-on-a-Mac-with-Para llels-7-0-15050-231759.shtml
    http://msdn.microsoft.com/en-us/windows/apps/br229516
    VirtualBox 4.1.4 is includes a Windows 8 Template for guests.
    http://www.virtualbox.org/wiki/Downloads
    http://skear.hubpages.com/hub/Installing-Windows-8-Developers-Preview-Edition-on -VirtualBox

  • How to create an album based upon date of importing photos

    today i imported over 2000 photos with dates accross three years time frame. how can i create an album based upon the date i imported the photos? or can i.
    if not, how would i add these pix to a specific album without going through the whole library some 15,000 photos strong now?

    Check out the Film Rolls ->
    View -> Film Rolls
    Each import creates a Roll, so the most recent one's should be easy to find. Select all and make an album from them.
    Regards
    TD

  • How to make a value changed based upon values selected in dropdown menu

    Hi,
    I am making my first Dreamweaver website using Dreamweaver CS6 on a windows 8 PC.
    I am trying to make a website where the user selects different criteria; in this example an ipod's model, condition and size from three seperate dropdown selections (similar to www.itrado.co.uk) and then based upon these selections a value for their ipod is shown. However i cannot work out how to display a value which remains on the same page and changes based upon the values which have been selected from the dropdown boxes. I was planning on creating a database and then creating a simple code which retrieves the value from the database which corresponds to the three selected values, however i am not sure how to go about doing this.
    Any help would be greatly appreciated.
    Many Thanks,
    Henry

    You need scripts for this. Try this jQuery tutorial
    http://anthonygthomas.com/2010/03/14/display-form-fields-based-on-selection-using-jquery/
    Nancy O.

  • How to update Activity based upon Campaign

    Hi !
    We have created some Campaigns with campaignelements.
    These elements has been "connected" to different BP - based upon roles.
    The corresponding Activities, then has to be updated (Fields: Dates and Status)
    Our task is to create a routine/program, where, based upon Campaign, the corresponding Activities can be updated.
    Could any one please tell us how to do this?
    Regards
    Torben

    Hi Torben,
    I hope I've got your problem correct. I  think that a update of the Activities created during the campaign is not possible. You can try to search for the activities created by the campaign throu the link.
    If I've got you wrong could you describe your business case in more detail please.
    Regards
    Gregor

  • How to change Dashboard Tabs based upon the login?

    Hi All,
    I have a requirement that, based upon the user login the dashboard tabs should change! not sure how to do this? any help is greatly appreciated.
    Regards
    B
    Edited by: Bees on Jul 27, 2010 2:37 AM

    B,
    I mean assuming you have a security model, users are in groups etc. And you have one group allowed to access tab 1, and you build tab2 for another group....
    The dashboard page properties screen, has a padlock icon against page, here you can set up the presentation catalogue privs for the dashboard page, assign users / groups read access, prohibit access as you see fit.
    To get to the page properties, edit the dashboard itself, on the top row of icons against the page dropdown list is our friend, the pointy finger, hit this to get to the page properties screen, you can change order, rename pages and in this case, set security per page.
    For discussions on the security model, RPD groups & Web cat groups - best we start another thread !! have a search on the forum first though, its been covered many times :-)
    Cheers,
    Alastair

  • How do you get different check box fields to display based upon a list box selection?

    I am a relative newbie with LifeCycle Designer ES using v.8.2.1 to create interactive forms to replace manual hardcopies.  I am working on a form that has a few pull down list boxes.  I want different check box fields to display based upon the selection of an item from one of the pull down lists.
    Any guidance on the best way to accomplish this would be greatly appreciated.

    Hi,
    Here is a sample with script in the change event of the dropdown. You may want to clear previous checkbox choices once the subform is hidden.
    It is good to group objects in a subform - that way you only need to hide the subform and not each object in turn.
    Good luck,
    Niall

  • Enhancement request : Create object based upon existing

    It would be useful to be able to create a new object based upon the definition of an existing one (e.g. a GUI version of CTAS).
    (for those browsing the forums who haven't come accross the acronym before, CTAS = "Create table as select")

    Hmmm .... ok, you got me !
    But, I would say .... can we have a tickbox there for "metadata only" i.e. CTAS table with no data.

  • Derive values based upon user input

    Hello,
    I recieved a request for a report.
    When a user runs the report they are to be prompted for a fiscal year/period.
    Based on the fiscal year/period that the user provides I have the following columns  (in bold below are 2 examples that may make the description more clear).
    1. Revenue for the Fiscal year Prior to the fiscal year of the user input value
    2. Revenue for the Fiscal year/Period prior to the input Fiscal year/period
    3. Revenue for the Year to date accumulation up to the prior fiscal year/period that the user input
    4. Revenue for the Year to date accumulation up to the prior fiscal year (fiscal year rolls back first) and prior period (for period 01, it then rolls back the fiscal year 1 more year) that the user input
    Example 1: If the user ran the query and they provided the value 05/2007, then the values that need to be obtained would be:
    1. Revenue for 2006
    2. Revenue for 04/2007
    3. Revenue for 01/2007 to 04/2007
    4. Revenue for 01/2006 to 04/2006
    Example 2: If the user ran the query and they provided the value 01/2008, then the values that need to be obtained would be:
    1. Revenue for 2007
    2. Revenue for 12/2007
    3. Revenue for 01/2007 to 12/2007
    4. Revenue for 01/2006 to 12/2006
    Please help me with determining how to obtain the user input value, and then how to derive the time periods for the columns based upon that value.
    Thanks,
    Nick
    (points available)
    Edited by: Nick Bertz on Mar 13, 2008 9:43 AM

    Hello,
    See my example.. I am reading the value from Keydate Variable
    WHEN ZVND01
            READ TABLE i_t_var_range INTO w_var_range WITH KEY vnam = 'Keydate'.
             IF SY-SUBRC = 0.
              CLEAR l_s_range.
              l_date = w_var_range-low.
              concatenate l_date(6) '01' into l_first_date.
              CALL FUNCTION 'SLS_MISC_GET_LAST_DAY_OF_MONTH'
              EXPORTING
                        day_in = l_date
              IMPORTING
                         last_day_of_month = l_last_date
              EXCEPTIONS
                        day_in_not_valid = 1
                        OTHERS = 2.
              IF sy-subrc EQ 0.
                l_s_range-low  = l_first_date.
                l_s_range-high = l_last_date.
                l_s_range-sign = k_sign_inclusive.
                l_s_range-opt  = k_option_between.
                APPEND l_s_range TO e_t_range.
              ENDIF.
    Hope this example helps..

  • Variant Pricing _ each item price based upon main item.

    Hello,
    I request your help for inputs on Variant Pricing functionality for given scenario.
    Each material will have different price based upon different brand / main item.
    For example u2013 Inbuilt-Sat Nav will be priced different in Toyota Prius & Toyota Avensis.
    Let say, we have 2 products (Toyota Prius & Toyota Avensis.) each having 10 different options/ items which are charged separately.
    Hence would like to know how we can set up the price in variant based upon Main item & sub item.
    Toyota Prius / Customer / InBuilt Sat Nav = £1200
    Toyota Avensis / Customer / InBuilt Sat Nav = £1500
    Your inputs are appreciated.
    Thanks & best regards

    If you want to maintain seprate prices for each variants go to VK11 use the following condition types -
    VA00: this condition type expresses an absolute amount.
    u2013 VA01: this condition type expresses the surcharge/discount as a percentage
    above are based on sales org, material and variants combination, so as you said you requirement is based on customer will charge different prices, so create new condition table with customer combination and add in to same access sequesnce and condtion type.
    For more details check the below link:
    http://www.sap-img.com/sap-sd/steps-for-sd-variant-configuration.htm
    regards
    Satish

  • Data Selection for report based upon a 'Prompt Value'

    I want to report information in my report based upon a 'user input prompt value'
    for example:
    'Enter Shareholder Selection - A-Active, I-Inactive, B-Both Active and Inactive'
    if the user enters 'A', the report selects only active shareholders
    if the user enters 'I', the report selects only inactive shareholders
    if the user enters 'B' the report selects all shareholders, active and inactive
    the field in the database that this based upon is their total share value.
    if this field is greater than zero (>0) they are considerd 'active'
    if this field is equal to zero (=0) they are considered 'inactive'.
    I have tried creating some type of filter,  but am not having any luck. 
    I saw a few examples within the forums that I have tried without any luck....unfortunately most of the examples I've seen are base one only two choices.
    I'm sure I need to create some type of 'independant varible' but am not sure how to do that either.
    Any suggestions would be appreciated.
    Thanks.

    Hi Daryl,
    I Tried this unsuccessfully in DESKI . We can't Eliminate Rows having Empty Measure Values or Measure with 0 as values using Table Level Filter as FIlter can't FIlter rows based on Prompt value selection dynamically. Filters filter rows at a time and not based on 3 condition as Active, Inactive and Both. thus filters are of no use.
    I Tried this in WEBI, and it is working perfectly you donu2019t have to create any Object in Universe, you can do it using function UserResponse() at report level.
    Hence if you are comfortable using WEBI for Generating this report then Follow the steps.
    1. Create Report With Name and Shares Object. It will display all Shareholder Names and No.of shares they hold.
    2. Use Status Object in Query filter, use condition as u201CEqual Tou201D and Select prompt. It  contains Active, Inactive and Both as values.
    3. Report will Display all Shareholder names and No. of  shares  like 45, 789, 0, 4562 where 0 is inactive Shareholder and all other are active shareholder.
    4. Create Variable using Formula.
    =If(UserResponse("Enter Status:")="Active" And [Shares]>0;[Shares];If(UserResponse("Enter Status:")="Inactive" And [Shares]<=0;[Shares];If(UserResponse("Enter Status:")="Both";[Shares])))
    5. Remove Shares Object from the report and Put Variable created with Names of Shareholders.
    6. Select Table-> Properties-> Display-> Uncheck the Option u201CShow Rows with Empty Measure Valuesu201D
    7. Report will display Value correctly as per your Prompt value selection.
    I Hope this Helpsu2026
    Thanksu2026
    Pratik

Maybe you are looking for

  • Need help, I seem to have lost 2 months of photos

    Hello, I own PSE5 on Windows XP. I just recently purchased a hard drive and was in the process of moving my photos to it. I was following the article on Adobe's website entitled Move files to another disk using Folder Location Arrangement in Photosho

  • Using case statement in merge when matched

    Hi, I want to use case statement in the when matched clause of merge statement to ensure that I update only those fields that are undated. create table TEST1 NAME1 VARCHAR2(25), NAME2 VARCHAR2(25), ID NUMBER not null create table TEST2 ID NUMBER not

  • Implementing archive functionality

    Hi all , I want to implement archive functionality. I am using appfuse and maven.(spring framework) In my aplication when user logs in he is provided with list of records from one table. He should be able to archive as many recrds as he want. I am no

  • Apps Update - Error Code 80048823

    My Nokia 820 failed to update a Skype App, and produced an error code of 80048823. I've checked the SD card for errors and found none.  I've put a brand new SD Card formatted on a Win 7 desktop PC into my phone but I'm still getting the same error. A

  • WAR archive and paths

    Hi all, I have my application working and running as exploded format. When I packaged it into a WAR and included it with an EAR along with the EJB JARS I have, it stopped running ! I have the application correctly deployed. I can access some files un