Query Results and display behaviour

Hi all,
sorry for this strange thread name but i couldn't find a better name.
Problem: In my developed application you can search for user. When the page first loads after login you can still view the results of the last query and of the last session. It should be an empty table. Only if you navigate in the application without loggin out the result should be viewable again if you navigate back to the search page
Please excuse this brief explanation but i am in a rush right now.
Some advice?
Thanks in advance
Markus

Hi Peter,
Thanks for your answer. Because I didn't had much time yesterday I didn't mentioned that I allready tried to clear the session state in a page process. I think the problem is not the session state but that the query is executed when the page is loading. I want to start the query only when a button is pressed or submitted via enter. The first time after login there should be no query result.
I hope it is a littlebit clearer now.
Regards
Markus
Edit:
One thing I forgot. I can't use condition with 'request = expression 1' (expression 1 = P_GO request) because the condition is allready in use for some other application needs.
Message was edited by:
Markus

Similar Messages

  • SQL*Developer 'Query Results' Not Displaying

    I have just recently installed SQL*Developer v3.2.2 and after I run a SQL query the tab 'Query Result' tab is not displayed. I have tried to show this tab and to use the arrow keys at the bottom of the screen to display this screen but I cannot view the query results. I have used v1.5.1 in the past and know that it should display when after running a query and can be resized if required but I cannot seem to show it is v3.2.2

    Hi,
    Yes, I did install to a clean directory. I have even deleted all contents of the directory and re downloaded
    the software again to the same directory but this did not work either it still remembered the original settings.Keep in mind there are two locations that an installation updates:
    1. The SQL Developer installation directory (which you deleted).
    2. The User-Related Information (in your "user home" directory), which is updated by the settings migration
    Perhaps Jim meant you should also remove the user settings for the last SQL Developer version installed and possibly even avoid migrating the old 1.5.x settings when you first start SQL Developer after that. See the following forum thread, probably unrelated to your situation, but containing where to find the location of user-related information in the Help:
    Re: IDE issue - Query Result grid is not selectable or scrollable
    Hope this helps,
    Gary
    SQL Developer Team

  • 2.1EA2: Pinning Query Results and changing Connections [fixed in 2.1.0]

    I am on 2.1EA2 (JDK 1.6.0_16) and been playing with the new SQL Worksheet pin query results functionality. I have found that it is possible to run a query against one connection, pin the results and then change connection and run the same (or a different) query against another connection. I really like this, but found a few problems:
    #1 There doesn't seem to be any way to tell which connection a query result tab was actually run against
    #2 Even if all rows are fetched, if I then disconnect from the first connection it can get quite messy. Sometimes I get an empty connection dialog (I can't remember the exact title and it doesn't reproduce consistently) with only the close window X in the corner. Some times I get prompted to log in with a connection information dialog with no reference to the connection it is connecting to - cancelling only brings up the same dialog again until I successfully connect. Some times I get prompted to log in and while that is still on the screen, SQL Developer logs me back in to the connection (even though I don't save passwords) - I even get a new worksheet for the reconnected connection.
    theFurryOne

    Raghu,
    I am happy with both.
    #1 - I would be happy if the connection name was at the start of the tool-tip style pop-up when hovering over Query Results tab and the Query Result SQL dialog that opens on the SQL button. -K-'s suggestion makes it immediately obvious for the currently selected Query Results tab, without having to move the mouse or click on something.
    Ideally, I would like something similar for the other output tabs (ie Script Output), but they seem to show results for all connections that the worksheet has used, so the same concept may not work.
    #2 - I am used to the grid being cleared when disconnecting from earlier versions - I assumed that this was a bug where SQLD was not checking the connection of the results, just the current connection of the worksheet.
    theFurryOne

  • How to validate VO result and display error message?

    Hi,
    I have created 2 pages:
    Page 1: User to enter employee number and click 'Go' button to search (redirect to Page 2)
    Page 2: To display employee details
    In situation where employee is suspended, employee detail will be display as blank in Page 2.
    At the same time, we would like to display error message which inform user to refer to HR Department for this scenario.
    Need guidance on how to perform the validation and display error message.
    Thanks and Regards,
    Shiau Chin

    Hi Shiau,
    In this case instead of redirecting to next page, throw an exception on the same page.
    If you want redirect it to next page then while redirecting it to next page pass some info that can indicate that employee is suspended, get this value in Process request if it has value then throw exception else query details.
    Regards,
    Reetesh Sharma

  • BEx query : results and exceptions

    Hi people,
    I'm using BI 7.
    I've two questions.
    In a first part i want to know if i can use an exception in order to color all the line (characteristics + key figures) ?
    Because just the key figures are colored with many options I tried.
    In a second part, in the same query, i'm using a hierarchy, some characteristics and a key figure.
    I want to have a line of results for each hierarchy node (node at the top), and too a line of results for a following field.
    Like the following example :
    Hierarchy node level 1:A  field1:2 field2:x k_fig:17
    global result for field1----k_fig:17
    Hierarchy node level 1:A  field1:1 field2:y k_fig:12
    Hierarchy node level 1:A  field1:1 field2:x k_fig:3
    global result for field1----k_fig:15
    global result for hierarchy node level 1-----k_fig:32
    Hierarchy node level 1:B  field1:1 field2:z k_fig:4
    global result for field1----k_fig:4
    global result for hierarchy node level 1-----k_fig:4
    I hope you could help me for the two problems.
    Points will be assigned,
    Cheers,
    Vince
    Edited by: vince ricard on Apr 2, 2008 6:39 PM

    Nobody has a solution in order to highlight the whole row (characteristic and key figures) for a value of a key figure ?
    With WAD or Query Designer, I'm trying to highlight a line with an exception on a key figure but it apparently colors only key figures.
    For example i would have entire colored rows for negative key figure :
    field1:a field2:x field3:e key_figure:1
    field1:b field2:x field3:e key_figure:7
    field1:b field2:y field3:e key_figure:-5
    field1:d field2:z field3:j key_figure:1
    I can use WAD or Query Designer but not Visual Composer or Report Designer...
    Thanks for help.

  • Query results and table contents does not match

    Hi Experts,
    This is regarding a simple select Qyery that is not working.
    POSNR has a conversion exit at the data element level.
    After using the conversion exit, I am putting a select on table PRTE by passing  converted POSNR.
    CODE given below:
    CALL FUNCTION 'CONVERSION_EXIT_ABPSP_OUTPUT'
    EXPORTING
       input         = w_anla-posnr
    IMPORTING
       OUTPUT        = l_posnr
    select single pstrt pende
    from prte into w_prte
    where posnr = l_posnr.
    The Results fetched (two dates PSTRT and PENDE)by the Query Differs from the table entry.
    Kindly guide me in the same..
    Thanks in advance..
    Deepak
    Edited by: Deepak  KM on Sep 25, 2008 10:00 AM

    HI in Fm ,you use same variable in input and output either
    w_anla-posnr or
    i_posnr

  • Query Results and my recent hair loss

    I'm pulling my hair out trying to solve this problem.
    I have a single table of data, tblVisitLog;
    dos - datetime
    location - nvarchar
    ticket
    pat_num
    pat_name
    insurance
    proc_code
    proc_name
    mod_code
    diag_cod
    diag_name
    charge - money
    groupid - int
    First I build a 2-year look back with this query for a chart, and generate a 1 month look back if they haven't selected a DateRange.
    I'm finding that there is something wrong with my query that is produced by the user. The number of visits (count of distinct ticket) and the related charges are wrong. It seems to be off by only a few visits, and my first thought was that it had something to do with the time portion of the datetime data, but all my times are 12:00 AM in the DB.
    I'm a bit new at CFM, and rusty at best on SQL, so if anyone can provide some guidance, I'd surely appreciate it.
    <!--- Get 2 past years data --->
    <cfquery name="ChargesByDosQry"  datasource="myDatabase" username="non" password="non">
    DECLARE @FirstDate datetime
    DECLARE @LastDate datetime
    SET @FirstDate = DATEADD(mm, -1, DATEADD(yyyy, -2, CONVERT(datetime, CONVERT(char(7), getdate(), 120) + '-01')))
    SET @LastDate = CONVERT(datetime, CONVERT(char(7), getdate(), 120) + '-01')
    SELECT month(dos) as MonthNo, year(dos) as YearNo, COUNT(DISTINCT Ticket) AS Visits, SUM(charge) AS Charges FROM tblVisitLog
    WHERE dos >= @FirstDate AND dos < @LastDate AND (groupid = '#GroupID#')
    GROUP BY year(dos),month(dos) ORDER BY YearNo, MonthNo
    </cfquery>
    <cfif IsDefined("DateRange")>
         <!--- Get date range data if the user selects a date range --->
              <cfset sep="#Find("to", Form.DateRange)#">
              <cfset StartDate="#Left(Form.DateRange, sep-1)#">
              <cfset EndDate="#Right(Form.DateRange, sep-2)#">
              <cfquery name="MonthQuery" datasource="myDatabase" username="non" password="non">
                 SELECT *
                 FROM tblVisitLog
                 WHERE dos >= '#StartDate#' AND dos < DATEADD(Day, 1, '#EndDate#') AND (groupid = '#GroupID#')
              </cfquery>
    <cfelse> <!--- Get last months data if no date range is selected --->
              <cfquery name="MonthQuery" datasource="myDatabase" username="non" password="non">
               DECLARE @FirstDayOfMonth datetime
               DECLARE @FirstDayOfLastMonth datetime
               SET @FirstDayOfMonth = CONVERT(datetime, CONVERT(char(7), getdate(), 120) + '-01')
               SET @FirstDayOfLastMonth = dateadd(mm, - 1, CONVERT(datetime, CONVERT(char(7), getdate(), 120) + '-01'))    SELECT *
               FROM tblVisitLog
               WHERE dos >= @FirstDayOfLastMonth AND dos < @FirstDayOfMonth AND (groupid = '#GroupID#')
               </cfquery>
    </cfif>
            <!--- Get census for months data   --->
             <cfquery name="CensusQry" dbtype="Query">
                  SELECT COUNT(DISTINCT ticket) AS CensusTotal
                  FROM MonthQuery
             </cfquery>
            <!--- Get total Charges for months data    --->
            <cfquery name="ChargesQry" dbtype="Query">
              SELECT SUM(charge) AS TotalCharges
              FROM MonthQuery
            </cfquery>
            <!--- Get unique insurance info --->
            <cfquery name="InsuranceQry" dbtype="Query">
              SELECT insurance, COUNT(insurance) AS InsCount, SUM(charge) AS Charges
              FROM MonthQuery
              GROUP BY insurance
            </cfquery>
            <!--- Get distinct location names and count --->
            <cfquery name="SiteQry" dbtype="Query">
            SELECT location, COUNT(location) AS LocCount, SUM(charge) AS Charges
            FROM MonthQuery
            GROUP BY location
            </cfquery>

    Seems like some overengineering taking place in your first query.  Instead of all those declarations and converts, why not a simple.
    TwoYearsAgo = DateAdd("yyyy", -2, now();
    where dos >= <cfqueryparam cfsqltype="cf_sql_date" value = "#TwoYearsAgo#">
    and dos < getdate()
    cfsqltype="cf_sql_date" strips out the time portion for you
    When processing user input, you are using functions that produce strings and then use those strings as dates in your query.  That might be messing you up.
    Why do you think you are off by a couple of visits?  Do you run the same query outside cf and get different answers?

  • Query result not displaying

    hai experts,
    I am working on BI7.0. I am facing a problem in getting the query output, it is giving following message,
    "Exception when calling IWB_HTML_HELP_URL_GET occured"
    i am unable to resolve this. please help me in this matter as it is very urgent.
    relevant answers will be rewarded with good points.
    thanks in advance
    Bheema

    hai,
    Thanks for ur reply, but still i am facing same problem, is it some application software problem like some hotfix patches for MS-Excel, I m working on Windows XP, Any one please help me in this matter.
    thks
    bheema

  • Could query form and result table display at seperate pages

    we are new at html db, there are a few of questions we need to clear before we make decision to use HTML DB to develop our next version of application: (I seperate them at differenct topics).
    * Could query form and query result table display at differenct pages?
    Thanks
    Lei

    yeah, this is surely possible...and quite easy. you'd just set your form page up as you'd like. put a button on that page with a branch to your report page. then have your report query refer to the items you defined on the form page. so if your form page had an item called P1_JOB and P1_DEPTNO you could have your report use those items with a query like...
    select ename, job, sal, empno, deptno
    from emp
    where :P1_JOB = job
    and :P1_DEPTNO = deptno
    ...hope this helps,
    raj

  • Iterate query result - put specific rows in a collection and do output

    JDeveloper 11.1.1.3.0
    Oracle Lite: 10.2.0.1.0
    Browser: IE 7
    Hi,
    please help me in working on following requirement:
    1. Iterate the View Object Query Result
    2. Do some calculation on the Rows, lets say:
    Concatination of column1 and column2 and place it in a non database Attribute "column3"
    3. How to handle/place the non database attribute?
    4. Fetch specific rows from the query result; there should be a comparison, like checking master and detail hierachy struktur:
    Take Column1_ID (Master) check in columns2_ID (Detail), when found detail take this Row and place it in a buffer (Maybe ArrayList, or something like that)
    5. Show the Chace(ArrayList) to user, in a form of View Object, with standard functions like sorting and filtering
    Till now my process of solving the above requiremnts are:
    To Point 1:
    Created a service method in Application Implementation Class
       public void iterateEmp(){
         EmployeesVOImpl vo = getEmployeesVO1();
         while (vo.hasNext()){
          EmployeesVORowImpl row = (EmployeesVORowImpl)vo.next();
          System.out.println(row.getEmployeeId() + " | " + row.getFirstName() + " | " + row.getLastName() + " | " +  row.getEmail());   
          //row.setCalcCol(row.getFirstName() + "," + row.getLastName());
         }To point 2:
    Added an attribute to the View Object, with updateable and Queryable options. Place it on the JSPX Page.
    With setter method, filled with values, for example (non Database Attributes Name is CalcCol):
    Name:
    //see above code
    row.setCalcCol(row.getFirstName() + "," + row.getLastName());When doing so, on initial Call the values will be representated, but when sorting o filtering will be done, the values then will be erased.
    3. Added an Attribute in View Object "Attributes Panel".
    Here the XML Code of the View Object:
    <?xml version="1.0" encoding="windows-1252" ?>
    <!DOCTYPE ViewObject SYSTEM "jbo_03_01.dtd">
    <!---->
    <ViewObject
      xmlns="http://xmlns.oracle.com/bc4j"
      Name="EmployeesVO"
      Version="11.1.1.56.60"
      BindingStyle="OracleName"
      CustomQuery="true"
      ComponentClass="model.EmployeesVOImpl"
      PageIterMode="Full"
      UseGlueCode="false"
      RowClass="model.EmployeesVORowImpl">
      <DesignTime>
        <Attr Name="_codeGenFlag2" Value="Access|Coll|VarAccess"/>
        <Attr Name="_isExpertMode" Value="true"/>
        <Attr Name="_isCodegen" Value="true"/>
      </DesignTime>
      <SQLQuery>
        <![CDATA[select employee_id, first_name, last_name, email from employees]]>
      </SQLQuery>
      <ViewAttribute
        Name="EmployeeId"
        IsUpdateable="false"
        IsPersistent="false"
        IsNotNull="true"
        PrecisionRule="true"
        Precision="6"
        Scale="0"
        Type="oracle.jbo.domain.Number"
        ColumnType="NUMBER"
        AliasName="EMPLOYEE_ID"
        Expression="EMPLOYEE_ID"
        SQLType="NUMERIC">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="22"/>
        </DesignTime>
      </ViewAttribute>
      <ViewAttribute
        Name="FirstName"
        IsUpdateable="false"
        IsPersistent="false"
        PrecisionRule="true"
        Precision="20"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        AliasName="FIRST_NAME"
        Expression="FIRST_NAME"
        SQLType="VARCHAR">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="20"/>
        </DesignTime>
      </ViewAttribute>
      <ViewAttribute
        Name="LastName"
        IsUpdateable="false"
        IsPersistent="false"
        IsNotNull="true"
        PrecisionRule="true"
        Precision="25"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        AliasName="LAST_NAME"
        Expression="LAST_NAME"
        SQLType="VARCHAR">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="25"/>
        </DesignTime>
      </ViewAttribute>
      <ViewAttribute
        Name="Email"
        IsUpdateable="false"
        IsPersistent="false"
        IsNotNull="true"
        PrecisionRule="true"
        Precision="25"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        AliasName="EMAIL"
        Expression="EMAIL"
        SQLType="VARCHAR">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="25"/>
        </DesignTime>
      </ViewAttribute>
      <ViewAttribute
        Name="CalcCol"
        IsSelected="false"
        IsPersistent="false"
        PrecisionRule="true"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        AliasName="VIEW_ATTR"
        SQLType="VARCHAR"/>
      <AttrArray Name="KeyAttributes">
        <Item Value="EmployeeId"/>
      </AttrArray>
    </ViewObject>To Point 4:
    There should be a specific sort order, which i have to code in ADF.
    Just to give an overview:
    Colum1 and Column2 (nothing to do with the emp table) have relationship. Several hierachies are existing in the Query Result.
    For identifying the start point of any of these hierachies, i have to iterate through the Query Result and fetch these start point
    and buffer it in an array or something like that.So in the end i have to get the same query Result but with different Sort Order.
    How to buffer theses Rows (Array?) and show in a View Object?
    Can we use the same view Object for solving that, or should we use another View Object which catches the new Result Set?
    To Point 5:
    The Result should be, as mentioned above, a View Object including new Result Set, which can provide standard behavior (sort, filter)
    I hope the requirement is defined clearly enough, so maybe you can make some suggestions on that.
    Thank you for replies.
    Edited by: user9198377 on 13.07.2011 02:52

    Hi.. You can do this without DB View. Have CalcCol transient attribute in VO. Instead of iterating VO rows and setting CalcCol attr, generate View Row Impl class. Inside getCalcCol(), write your logic. This will be called during each and every request so that transient attr data won't become null during sorting and filtering. If your VO is entity driven, do the same in Entity impl class
    Raghu
    Edited by: Raguraman on Sep 5, 2011 9:48 AM

  • Query result in application server as a .CSV file

    HI
    Can any one tel me how can i place the query result in application server as a .CSV file.
    when am executing WRITEQUERY program it asking query name and displaying result in excel sheet, i don't what is next step to keep file in app server.
    read writequery prog,it is genrated in excel sheet, now i need to send that data to application server path in csv format
    actually i am not able to get the internal table in writequry where the query data is stored.
    please provide me the sample code i can understand. plz.
    plz do favour for me, take this high priority and asap.
    Thanks a lot

    HI,
    Actually i don't want how to create abap querey,
    My requirment is,  WRITEQUERY program  wherenever we r excuting it vil display qurery data in excel format,
    now i don't want any excel format display,  I need that data, should go to application server in .CSV format.
    Actually i am not understanding writequere program, in that which internal table i have to pass application server.
    PLz give me reply anyone
    Help me out .

  • Still some 'Not Assigned' in query result

    Hi,
    In fact, I've built a query on a multiprovider ( 1 Cube + 1 ODS )
    The ODS and the Cube are joined by the material (0material).
    The Cube and the ODS are well filled. Queries on each Infoprovider correctly display the results.
    When I launch my query on the Multiprovider, it seems the "joined" between the 2 infoproviders doesn't work as
    I've still some '#' / 'Not Assigned' value in the query result, and it should give me a result.
    In fact the data from the ODS aren't retrieved, they are replaced by '#'. And I don't why ?
    Please help.
    Thx a lot,
    Erwan

    Yes you are right.
    I made a mistake in my explanation.
    But the problem is that the characteristics from the ODS aren't displayed though the characteristic from the cube are correctly displayed.
    eg.
    In the ODS I've :
    ( Material, ZCHAR )
    'ART01'  '315'
    'ART02'  '412'
    'ART03'  '999'
    In my Cube I've :
    'ART01'  '12,36€'  '59,00€' '30 ST' 
    'ART02'  '12,96€'  '89,00€' '40 ST' 
    In the query(on the multiprovider) result I've :
    ( Material, ZCHAR, other values...)
    'ART01' '#' 'Not assigned' '12,36€'  '59,00€' '30 ST' 

  • Sending Email with Query Result (Table Format)

    Hi,
    I have a query result from ExecuteSQL task e.g.:
    ID Product
    1     Pencil
    2     Crayon
    3     Eraser
    I want to send an email with the above query result and I want it to be in Table format (such as in Microsoft Word with rows and column lines) to allow better readability to the receiver.
    Is it possible in SSIS?
    cherriesh

    It has to be HTML format . Read Tony's article
    http://sqlblogcasts.com/blogs/tonyrogerson/archive/2008/03/28/send-table-or-view-as-embedded-html-lt-table-gt-in-an-email-stored-procedure.aspx
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Multiple Query Result tabs

    Is it possible to have a new Query Result tab opened every time a query is run instead of overwriting the current contents of the window Query Result tab?
    thanks,
    Louis

    Hi Louis,
    Welcome to the forum. Here is a thread with some posts telling you how to control this, both for Query Results and the Object Viewer:
    Re: SQL Developer no longer letting me look at the same table name on 2 servers
    Regards,
    Gary

  • Use APD to get Rank from TopN query result to target for Universe

    Hello,
    I am trying to take a query result set where I am calculating a key figure as Rank and run it through an APD to write to a DSO.
    This is a top 5 query for a dashboard.  I keep getting an MDX failure on the query.
    Any ideas? 
    My ultimate goal is to set up a process to take TopN query results and get them into a target that can be used in a Universe.
    Thanks,
    Chris

    Hello Chris,
    I recommend to post this query to the [Universe Designer and Business Views Designer|Semantic Layer; forum.
    This forum is dedicated to topics related to the universes and business views.
    It is monitored by qualified technicians and you will get a faster response there.
    Also, all Enterprise Information Management queries remain in one place and thus can be easily searched in one place.
    Thanks a lot,
    Falk

Maybe you are looking for