Edit query results in SQL worksheet

I can't edit query results in SQL worksheet, I not found any options to "ON" this. I use SQL Developer 2.1.1.64.

You can't edit results in the worksheet. It's an accepted feature request with no scheduled date. In the mean time you have to go to the table or write an update statement.

Similar Messages

  • Odac 12.1 Oracle.VsDevTools Cannot edit query results

    I am running Windows 7 64-bit and Visual Studio 2010
    I installed ODTwithODAC121010 successfully.
    In Visual Studios Help>About it shows: Oracle Developer Tools for Visual Studio 12.1.0.1.0
    Issue:
    After updating to odac 12.1 I can no longer edit/insert data into the query builder results pane.
    I have relied on this capability in previous versions of odac.
    Has this feature been removed?
    I've connected to multiple Oracle 11g dbs with same results below:
    I get the following response when I attempt to edit a field in the query results pane:
    No row was updated.
    The data in row 10 was not committed.
    Error Source: .
    Error Message: Unable to parse expression.
    Correct the errors and retry or press ESC to cancel the change(s).
    I get the following response when I paste a new row in the query results pane:
    No row was updated.
    The data in row 11 was not committed.
    Error Source: Oracle.VsDevTools.10.0.
    Error Message: Object reference not set to an instance of an object.
    Correct the errors and retry or press ESC to cancel the change(s).
    Is there something I need to do to enable this?
    What are some good alternatives if this capability is no longer supported?

    Hi George Pertea,
    Thanks for the reply.
    I am in the edit query mode and also the query tool bar is enabled.
    But my "view sql" button is disabled,I cannot click on it.
    I am logged in as "Admin" , so what is the problem.
    I was able to do that in XI R2 before.
    Please help me!
    Thanks

  • How to Edit Query Result of Simple Search Panel

    Hi Experts,
    I have a question regarding Simple Search Panel.
    I have made a VO that select a table which contained data like this:
    Name | Skill | Status
    Rooney | Shooting | A
    Rooney | Heading | B
    Rooney | Running | B
    Van Persie | Shooting | A
    Van Persie | Heading | C
    Van Persie | Running | B
    I successfully made a Simple Search Panel which showing all the data from that VO.
    But my requirement is I want to make a grouping of that search result, so it should be showing like this:
    Name | Skill | Status
    Rooney | Shooting | A
    - - - - - - | Heading | B
    - - - - - - | Running | B
    Van Persie | Shooting | A
    - - - - - - | Heading | C
    - - - - - - | Running | B
    As long as it is the same person with the row above, it won't print the name of the person.
    Could you please give me a pointer about this?
    Thanks in advance,
    Rheza
    Edited by: 893922 on Feb 19, 2013 3:13 AM

    Hi expert,
    My requirement is I need to override the query result from Simple Search Panel.
    The data that I provided above was just for simplify the example.
    One of my requirement is:
    - when the "status" column value is 0, I need to override this and show an image of image0.jpg
    - when the "status" column value is 1, I need to override this and show an image of image1.jpg
    Any pointers about this will be so much appreciated.
    Thanks,
    Rheza
    Edited by: 893922 on Mar 6, 2013 7:26 PM

  • Save results from sql worksheet

    Hi,
    Is there a way to save the results of worksheet to a tab-delimited text file which has the first line the column names?
    I can copy and paste the results now, but they don't include the column names.
    On text file save would be best to include all rows, not only the ones displayed in worksheet.
    Thanks

    Should performance improve if the second statement uses bind variables for the date columns? Probably, it depends on how expense the parse is compared to the rest of teh query execution. But generally, if you've got hundreds of statements which are the same except for literals then it's usually a good idea to replace them with a statement that uses bind variables. The best thing to do is benchmark it.
    Cheers, APC

  • Output query results in sql transaction code

    Is the code below valid? I think the comma at the end of my
    variable is
    throwing an error when I run this.
    Eg. "#trim(product)#",
    I need the comma however to make the statement correct except
    after the last
    record. Is there any way around that?
    <cfquery name="calc" datasource="#client.dsn#"
    username="#client.username#"
    password="#client.password#">
    SELECT *
    FROM order_history
    WHERE OrderNo='823719'
    AND product in (<cfoutput
    query="backorders">"#trim(product)#",</cfoutput>)
    AND invoice < #max.invoice#
    ORDER BY invoice desc
    </cfquery>

    since it looks like you are dealing with strings, take a look
    at the
    QuotedValueList function.
    hth
    Tim Carley
    www.recfusion.com
    [email protected]

  • Query Results pl sql

    I am having a problem in appending various coulomns into one row. I will explain by illustrating an example.
    Suppose I have a table "student." I have used dots to separate the fields.
    St_id st_no st_sub
    1........1........A
    2........1........B
    3........1........C
    4........2........A
    5........2........B
    I want the output in the following format -
    St_id....st_no... st_sub
    1,2,3.......1........A,B,C
    4,5.........2........A,B
    Please let me know how to code this and obtain an output for the same. Thanks a bunch in advance

    Found this on:
    http://asktom.oracle.com/pls/asktom/f?p=100:11:2119231749211243::::P11_QUESTION_ID:229614022562
    So: You'd need to create your own function here.
    I must say that I'm truly amazed how Tom solved this almost 10 years ago (never stumbled on that link before), incredible!
    Only change I made to the original example from Tom was having your separator as a parameter (default value = a comma) instead of hardcoding it.
    So: this should work for you on 8i:
    MHO%xe> create table student as ( --generating sample data:
      2  select 1 st_id, 1 st_no, 'A' st_sub from dual union all
      3  select 2,1,'B' from dual union all
      4  select 3,1,'C' from dual union all
      5  select 4,2,'A' from dual union all
      6  select 5,2,'B' from dual
      7  );
    Tabel is aangemaakt.
    MHO%xe> select * from student
      2  /
         ST_ID ST_NO ST_SUB
             1     1 A
             2     1 B
             3     1 C
             4     2 A
             5     2 B
    MHO%xe> create or replace
      2  function transpose( p_key_name in varchar2,
      3                      p_key_val  in varchar2,
      4                      p_other_col_name in varchar2,
      5                      p_tname     in varchar2,
      6                      p_sep       in varchar2 default ','
      7                    )
      8  return varchar2
      9  as
    10      type rc is ref cursor;
    11      l_str    varchar2(4000);
    12      l_sep    varchar2(1) := p_sep;
    13      l_val    varchar2(4000);
    14 
    15      l_cur    rc;
    16  begin
    17 
    18      open l_cur for 'select '||p_other_col_name||'
    19                        from '|| p_tname || '
    20                       where ' || p_key_name || ' = :x '
    21                  using p_key_val;
    22 
    23      loop
    24          fetch l_cur into l_val;
    25          exit when l_cur%notfound;
    26          l_str := l_str || l_sep || l_val;
    27      end loop;
    28      close l_cur;
    29 
    30      return ltrim(l_str, l_sep);
    31  end;
    32  /
    Functie is aangemaakt.
    MHO%xe> select transpose( 'st_no', st_no, 'st_id', 'student' ) st_id
      2  ,      t.st_no
      3  ,      transpose( 'st_no', st_no, 'st_sub', 'student' ) st_sub
      4  from   student t
      5  group by t.st_no;
    ST_ID           ST_NO ST_SUB
    1,2,3               1 A,B,C
    4,5                 2 A,BBut you really should want to upgrade to a more recent (and supported) DB-version, it will make your life better ;)

  • 1.5.4. "Toggle SQL Worksheet Area" not found

    In 1.5.3. there was a very usefull shortcut for "Toggle SQL Worksheet Area", but I couldn't find it in Version 1.5.4. Is there a similar functionality now in 1.5.4?
    Enhancement request: Maybe this "Toggle" functionality can be improved to "Toggle and set the focus/cursor into the result set/SQL Worksheet". Then it's more easy just to work with the keyboard. Otherwise you have to mouse-click into the result set to navigate through the data. Would be nice to have this feature.
    Edited by: user4125343 on 04.03.2009 10:25

    I have personally found it useful when the feature is debated here before being put on the feature request page. Or at least having the url of the OTN forum discussion in the feature request.
    Now a tip. If you can assign SqlHistory's default accelerator F8 to something else, to free up F8 in worksheet...while in ScriptOutput tab hit F8 and the use up/down arrow keys to move the splitpane.
    This comes from Java Swing, is not perfect for worksheet, nonetheless nice to know.
    -Raghu

  • Problem viewing Query Result

    Hi- I occasionally come across this issue when I run any query in SQL Developer (3.0.02), the Query Result tab shows a bold red Exclamation point and the display grid is blank. It says "Fetched 50 rows in 0.235 seconds" but the results aren't displayed. There is nothing wrong with the queries so it seems like some type of display problem but I can't figure out how to fix it. Like I said, it doesn't happen all the time and I run the same saved queries so I know it's not a problem with the actual queries. Has anyone ever seen or heard of this before?

    Hi,
    Sounds like you are using an early adopter version of 3.0. Why not upgrade to the latest production release (3.1.07.42)?
    A similar situation is described in this old thread:
    Re: Randomly not getting query results
    Regards,
    SQL Developer Team

  • SSMS Addin - How To Access Query Results Grid

    Hi,
    I want to access Query Result Grid(Results) in SSMS addin but I did'nt found anything.
    How can I access Query Result Grid, Rows, Columns and Cells when I executed a script?
    Thanks.

    SQL Server Management Studio currently supports query execution results to be displayed in three different ways: Results to Grid,
    Results to Text and Results to File.
    By default SQL Server Management Studio is configured to display query results in
    Grid format.  If you want to change the default to some other option follow these steps.
    1. In SQL Server Management Studio, under Tools menu, click
    Options as shown in the snippet below.
    2. In the Options dialog box, expand Query Results, expand
    SQL Server and then select General as shown in the snippet below. In the right side panel choose one of the three options shown below in the
    Default Destination for results drop down list and click
    OK to save the changes as shown in the snippet below. The changes will go into effect once you open a New Query window.
    Query Result Options for Results to Text
    In this format you have the option to display the results in a different tab as well as setting different output options.
    In the Options dialog box, expand Query Results, expand
    SQL Server and then select Results to Text tab as shown in the snippet below. In the right side panel first select the checkbox for
    Display results in a separate tab and then select the checkbox for
    Switch to results tab after the query executes and then click
    OK. If you would like to also display the column name in the result set then choose the option Include column headers in the result set
    as shown in the snippet below.
    The options you can use in the Text format are:
    Output format: - In the above snippet you could see that by default the output is displayed as columns aligned. Some of the other options that are available are Comma Delimited,
    Tab Delimited, Space Delimited and Custom Delimited. If you choose the Custom Delimited option in the Output format drop down list then you need to specify a character of your choice for the delimiter in the
    Custom delimiter text box.
    Include column headers when copying or saving the results: - If this option is selected, then whenever the results are copied to clipboard or it is saved to a file the column headers are also copied along with the results.
    Include the query in the result set: - The text of the query is displayed as part of query output under the messages tab.
    Scroll as results are received: - If this option is selected, then the display focuses on the most recently returned records at the end of the results set.
    Right align numeric values: - If this option is selected, then numeric values will be aligned to the right of the column.
    Discard results after query executes: - If this option is selected, then the query results are not displayed in the reviewing pane.
    Display results in a separate tab: - If this option is selected, then the result set after query execution will be displayed in a new tab instead of at the bottom of the query window.
    Switch to results tab after the query executes: - If this option is selected, then after the query execution the screen focus will be set to the results tab.
    Maximum number of characters displayed in each column: - This sets the maximum characters to display for any one column.  So if you have a column that is 500 characters this will only show the first 256 if you keep the default setting.
    Ref link :http://www.mssqltips.com/sqlservertip/2346/different-options-for-query-results-in-sql-server-management-studio/
    Ahsan Kabir Please remember to click Mark as Answer and Vote as Helpful on posts that help you. This can be beneficial to other community members reading the thread. http://www.aktechforum.blogspot.com/

  • SQL Query results to CSV as two worksheets

    I'm trying to take two SQL queries and get the results sent to a CSV file on two worksheets.  Looking online I have not found a solid example of using the Excel ComObject to create a CSV then add a new worksheet to the CSV file.  An added bonus
    would be using AutoFit on the columns so everything is easily visible.
    Code found online got me the following script which does work, however it takes 12 minutes to pipe the SQL queries to Excel.  Switching to a CSV and the script executes in 5 seconds.
    This is another nice to have, I was also looking the best way to look at the results (only 1 column) and depending on the length of the data, insert what Excel would call a Cell thereby shifting cells RIGHT but so far have found no clear examples of how
    to accomplish that.  My guess would be modifying my SQL queries but I've posted a question on StackOverFlow and someone suggested modifying the PowerShell Table created from the SQL dataset.Tables
    Code:
    $docs = "C:\Scripts\Output.xlsx"
    If (Test-Path $docs){Remove-Item $docs}
    Function Run-Query {
    param([string[]]$queries,[string[]]$sheetnames)
    ## - Create an Excel Application instance:
    $xlsObj = New-Object -ComObject Excel.Application
    $xlsObj.DisplayAlerts = $false
    $xlsWb = $xlsobj.Workbooks.Add(1)
    ## - Create new Workbook and Sheet (Visible = 1 / 0 not visible)
    $xlsObj.Visible = 0
    $time = 2
    for ($i = 0; $i -lt $queries.Count; $i++){
    $percentage = $i / $time
    $remaining = New-TimeSpan -Seconds ($time - $i)
    $message = "{0:p0} complete" -f $percentage, $remaining
    Write-Progress -Activity "Creating Daily Reboot Spreadsheet" -status $message -PercentComplete ($percentage * 100)
    $query = $queries[$i]
    $sheetname = $sheetnames[$i]
    $xlsSh = $xlsWb.Worksheets.Add([System.Reflection.Missing]::Value, $xlsWb.Worksheets.Item($xlsWb.Worksheets.Count))
    $xlsSh.Name = $sheetname
    ### SQL query results sent to Excel
    $SQLServer = 'ServerName'
    $Database = 'DataBase'
    ## - Connect to SQL Server using non-SMO class 'System.Data':
    $SqlConnection = New-Object System.Data.SqlClient.SqlConnection
    $SqlConnection.ConnectionString = "Server = $SQLServer; Database = $Database; Integrated Security = True"
    $SqlCmd = New-Object System.Data.SqlClient.SqlCommand
    $SqlCmd.CommandText = $query
    $SqlCmd.Connection = $SqlConnection
    ## - Extract and build the SQL data object '$Table2':
    $SqlAdapter = New-Object System.Data.SqlClient.SqlDataAdapter
    $SqlAdapter.SelectCommand = $SqlCmd
    $DataSet = New-Object System.Data.DataSet
    $SqlAdapter.Fill($DataSet)
    $SqlConnection.Close()
    $Table1 = $DataSet.Tables["Table"]
    ## - Build the Excel column heading:
    [Array] $getColumnNames = $Table1.Columns | SELECT ColumnName
    ## - Build column header:
    [Int] $RowHeader = 1
    foreach ($ColH in $getColumnNames)
    $xlsSh.Cells.item(1, $RowHeader).font.bold = $true
    $xlsSh.Cells.item(1, $RowHeader) = $ColH.ColumnName
    $RowHeader++
    ## - Adding the data start in row 2 column 1:
    [Int] $rowData = 2
    [Int] $colData = 1
    foreach ($rec in $Table1.Rows)
    foreach ($Coln in $getColumnNames)
    ## - Next line convert cell to be text only:
    $xlsSh.Cells.NumberFormat = "@"
    ## - Populating columns:
    $xlsSh.Cells.Item($rowData, $colData) = $rec.$($Coln.ColumnName).ToString()
    $ColData++
    $rowData++; $ColData = 1
    ## - Adjusting columns in the Excel sheet:
    $xlsRng = $xlsSH.usedRange
    [void] $xlsRng.EntireColumn.AutoFit()
    }#End For loop.
    #Delete unwanted Sheet1.
    $xlsWb.Sheets.Item('Sheet1').Delete()
    #Set Monday to Active Sheet upon opening Workbook.
    $xlsWb.Sheets.Item('Cert').Activate()
    ## ---------- Saving file and Terminating Excel Application ---------- ##
    $xlsFile = "C:\Scripts\Output.xlsx"
    [void] $xlsObj.ActiveWorkbook.SaveAs($xlsFile)
    $xlsObj.Quit()
    ## - End of Script - ##
    start-sleep 2
    While ([System.Runtime.Interopservices.Marshal]::ReleaseComObject($xlsRng)) {'cleanup xlsRng'}
    While ([System.Runtime.Interopservices.Marshal]::ReleaseComObject($xlsSh)) {'cleanup xlsSh'}
    While ([System.Runtime.Interopservices.Marshal]::ReleaseComObject($xlsWb)) {'cleanup xlsWb'}
    While ([System.Runtime.Interopservices.Marshal]::ReleaseComObject($xlsObj)) {'cleanup xlsObj'}
    [gc]::collect() | Out-Null
    [gc]::WaitForPendingFinalizers() | Out-Null
    }#End Function
    $queries = @()
    $queries += "Query1"
    $queries += "Query2"
    $sheetnames = @('Cert','Prod')
    Run-Query -queries $queries -sheetnames $sheetnames

    Here's what I ended up with that accomplishes my goal.  I learned it's not possible to create a CSV with two worksheets since Excel will allow this but the CSV cannot be saved with the second worksheet.  Instead, I create two CSV files then merge
    them into one Excel workbook, one CSV per worksheet.  In my case, this happens in 5 seconds.  There is one thing which must be mentioned, I've seen this script fail the first time it is run but will successfully run the second time.
    Also note, after much trial and error, this code correctly cleans up the Excel ComObject!!  -Thanks go to JRV.
    $docs = "D:\Scripts\MonthlyReboots.xlsx"
    IF (Test-Path $docs){Remove-Item $docs}
    $csv1 = "D:\Scripts\Cert.csv"
    IF (Test-Path $csv1){Remove-Item $csv1}
    $csv2 = "D:\Scripts\Prod.csv"
    IF (Test-Path $csv2){Remove-Item $csv2}
    Function Run-Query {
    param([string[]]$queries,[string[]]$sheetnames,[string[]]$filenames)
    Begin{
    $SQLServer = 'ServerName'
    $Database = 'DataBase'
    $SqlConnection = New-Object System.Data.SqlClient.SqlConnection
    $SqlConnection.ConnectionString = "Server = $SQLServer; Database = $Database; Integrated Security = True"
    $Excel = New-Object -ComObject Excel.Application
    $Excel.Visible = 0
    $dest = $Excel.Workbooks.Add(1)
    }#End Begin
    Process{
    For($i = 0; $i -lt $queries.Count; $i++){
    $SqlCmd = New-Object System.Data.SqlClient.SqlCommand
    $SqlCmd.CommandText = $queries[$i]
    $SqlCmd.Connection = $SqlConnection
    $SqlAdapter = New-Object System.Data.SqlClient.SqlDataAdapter
    $SqlAdapter.SelectCommand = $SqlCmd
    $DataSet = New-Object System.Data.DataSet
    $SqlAdapter.Fill($DataSet)
    $DataSet.Tables[0] | Export-Csv -NoTypeInformation -Path "D:\Scripts\$($sheetnames[$i]).csv" -Force
    }#end for loop.
    }#End Process
    End{
    $SqlConnection.Close()
    #Excel magic test!
    For($i = 0; $i -lt $queries.Count; $i++){
    $loopy = (Resolve-Path -Path $filenames[$i]).ProviderPath
    $Book = $Excel.Workbooks.Open($loopy)
    $next = $Excel.workbooks.Open($loopy)
    $next.ActiveSheet.Move($dest.ActiveSheet)
    $xlsRng = $dest.ActiveSheet.UsedRange
    $xlsRng.EntireColumn.AutoFit() | Out-Null
    $dest.sheets.item('Sheet1').Delete()
    $xlsFile = "D:\Scripts\MonthlyReboots.xlsx"
    [void] $Excel.ActiveWorkbook.SaveAs($xlsFile)
    $Excel.Quit()
    While ([System.Runtime.Interopservices.Marshal]::ReleaseComObject($xlsRng)) {'cleanup xlsRng'}
    While ([System.Runtime.Interopservices.Marshal]::ReleaseComObject($next)) {'cleanup xlsSh'}
    While ([System.Runtime.Interopservices.Marshal]::ReleaseComObject($Book)) {'cleanup xlsWb'}
    While ([System.Runtime.Interopservices.Marshal]::ReleaseComObject($Excel)) {'cleanup xlsObj'}
    [gc]::collect() | Out-Null
    [gc]::WaitForPendingFinalizers() | Out-Null
    }#End end block.
    }#End function run-query.
    $queries = @()
    $queries += @'
    Select * from table1
    $queries += @'
    Select * from table2
    $sheetnames = @("Cert","Prod")
    $filenames = @("D:\Scripts\Prod.csv","D:\Scripts\Cert.csv")
    Run-Query -queries $queries -sheetnames $sheetnames -filenames $filenames
    Start-Sleep -Milliseconds 50
    Invoke-Item D:\Scripts\MonthlyReboots.xlsx

  • 2.1.0.62: Exporting query results does not work if SQL has a join

    I get an error message, when I try to export the following test case to any data format.
    create table test1 (id number(2), text varchar2(5));
    create table test2 (id number(2), text varchar2(5));
    insert into test1 values (1,'test');
    insert into test2 values (1,'test');
    select t1.*
    from
    test1 t1,
    test2 t2
    where
    t1.id=t2.id;
    I try to translate my german error message to english:
    "There are no valid columns for export available. Clob- or Blob-Columns are currently not supported"
    I get this message, when I right click into the query result grid and select export and then any data format.
    Hope that is not a double post but searching for export did not find results for 2.1.
    The following SQL also produces the error:
    select t1.* from test1 t1;
    These SQLs can be exported though:
    select * from test1 t1;
    select t1.id from test1 t1;
    I should have mentioned that I work with Windows XP and Oracle 10.2.0.4.
    Regards,
    dhalek
    Edited by: dhalek on Oct 13, 2009 5:04 PM

    Hi,
    Dhalek.
    I've got the same problem here.
    In my SQL Dev, I disabled the Autopopup code completion insight in SQL Worksheet. (Tools - Preferences - Code Editor - Code Completion - untick the checkbox). Restart SQL Dev. Tried to export a query.
    The same error message appears.
    My workaround is to re-enable the autopopup and restart SQL Dev.
    The disabled autopopup code completion insight caused me these
    2.1 EA1: Bugs - cannot Export Data from Grid
    2.1 EA2: Bugs on code completion for displaying column name
    Hope this helps,
    Buntoro

  • SQL Developer 3.0 EA1 - Query Result assumes keyboard focus

    In the Early Adopter 1 release of SQL Developer and noticed that after running a statement in a worksheet the focus for the keyboard is now in the query results pane. This change in behavior from version 2 is slightly disruptive and makes it harder to iteratively build queries or search for data without having to continuously keep moving the cursor back to the worksheet. I am using the linux version if it makes a difference and it happens both when click the run statement button or use the ctrl+enter shortcut key.
    I have been trying out the preview release and all around it looks good and has some very nice improvements. Just this and the missing export to clipboard are the only issues I've had so far.
    Edited by: user5490329 on Oct 14, 2010 9:06 AM

    I agree with the majority of people here that this is annoying and I'd also prefer to leave the input focus in the SQL Worksheet after I hit CTRL+ENTER, so I am looking forward to the fix.
    However, in some cases, it would come in handy if there was a shortcut key to quickly get to the query result tab, just like in TOAD, where F6 is used for this purpose. The same key is reserved for autotrace in SQL Developer, so another function key could be used.

  • Store SQL query results in db table

    Hi,
    I have a SQL query that produces a report table.
    Is it possible to automatically store the query results (or the report table) as a db table - without interrupting the current report building proces?
    Thanks,
    Dave
    Message was edited by:
    Dave Judge

    Hi Dave,
    You can also insert records into an existing table:
    INSERT INTO TABLEB (colA, colB, colC, etc) SELECT valA, valB, valC, etc FROM VIEWA WHERE etc etc
    This can be done during a page process that runs "Before Header" and you can base your report on the TABLEB. Obviously, you will need to maintain that table to ensure that it is only truncated where necessary, that one user doesn't try to access another user's data on that table and that each time your page is loaded it doesn't try to repopulate the table when you don't need it to.
    Another possiblity is to use a collection - which is user session based
    Andy

  • Cannot View SQL button in XI 3.1 edit query mode

    Hi All,
    I am using Webi XI 3.1.
    I dragged the objects into results pane and want to view the SQL for the query. But I don't find the SQL button at all.
    Please help me where to get that!

    Hi George Pertea,
    Thanks for the reply.
    I am in the edit query mode and also the query tool bar is enabled.
    But my "view sql" button is disabled,I cannot click on it.
    I am logged in as "Admin" , so what is the problem.
    I was able to do that in XI R2 before.
    Please help me!
    Thanks

  • Getting query results from a PL/SQL procedure

    Hi! So, I’m a little stumped and I can’t seem to find the answer to what I believe is probably a simple question…
    So, here goes… I have a big ol’ union query that I use to create a report on a page, it’s about 25k – not over the 32k limit, but fails to be able to compile every time (I always get a 400 – Bad Request error). I’m not sure why this is happening, but I can remove a union statement and it compiles just fine – so it has something to do with the size of the query. ANYWAY – I’ve resolved that I should put this bad boy into the database as a stored procedure and just call it from Apex, my problem is I can’t figure out quite how to do this with variables, etc.…
    Instead of giving you my whole big query, I’ll use the emp table as the concept is the same:
    Say we have a query that creates a report on a page:
    select empno, ename, job, mgr, hiredate, sal, comm, deptno
    from emp
    where job = :P_JOB
    and hiredate >= :P_HIREDATE;
    How would I take this query, create it as a stored procedure on the db, pass the variables from Apex and return the query result set from the stored proc as a report?
    I really appreciate any help on this!
    Best,
    Gilcrest

    Hi Gilcrest,
    You should create the query as a View and use the view name and the WHERE clause in the report's sql source.
    Andy

Maybe you are looking for

  • Webservices name in case of falult

    Hi, In my application, we are using different webservices. Some of my .Net services and some of the other existing webservices. In my Flex application, i am using the cairngorm framwork. I want to know that, if any one of my webservices return fault,

  • Multiple Accordians on same page

    Hi Everyone, Hope this was not covered before, if so, I can't find it. I added a Spry Accordian to my page no problem. It looks and work fine. I now tried to add a second accordian to the page and it picked up the Style CSS fron the first but does no

  • Sony RX 100 Raw Files

    Using Windows 8 PSE 9.0.3. What do I need to do in order to process Raw files from Sony RX 100 Thanks in advance.

  • Product costing - mm

    hi The method of valuing inventory of a material is determined when extending/creating the material master. means what? thanqu

  • Define pattern with transformed selection?

    (PS CS5 or PS CS6, Windows 7 64 bit) I hope someone can help me puzzle out what is happening here.  I want to select part of an image to turn into a pattern. If I make a selection using the Rectangular Marquee Tool, I can go to Edit - Define Pattern