Return space in the case of no row returned

Hi,
I have a requirement , if sql query will not return any row in that case I want to display speace
Please have a look into belwo example.
select number_column1, number_column2,varchar_columb3 from my_table where column1=values
In the case of no_row_returned above query should return space
example
' ' number_column1,' ' number_column2,' 'varchar_columb3

Hi,
Siddharth Singh wrote:
Hi,
I have a requirement , if sql query will not return any row in that case I want to display speace
Please have a look into belwo example.
select number_column1, number_column2,varchar_columb3 from my_table where column1=values
In the case of no_row_returned above query should return space
example
' ' number_column1,' ' number_column2,' 'varchar_columb3An outer join produces results when when nothing is found in a certain table:
SELECT     m.number_column1
,      m.number_column2
,     m.varchar_columb3
,     ' '     AS space_col     -- If wanted
FROM             dual
LEFT OUTER JOIN my_table  m  ON  m.column1  = m.vals     -- VALUES is not a good column name
;Whether or not space_col is included, the result set will include 1 row that appears to be empty when no data is actaully taken from my_table.

Similar Messages

  • Space at the beginning of a row in a listbox?

    i want to add rows in that way, that it look like a tree hierachy, but the listbox always remove the spaces at the beginning! what can i do?
    If i use the selectOneListbox from HTML i only can set the value that should be printed, but i can't set a return value if the row is selected, is that right?
    best regards

    ok, here is the outcome:
    <?xml version="1.0"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta content="no-cache" http-equiv="Pragma" />
    <meta content="no-cache" http-equiv="Cache-Control" />
    <meta content="no-store" http-equiv="Cache-Control" />
    <meta content="max-age=0" http-equiv="Cache-Control" />
    <meta content="1" http-equiv="Expires" />
    <title></title>
    <script type="text/javascript" src="/EdithsAddRemoveList/theme/com/sun/rave/web/ui/defaulttheme/javascript/formElements.js"></script>
    <link rel="stylesheet" type="text/css" href="/EdithsAddRemoveList/theme/com/sun/rave/web/ui/defaulttheme/css/css_master.css" />
    <script type="text/javascript">
    var sjwuic_ScrollCookie = new sjwuic_ScrollCookie('/Page1.jsp', '/EdithsAddRemoveList/faces/Page1.jsp');
    </script>
    <link id="link1" rel="stylesheet" type="text/css" href="/EdithsAddRemoveList/resources/stylesheet.css" />
    </head>
    <body id="body1" style="-rave-layout: grid">
    <form id="myForm" class="form" method="post" action="/EdithsAddRemoveList/faces/Page1.jsp;jsessionid=6F2D961C364A5579FCC4A691FA389D5A" enctype="application/x-www-form-urlencoded">
    <select style="height: 168px; left: 96px; top: 72px; position: absolute; width: 96px;font-family:monospace; white-space:pre" class="Lst" id="myForm:listbox1" name="myForm:listbox1" size="12" onchange="listbox_changed('myForm:listbox1');  return false;">
         <option class="LstOpt" value="8">ADAT</option>
         <option class="LstOpt" value="9">  3. Klasse</option>
         <option class="LstOpt" value="10">  4. Klasse</option>
         <option class="LstOpt" value="14">  5. Klasse</option>
         <option class="LstOpt" value="11">Englisch</option>
         <option class="LstOpt" value="12">  1. Klasse</option>
         <option class="LstOpt" value="13">  3. Klasse</option>
    </select>
    <input id="myForm:button1" name="myForm:button1" class="Btn2" onblur="return this.myonblur();" onfocus="return this.myonfocus();" onmouseout="return this.myonmouseout();" onmouseover="return this.myonmouseover();" style="position: absolute; left: 264px; top: 168px; width: 72px; height: 48px" type="submit" value="Button"></input><script type="text/javascript">sjwuic_assign_button('myForm:button1', defaultButtonStrings, true, false, false);</script>
    <input id="myForm_hidden" name="myForm_hidden" value="myForm_hidden" type="hidden" />
    <input type="hidden" name="com.sun.faces.VIEW" id="com.sun.faces.VIEW" value="_id1:_id2" />
    </form>
    </html>

  • Space to the right of the trackpad...

    I got my MacBook less than a month ago and I noticed that the space to the right of my tackpad (where my wrist rests while I'm tying) feels loose. It's hard to explain, but when I lift my right hand up from typing I hear a "click" type sound. It almost feels as if there is too much space between the case and the components inside. Does anybody else have this problem? Is it worth sending it in to get repaired?

    I actually did take it to an apple store today. I was shocked to see how rough the Mac Genius treated my computer. He slammed down the top and took it to the back. He came back out and said since it was a cosmetic issue, there's nothing he could do. This is ticking me off...
    Also, is anybody aware if apple is able to send out a new replacement computer, and then have me send this defective one back? I really can't afford to have much downtime without my computer for my profession.

  • Why do text variables using Running Header character style translate forced returns as a word space in the running head on the first page but close up the space on subsequent pages?

    In an InDesign document that requires 3 different Chapter head paragraph styles (to cope with differrent length headings) I've set up the running heads on the master page with a text variable using the Running header (character style) option. The character style I've assigned to this is an empty character style that is applied to all 3 chapter head paragraph styles.
    Some chapter heads require a forced line break, so that the line breaks are aethesically pleasing. On the first page the text variable translates this forced line break as a word space in the running head, but on subsequent pages it ignores the forced line break. This means that if you have a word space before the forced line break, on the first page you get a double word space and on subsequent pages the running head sets correctly with a single word space. But if you remove the word space before the forced line break in the chapter head text, the first running head sets correctly with forced line break interpreted as a single word space, but on subsequest pages the space is closed up.
    This only seems to be a problem when the character style option is used for header text variables. If a paragraph style is used the forrced line break is interpreted as a a single word space in all instances, both on the foirst page and subsequent pages.
    This would appear to be a bug in how text variables are applied when using the Running header (character style) option. I can't see any other reason why the text variable would beheave differently on the first page and on subsequent pages. There is only one master page, so it isn't a case of their being an error between a main master page and a chapter opener master page.
    Does anyone have any solutionss, or know if this problem has been fixed in subsequent releases of InDesign (I'm using CS6 ID version 8.0)
    Thanks

    Ask in the ID forum...
    Mylenium

  • How to create a table with the spaces between the row..

    Hello,
    I am using jdev 11.1.1.6 and I need to insert the spaces between the rows. How this can be done?
    Thanks and Regards,
    Tarun Agrawal

    Hi Tarun,
    This css rule is useful to set the padding on each cell:
    .AFTableCellPadding:alias {
      padding: 10px 0px 10px 0px;
    }But if you want to insert a real space between the rows (property "cellspacing") you can do something like this:
    af|table > div + div > table {
      border-collapse: separate;
      border-spacing: 0px 5px;
    }AP

  • Windows 8.1 PC, using reader, when searching a folder containing approx 100 doc's. If i search for a word, no results are returned. only the doc names can be found but nothing from within the doc. This is a new problem and was not the case before.

    Windows 8.1 PC, using reader, when searching a folder containing approx 100 doc's. If i search for a word, no results are returned. only the doc names can be found but nothing from within the doc.
    This is a new problem and was not the case before.

    Works perfectly fine for me with the latest Reader version (11.0.09).
    You write that it worked "before"; before what?  An update?  Update from what version to what version?

  • I have add-ons (Convert to PDF, Edit in Contribute, Post to Blog) that use small icons, yet take up 2 rows of space at the top of my browser window. How do I move these items to display on 1 row?

    ''Problem: too much blank space at the top of browser window.''
    • The Convert to PDF icon takes up 1 entire row (predominately blank) of horizontal space
    • Edit in Contribute, Post to Blog are listed on a separate row, taking up 1 additional row (predominately blank) of horizontal space
    They both use small icons and titles, .5" wide each, are flushed to the left, yet take up 2 rows of blank space at the top of my browser window. How do I move these items to display on 1 row?

    Start Firefox in Safe Mode (https://support.mozilla.com/en-US/kb/Safe+Mode) and choose the 'Reset toolbars and controls option'. This will get you back to the stock icon set which you can then customize to your liking

  • I installed an ancient version, photoshop element 2, on PC under Windows 7 after change of computer station and it is impossible to register modification made; error message: impossible because saturated disc ....what is not the case: many space on the di

    I installed an ancient version, photoshop element 2, on PC under Windows 7 after change of computer station and it is impossible to register modification made; error message: impossible because saturated disc ....what is not the case: many space on the disc. How to repair this error please?

    Hello
    Thank you for your answer which is interesting because it is a disk of 2 TB... If I create a partition do you think it can solve my problem? I prefer this old version of Photoshop, very practical to use...

  • How does Jason's multipartrequest works in the case of space in the filenam

    How does Jason's multipartrequest works in the case of space in the filename or the directory where the file resides?

    Good question...

  • DB Update - How to Return the Number of Affected Rows?

    I created a DB Adapter that updates a record. I'd like to know if there is a way to return the affected number of rows. Currently, the DB Adapter Wizard seems not to create a return for the generated XSD.
    Thanks,
    Mark

    > Is it by somehow possible to use some custom query
    for this and use the 'returning'-clause to get the
    results back from the DB-adapter. On these results
    you can do some counts.
    Thanks for your reply.
    I have given a thought to that option too, however the issue is that, in order to use returning clause you have to use a temporary SQL variable which I believe can not be used unless we use a PL/SQL block (Please correct me, if I am wrong).
    I wanted to get away with the option of re-querying the 'SELECT' or a PL/SQL Block. Any suggestions?
    Thanks & regards

  • The Case of the Disappearing Disk Space

    Last week when I noticed I only had 5.5 gigs on my hard disk, I decided to start deleting files and programs that I didn't really need anymore. I ended up freeing up about 7 gigs! However, I have since noticed something peculiar...
    As I use my computer (mostly browsing and e-mail, no other downloading), my hard disk mysteriously gets filled up. And I don't mean a few megabytes here and there, but rather more than two gigs in just a couple of days! This doesn't seem normal to me at all. Even if I do save files, they are usually just small Word documents for school. A few minutes ago, Finder said I had 10.7 gigs on my hard disk with the trash emptied. After I restarted, it said I had 13.15. Since then, I've already lost .02 gigs and the only programs I have open are Mail and Safari.
    Can someone please explain to me what is happening here? Thanks!

    Okay, my hard disk is at 12.71 now and a random .rtf file reads 8 kb. I'll check it later (if I am doing this right...)
    You don't seem to be doing it correctly. Open TextEdit, create a new window, and note down the usage of disk space reported by WhatSize by typing it out into this window. After the amount of free space on the hard disk has decreased, run WhatSize again and note down what is reported this time. Compare the differences in the two sets of notes.
    Another possibility is to choose Go to Folder from the Finder's Go menu, enter /private/var/vm/ as the folder's path, and keep an eye on the number of items in this folder as you use the computer.
    (14861)

  • How to use the Columns Hidden | space in the bottom of af:panelCollection?

    Hi,experts,
    In jdev 11.1.2.3,
    I can see a row of Columns Hidden | Columns Frozen in the bottom of component af:panelCollection - pc1 which have an af:table - t1 component inside in designer view,
    and can see there is a blank row space only with "|" inside when the page is running.
    Now I want to use this blank row space such as to display row numbers for the table, so I set the property for the panelColletion as following source code:
    ==========================
    <af:panelCollection id="pc1" inlineStyle="width:1250px; height:500px;">
    <f:facet name="menus"/>
    <f:facet name="toolbar"/>
    <f:facet name="statusbar">
    <af:group id="g4"/>
    </f:facet>
    <af:table value="#{bindings.TView1.collectionModel}" var="row"
    rows="#{bindings.TView1.rangeSize}"
    emptyText="#{bindings.TView1.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.TView1.rangeSize}" rowBandingInterval="1"
    filterModel="#{bindings.ImplicitViewCriteriaQuery.queryDescriptor}"
    queryListener="#{bindings.ImplicitViewCriteriaQuery.processQuery}" filterVisible="false"
    varStatus="vs"
    selectedRowKeys="#{bindings.TView1.collectionModel.selectedRow}"
    selectionListener="#{bindings.TView1.collectionModel.makeCurrent}"
    rowSelection="single" id="t1" inlineStyle="font-size:xx-large; font-weight:bolder;">
    <af:column sortProperty="#{bindings.TView1.hints.GoodsStatus3.name}" filterable="true"
    sortable="true"
    headerText="#{bindings.TView1.hints.GoodsStatus3.label}"
    id="c42">
    <af:outputText value="#{row.GoodsStatus3}" id="ot33"/>
    </af:column>
    <f:facet name="footer">
    <af:group id="g3">
    *<af:outputText value="RowsNumber:" id="ot44"/>*
    *<af:outputText value="#{bindings.TView1Iterator.estimatedRowCount}"*
    id="ot43" partialTriggers="::pc1:t1"/>
    </af:group>
    </f:facet><f:facet name="detailStamp"/>
    </af:table>
    </af:panelCollection>
    =====================
    but when run the page there is no display for the row number, instead on the bottom of the table, there is only a blank row with "|" inside.
    How to use the Columns Hidden | Columns Frozen space in the bottom of component af:panelCollection ?
    Thanks!

    Hi, Arun
    It works.
    As in my use case, can draw an af:toolbar component into statusbar of Panel Collection facets in Structure view.
    There is still a small issue:
    cannot see the Columns Hidden|Columns Frozen component in the Structure view,
    and if drop more than one af:toolbar into statusbar, the sencond one will fall/wrap into second row, even though there is enough space on the first row (to occupy a second row in statusbar will be a waste of space), and cannot see how to adjust.
    Thank you very much!
    bao

  • Ipad appstore shows all Apps up-to-date, but I know this is not the case. How to fix?

    App store shows all apps are updated, but this is not the case. Yesterday I opened the appstore and saw 7 apps that needed to be updated, however after a refresh it shows that all apps are updated. Unfortunately I didn't update any apps and I found several apps by manual search that will update. In addition imovie can't be updated on ios 5.1.1 but this used to show in updates.
    How can I get the appstore to correctly show apps that can be updated.

    Quit the App Store app.
    Go to the Home screen and double click the Home button. That will reveal the row of recently used apps at the bottom of the screen. Tap and hold on the app in question until it wiggles and displays a minus sign. Tap the minus sign to actually quit the app. Then tap anywhere on the screen above that bottom row to return the screen to normal. Then restart the app and see if it works normally.

  • How do I select the end of a row or column in Numbers?

    I am trying to select to the end of a column in Numbers. In Excel, I simply hold down the shift+command+arrow keys and I can select the entire row or column int he arrow direction. How do I do this in Numbers?

    Here two other scripts :
    Select-to-top and select-to-left.
    Both of them take care of possible headers.
    --{code}
    --[SCRIPT select-to-top]
    Enregistrer le script en tant que Script : select-to-top.scpt
    déplacer le fichier ainsi créé dans le dossier
    <VolumeDeDémarrage>:Utilisateurs:<votreCompte>:Bibliothèque:Scripts:Applications :Numbers:
    Il vous faudra peut-être créer le dossier Numbers et peut-être même le dossier Applications.
    Sélectionner une ou plusieurs cellules d'une ligne dans une table de Numbers
    Aller au menu Scripts , choisir Numbers puis choisir “select-to-top”
    Il étendra la sélection jusqu'à la première ligne standard de la colonne (ne sélectionne pas les rangs d’en tête).
    Bien entendu, ce script sera plus intéressant si vous le dotez d'un raccourci clavier à l’aide, par exemple, de FastScripts.
    --=====
    L’aide du Finder explique:
    L’Utilitaire AppleScript permet d’activer le Menu des scripts :
    Ouvrez l’Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
    Cochez la case “Afficher le menu des scripts dans la barre de menus”.
    Sous 10.6.x,
    aller dans le panneau “Général” du dialogue Préférences de l’Éditeur Applescript
    puis cocher la case “Afficher le menu des scripts dans la barre des menus”.
    --=====
    Save the script as a Script: select-to-top.scpt
    Move the newly created file into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
    Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
    Select one or several cells in a row of a Numbers table.
    Go to the Scripts Menu, choose Numbers, then choose “select-to-top”
    It will expand the selection to the first standard row of the table (minus header rows).
    Of course, it would be more useful if you attach a shortcut thanks to a tool like FastScripts.
    --=====
    The Finder’s Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the “Show Script Menu in menu bar” checkbox.
    Under 10.6.x,
    go to the General panel of AppleScript Editor’s Preferences dialog box
    and check the “Show Script menu in menu bar” option.
    --=====
    Yvan KOENIG (VALLAURIS, France)
    2012/02/09
    --=====
    on run
              my activateGUIscripting()
              set {dName, sName, tName, rowNum1, colNum1, rowNum2, colNum2} to my get_SelParams()
              tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
                        set count_HeaderRows to my countXers("Numbers", "R")
                        set selection range to range ((name of cell (1 + count_HeaderRows) of column colNum1) & " : " & (name of cell rowNum1 of column colNum2))
              end tell
    end run
    --=====
    set { dName, sName, tName,  rowNum1, colNum1, rowNum2, colNum2} to my get_SelParams()
    tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
    on get_SelParams()
              local d_Name, s_Name, t_Name, row_Num1, col_Num1, row_Num2, col_Num2
              tell application "Numbers" to tell document 1
                        set d_Name to its name
                        set s_Name to ""
                        repeat with i from 1 to the count of sheets
                                  tell sheet i to set maybe to the count of (tables whose selection range is not missing value)
                                  if maybe is not 0 then
                                            set s_Name to name of sheet i
                                            exit repeat
                                  end if -- maybe is not 0
                        end repeat
                        if s_Name is "" then
                                  if my parleAnglais() then
                                            error "No sheet has a selected table embedding at least one selected cell !"
                                  else
                                            error "Aucune feuille ne contient une table ayant au moins une cellule sélectionnée !"
                                  end if
                        end if
                        tell sheet s_Name to tell (first table where selection range is not missing value)
                                  tell selection range
                                            set {top_left, bottom_right} to {name of first cell, name of last cell}
                                  end tell
                                  set t_Name to its name
                                  tell cell top_left to set {row_Num1, col_Num1} to {address of its row, address of its column}
                                  if top_left is bottom_right then
                                            set {row_Num2, col_Num2} to {row_Num1, col_Num1}
                                  else
                                            tell cell bottom_right to set {row_Num2, col_Num2} to {address of its row, address of its column}
                                  end if
                        end tell -- sheet…
                        return {d_Name, s_Name, t_Name, row_Num1, col_Num1, row_Num2, col_Num2}
              end tell -- Numbers
    end get_SelParams
    --=====
    on parleAnglais()
              local z
              try
                        tell application "Numbers" to set z to localized string "Cancel"
              on error
                        set z to "Cancel"
              end try
              return (z is not "Annuler")
    end parleAnglais
    --=====
    on activateGUIscripting()
      (* to be sure than GUI scripting will be active *)
              tell application "System Events"
                        if not (UI elements enabled) then set (UI elements enabled) to true
              end tell
    end activateGUIscripting
    --=====
    set count_Row_Headers to my countXers("Numbers","R")
    set count_Column_Headers to my countXers("Numbers","C")
    set count_Footers to my countXers("Numbers","F")
    set count_Row_Headers to my countXers("Pages","R")
    set count_Column_Headers to my countXers("Pages","C")
    set count_Footers to my countXers("Pages","F")
    on countXers(theApp, what)
              local mt, mi, mm, ms
              if theApp is "Numbers" then
                        set mt to 6 (* Table *)
                        if "Row" starts with what then
                                  set mi to 10
                        else if "Column" starts with what then
                                  set mi to 11
                        else if "Footer" starts with what then
                                  set mi to 14
                        else
                                  if my parleAnglais() then
                                            error "“" & what & "” isn’t a valid parameter !"
                                  else
                                            error "« " & what & " » n’est pas un paramètre géré !"
                                  end if -- parleAnglais
                        end if -- "Row"…
              else if theApp is "Pages" then
                        set {mt, mi} to {6, 4} (* Format, Table *)
                        if "Row" starts with what then
                                  set mm to 13
                        else if "Column" starts with what then
                                  set mm to 14
                        else if "Footer" starts with what then
                                  set mm to 15
                        else
                                  if my parleAnglais() then
                                            error "“" & what & "” isn’t a valid parameter !"
                                  else
                                            error "« " & what & " » n’est pas un paramètre géré !"
                                  end if -- parleAnglais
                        end if -- "Row"…
              else
                        if my parleAnglais() then
                                  error "The application “" & theApp & "” isn’t driven by this script !"
                        else
                                  error "L’application « " & theApp & " » n’est pas gérée par ce script !"
                        end if -- parleAnglais
              end if -- theApp…
      activate application theApp
              tell application "System Events" to tell process theApp to tell menu bar 1 to tell menu bar item mt to tell menu 1 to tell menu item mi to tell menu 1
                        if theApp is "Numbers" then
    Here we are in Numbers *)
                                  repeat with ms from 1 to 6
                                            try
                                                      (get value of attribute "AXMenuItemMarkChar" of menu item ms) = "✓"
                                                      exit repeat
                                            end try
                                  end repeat
                        else
    Here we are in Pages *)
                                  tell menu item mm to tell menu 1
                                            repeat with ms from 1 to 6
                                                      try
                                                                (get value of attribute "AXMenuItemMarkChar" of menu item ms) = "✓"
                                                                exit repeat
                                                      end try
                                            end repeat
                                  end tell -- menu item mm
                        end if -- theApp is …
              end tell -- System Events…
              return ms - 1
    end countXers
    --=====
    --[/SCRIPT]
    --{code}
    --{code}
    --[SCRIPT select-to-left]
    Enregistrer le script en tant que Script : select-to-left.scpt
    déplacer le fichier ainsi créé dans le dossier
    <VolumeDeDémarrage>:Utilisateurs:<votreCompte>:Bibliothèque:Scripts:Applications :Numbers:
    Il vous faudra peut-être créer le dossier Numbers et peut-être même le dossier Applications.
    Sélectionner une ou plusieurs cellules d'une colonne dans une table de Numbers
    Aller au menu Scripts , choisir Numbers puis choisir “select-to-left”
    Il étendra la sélection jusqu'à la première colonne standard de la table (ne sélectionne pas les colonnes d’en tête).
    Bien entendu, ce script sera plus intéressant si vous le dotez d'un raccourci clavier à l’aide, par exemple, de FastScripts.
    --=====
    L’aide du Finder explique:
    L’Utilitaire AppleScript permet d’activer le Menu des scripts :
    Ouvrez l’Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
    Cochez la case “Afficher le menu des scripts dans la barre de menus”.
    Sous 10.6.x,
    aller dans le panneau “Général” du dialogue Préférences de l’Éditeur Applescript
    puis cocher la case “Afficher le menu des scripts dans la barre des menus”.
    --=====
    Save the script as a Script: select-to-left.scpt
    Move the newly created file into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
    Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
    Select one or several cells in a column of a Numbers table.
    Go to the Scripts Menu, choose Numbers, then choose “select-to-left”
    It will expand the selection to the first standard colomn of the table (minus fheader columns).
    Of course, it would be more useful if you attach a shortcut thanks to a tool like FastScripts.
    --=====
    The Finder’s Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the “Show Script Menu in menu bar” checkbox.
    Under 10.6.x,
    go to the General panel of AppleScript Editor’s Preferences dialog box
    and check the “Show Script menu in menu bar” option.
    --=====
    Yvan KOENIG (VALLAURIS, France)
    2012/02/09
    --=====
    on run
              my activateGUIscripting()
              set {dName, sName, tName, rowNum1, colNum1, rowNum2, colNum2} to my get_SelParams()
              tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
                        set count_ColHeaders to my countXers("Numbers", "C")
                        set selection range to range ((name of cell (1 + count_ColHeaders) of row rowNum1) & " : " & (name of cell colNum1 of row rowNum2))
              end tell
    end run
    --=====
    set { dName, sName, tName,  rowNum1, colNum1, rowNum2, colNum2} to my get_SelParams()
    tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
    on get_SelParams()
              local d_Name, s_Name, t_Name, row_Num1, col_Num1, row_Num2, col_Num2
              tell application "Numbers" to tell document 1
                        set d_Name to its name
                        set s_Name to ""
                        repeat with i from 1 to the count of sheets
                                  tell sheet i to set maybe to the count of (tables whose selection range is not missing value)
                                  if maybe is not 0 then
                                            set s_Name to name of sheet i
                                            exit repeat
                                  end if -- maybe is not 0
                        end repeat
                        if s_Name is "" then
                                  if my parleAnglais() then
                                            error "No sheet has a selected table embedding at least one selected cell !"
                                  else
                                            error "Aucune feuille ne contient une table ayant au moins une cellule sélectionnée !"
                                  end if
                        end if
                        tell sheet s_Name to tell (first table where selection range is not missing value)
                                  tell selection range
                                            set {top_left, left_right} to {name of first cell, name of last cell}
                                  end tell
                                  set t_Name to its name
                                  tell cell top_left to set {row_Num1, col_Num1} to {address of its row, address of its column}
                                  if top_left is left_right then
                                            set {row_Num2, col_Num2} to {row_Num1, col_Num1}
                                  else
                                            tell cell left_right to set {row_Num2, col_Num2} to {address of its row, address of its column}
                                  end if
                        end tell -- sheet…
                        return {d_Name, s_Name, t_Name, row_Num1, col_Num1, row_Num2, col_Num2}
              end tell -- Numbers
    end get_SelParams
    --=====
    on parleAnglais()
              local z
              try
                        tell application "Numbers" to set z to localized string "Cancel"
              on error
                        set z to "Cancel"
              end try
              return (z is not "Annuler")
    end parleAnglais
    --=====
    on activateGUIscripting()
      (* to be sure than GUI scripting will be active *)
              tell application "System Events"
                        if not (UI elements enabled

  • Write: 0xecf6eb0, 4096: There is not enough space on the disk.

    Our applications occasionally get the error in the function specified by set_errcall: "[prefix] write: 0xecf6eb0, 4096: There is not enough space on the disk. " Preceded by "DB00.db: write failed for page"
    There most certainly is enough space on disk for one. In this most recent case, the Db::put's succeeded for a full hour before finally failing with an out of space error. At which point, I now have 30 log files and my own log files are filled with Berkeley error callbacks.
    How come the set_errcall doesn't return an integer error code? If it did, we would be able to analyze that and decide any action to take. In this example, I might consider closing down all handles and checkpointing then removing logs since maybe the number of logs has gotten to large. Analyzing a string doesn't make sense since that might change with Berkeley versions.
    Anyway, can anyone give any advice as to why we would get an out of space error (with plenty of disk space.) And also how to handle such an error.
    Edited by: AMARCIONEK on Jun 3, 2009 10:10 AM

    The platform is C++ API version 4.7.25 running on Windows Server 2003 Enterprise SP2. The database is on an NTFS disk. We have tested database files up to 20GB in size. The following is my config.
    m_pDbEnvironment->set_cachesize(0, 10 * 1024 * 1024, 1);
    m_pDbEnvironment->set_lg_max(20000000);
    m_pDbEnvironment->set_lg_bsize(10 * 1024 * 1024);
    m_pDbEnvironment->set_mp_max_write(4, 0);
    m_pDbEnvironment->set_mp_mmapsize(2 * 1024 * 1024);
    m_pDbEnvironment->set_mp_max_openfd(1);
    // set the alloc methods into the environment
    m_pDbEnvironment->set_alloc(QPRT_ALLOC, QPRT_REALLOC, QPRT_FREE);
    m_pDbEnvironment->set_lk_detect(DB_LOCK_YOUNGEST);
    m_pDbEnvironment->set_timeout(500000, DB_SET_LOCK_TIMEOUT);
    m_pDbEnvironment->set_timeout(200000, DB_SET_TXN_TIMEOUT);
    m_pDbEnvironment->set_flags(DB_REGION_INIT, 1);
    m_pDbEnvironment->set_tx_max(5000);
    m_pDbEnvironment->set_flags(DB_TXN_WRITE_NOSYNC, 1);
    m_pDbEnvironment->log_set_config(DB_LOG_ZERO, 1);
    m_pDbEnvironment->set_lk_max_lockers(5000);
    m_pDbEnvironment->set_lk_max_locks(5000);
    m_pDbEnvironment->set_lk_max_objects(5000);
    m_pDbEnvironment->open((zKSz)sPath,     DB_CREATE | DB_INIT_LOCK | DB_INIT_LOG | DB_INIT_MPOOL |
                                       DB_THREAD | DB_INIT_TXN | DB_RECOVER | DB_LOCKDOWN,
                                       0);
    We also checkpoint every 2 to 5 minutes with a 5MB threshold. We also explicitly call pDbEnvironment->log_archive(kpNil, DB_ARCH_REMOVE) after checkpointing.
    Primary and (up to 4) secondary databases are opened with DB_CREATE | DB_AUTO_COMMIT flags.
    I'd also appreciate any suggestions as to how to lower the memory footprint used by Berkeley. Ever since we've integrated this DB, our memory usage has been too large and inconsistent. There are 6 independent environments the product uses during runtime. Each of these environments have a primary database and (up to 4) secondary databases, which are all opened with DB_CREATE | DB_AUTO_COMMIT flags.
    Just recently we have added a memp_trickle every 5 seconds at 40% (Anything lower and it has no affect in the environment, in other words, db_stat shows dirty pages forced from the cached instead of trickled.) We are trying to reproduce this issue at this point.

Maybe you are looking for