Af:query not fetching records when VC Modified for advance search

Gurus,
I have a view criteria and using it i have a af:query component in my page. When i run the page i see the fields in the search box correctly. However i see another LOV in the search which has options like "Equals","Between", "Does not contain" etc. Though this option is good for 1 search criteria, it is not of any use for another. How can i remove it from the search criteria that i dont want
thnks
Jdev 11.1.1.5.

you would need to add the following to the view criteria item in the view criteria definition for the VO - in order NOT to show any of the operators.
<CompOper
            Name="DepartmentName"
            ToDo="-2"
            Oper="">You would need to do - by open the VO.xml and add this xml snippet - which would ensure that the operators are NOT shown in the query panel.
Sample:
For Departments VO, say there is a view criteria that defined on department id and department name and you do NOT want to show the operators.
After defining the VC, open the VO file - add the above.
<ViewCriteria
Name="DepartmentsVOByDeptIdorDeptName"
ViewObjectName="com.samples.model.DepartmentsVO"
Conjunction="AND">
<Properties>
<CustomProperties>
<Property
Name="displayOperators"
Value="Always"/>
<Property
Name="autoExecute"
Value="false"/>
<Property
Name="allowConjunctionOverride"
Value="true"/>
<Property
Name="showInList"
Value="true"/>
<Property
Name="mode"
Value="Basic"/>
</CustomProperties>
</Properties>
<ViewCriteriaRow
Name="vcrow0"
UpperColumns="1">
<ViewCriteriaItem
Name="DepartmentsVOCriteria_vcrow0_DepartmentId"
ViewAttribute="DepartmentId"
Operator="="
Conjunction="AND"
Required="Optional"/>
<ViewCriteriaItem
Name="DepartmentsVOCriteria_vcrow0_DepartmentName"
ViewAttribute="DepartmentName"
Operator="STARTSWITH"
Conjunction="AND"
Required="Optional">
*<CompOper*
Name="DepartmentName"
ToDo="-2"
Oper="">
*</CompOper>*
</ViewCriteriaItem>
</ViewCriteriaRow>
</ViewCriteria>
Thanks,
Navaneeth

Similar Messages

  • How to notify in case SQL query(JDBC sender adapter) does not fetch records

    hi,
    How can we notify(by alerts or something) in case SQL query(JDBC sender adapter) does not fetch records? In channels logs it only says processing started & finished(no message is created for same).
    Thanks,
    Mayank

    Hi,
    1 ) What is exact audit log message ?
    2) Try fetching the count in SQL statement  if there are any valid records it will give the count.
        May for testing you can use <TEST> in update statement.
    3) Have you used taskTimeout parameter ?
    4) Are multiple channels polling on same table ?
    regards
    Ganga

  • JDBC Sender Adapter - NOT FETCHING RECORDS...

    Hello Experts,
    I know this was answered in a separate thread (JDBC Sender Adapter -  NOT FETCHING RECORDS -PROCESSING STARTED).
    However, my question is, Is there a way that we can be notified if a channel has stopped fetching records?
    or is there a reporting tool that can be used to check/monitor if a channel is not processing any messages?
    Thanks & Kregards,
    allar

    Hi Sreedhar,
    Thanks for your reply.
    These case is not being captured by our alert configuration because its not throwing any error.
    in the communication channel monitoring, we see only something like this..:
    3/16/09 8:25:19 PM Processing started
    3/16/09 8:34:20 PM Processing started
    3/16/09 8:33:55 PM Processing started
    3/16/09 8:32:54 PM Processing started
    but no error is being displayed nor sent.
    Also, there was a case that the channel just stopped fetching, even though everything is active.
    example log:
            3/12/09 8:32:54 PM Processing started
    We're looking for ways on how we can trap these scenarios as early as possible,  get us notified and   perform adapter-lock release when needed.
    Regards,
    allar

  • SQL query to fetch records  from  26 onwards

    Want to know SQL query to fetch records from 26 onwards.

    See the fifth entry on the FAQ page:
    Re: How to attach a java bean in forms6i

  • When images appear for a search in safari, you must continually scroll by finger to keep the images loading. Is this a bug?

    When images appear for a search in safari, you must continually scroll by finger to keep the images loading. Is this a bug?

    Tried that but no change. Details - open up safari and go to yahoo - for the main search at the top, I put in Bears. It shows pages of thumbnail pics. tapping once on a thumbnail gets you that image and then tap again to get added info. At that point, it fills the screen. But in  order to see more info I have to drag a finger upward to reveal more of the details. I then have to continually do that in order to reveal more details for the searched item. It then pops up to the top each time and repeating that process many times in order to see more of the image data. Don't know how to fix this.
    Thanks

  • Query not fetched the record

    Hello,
    Could someone help me please ?
    I have a listing of my sales orders and I want to make changes in my order by opening the form and fetched with that record. When I click on that particular orderno in my listing of order and call the form to display the details, it calls the form but says "Query could not fetch the record". I do not know why ? Please help me with the solution.
    Thanx

    Hello,
    I think you are passing orderno to called form as a parameter. If you are using parameter list check..
    1. If parameter data is getting in form correctly ?
    2. Next, have you changed where clause of other block,so that is will display record with passed orderno ?
    I am expecting more details from you.
    Thanx
    Adi

  • Function Module not extracting records when InfoPackaged is executed

    Hi,
    I'm using a Function module for extracting data. The DataSource is working fine in RSA3 with a selection criteria. But when i schedule the infopackage with the same selections in the data selection tab, Its not getting me any records into BW. In the Details Tab i get the message "Error occurred in the data selection" . I guess there is a problem with the data selection. Pasted below is the code i'm using for extraction. Can anyone please let me know if there is any issue with the code.
    Also how do we pass on the value of I_MAXSIZE into the function module, the remaining parameters get the values from BW. And can anyone please explain me the concept of the "s_counter_datapakid" and when it should be incremented and where it should be located in the code?
    Thanks,
    AM
    Auxiliary Selection criteria structure
      DATA: l_s_select TYPE srsc_s_select.
    Maximum number of lines for DB table
      STATICS: s_s_if TYPE srsc_s_if_simple,
    counter
              s_counter_datapakid LIKE sy-tabix,
    cursor
              s_cursor TYPE cursor.
    Initialization mode (first call by SAPI) or data transfer mode
    (following calls) ?
      IF i_initflag = sbiwa_c_flag_on.
    Initialization: check input parameters
                    buffer input parameters
                    prepare data selection
    Check DataSource validity
        CASE i_dsource.
          WHEN 'XXXXX'.
          WHEN OTHERS.
    this is a typical log call. Please write every error message like this
            log_write 'E'                  "message type
                      'R3'                 "message class
                      '009'                "message number
                      i_dsource   "message variable 1
                      ' '.                 "message variable 2
            RAISE error_passed_to_mess_handler.
        ENDCASE.
        APPEND LINES OF i_t_select TO s_s_if-t_select.
    Fill parameter buffer for data extraction calls
        s_s_if-requnr    = i_requnr.
        s_s_if-dsource = i_dsource.
        s_s_if-maxsize   = i_maxsize.
    Fill field list table for an optimized select statement
    (in case that there is no 1:1 relation between InfoSource fields
    and database table fields this may be far from beeing trivial)
        APPEND LINES OF i_t_fields TO s_s_if-t_fields.
      ELSE.
    Data transfer: First Call      OPEN CURSOR + FETCH
                   Following Calls FETCH only
    First data package -> OPEN CURSOR
        IF s_counter_datapakid = 0.
          g_first = 'X'.
    Fill range tables BW will only pass down simple selection criteria
    of the type SIGN = 'I' and OPTION = 'EQ' or OPTION = 'BT'.
          LOOP AT s_s_if-t_select INTO l_s_select WHERE fieldnm = 'BWLVS'.
            IF l_s_select-low <> '101' AND
               l_s_select-low <> '109'.
              RAISE invalid_movement_type.
            ELSE.
              MOVE-CORRESPONDING l_s_select TO r_im_bwlvs.
              APPEND r_im_bwlvs.
            ENDIF.
          ENDLOOP.
          LOOP AT s_s_if-t_select INTO l_s_select WHERE fieldnm = 'BEGDA'.
            MOVE-CORRESPONDING l_s_select TO r_im_begda.
            r_im_begda-low0(4) = l_s_select-low6(4).
            r_im_begda-low4(2) = l_s_select-low0(2).
            r_im_begda-low6(2) = l_s_select-low3(2).
            APPEND r_im_begda.
          ENDLOOP.
          LOOP AT s_s_if-t_select INTO l_s_select WHERE fieldnm = 'ENDDA'.
            MOVE-CORRESPONDING l_s_select TO r_im_endda.
            r_im_endda-low0(4) = l_s_select-low6(4).
            r_im_endda-low4(2) = l_s_select-low0(2).
            r_im_endda-low6(2) = l_s_select-low3(2).
            APPEND r_im_endda.
          ENDLOOP.
    *Select from table ltak into internal table i_ltak the following fields.
    *Condition: where bwlvs = import bwlvs & endat is >= import begda and
    <= import endda.
          READ TABLE r_im_begda INDEX 1.
          IF sy-subrc NE 0.
            RAISE blank_date_invalid.
          ELSE.
            IF r_im_begda-low IS INITIAL.
              RAISE blank_date_invalid.
            ENDIF.
          ENDIF.
          READ TABLE r_im_endda INDEX 1.
          IF sy-subrc NE 0.
            RAISE blank_date_invalid.
          ELSE.
            IF r_im_endda-low IS INITIAL.
              RAISE blank_date_invalid.
            ENDIF.
          ENDIF.
          IF NOT r_im_endda-low IS INITIAL
            AND r_im_begda-low > r_im_endda-low.
            RAISE invalid_date.
          ENDIF.
          r_endat-sign = 'I'.
          r_endat-option = 'BT'.
          r_endat-low = r_im_begda-low.
          r_endat-high = r_im_endda-low.
          APPEND r_endat.
    *-- Get data from the tables
          PERFORM get_data.
    *-- Populate the extract structure with data
          PERFORM write_data.
    *-- Fill Export able with the extracted data
          e_t_data[] = i_zbipicprd2[].
        ENDIF.                             "First data package ?
        IF g_first EQ 'X'.
          CLEAR g_first.
        ELSE.
    *-- This is important to prevent endless loop.
          RAISE no_more_data.
        ENDIF.
    s_counter_datapakid = s_counter_datapakid + 1.
      ENDIF.              "Initialization mode or data extraction ?
    ENDFUNCTION.

    The load is running successfully but its not fetching any records into BW.
    In the Status tab, Step by Step Analysis the following three steps are red:
    Does selectable data exist in the source system? (Red)
    Data selection successfully started ? (Red)
    Data selection successfully finished ? (Red)
    and the below is the Analysis
    Diagnosis
        The data request was a full update.
        o   In this case, the corresponding table in the source system does not
                contain any data.
        o   System Response
                Info IDoc received with status 8.
                Procedure
    Check the data basis in the source system.
    But i have data in R/3 and i'm able to extract it using RSA3

  • RSBBS jump query not fetching the document no in R3

    Dear Gurus
    With RSBBS transcation jump is given to R3 tansaction FB03. When query is executed and with right click go to option and with display document (FB03) its fetching the document no in DEVELOPMENT server . But when the query is transported to Production its not fetching the document no.
    Kindly do the needful at the earliest
    Regards,
    R.Satish

    Hi
    You said it is not fetching the doc no. Is it failing and showing some error?
    Have all the pre-requisite settings been done via Tcode SICF.
    Regards
    Nageswara

  • Does not fetch records

    The following trigger first fetch the record from paymaster. It will put the paymst_list cursor in loop, if transaction exists in the transaction(tran_list) file for the given period (form variable month) it will update the transaction file by calculating salary (variable sal),Conveyance (variable conv) etc based on number of days absent ( i.e. proportionate ). If transaction does not exists in transaction file it will take the basic from paymaster and calculate the rest.
    Where as the following trigger does not work properly, it inserts the record correctly but, but will not update. I think the cursor tran_list does not fetch any record. Can any one help me Please.
    DECLARE
    CURSOR paymast_list IS SELECT empcode,empname,basic FROM paymast;
    CURSOR tran_list(emp_id varchar2) IS
    SELECT month,absent from tran where empcode = emp_id and month = :month;
    tmp_empcode paymast.empcode%type;
    tmp_basic paymast.basic%type;
    tmp_name paymast.empname%type;
    tmp_month tran.month%type;
    tmp_absent tran.absent%type;
    cal_sal number(12);
    cal_pf number(12);
    cal_conv number(12);
    cal_proftax number(12);
    cal_present number(4);
    BEGIN
    OPEN paymast_list;
    LOOP
    FETCH paymast_list INTO tmp_empcode,tmp_name,tmp_basic;
    OPEN tran_list(tmp_empcode);
    FETCH tran_list INTO tmp_month,tmp_absent;
    IF tran_list%NOTFOUND THEN
    cal_sal := ((tmp_basic/:total_days)*(:total_days - tmp_absent));
    cal_pf := tmp_basic * 10 / 100;
    cal_conv := 800;
    cal_proftax := 200;
    :proce_desc := tmp_name;
    INSERT INTO tran (empcode,month,sal,conv,pf,pt) VALUES
    (tmp_empcode,:month, cal_sal,cal_conv,cal_pf,cal_proftax);
    IF tran_list%FOUND THEN
    ---ELSE
    cal_present := :total_days - tmp_absent;
    cal_sal := tmp_basic/:total_days * cal_present;
    cal_pf := tmp_basic * 10 / 100;
    cal_conv := 800;
    cal_proftax := 200;
    UPDATE tran SET sal = cal_sal,conv = cal_conv,pf = cal_pf
    WHERE empcode = tmp_empcode and month = :month ;
    END IF;
    END IF;
    CLOSE tran_list;
    EXIT WHEN paymast_list%NOTFOUND;
    END LOOP;
    COMMIT;
    CLOSE paymast_list;
    END;
    null

    hi,
    you are checking the tran_list%FOUND within the tran_list%NOTFOUND checking. You have commented the ELSE part. You should comment before tran_list%FOUND and one ENDIF. You should try once.

  • Issue with fetching records when SalesForce Date Fields involved

    Using the Events application of Salesforce I enter a record of data.  The record has a Start Date of Monday and an End Date of Friday for a given week.  Crystal will not fetch/display the record in the report.  If I go back and change the Start Date and the end Date to teh same day, the record will print in Crystal.
    Is there some Date flag within Crystal that I need to toggle allowing a record to print based on date ranges?  I don't understand why a record would print when Start and End Date are the same but will not print when different?

    Here is the code....  I have also noticed that there are three fields - Start Date, End Date and Due Date.  Only when all 3 fields are set to the same value within Salesforce will the record print in Crystal.  I have tried removing any reference to the Date fields in the crystal report but its not helping
    www.salesforce.com
    SELECT Name, Id
    FROM   Account
    EXTERNAL JOIN Account.Id={?www.salesforce.com: Event.AccountId}
    www.salesforce.com
    SELECT ActivityDate, CAT_Type__c, Subject, Location, PO_Number__c, CO_Number__c, Is_Closed__c, Description, Submit_For_Invoice__c, Is_Scheduled__c, Status__c, RecurrenceStartDateTime, RecurrenceEndDateOnly, OwnerId, AccountId
    FROM   Event
    WHERE  (CAT_Type__c='Remote Support - Non Revenue' OR CAT_Type__c='Remote Support - Revenue' OR CAT_Type__c='Travel - Non Revenue' OR CAT_Type__c='Travel - Revenue') AND (Status__c='Closed' OR Status__c='Complete - Not Closed' OR Status__c='Open')
    EXTERNAL JOIN Event.AccountId={?www.salesforce.com: Account.Id} AND Event.OwnerId={?www.salesforce.com: User.Id}
    www.salesforce.com
    SELECT LastName, Id
    FROM   User
    EXTERNAL JOIN User.Id={?www.salesforce.com: Event.OwnerId}

  • Content Query not producing results when using [Me] filter

    Hi
    I'm using a Content Query web part and I'm trying to show the most recent document modified by each site user by applying it across the site collection and using the Filter, Modified By [_Hidden] equals [Me]. However, this doesn't seem to work for any user
    - the web part is always blank. I have tried different combinations such changing equals to contains, and using the Modified By field etc - nothing gives me the correct results. If I instead take the [Me] out and instead use the "people chooser"
    and set to a specific person then I seem to get the results I would expect - however I cannot hard code a given user.
    Does anyone know how to use [Me] correctly?
    Thanks

    Hi  sjb500,
    According to your description, please take steps as below to meet your demand:
    With the page layout open in Design view, double-click the Content Query Web Part.
    In the Content Query Web Part dialog box, click the plus sign (+) next to Query to expand it.
    In the Source section, click Show items from all sites in this site collection.
    In List Type section, in the Show items from this list type, click Document Library.
    In the Content Type section, in the Show items of this content type group list, click Document
    Content Types.
    In the Content Type section, in the Show items of this content type list, click Document.
    In the Additional Filters section, under Show Items When, click Modified By [_Hidden] in
    the first box, click Is Equal To in the second box, and then click [Me].
    In the Content Query Web Part dialog box, click the plus sign (+) next to Presentation to expand it.
    In the Grouping and Sorting section, in the Sort items by list, click Modified
    and Select Show items in descending order.
    Click OK.
    Reference:http://office.microsoft.com/en-us/sharepoint-designer-help/display-data-from-multiple-lists-with-the-content-query-web-part-HA010174134.aspx
    [Me] is a variable that stands for the user who is currently viewing the page that contains the Content Query Web Part in the browser.
    Here is some scenarios using [Me] in Content Query Web Part:
    http://social.technet.microsoft.com/Forums/en-US/346ffbe6-d7ba-467e-b7f5-6d6e289677a1/user-tasks-web-part
    Please inform me freely if you have any questions.
    Thanks

  • JDBC Sender Adapter -  NOT FETCHING RECORDS -PROCESSING STARTED

    Hello all,
    I have set up a JDBC sender adapter .With polling interval as 30 Seconds. Polling is done successfully
    but it does not fetch the records .
    Valid Data is present in the tables.In the Communication Channel Monitoring log shows :
    "Processing Started"
    after each poll interval.
    Adding to this , it was working fine  with the same parameters two days back.
    I have enabled the Driver Trace but didnot get any information from Trace.
    How to resolve this issue?Any help
    Regards
    Ganga Prasad

    Hello maheshwari,
    Valid Data is there & many records are there to be fetched.
    One more thing  Normally in the Communication Channel Monitoring
    for an JDBC adapter even if there are no records to fetch we get the Log information in detail that :
    Polling interval started.
    Processing finished successfully
    Processing started
    Polling interval started.
    Processing finished successfully
    Processing started
    But here in my case am getting only : (polling interval : is 60 Seconds)
            2/5/08 8:29:19 AM           Processing started
         2/5/08 8:28:19 AM           Processing started
         2/4/08 3:34:54 PM           Processing started
         2/4/08 3:33:54 PM           Processing started
    One more observation is that my poll interval is 60 seconds but now it is polling after every 120sec
           2/5/08 11:17:31 AM           Processing started
         2/5/08 11:15:31 AM           Processing started
         2/5/08 11:13:31 AM           Processing started
         2/5/08 11:11:31 AM           Processing started
    I have tried refreshing Cache but no change .
    Regards
    Prasad

  • List Of Value not fetching records

    I have a ViewObject (VO1) with a ListOfValue that points to a ViewObject (VO2), and fetches records from VO2. There is no ViewCriteria added on VO2.
    When testing in the BC tester, the LOV works fine. Both on editing a row in VO1, and when creating a row in VO1.
    Using the LOV in a jspx page, the LOV works fine when editing a row in VO1. But when I'm creating a new row in the jspx page, the LOV doesn't fetch any records. Just an empty list.
    I can't figure out what is wrong, or why it doesn't work. I have created several LOV all working like a charm, but this one is making me tear my hair out.
    Anyone else experienced a similar scenario where a LOV only works upon editing a row?
    Any ideas what can be wrong?
    (I am using JDeveloper 11.1.1.5.0 - Build JDEVADF_11.1.1.5.0_GENERIC_110409.0025.6013 - Running on a Windows 7 64bit)
    Edited by: hogni89 on May 3, 2012 4:01 AM

    The SOC on the jspx page:
    <af:selectOneChoice value="#{row.bindings.IdSosBasGrantType.inputValue}"
    label="#{row.bindings.IdSosBasGrantType.label}"
    required="#{bindings.SosBasCaseGrantPerCaseType.hints.IdSosBasGrantType.mandatory}"
    shortDesc="#{bindings.SosBasCaseGrantPerCaseType.hints.IdSosBasGrantType.tooltip}"
    id="soc12" autoSubmit="true">
    <f:selectItems value="#{row.bindings.IdSosBasGrantType.items}" id="si11"/>
    </af:selectOneChoice>
    The iterator binding:
    <tree IterBinding="SosBasCaseGrantPerCaseTypeIterator" id="SosBasCaseGrantPerCaseType">
    <nodeDefinition DefName="fo.att.alm.sos.model.bas.views.SosBasCaseGrantVO" Name="SosBasCaseGrantPerCaseType0">
    <AttrNames>
    <Item Value="Seq"/>
    <Item Value="IdSosBasGrantType"/>
    <Item Value="IdSosBasGrantVariant"/>
    <Item Value="RuleType"/>
    <Item Value="Status"/>
    <Item Value="IdAplCfgPartyType"/>
    </AttrNames>
    </nodeDefinition>
    </tree>
    The ViewAttribute:
    <ViewAttribute
    Name="IdSosBasGrantType"
    LOVName="LOV_IdSosBasGrantType"
    IsUnique="true"
    IsNotNull="true"
    PrecisionRule="true"
    EntityAttrName="IdSosBasGrantType"
    EntityUsage="SosBasCaseGrantEO"
    AliasName="ID_SOS_BAS_GRANT_TYPE">
    <Properties>
    <SchemaBasedProperties>
    <CONTROLTYPE
    Value="choice"/>
    </SchemaBasedProperties>
    </Properties>
    </ViewAttribute>
    The ListBinding:
    <ListBinding
    Name="LOV_IdSosBasGrantType"
    ListVOName="SosBasGrantTypeUsgLOV"
    ListRangeSize="-1"
    NullValueFlag="none"
    NullValueId="LOV_IdSosBasGrantType_LOVUIHints_NullValueId"
    MRUCount="0">
    <AttrArray Name="AttrNames">
    <Item Value="IdSosBasGrantType"/>
    </AttrArray>
    <AttrArray Name="ListAttrNames">
    <Item Value="GrantTypeId"/>
    </AttrArray>
    <AttrArray Name="ListDisplayAttrNames">
    <Item Value="ObjectTypeDisplayName"/>
    </AttrArray>
    <DisplayCriteria/>
    </ListBinding>
    The ViewAccessor
    <ViewAccessor
    Name="SosBasGrantTypeUsgLOV"
    ViewObjectName="fo.att.alm.sos.model.bas.views.SosBasGrantTypeUsgRO"
    RowLevelBinds="true"/>

  • Query - to fetch records - before particular date

    I need to retrive last analyzed table prior to 28/Nov/2010 - to put into simple wanted to fetch records from a table which are created before the above mentioned date.
    Thanks,
    Steve

    Spade wrote:
    I need to retrive last analyzed table prior to 28/Nov/2010 - to put into simple wanted to fetch records from a table which are created before the above mentioned date.
    Thanks,
    SteveYou want to fetch the rows which were "inserted" before that date?
    Then you either:
    a) Need to have a timestamp column on the row or
    b) Use ORA_ROWSCN pseudo-column if you created your table(s) with row-level dependency tracking or
    c) Install log miner and query the necessary archive logs.
    :p

  • SAP BW Standard DataSources not fetching records after SP12 upgrade on ECC Side

    Hi All,
    Few days back we had a SP 12 on ECC side.
    Since then we are unable to load data through 0WBS_ELEMT_ATTR & 0PROJECT.
    Even in RSA3 we are not able to get any records. After running for few minutes It just returns zero records.
    Our BW system is SAP NetWeaver AS ABAP 7.31.
    ECC system is EHP6 FOR SAP ERP 6.0
    Please help us to solve the issue.
    Kind Regards,
    Hardeep

    Hi Hardeep,
    Please activate the datasources again in RSA5 and then try extracting from RSA3. You may have to regenrate the program for the extracts.
    Refer note:
    1764182 - BW-BCT: No records from PS master DataSources
    This SAP note explains exactly what you have to do after upgrade.
    Please let me know if this do not work.
    Thanks
    Amit

Maybe you are looking for