SQL query does not give me correct search results

I have the code below for a search box with some fields input into the query.
I want to be able to select all and only give results for a match of all the selected results.
I know I have to use AND in the query.
But it is giving me other cars in the results.
So if I choose Alfa Romeo a BMW will be listed in the results too.
$query = array();
if(!empty($_GET[c]))
    $query[] = "cars_listings.CategoryID = '$_GET[c]' ";
if(!empty($_GET[AgentID]))
    $query[] = "cars_listings.AgentID = '$_GET[AgentID]' ";
if(!empty($_GET[search_country]))
    $query[] = "cars_agents.country = '$_GET[search_country]' ";
if(!empty($_GET[search_state]))
    $query[] = "cars_agents.state = '$_GET[search_state]' ";
if(!empty($_GET[search_city]))
    $query[] = "cars_agents.city = '$_GET[search_city]' ";
//if(!empty($_GET[postcode]))
//    $query[] = "cars_agents.postcode = '$_GET[postcode]' ";
if(!empty($_GET[min]))
    $query[] = "cars_listings.price >= '$_GET[min]' ";
if(!empty($_GET[max]))
    $query[] = "cars_listings.price <= '$_GET[max]' ";
if(!empty($_GET[year1]))
    $query[] = "cars_listings.VehicleYear >= '$_GET[year1]' ";
if(!empty($_GET[year2]))
    $query[] = "cars_listings.VehicleYear <= '$_GET[year2]' ";
if(!empty($_GET[before]))
    $MyDate = strtotime("-$_GET[before]");
    $query[] = "cars_listings.DateAdded >= '$MyDate' ";
if(!empty($_GET[cars]))
    $query[] = "cars_listings.VehicleMake <= '$_GET[cars]' ";
if(!empty($query))
    $MyQuery = implode(" and ", $query);
    $MyQuery = " and ".$MyQuery;
//////////        order by
$order = array(); 
if(!empty($_GET[orderby]))
    $MyOrder = explode("|", $_GET[orderby]); 
    while(list(,$ov) = each($MyOrder))
        if($ov == "DateAdded")
            $order[] = " cars_listings.DateAdded desc ";
        if($ov == "Price")
            $order[] = " cars_listings.Price asc ";
        if($ov == "address")
            $order[] = " cars_agents.address asc ";
else
    if(!empty($_GET[p]))
        $order[] = " cars_listings.Price asc ";
    if(!empty($_GET[r]))
        $order[] = " cars_listings.mileage asc ";
    if(!empty($_GET[vehicle]))
        $order[] = " cars_vehicle.VehicleName ";
if(count($order) > '0')
    $MyOrder = implode(", ", $order); 
if(empty($MyOrder))
    $MyOrder = " order by cars_agents.PriorityLevel desc, cars_listings.DateAdded desc";
else
    $MyOrder = " order by cars_agents.PriorityLevel desc, $MyOrder, cars_listings.DateAdded desc";
if(!empty($_GET[Start]))
    $Start = $_GET[Start];
else
    $Start = '0';
$ByPage = '20';
$pcode = $_GET[postcode];
$q1 = "select * from cars_listings, cars_agents, cars_priority, cars_vehicle where cars_listings.AgentID = cars_agents.AgentID and cars_agents.PriorityLevel = cars_priority.PriorityLevel and cars_agents.AccountStatus = 'active' and cars_listings.VehicleMake = cars_vehicle.VehicleID $MyQuery $MyOrder limit $Start, $ByPage "; 
I hope that is clear to you.
This code was given to me by my client to amend with a postcode function.
Problem is the postcode database table always outputs 3miles

SELECT * FROM LFBK
                 INTO TABLE <ITABL>
                 FOR ALL ENTRIES IN IT_TIBAN
                 WHERE BANKN EQ IT_TIBAN-BANKN.
As the Data element of TIBAN-BANKN and LFBK-BANKN is different, i afraid FOR ALL ENTRIES will also not work.. any way try or else compare with other keys like....
SELECT * FROM LFBK
                 INTO TABLE <ITABL>
                 FOR ALL ENTRIES IN IT_TIBAN
                 WHERE BANKS eq IT_TIBAN-BANKS
                 AND       BANKL eq IT_TIBAN-BANKL
                 AND       BKNOT eq IT_TIBAN-BKNOT.
If you list your requirement clear, then can help with create query with all tables...
Thanks & Regards,
SUJI.

Similar Messages

  • SQL Query - The number of columns specified in "SQL Query" does not match t

    I am creating new UDM for tablespace alert, below is my query,however its failing with error
    SQL Query - The number of columns specified in "SQL Query" does not match the value specified in "SQL Query Output"
    I selected Metric type is number
    SQL Query Format : Two columns
    Query:
    SELECT d.tablespace_name,round(((a.bytes - NVL(f.bytes,0))*100/a.maxbytes),2)
    used_pct FROM sys.dba_tablespaces d,(select tablespace_name, sum(bytes) bytes, sum(greatest(maxbytes,bytes)) maxbytes from sys.dba_data_files group by tablespace_name) a,(select tablespace_name, sum(bytes) bytes from sys.dba_free_space group by tablespace_name) f
    WHERE d.tablespace_name = a.tablespace_name(+) AND d.tablespace_name = f.tablespace_name(+)
    AND NOT (d.extent_management = 'LOCAL' AND d.contents = 'TEMPORARY');
    Any clues why i am getting error.

    SQL> SELECT d.tablespace_name,round(((a.bytes - NVL(f.bytes,0))*100/a.maxbytes),2) used_pct
    2 FROM sys.dba_tablespaces d,(select tablespace_name, sum(bytes) bytes, sum(greatest(maxbytes,bytes)) maxbytes from sys.dba_data_files group by tablespace_name) a,(select tablespace_name, sum(bytes) bytes from sys.dba_free_space group by tablespace_name) f
    3 WHERE d.tablespace_name = a.tablespace_name(+) AND d.tablespace_name = f.tablespace_name(+)
    4 AND NOT (d.extent_management = 'LOCAL' AND d.contents = 'TEMPORARY');
    TABLESPACE_NAME USED_PCT
    MGMT_TABLESPACE .82
    SYSAUX 1.52
    UNDOTBS1 .32
    RMAN .02
    CORRUPT_TS 10.63
    USERS 0
    SYSTEM 2.26
    MGMT_ECM_DEPOT_TS .04
    MGMT_AD4J_TS 0

  • Flash chart with dynamic sql query does not display

    Hi,
    In my schema SIVOA I have a lot of tables declared like this :
      CREATE TABLE "SIVOA"."EVV_xxxx"
       (     "CLEF_VAR" NUMBER(4,0),
         "DATE1" DATE,
         "VALEUR" NUMBER(16,8) Only the last part of the name changes "xxxx". For example E009, E019, etc....
    I am making a chart page with report and want the user to select a name of a table and I will display using dynamic sql query, the table report and chart.
    P184_ENAME is a select list returning the last part of the name of the table, fro example 'E009', 'E019', etc.
    P8_CLEF_VAR is an item containing a value. This value is a key retrieved like this :SELECT CLEF_VAR
    FROM SIVOA.SITE_ECHELLE
    WHERE SITE = :P184_ENAMEI built a classic report using a sql dynamic function :DECLARE
    x VARCHAR2 (4000);
    BEGIN
    x := 'SELECT NULL, DATE1, VALEUR FROM SIVOA.EVV_'
    || UPPER(:p184_ename)
    || ' WHERE CLEF_VAR = :p8_clef_var' ;
    RETURN (x);
    END;:p8_clef_var is an itme containing the value '4544'.
    This works perfectly fine !
    When I use this sql fucytion into a flash chart it does not work. I get this message "No data found".
    I do not understand why a the report get a result and not the chart !
    But if i hard-code the number of the CLEF_VAR instead of fetching it from :p8_clef_var I get a nice chart ! Go figure !DECLARE
    x VARCHAR2 (4000);
    BEGIN
    x := 'SELECT NULL, DATE1, VALEUR FROM SIVOA.EVV_'
    || UPPER(:p184_ename)
    || ' WHERE CLEF_VAR = 4544 ' ;
    RETURN (x);
    I cannot stay with the key (CLEF_VAR) hard-coded unformtunately !
    My question is how to get the chart displaying properly ??
    Thank you for your kind answers.
    Christian                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Alex,
    Using your request, with the classic report I get results (data), but I get the same message with the Flash chart : "No data found" ! I don't know how to investigate this. i tried many things but nothing works.
    Christian
    PS I tried this :
    DECLARE
       X   VARCHAR2 (4000);
    BEGIN
    x := 'SELECT NULL, DATE1, ROUND(VALEUR,2) FROM SIVOA.EVV_'
          || UPPER (:p184_ename) ||
          ' WHERE CLEF_VAR = '
          || :p8_clef_var ||
          ' AND DATE1 BETWEEN TO_DATE ('''
    ||:P8_DATE_DEBUT||''', ''DD/MM/YYYY HH24:MI'') AND TO_DATE ('''
    ||:P8_DATE_FIN||''', ''DD/MM/YYYY HH24:MI'')'
    RETURN (X);
    END; But it does not work either. I could find that the SLQ syntax generated is good becaus I put it into an item which display the return done by the pls/sql.
    What is sttange also with the classic report is that if I do click on next or previous to see another rows, I get the message "No data found". If I try to export the report I get an excel file with "No data fouid".
    Does anybody already tried my "need" here ? i find strange thant I should not be the firs one trying to get a report an tables which name would be "dynamic".
    Tahnk you.
    Edited by: Christian from France on Feb 13, 2009 3:05 AM

  • SQL Query does not have all rows in ResultSet

    I am using JDK 1.4.2 and an MS Access 2000 database where I attempt to retrieve data and I get in the ResultSet a maximum of around 280 rows, but there are more that seem to be ignored. In Access I can see them using the same query.
    The Statement.getMaxRows() returns 0 and I do not understand why I do not get the other ones. The query is issued using Statement.executeQuery(String), but using execute() does not make a difference, There is just one ResultSet returned.
    I would appreciate your help.

    I had this same problem once because in my Java code I was connecting to our alpha database and when I was running the query manually I was connecting to our production database.
    The only other thing I can think of that might cause this is if on the 281st row there is something wrong with the row and maybe the SQLException isn't being processed? Can't really say without seeing your code, but if you don't have a printStackTrace() or some indicator when a SQLExcpetion is thrown it could be breaking without your knowing. If those aren't the problems maybe you could post your code.

  • Query does not retrieves the correct values

    Hi,
    pls look into the code.
    clear: wf_etenr,
             vbep.
    To get the Scheduled Loading date and Scheduled Arrival Date.
        SELECT MAX( etenr ) FROM  vbep INTO wf_etenr
                            WHERE vbeln = tvbdpl-vgbel
                            AND   posnr = wl_posnr.
        IF sy-subrc EQ 0.
          clear vbep.
          SELECT SINGLE * FROM vbep         "R02
                 WHERE vbeln = tvbdpl-vgbel "R02
                  AND posnr = tvbdpl-vgpos  "R02
                  AND etenr = wf_etenr.
          IF sy-subrc EQ 0.
    when i see the values at dictionary level using the same wher conditions are mismatching with the query excution result in the program.
    here in the second query ( SELECT SINGLE * ) it giving the wrong results .
    if i compare the results at table level ,some of the field values are missing after excuting the above second query.
    pls can any one give me ur suggestion on this !
    rgds
    sanjay reddy

    Hi,
    are these the same?
    wl_posnr and tvbdpl-vgpos
    try
    SELECT SINGLE * FROM vbep
    WHERE vbeln = tvbdpl-vgbel
    AND posnr = wl_posnr
    AND etenr = wf_etenr.
    IF sy-subrc EQ 0.
    to make somewhat consistent querys.
    regards
    Message was edited by: Zlatko
            Zlatko Stracenski

  • Create Link does not work in a Search Result (SearchResultLayoutSet)

    Hello,
    we changed  in a search iView the "Layout Set for Search Results" to the standard ConsumerExplorer. Because we would like to allow people to "Create Links" from the documents which are shown in the search result. But the Create Link function is showing the following error:
    Item not found
    The item you are attempting to access is not available. Check that the name or link is correct. You might also check whether the associated repository is currently accessible.
    Does any can help and guide which part could responsible for that behaviour?
    Thanks in advance.
    David

    Hi,
    This happens to me now, however It still doesn't work even after the privileges are granted.
    I created a procedure to help create program using dbms_scheduler
    =======================================================
    PROCEDURE create_prg_create_running_dir
    IS
    BEGIN
    SYS.dbms_scheduler.create_program
    (program_name => 'PRG_CREATE_RUNDIR',
    program_type => 'EXECUTABLE',
    program_action => '/export/home/jobmgr/scripts/CREATE_JOB_RUNDIR/create_job_rundir.sh',
    number_of_arguments => 1,
    enabled => FALSE,
    comments => 'Program to create job running directory'
    SYS.dbms_scheduler.define_metadata_argument
    (program_name => 'PRG_CREATE_RUNDIR',
    metadata_attribute => 'JOB_NAME',
    argument_position => 1,
    argument_name => 'JOB_NAME'
    SYS.dbms_scheduler.ENABLE ('PRG_CREATE_RUNDIR');
    END create_prg_create_running_dir;
    ========================================================
    I tried calling it from sqlplus
    SQL> exec ops$jobmgr.job_scheduler.create_job_program('test_import','executable','/export/home/jobmgr/scripts/IMP_FIRS_DATA/imp_firs_data.sh',2)
    BEGIN ops$jobmgr.job_scheduler.create_job_program('test_import','executable','/export/home/jobmgr/scripts/IMP_FIRS_DATA/imp_firs_data.sh',2); END;
    ERROR at line 1:
    ORA-27486: insufficient privileges
    ORA-06512: at "SYS.DBMS_ISCHED", line 5
    ORA-06512: at "SYS.DBMS_SCHEDULER", line 30
    ORA-06512: at "OPS$JOBMGR.JOB_SCHEDULER", line 61
    ORA-06512: at line 1
    If I create the program directly (calling DBMS_SCHEDULER directly), the program can be created.
    I have granted EXECUTE privilege on DBMS_SCHEDULER & DBMS_ISCHED to this user too.
    Hope anyone can help.
    Thanks

  • Map does not show in google search results page

    Normally when I searched for a type of business on google, a small map showed up beside the search results. Unfortunately, I did something weird on my mousepad that froze my computer and after reboot, the map box was gone. And even more unfortunately, I use the silly sync function so now, none of my comps are getting the map.
    Is there a way to get the little mappy box back, or am I forever doomed?

    I'm not sure how this could be a Firefox setting, but I would try the "usual" first:
    When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    (1) Bypass Firefox's Cache
    Use Ctrl+Shift+r to reload the page fresh from the server.
    Alternately, you also can clear Firefox's cache completely using:
    "3-bar" menu button (or Tools menu) > Options > Advanced
    On the Network mini-tab > Cached Web Content : "Clear Now"
    If you have a large hard drive, this might take a few minutes.
    (2) Remove the site's cookies (save any pending work first). While viewing a page on the site, try either:
    * right-click and choose View Page Info > Security > "View Cookies"
    * Alt+t (open the classic Tools menu) > Page Info > Security > "View Cookies"
    In the dialog that opens, you can remove the site's cookies individually.
    Then try reloading the page. Does that help?
    In case one of your extensions is involved, could you test the page in Firefox's Safe Mode? That's a standard diagnostic tool to deactivate extensions and some advanced features of Firefox. More info: [[Troubleshoot Firefox issues using Safe Mode]].
    You can restart Firefox in Safe Mode using either:
    * "3-bar" menu button > "?" button > Restart with Add-ons Disabled
    * Help menu > Restart with Add-ons Disabled
    Not all add-ons are disabled: Flash and other plugins still run
    After Firefox shuts down, a small dialog should appear. Click "Start in Safe Mode" (''not'' Reset).
    Any difference? If that helps, it could be that you selected to block that element in one of your add-ons.

  • Sql statement does not give require output

    Hi Guys,
    i have created two tables, tables data and required output are given below: any help would be highly appretiated:
    {code}
    create table tt (keyword varchar2(250))
    insert into tt ('Smith')
    insert into tt ('Walker')
    create table a (name_a varchar2(250), name_b varchar2(250))
    insert into a ('Smith Walker','Walker Smith');
    insert into a ('Adam Webster','Steve David');
    insert into a ('SmiGavin Walker'  ,'James Smith');
    insert into a ('Trever Michael ','Andy Walker');
    insert into a ('James Walton' ','Smith Thomas');
    select * from a, tt b where instr(a.name_a, b.keyword)=0 and instr(a.name_b,b.keyword)>0
    Trever Michael Andy Walker Walker
    Gavin Walker James Smith Smith
    James Walton Smith Thomas Smith
    Required output
    I want output where all name_a column should not have keyword, on the other hand, all name_b should have keyword
    Trever Michael Andy Walker Walker
    James Walton Smith Thomas Smith
    *************"Gavin Walker James Smith Smith" this one should not come as it has Walker in NAme_a which is forbidden, please can anyone help how to fix this issue.
    {/code}
    Best Regards,
    Zaid

    Try this
    SELECT KEYWORD, NAME_A, NAME_B FROM TT, A
    WHERE INSTR (NAME_A, KEYWORD) =0 AND INSTR (NAME_B, KEYWORD)>0
    AND NAME_A NOT IN (SELECT NAME_A FROM TT, A
    WHERE INSTR (NAME_A, KEYWORD) >0)

  • Ad hoc query does not contain a list

    Hi,
    We created an infoset using table join (T5U13, PA0001 and T5UEE). But as we run transaction PAAH and choose a query assigned to the new infoset, we are getting a pop up screen that says "Query does not contain a list". The button hitlist does not appear in the screen and when we try to search we get the prompt "No data was selected".
    Thanks in advance!

    Hi,
    I am getting the similar error.waht i have done is as follows.may I know the resolution.
    After creating the Adhoc query using the join table functionality the resulting adhoc query does not results any out put.
    What I have done is :
    1.Created a user group through SQ03
    2.Attched user to My user group
    3.Created an infoset using join table functionality(SQ02).
    4.Saved and generated the infoset
    5.Added the user group to the infoset and than run the ADHOC query.
    The table I have used to join is all PA table (For test pupose)
    Though the purpose of the custom infoset is to join PA,OM and E rec infotypes, for testing purpose I have joined only PA infotypes.
    Result:The adhoc query does not gives any out put instead it says no data could be read.
    Could you please tell what else I need to do so that the custom infosets gives an out put.
    Will greatly appreciate your help.
    Thanks and best regards
    Rajeev

  • SQL Join does not join

    Hi everyone,
    I have a little issue with an SQL statement. I have found a problem to my query and it's just because I want to understand that I post...
    i would like to transform this query to the same using ANSI syntax (outer joins) but I don't find the solution.
    SELECT pa.user_id,
           pa.nom_complet_np,
           pa.organisation,
           pa.directory,
           group_2.i_supergroups_names
    FROM pa pa
         INNER JOIN user user ON (pa.user_id = user.user_name)
         LEFT OUTER JOIN group group_r_1 ON (group_r_1.users_names = user.user_name)
         INNER JOIN group group_2 ON (group_2.object_id = group_r_1.object_id
                                    AND group_2.i_supergroups_names = 'profile')
    WHERE directory = 'MAIN'
      AND user.usertate = 0
    ORDER BY user_id;The previous query does not return the correct value.
    SELECT pa.user_id,
           pa.nom_complet_np,
           pa.organisation,
           pa.directory,
           (SELECT DISTINCT gr2.i_supergroups_names as group_name
    FROM group gr1
         INNER JOIN group gr2 ON (gr2.object_id = gr1.object_id
                                                AND gr2.i_supergroups_names is not NULL)
    WHERE gr1.users_names = user.user_name
      AND gr2.i_supergroups_names = 'profile')     
    FROM hermcomp_ref.pa pa
         INNER JOIN user user ON (pa.user_id = user.user_name)
    WHERE DG = 'MAIN'
      AND user.usertate = 0
    ORDER BY user_id;But this one, does. But it's the same one using a SELECT instead of a JOIN... So I'm a little confused and I don't understand! Can anyone tell me where I'm wrong?
    Thanks,

    user13117585 wrote:
    Thanks Sven, but can you tell me what is the differences between the 2 queries I did. They should be the same. No?No.
    Didn't you notice that yourself?
    user13117585 wrote:
    The previous query does not return the correct value.
    But this one, does. That proves they are not equivalent.
    The query that produces the results you want does the self-join on group first, then the results are incoprporated into the other results as a scalar sub-query in the SELECT clause. Nothing that goes on in the SELECT clause can change the number of rows in the result set.
    The query that does not get the results you want does an outer-join with one copy of group, and then does an inner join with the other copy of group. An inner join can change the number of rows in the result set.
    Whether you do the inner join or the outer join first does matter, just like it matters whether you do the addition or the multiplication first in
    2 + 1 * 0 
    By the way, GROUP and USER and not good names for tables. Make up names that are not already keywords in Oracle, or built-in functions. Names that end in "_tbl" (e.g., group_tbl and user_tbl) should be okay.

  • Sys.sql_Module does not give full defination of store procedure

    I want to get a defination of a store procedure by using sys.sql_Module
    Beflow is the query i use 
    SELECT  
    @spTxt =ISNULL(smsp.definition, ssmsp.definition)) 
    FROM sys.all_objects AS sp
    LEFT OUTER JOIN sys.sql_modules AS smsp ON smsp.object_id = sp.object_id
    LEFT OUTER JOIN sys.system_sql_modules AS ssmsp ON ssmsp.object_id = sp.object_id
    WHERE (sp.type = N'P' OR sp.type = N'RF' OR sp.type='PC')and(sp.name=@SpName 
    and SCHEMA_NAME(sp.schema_id)=@SchemaName)
    @SchemaName = SCHEMA 
    ANd @SpName = Store procedure Name.
    This query does not give me complete store procedure.
    Is there any other table i need to join and I can get full defination?
    Thank you.
    BM19.23

    You're confusing what's being stored vs what's being displayed. The full proc is being stored in the definition column. It's just that SSMS won't display the full content of the cell.
    The following is a proc that we use to overcome this situation... (I have no clue who the original author is)
    CREATE PROCEDURE [dbo].[LongPrint]
    @String NVARCHAR(MAX)
    AS
    Example:
    exec LongPrint @string =
    'This String
    Exists to test
    the system.'
    /* This procedure is designed to overcome the limitation
    in the SQL print command that causes it to truncate strings
    longer than 8000 characters (4000 for nvarchar).
    It will print the text passed to it in substrings smaller than 4000
    characters. If there are carriage returns (CRs) or new lines (NLs in the text),
    it will break up the substrings at the carriage returns and the
    printed version will exactly reflect the string passed.
    If there are insufficient line breaks in the text, it will
    print it out in blocks of 4000 characters with an extra carriage
    return at that point.
    If it is passed a null value, it will do virtually nothing.
    NOTE: This is substantially slower than a simple print, so should only be used
    when actually needed.
    DECLARE @CurrentEnd BIGINT, /* track the length of the next substring */
    @offset TINYINT /*tracks the amount of offset needed */
    SET @string = REPLACE( REPLACE(@string, CHAR(13) + CHAR(10), CHAR(10)) , CHAR(13), CHAR(10))
    WHILE LEN(@String) > 1
    BEGIN
    IF CHARINDEX(CHAR(10), @String) BETWEEN 1 AND 4000
    BEGIN
    SET @CurrentEnd = CHARINDEX(CHAR(10), @String) -1
    SET @offset = 2
    END
    ELSE
    BEGIN
    SET @CurrentEnd = 4000
    SET @offset = 1
    END
    PRINT SUBSTRING(@String, 1, @CurrentEnd)
    SET @string = SUBSTRING(@String, @CurrentEnd+@offset, 1073741822)
    END /*End While loop*/
    GO
    To use the proc, you'd do something like this...
    DECLARE @sql VARCHAR(MAX)
    SELECT @sql = sm.definition FROM sys.sql_modules sm WHERE sm.object_id = 892230629
    EXEC dbo.LongPrint @sql
    HTH,
    Jason
    Jason Long

  • Navigation Link not working from save search result

    Hello Experts,
    We have a requirement in our application which is created from scratch, I have implemenetd save search  and its working fine, we have some navigation links in result. these links does not work from save search results moreover it works with normal search.
    Can anybody help me out to achieve it.
    Thanks in advance,
    Madhu Omer

    Hi Madhu,
    If you want to trigger cross-component navigation to an overview page, then the following conditions should be satisfied:
    1. Your last outbound plug calls method fire_outbound_plug( ).
    2. The collection passed in fire_outbound_plug( ) contains two entities - a navigation descriptor as the first entity and a root object of the object you want to navigate to as the second entity.
    In your case, is condition 2 satisfied? You can create a navigation descriptor by calling the following method passing its two mandatory importing parameters as indicated:
    CL_CRM_UI_DESCRIPTOR_OBJ_SRV=>CREATE_UI_OBJECT_BASED(
        EXPORTING
            IV_UI_OBJECT_TYPE = * UI object type of object to which you want to navigate *
            IV_UI_OBJECT_ACTION = 'B'            "for Display
    If you keep debugging the standard outbound plugs, then you will see that at some location, SAP will surely be inserting this navigation descriptor object in the collection as first object in the collection when calling fire_outbound_plug( ).
    If you still can't trigger navigation, please mention the BOL objects you are working with, the component you have created and where you have used it.
    Regards,
    Shiromani

  • Enterprise Manager does not give correct results

    I am using version 9.0.2.0.1 core edition(oc4j & web-cache).
    My application consists of business components, java beans and jsp. It is running fine.
    Oracle enterprise manager is not giving correct results of memory/cpu usage by oc4j_home and bc4j.
    Some times it does not gives result, when i refresh it twice or thrice it shows results.
    But results are not correct. On each refresh it gives different results.
    Then it is very hard to find which resuslt is correct.
    waiting for response,
    Tahir.

    i have been using 9iAS versions 102*, 90200, 90201, and now using 903.
    As stated above, some times the results for oc4j_home is displayed.
    But the memory/cpu usage for bc4j is never shown.
    Also, its radio-button is always disabled. while its status is "running".
    On BC4J page, it also shows results of application modules created. But these results are usually wrong.
    How bc4j will be enabled, and how its memory results can be get ???
    Tahir.

  • TS1702 When I try to update an App I am getting my old email address (which no longer works) and when I put in its password it says password or username is wrong. but it does not give me an option to put in my new user name. How can I correct this.

    When I try to update an App I am getting my old email address (which no longer works) and when I put in its password it says password or username is wrong. but it does not give me an option to put in my new user name. How can I correct this.

    What you are getting is the AppleID (AppleID can be an email adress) used at the time of the purchase of this app.  It is an identifiant allowing Apple to link your purchase to your account.
    If you want to manage associated email, you can go at https://appleid.apple.com but the AppleID could never be modified.  
    I do not know if in your case, it is just that you no longer use your old email address or that you actually a 2 AppleID.  In any case, you will have to remember the password related to the account used for your purchase.  If you don't, just use the link above to try to retreive your password.

  • NonLinearFitWithMaxIters does not give correct results for phase

    Dear all,
    I am trying to fit a sin cuve with NonLinearFitWithMaxIters function of labwindows, but the results given by this function are dispersed a lot (the function does not give same results).
    In fact, I have two waveforms signals v and i (of 104 points), and I  find the phase between the two signals with NonLinearFitWithMaxIters.
    The two singals v and i are  measured with an osciloscope.
    I use the following fit functions :
    v=p1*sin(wt+p2) ;
    i=p3*sin(wt+p4) ;
    I use the NonLinearFitWithMaxIters function to fit the data and to have the parameters  p1, p2, p3, p4. Then, the phase is claculated as follow phase=p4-p3.
    The problem is that the phase calculted between the two signals (v and i) is different for each run for the same conditions.
    In fact, for a same condition, I measure different times the signals v and i, and I calculate the phase p4-p3, using NonLinearFitWithMaxIters. The goal is to calculate a mean of phases for the same condition. For example, there are cases where the phase=-5 degree, and other cases when phase=12 degree.
    For ten measures of v and i, the phase calculated is different. I get a big dispersion between the phases.
    I would like to know please why I have a big difference in phases calculated with the same condition?whern using NonLinearFitWithMaxIters.
    I read that this function does not give all time the correct results, is there a way to know when the results are not corrects and when they are correct ?
    And is there any solution to find accuratly the phase between the two waveforms.
    Thank you for your precious answer.

    The pseudocode which I am using is :
    v_err=NonLinearFitWithMaxIters(array_x,array_v,v_y_fit,1252,100,sinus,v_coef,2,&v_mean_squareError);
    The fit function is
    double sinus(double x, double a[],int noef){
        return (a[0]*sin((w*x)+a[1]));
     I use the same inital coeficient of v_coef for each run :     
    v_coef[0]=0.03;
    v_coef[1]=0.2;
    These coeficient are choosen arbitrary.
    In this case, the number of points of the data is 1252 (the data of array_v).
    The number of iterations is 100.
    For the array_x, the distance between adjacents values of the array is dt=0.4*1e-9(difference between array_x[i] anv array_x[i+1]=dt=0.4*1e-9 ).
    for (i=0;i<1252;i++){
    array_x[i]=i*(0.4*1e-9);
    The means square error returnned by the function when it is complished is  small, of the order of 0,001.
    I read the help
    « From the help:
    You must pass a pointer to the nonlinear function f(x,a) along with a set of initial guess coefficients a. NonLinearFitWithMaxIters does not always give the correct answer. The correct output sometimes depends on the initial choice of a. It is very important to verify the final result.
    That means that the function cannot be used, as it does not give correct results. How
    can we check if the results are good or not ? in my case.
    I think that in my case, the function does not give correct results, but how can I check if the results are good, or not ? The mean square error is small.

Maybe you are looking for