Execute Query by using LOV (List Item)

Hello Everyone,
I did research on how to use List Item with Query but i am still confused since i am a new to the FORM.
I have created a form where user enters
Start Date: -- this field user can just type the date
End Date: -- this field user can just type the date
Violence: -- this is my List Item (Drop down Menu) where user select the code
once they select the parameter i have created "Execute" button and it will give number of violence within the date range. the query is giving me right number or violence but then i need to drill down to details.
so i created a trigger when user double click on the number ( result number) it will pop up another window and display the details
For example:f_name, l_name, ssn etc...
Now, my problem is when i double click on (Text Item) it. Its not giving me the number of records that i have get when i execute at the first by using date range and violance code.
This is the step that i have use:
when user click Execute button the PL/SQL code:
Query_step1(:start_date,:end_date,:violations);
when user double click on Text Item once they have the number this is what i have used code for PL/SQL
begin
     go_block('xxhc_hearings_rpt_v');
     set_block_property('xxhc_hearings_rpt_v',default_where,'hearing_result = '||'''TERMINATE'''||'and violation '||''||:violations||''||'and propose_term_dt between '||''''||:start_date||''''||' and '||''''||:end_date||'''');
     execute_query;
end;
So please anyone can give me little direction that will be a great help.
Thank You.
Keyun

Use the system variable LAST_QUERY to check that you SQL is valid. Assign it to a temp field in the block and check it out.

Similar Messages

  • Use" Copy List Item Extended Activity" to move items in sharepoint list

    Hi
    I use “Copy List Item Extended Activity” in my workflow to move items to special folder in document library.it’s ok. But when I use this action to move items in special folder in list, it dose not work! Why?
    This action only work with document library to move or copy items?
    If not, how I can address special folder of list in “this url” in Copy List Item Extended Activity action?
    Thanx.

    Hi luckstar,
    please have a check on this article:
    http://spdactivities.codeplex.com/wikipage?title=Copy%20List%20Item%20Extended%20Activity&referringTitle=Home
    when copying/moving files in and out of doc. libs, path to a sub folder can be specified as the destination (ex. http://moss/site/doclib/subfolder)
    if should you already done this step, then please have a check the permission from the user account that you use, do the user account
    have the enough permission on that other URL.
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Multiple queries happeing in adf query component using LOV

    Hi,
    I am using a programmatic view object in adf query component and have created List of values for one attribute by adding another programmatic ViewObject as ViewAccessor.
    To populate the lov ViewObject, i have overwritten the method executeQueryForCollection in which i call the webservice to fetch the data. So lov is working fine inside QueryComponent.
    I have overwritten queryListener attribute of query component in my backing bean. In the queryListener method, to populate the result grid, am populating the view object by using createRow and insertRow apis. While doing so, Whenever i do setAttibute for the lov field, the overwrittern method executeQueryForCollection getting invoked. Hence my webService getting invoked. So if i have 10 rows, the webservice is getting invoked 10 times.
    I put sops in the executeQueryForCollection method for the queryMode and getName.
    System.out.println("executeQueryForCollection::::"+this.getQueryMode()); i get as 7
    System.out.println("executeQueryForCollection:::=" +this.getName());    i get as  CurrencySummaryLOVVO_5708_findByVC_   The number 5708 varies for every row.
    Please tell me How to avoid invoking the executeQueryForCollection everytime when i do setAttribute.
    One workaround i have currently is to have one dummry attribute for the lov which can be used for display in grid and actual attribute will be used in Query Component for the lov to function.
    Is there any other better workaround?
    Thanks a lot in Advance.
    Vivek
    Edited by: Vivek Singh on Oct 22, 2009 9:16 PM

    When you set a value to LOV field it tries to validate it from the LOV data. thats why it execute query.
    Try setting Row Level Bind Values = false for the accessor.
    yet, i would suggest to find an other way to populate values of LOV since the executeQueryForCollection will be executed many times when you use that LOV:
    [http://adfbugs.blogspot.com/2009/08/lov-execute-query-many-times.html]

  • CAML Query to Sort SharePoint list items based on Modified date

    hi ,
    can we sort sharePoint list items based on 'Modified' column, the sorting should be done up to milliseconds level.
    currently i am using CAML query as below
    <OrderBy><FieldRef Name='Modified' Type='DateTime' IncludeTimeValue='TRUE' Ascending='False'/></OrderBy>but its not considering milliseconds while sorting.
    Thanks and Regards,
    venkatesh.

    Veda, thanks but I'm not really a hardcore C# coder.
    We found more elegant solution was to create a List View which returns all records that should be deleted, based on our own custom deletion criteria, and then create an very simple SSIS Package in Visual Studio using the
    Sharepoint Connectors for SSIS to delete all Sharepoint List Items returned from that List View. The Sharepoint Destination Connector has a delete operation.
    This worked for us and didn't require any coding.

  • Execute query based on LOV

    Hi,
    Is there a special code to execute query based on selecting one of the options by the user in the LOV???? or it is as simple as the following???
    Set_Block_Property('PAYMENT_VOUCHER',Default_Where,'payment_method=:PAYMENT_VOUCHER.payment_method'); >>>> in the search button trigger(WBP):::
    Execute_Query;
    Note that the payment method field has a LOV...

    Tasneem wrote:
    ok..
    I tried to set this thread as answered but cannot!!!! believe me...None of answer you get as Helpful or Correct. ???
    You should read...Before posting on this forum please read

  • Use "Update List Item" to add multiple Values

    I'm having a List on a SharePoint 2013 Farm.
    Each Entry can be a Member of a different Entry, and also can have multiple members.
    Now i want to Update my List Items with Orchestrator IP "Update List Item" and want to add this members to my List Element. If  i try it with one member, all is fine, but i want to add multiple Members to a List Entry
    i tried to seperate with commas, semicolon, spaces, line breaks.....
    For Example:
    My list Element will repesent my Business Services like Microsoft Exchange, Microsoft Exchange Mailbox, Client, Server......
    No i want to add to the List Entry "Microsoft Exchange" the members "Exchange Mailbox" and "Client"
    Any Ideas?
    Seidl Michael | http://www.techguy.at |
    twitter.com/techguyat | facebook.com/techguyat

    Hi
    what i want to do is this
    when i configure my Activity to update twice, so one Activity vor "PowerClient" and one Activity for "A000001" only the last Entry exist, so it will overright the existing Entry.
    i am not sure how to configure the Activity to add multiple Values at once.
    Seidl Michael | http://www.techguy.at |
    twitter.com/techguyat | facebook.com/techguyat

  • Can't use LOV with item type "check box" in form

    I have created a LOV that I want to use with a form application in 3.0.9. I need to be able to do multiple choices in this LOV (check box style) in the same query (only queries - users won't be able to update this field)
    When I choose Check box as the item type in the form wizard I am not able to choose the LOV. I have to use combo box, popup or radio group for the LOV choices to appear, but then the query can only query for one value in the LOV at a time.
    Is there a solution to this?

    Hi,
    This feature is not supported as of now. You cannot have multi select LOV for a form field and hence a checkbox cannot have a LOV.
    Thanks,
    Sharmila

  • Query Report Using Shuttle List

    Greetings
    I am using Apex Version 4.2
    At first, I had created an item P31_JOB_CATEGORY that was a radio button. Upon selecting a value for the radio button, a report was generated. The query is as follows
    select a, b, c
    from Table A
    where A.Job_Category = :P31_JOB_CATEGORYThis gave me the desired report. Now I want to change the radio button to a shuttle list so multiple values can be selected for the job category and generate a the report accordingly. Instead of one value, I can have 2, 3, or all. How would I alter my query to change this? would I have to use an array. I was thinking some type of "Where....In.." clause.
    Thanks in advance!

    Hi,
    This might help
    http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35125/bldapp_item.htm#sthref912
    Regards,
    Jari
    My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • Problem in using LOV (List of values)

    We created a folder 'Testing FCG' in the Business View Manager.
    1) In this we created a new connection of TCD371 Database ( conn) ,
    2) We created a new Data Foundation(DF)  using the existing connection and we added table 'cdhpmember' in the DF
    3) We created a new business element(BE) using DF and we added the column like Firstname,Groupkey and Gendercode
    4) We created a Business View (BV) using DE and we added DE to the BV
    5) We created a LOV(Memkey) using BV and we selected memberkey field
    6) We tried to implement the memberkey field into crystal report as a dynamic parameter
    7) When we try to run the report we got the error like this
    Promting failed with the following error message: 'Liat of Values failure: failed to get values. [Cause of error:CSELOVDataSource::setReportInstanceCUID The List of Values did not schedule sucessfully and must be re-scheduled.]'.
    Error source : prompt.dll Error code: 0x8004380D
    Could any of you give your input on this error?

    It's happening in Crysatl Report designer tool. Not able to run the report. There's not point deploying it in info view.

  • Use a list item to open a new window with a web address

    Hi
    I would like to create a list entry which opens a new windows and directs that window to a specific website. I have tried creating the list entry and it works except it is redirecting to the web site in the current window.
    at the moment in the list entry options under "Target" I have the following
    Target typ: URL
    URl: http://www.somewhere.com
    Many thanks for your help.

    Yes there is. You will need to write your own javascript function using window.open(), which has lots of parameters that control size, scroll bar, menus etc. Do not be tempted to put window.open directly into the URL because it causes problems.
    Do a Google on javascript window.open and you should get all the info you need.
    Another approach is to do a[b] file > save as in apex and then examine the JS files that are downloaded. You can call any of these javascript functions from apex and a number of them open windows in one form or another.
    I can knock something together for you if you struggle.
    Simon

  • Is it possible to display more elements for non-LOV list item w/o Javabean?

    Since webform combobox, poplist or tlist does not have the partial search functionality like its countpart in MS ACCESS, thus, our user asks for displaying span screen hight of list element for them to avoid the 'endless' scrolling. If LOV's partial search function can port to combbox list, that will reolve the issue.
    But before that, is it possible ? Since I see no property to set that. Thanks.

    Hi,
    no, not as far as I can see it.
    Frank

  • How to create a multi column list item and select these values from a LOV

    Hi all,
    My requirements are:
    1) create an LOV which holds the productno, productname and productprice fields (this is working)
    2) at run time, select one record from LOV and populate the list/grid with this selected record values of productno, productname and productprice fields, so we are showing them on the form in the form of a table/grid (not working)
    3) be able to select multiple records from LOV and be able to populate the list item with multiple records (not working)
    4) have two more columns in the list/grid, for productquatity and total price (not wokring)
    Please help me.
    how can i create this grid or list in oracle
    whats the possible way of acheiving this in oracle

    If you use a list item to display multiple columns then you'll need to use a fixed-width font. You can achieve a similar look with proportional fonts by using a normal block and setting the fields' bevel to 'None'.
    Each column in the LOV has a Return Item property (under Column Mapping Properties). Set this to a :block.item reference for each column to bring the data back into those referenced fields.
    You can't select multiple records from an LOV. For this you will need to create your own form. Check the help for system.mouse_button_modifiers to see how to respond to Ctrl+click and Shift+click.
    To add columns just modify the LOV's record group's query.

  • NOT urgent. LOV that excludes list item that is already selected

    I have a mutiple record block with a LOV item. I want the LOV to display only list items that have not been selected in the other records. The form do not commit after each record, so I cannot use a databse query to exclude the list items that have already been selected.
    The only way I could think of is to go through the data block and build a LOV that excludes the list items that are in the records. This seems like a lot of work for a simple task.
    Is there an easier way in doing this?
    Any help will be appreciated.
    - Clayton.

    Hello Clayton,
    you don't need to commit. You could try to post your records to the database.
    But make sure you do a rollback when the user doesn't want to commit.
    This will release you from the 'hard work' ;-)
    Bernd

  • Need help using list item as to filter hire_date

    hi to all, how can i use the list item as to filter hire_date based on the elements inside the list item
    it goes something like this
    HIRE_DATE----------------LIST_ITEM=JAN
    01-JAN-10
    02-JAN-10
    03-JAN-10
    HIRE_DATE----------------LIST_ITEM=FEB
    01-FEB-10
    02-FEB-10
    03-FEB-10
    the sorting will do after i press the button
    thanks in advance :)

    sir i tried the code and it says: FRM-41003: This function cannot be performed here.
    what im really want to do is that after retrieving the dates from a push button, (remember yesterday where you help me retrieving multiple data).... i have a list_item where it has the elements JAN,FEB,MAR,APR,MAY.
    and then after selecting different month from the list_item the values that ive retrieve will be filter according to the value in the list_item
    it looks something like this:
    stud_id = 1001
    time_in
    01-JAN-10
    02-JAN-10
    03-JAN-10
    01-FEB-10
    02-FEB-10
    03-FEB-10
    after selecting FEB from the list_item it will goes like this
    time_in
    01-FEB-10
    02-FEB-10
    03-FEB-10
    thanks..
    -charles

  • Create List Item using SharePoint 2010 Workflow

    Hello everyone.
    I found in youtube video using SP Employee Onboarding Web Part, idea is quite simple and powerful. But this web part available only in SP 2013, and I use 2010. So I wanted to develop my own version.
    Questions is:
    I have 2 lists Employee OnBoards (list contains data about new employee) and Employee OnBoards Tasks (list contains approval task). Where field Employee Name from Employee OnBoards list is lookup field in Employee OnBoards Tasks list.
    I need emplement next:
    When new Item created in Employee OnBoards list, it should copy Employee Name value to the Name field of the Employee OnBoards Tasks list.
    I hope I explained understandable.
    Thanks.

    Hi Azamat,
    This you can do by using SharePoint Designer workflow.
    Create a sharepoint designer workflow and invoke that when new item will create in the list Employee
    OnBoards.
    then use Copy List item action to copy employee name to employee on board task list.
    Below link will help you how to use copy list item action in a workflow.
    http://blogs.salmanghani.info/copy-item-workflow-using-sharepoint-designer-2010/
    Hope this will help you.
    Regards
    Soni K

Maybe you are looking for