Set value (TRUE, FALSE) on a checkbox

I want to set the value of a checkbox to FASLE when a second checkbox is checked (TRUE). Any idea?

Hello here are two scripts which may help.
With the first one, select a range of cells whose top-left one contain the master checkbox, the bottom-right one contain the slave checkbox.
Running the script will set the slave box to the opposite of the master one.
With the second one, select a range whose cells of left column contain master checkboxes and column to the right contain slave checkboxes.
Running the script will set the slave boxes to the opposite of the corresponding master ones.
--[SCRIPT setslavecheckbox]
Enregistrer le script en tant que Script : setslavecheckbox.scpt
déplacer le fichier ainsi créé dans le dossier
<VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Numbers:
Il vous faudra peut-être créer le dossier Numbers et peut-être même le dossier Applications.
Sélectionner un bloc de cellules dont
la cellule en haut à gauche contient la case à cocher maitre
la cellule en bas à droite contient la case à cocher 'esclave'
Aller au menu Scripts , choisir Numbers puis choisir setslavecheckbox
Si la case maitre est cochée, la case esclave sera décochée.
Si la case maitre est dé-cochée, la case esclave sera cochée.
--=====
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: setslavecheckbox.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 a range of cells whose
top left cell contain the master checkbox
the bottom right cell contain the slave checkbox.
Go to the Scripts Menu, choose Numbers, then choose "setslavecheckbox"
If the master checkbox is checked, the slave one will be unchecked.
If the slave checkbocx in unchecked, the slave one will be checked.
--=====
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)
2010/11/05
--=====
on run
set {dName, sName, tName, rname, rowNum1, colNum1, rowNum2, colNum2} to my getSelParams()
tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
set valeur_maitre to value of cell rowNum1 of column colNum1
set valeur_esclave to value of cell rowNum2 of column colNum2
end tell
if valeur_maitre = valeur_esclave then my switchCheckBox(dName, sName, tName, rowNum2, colNum2)
end run
--=====
set {rowNum1, colNum1, rowNum2, colNum2} to my getCellsAddresses(dname,s_name,t_name,arange)
on getCellsAddresses(d_Name, s_Name, t_Name, r_Name)
local two_Names, row_Num1, col_Num1, row_Num2, col_Num2
tell application "Numbers"
set d_Name to name of document d_Name (* useful if we passed a number *)
tell document d_Name
set s_Name to name of sheet s_Name (* useful if we passed a number *)
tell sheet s_Name
set t_Name to name of table t_Name (* useful if we passed a number *)
end tell -- sheet
end tell -- document
end tell -- Numbers
if r_Name contains ":" then
set two_Names to my decoupe(r_Name, ":")
set {row_Num1, col_Num1} to my decipher(d_Name, s_Name, t_Name, item 1 of two_Names)
if item 2 of two_Names = item 1 of two_Names then
set {row_Num2, col_Num2} to {row_Num1, col_Num1}
else
set {row_Num2, col_Num2} to my decipher(d_Name, s_Name, t_Name, item 2 of two_Names)
end if
else
set {row_Num1, col_Num1} to my decipher(d_Name, s_Name, t_Name, r_Name)
set {row_Num2, col_Num2} to {row_Num1, col_Num1}
end if -- r_Name contains…
return {row_Num1, col_Num1, row_Num2, col_Num2}
end getCellsAddresses
--=====
set { dName, sName, tName, rname, rowNum1, colNum1, rowNum2, colNum2} to my getSelParams()
on getSelParams()
local r_Name, t_Name, s_Name, d_Name
set {d_Name, s_Name, t_Name, r_Name} to my getSelection()
if r_Name is missing value then
if my parleAnglais() then
error "No selected cells"
else
error "Il n'y a pas de cellule sélectionnée !"
end if
end if
return {d_Name, s_Name, t_Name, r_Name} & my getCellsAddresses(d_Name, s_Name, t_Name, r_Name)
end getSelParams
--=====
set {rowNumber, columnNumber} to my decipher(docName,sheetName,tableName,cellRef)
apply to named row or named column !
on decipher(d, s, t, n)
tell application "Numbers" to tell document d to tell sheet s to tell table t to ¬
return {address of row of cell n, address of column of cell n}
end decipher
--=====
set { d_Name, s_Name, t_Name, r_Name} to my getSelection()
on getSelection()
local _, theRange, theTable, theSheet, theDoc, errMsg, errNum
tell application "Numbers" to tell document 1
repeat with i from 1 to the count of sheets
tell sheet i
set x to the count of tables
if x > 0 then
repeat with y from 1 to x
try
(selection range of table y) as text
on error errMsg number errNum
set {_, theRange, _, theTable, _, theSheet, _, theDoc} to my decoupe(errMsg, quote)
return {theDoc, theSheet, theTable, theRange}
end try
end repeat -- y
end if -- x>0
end tell -- sheet
end repeat -- i
end tell -- document
return {missing value, missing value, missing value, missing value}
end getSelection
--=====
on parle_anglais()
return (do shell script "defaults read 'Apple Global Domain' AppleLocale") does not start with "fr_"
end parle_anglais
--=====
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 decoupe(t, d)
local oTIDs, l
set oTIDs to AppleScript's text item delimiters
set AppleScript's text item delimiters to d
set l to text items of t
set AppleScript's text item delimiters to oTIDs
return l
end decoupe
--=====
my switchCheckBox(dName, sName, tName, rowNum, colNum)
on switchCheckBox(d, s, t, r, c)
tell application "Numbers" to tell document d to tell sheet s to tell table t to tell cell r of column c
set oldVal to value
clear
set value to (not oldVal)
set format to checkbox
end tell
end switchCheckBox
--=====
--[/SCRIPT]
--[SCRIPT setslavecheckboxes]
Enregistrer le script en tant que Script : setslavecheckboxes.scpt
déplacer le fichier ainsi créé dans le dossier
<VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Numbers:
Il vous faudra peut-être créer le dossier Numbers et peut-être même le dossier Applications.
Sélectionner un bloc de cellules dont
les cellules de la colonne de gauche contiennent les cases à cocher maitresses.
les cellules de la colonne de droite contient les cases à cocher 'esclaves'
Aller au menu Scripts , choisir Numbers puis choisir setslavecheckboxes
Si la case maitre est cochée, la case esclave sera décochée.
Si la case maitre est dé-cochée, la case esclave sera cochée.
--=====
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: setslavecheckboxes.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 a range of cells whose
cells of the left column contain master checkboxes
cells of the right column contain the slave checkboxes.
Go to the Scripts Menu, choose Numbers, then choose "setslavecheckboxes"
If the master checkbox is checked, the slave one will be unchecked.
If the slave checkbocx in unchecked, the slave one will be checked.
--=====
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)
2010/11/05
--=====
on run
set {dName, sName, tName, rname, rowNum1, colNum1, rowNum2, colNum2} to my getSelParams()
tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
set les_valeurs to value of cells colNum1 thru colNum2 of rows rowNum1 thru rowNum2
end tell
set i to 0
repeat with valeursd_uneligne in les_valeurs
set r to i + rowNum1
if item 1 of valeursd_uneligne = item -1 of valeursd_uneligne then my switchCheckBox(dName, sName, tName, r, colNum2)
set i to i + 1
end repeat
end run
--=====
set {rowNum1, colNum1, rowNum2, colNum2} to my getCellsAddresses(dname,s_name,t_name,arange)
on getCellsAddresses(d_Name, s_Name, t_Name, r_Name)
local two_Names, row_Num1, col_Num1, row_Num2, col_Num2
tell application "Numbers"
set d_Name to name of document d_Name (* useful if we passed a number *)
tell document d_Name
set s_Name to name of sheet s_Name (* useful if we passed a number *)
tell sheet s_Name
set t_Name to name of table t_Name (* useful if we passed a number *)
end tell -- sheet
end tell -- document
end tell -- Numbers
if r_Name contains ":" then
set two_Names to my decoupe(r_Name, ":")
set {row_Num1, col_Num1} to my decipher(d_Name, s_Name, t_Name, item 1 of two_Names)
if item 2 of two_Names = item 1 of two_Names then
set {row_Num2, col_Num2} to {row_Num1, col_Num1}
else
set {row_Num2, col_Num2} to my decipher(d_Name, s_Name, t_Name, item 2 of two_Names)
end if
else
set {row_Num1, col_Num1} to my decipher(d_Name, s_Name, t_Name, r_Name)
set {row_Num2, col_Num2} to {row_Num1, col_Num1}
end if -- r_Name contains…
return {row_Num1, col_Num1, row_Num2, col_Num2}
end getCellsAddresses
--=====
set { dName, sName, tName, rname, rowNum1, colNum1, rowNum2, colNum2} to my getSelParams()
on getSelParams()
local r_Name, t_Name, s_Name, d_Name
set {d_Name, s_Name, t_Name, r_Name} to my getSelection()
if r_Name is missing value then
if my parleAnglais() then
error "No selected cells"
else
error "Il n'y a pas de cellule sélectionnée !"
end if
end if
return {d_Name, s_Name, t_Name, r_Name} & my getCellsAddresses(d_Name, s_Name, t_Name, r_Name)
end getSelParams
--=====
set {rowNumber, columnNumber} to my decipher(docName,sheetName,tableName,cellRef)
apply to named row or named column !
on decipher(d, s, t, n)
tell application "Numbers" to tell document d to tell sheet s to tell table t to ¬
return {address of row of cell n, address of column of cell n}
end decipher
--=====
set { d_Name, s_Name, t_Name, r_Name} to my getSelection()
on getSelection()
local _, theRange, theTable, theSheet, theDoc, errMsg, errNum
tell application "Numbers" to tell document 1
repeat with i from 1 to the count of sheets
tell sheet i
set x to the count of tables
if x > 0 then
repeat with y from 1 to x
try
(selection range of table y) as text
on error errMsg number errNum
set {_, theRange, _, theTable, _, theSheet, _, theDoc} to my decoupe(errMsg, quote)
return {theDoc, theSheet, theTable, theRange}
end try
end repeat -- y
end if -- x>0
end tell -- sheet
end repeat -- i
end tell -- document
return {missing value, missing value, missing value, missing value}
end getSelection
--=====
on parle_anglais()
return (do shell script "defaults read 'Apple Global Domain' AppleLocale") does not start with "fr_"
end parle_anglais
--=====
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 decoupe(t, d)
local oTIDs, l
set oTIDs to AppleScript's text item delimiters
set AppleScript's text item delimiters to d
set l to text items of t
set AppleScript's text item delimiters to oTIDs
return l
end decoupe
--=====
my switchCheckBox(dName, sName, tName, rowNum, colNum)
on switchCheckBox(d, s, t, r, c)
tell application "Numbers" to tell document d to tell sheet s to tell table t to tell cell r of column c
set oldVal to value
clear
set value to (not oldVal)
set format to checkbox
end tell
end switchCheckBox
--=====
--[/SCRIPT]
To be honest, I don't understand the need for such tools.
Why use two checkboxes when a single one would be sufficient?
For instance, I saw tables with a checkbox which was checked when the described being was a male
and an other checkbox which was checked when the described being was a female.
As far as I know, when the first box is unchecked, the being is a female so the second box is useless.
Yvan KOENIG (VALLAURIS, France) vendredi 5 novembre 2010 10:40:24

Similar Messages

  • Error: this type needs one of the following values('true','false')

    I'm trying to use <c:if> in a jsp (in Workshop 8.1), as in:
                   <c:if test="1 == 1">
              <!-- something here -->
              </c:if>
              But, I get the following message when I hover over the error indicator
              at the test:
              Error: this type needs one of the following values('true','false')
              It will actually work if I do:
                   <c:if test="true">
              <!-- something here -->
              </c:if>
              but, of course, that's useless.
              Am I missing something here?

    David Karr wrote:
              > The value of the "test" attribute needs to be an Expression Language expression. Try changing it to "${1 == 1}", and that should work.
              Actually, I had tried that, and it would have worked that way if I had
              the right taglib declaration -- I had accidentally left in the rt
              versions, so a <%= test %> type of expression worked.
              But, that's not the way I wanted to do it, so I put the non-rt versions
              in, along with tld and jar files that I had in some other directories,
              then it worked fine. In the process, when searching my hard drive for
              standard.jar, I noticed I had four or five different versions, each with
              a slightly different size. Of course, I had to tinker, and downloaded
              the zip from Apache, figuring it would be best to have a matched set of
              tlds and jars.
              And now I get an error that the matching class cannot be found:
              > ERROR: response.jsp:1: Package org.apache.taglibs.standard.tag.el.core contains no member type of this name.
              and
              > ERROR: response.jsp:14: The tag handler class was not found "org.apache.taglibs.standard.tag.el.core.IfTag".
              But, if I navigate the standard .jar that is in my WEB-INF/lib
              directory, lo and behold, there is the file IfTag.class in what appears
              to be the correct package.

  • What's the difference between isThreadSafe set to true / false ?

    I wrote a jsp that contains the following snippet:
    <%@page isThreadSafe="false" language="java" %>
    <%! int count = 0; %>
    <% count++; %>
    <% Thread.sleep(5000); %>
    You are visitor number <%= count %>
    I test this by running 2 browsers at the same time, but I found there's no
    difference between that isThreadSafe set to true/false in the result, and I
    found there's no difference in the generated servlets' code. Will the servlet
    implements the SingleThreadModel interface if the isThreadSafe is false in the
    jsp? I'm using jakarta-tomcat-4.1.18-LE-jdk14.

    Your idea about implementing SingleThreadModel is ok, though Tomcat 4.1.18 for my version also does not make any difference in generated servlet with isThreadSafe value.
    However, one thing is important to remember that isThreadSafe is not a panacea to make JSPs thread safe. It actually depends on the type of variables/values u r changing.
    Any local varible under _jspService is thread-safe, as all requests are unique.
    For the same reason, request attributes are always thread-safe.
    Class/member varibales in JSP/Servlet are not thread-safe also. From your code count is not thread safe.
    Session attributes are not thread-safe, as you can access and change them using multiple browser windows from different JSPs. If u do not do that they are safe.
    Application/context attributes are not thread-safe also. They can be accessed by multiple users at the same time.
    However, I do not why generated servlet is not different for this version of Tomcat. May be they can tell.
    Thanks.
    Hafizur Rahman
    SCJP

  • How to set render true or false in java class

    Use case:
    i have a page in which i have one inputListOfValues attributes and two LOV .initial the LOV render attribute value is false .it means it show only one attribute in run time .inputListOfValues is content two value .suppose if first value A then the first LOV have to show and is it value is B then Second LOV have to show .i bind my LOV to class .but i do not know how to set render attribute at java class.

    <af:inputListOfValues label="Branch Name"
    popupTitle="Search and Result Dialog"
    id="ilov1"
    model="#{pageFlowScope.organizationLOV.param['bindings.Organization'].listOfValuesModel}"
    converter="#{pageFlowScope.organizationLOV.param['bindings.Organization'].convert['latinDesc']}"
    valueChangeListener="#{viewScope.salaryBenefitsReportForm.branchChange}"
    binding="#{viewScope.salaryBenefitsReportForm.branchName}"
    rendered="true" visible="false"/>
    <af:inputListOfValues label="Department Name"
    popupTitle="Search and Result Dialog"
    id="ilov2"
    model="#{pageFlowScope.objectLOV.param['bindings.Department'].listOfValuesModel}"
    converter="#{pageFlowScope.objectLOV.param['bindings.Department'].convert['latinDesc']}"
    valueChangeListener="#{viewScope.salaryBenefitsReportForm.departmentChange}"
    binding="#{viewScope.salaryBenefitsReportForm.departmentName}"
    rendered="true" visible="false"/>
    this is code in jsff .
    and class code are following
    public void reportBy(ValueChangeEvent valueChangeEvent) {
    String value=(String)valueChangeEvent.getNewValue();
    System.out.println(value);
    if(value.equals("Branch")){
    branchName.setVisible(true);
    departmentName.setVisible(false);
    AdfFacesContext.getCurrentInstance().addPartialTarget(branchName);
    AdfFacesContext.getCurrentInstance().addPartialTarget(departmentName);
    if(value.equals("Department")){
    departmentName.setVisible(true);
    branchName.setVisible(false);
    AdfFacesContext.getCurrentInstance().addPartialTarget(departmentName);
    AdfFacesContext.getCurrentInstance().addPartialTarget(branchName);
    }

  • Restoring af:selectBooleanCheckbox value after setting visible=true

    Using JDev 11.1; I have a table that displays data from a model object, and one of the columns contains true/false values which we render in the table using an af:selectBooleanCheckbox. All works fine except that user is able to hide the table by expanding other components which sets visible=false on the bounding component for the table. If user elects to redisplay the table by reducing the other component zoom, then the table displays again but the selected check-marks/tags do not return.
    Thought initially it might've been because the query was being reissued on the table, but not so. More about the selected attribute on the af:selectBooleanCheckbox, which I have set to the default (false). So the value property is set to the table collection attribute as required to interface with the model, but I need to know what to set the selected attribute to. I can see that when the table is redisplayed, this default value of false is being sent through to the model which is discarding the values I want to retain.
    I've tried some EL in the selected property to set it to true/false based on what's in the table, but the problem with that is that it becomes essentially a read-only control. I need to find some way to disable the value assignment when making the table visible again. Any suggestions?
    Thanks,

    Andrefs,
    In ADF BC, one way we deal with this is by adding a transient Boolean attribute to the View Object with getters (translate 0/1 to false/true) and setters (vice-versa). Then, we bind the UI to the transient attribute. It's been so long since I've done EJB's, but could you take a similar approach?
    John

  • Typing a phrase in the Address Bar of Firefox 3.6 used to lead me to the relevant website, but this doesn't happen in FF4, even though keyword.enabled value is set to true in the config page. Why doesn this happen?

    In the about:config page the keyword.enabled value is set to "true". And the keyword.URL value is set to "default". When I type a phrase in the Address Bar, a page with a Yahoo! search result opens unlike intuitively loading the relevant page using Google. Why is this happening?

    To use the Google's browse by name feature as used in Firefox 3.6, set keyword.URL to this link:
    [http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q= http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q=]

  • How to get value of a textfield which has been set as Renderd false.

    Hi all
    how to get value of a TEXTFIELD which has been set as Renderd false.
    i am getting the value of this textfield from an lov but dont want to show it to the user.
    getting error as:
    attribute xxxx required for view object yyyyy.
    pls help
    naveen

    You can create item inside your LOV region, set the item style to formValue. You can associate this to a View Object field. It can also act as mirror of any other text input field.
    FormValue can hold the value and will not be diaplyed to user. You can read value from it controller
    example
    OAFormValueBean orgValue = (OAFormValueBean)webBean.findChildRecursive("OrgIdFormVal");
    Or you can read it fro the VO associated with this form value.

  • [svn:fx-trunk] 12057: Label (and RichText) will show text as tooltip if truncated and new showTruncationTip flag is set to true  ( defaults to false because Label is often used in skin that have their own tooltip logic ).

    Revision: 12057
    Revision: 12057
    Author:   [email protected]
    Date:     2009-11-20 11:22:05 -0800 (Fri, 20 Nov 2009)
    Log Message:
    Label (and RichText) will show text as tooltip if truncated and new showTruncationTip flag is set to true (defaults to false because Label is often used in skin that have their own tooltip logic).
    QE Notes: New API (showTruncationTip)
    Doc Notes: New API (showTruncationTip)
    Bugs: SDK-23639
    Reviewer: Gordon
    API Change: Yes
    Is noteworthy for integration: Yes
    tests: checkintests mustella/gumbo/components/Button mustella/gumbo/components/Label
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-23639
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as

    Hi blabla12345,
    (untested and without warranty)
    replace this line:
    const sSaveCUBE = "CUBE";
    with this:
    const sSaveCUBE = "cube";
    Have fun

  • URGENT: Covert a true - false value into a bit value

    Hello :)
    I have a problem, How can I convert a true false value into a bit value, because, I declare a variable value with true or false, that means that I have a 1 or a 0, (thinking about digital information)
    for example, one this is my part of my code:
    private boolean _x3 = true;
         private boolean _x5 = false;
         private boolean _x6 = true;
         private boolean _x7 = false;
         private boolean _x9 = true;
         private boolean _x10 = false;
         private boolean _x11 = true;
    public boolean CheckP1(boolean pP1)
              pP1 = x3^x5 ^_x7 ^_x9 ^_x11;
              return pP1;
    This method will send a true or false value, but now I have two doubts, one of them, is, how can get this value, and the second value, how can I conver this value into a bit value
    Thank you so much :)
    Nataly

    Look at a BitSet to hold your boolean values.
    Check the API for details.
    JJ

  • I need to set values of 2 fields to 0 if the join condition is false

    I'll try to explain what I need to do as clearly as possible . I have three sub queries in my data model . My layout is group left .
    My first query :
    SELECT ALL BOEPAY_HD.BPH_RECP_NO_,
    BOE_PAY_HD.BPH_RECP_DATE, BOE_PAY_MODE.BPM_PAY_MODE, BOE_PAY_HD.BPH_ID,
    BOE_PAY_HD.BPH_DEC_CODE, BOE_PAY_HD.BPH_NAME1, BOE_PAY_HD.BPH_IMP_EXP_CODE,
    BOE_PAY_HD.BPH_SITE, BOE_PAY_HD.BPH_TOTAL, BOE_PAY_MODE.BPM_NUMBER
    FROM BOE_PAY_HD, BOE_PAY_MODE
    WHERE (BOE_PAY_HD.BPH_RECP_DATE BETWEEN TO_DATE(:st_date||' 00:00:00', 'dd/mm/yyyy hh24:mi:ss') AND TO_DATE(:en_date||' 23:59:59', 'dd/mm/yyyy hh24:mi:ss')
    AND (BOE_PAY_HD.BPH_RECP_NO = BOE_PAY_MODE.BPM_RECP_NO)
    Second query :
    It is linked to the first query with the primary key BPO_RECP_NO
    SELECT ALL BOE_PAY_OTH.BPO_AMT, BOE_PAY_OTH.BPO_DTX_CODE,
    BOE_PAY_OTH.BPO_RECP_NO
    FROM BOE_PAY_OTH
    On my report I display fields BOE_PAY_OTH.BPO_AMT, BOE_PAY_OTH.BPO_DTX_CODE in a repeating frame .
    The problem is when there is no data in table BOE_PAY_OTH for a particular BPO_RECP_NO , the second sub query is not executed.
    Columns(Values) in my layout overlap with values from the third query .
    I need to find a way to set values BOE_PAY_OTH.BPO_AMT, BOE_PAY_OTH.BPO_DTX_CODE to zero and display them so that there is no overlapping .
    Is there a way for me to achieve this .
    Please help . Thanks.

    This overlapping is usually dealt with in the layout by putting a frame in the appropriate place rather than in the queries. The frame stops items from
    moving up the page.
    Dave

  • Powershell DSC - Get registry value and send $True / $False depending on present or not

    Hello,
    With the script below, I can check if a registry key is present, and if it is not, it will create that registry key. But I just want to know if that registry key is present, and get $True / $False as a result of script. - Is this possible with DSC?
    Configuration ClientConfig
    Param ($MachineName)
    Node $MachineName
    Registry FooCorpReg1
    Ensure = "Present"
    Key = "HKEY_LOCAL_MACHINE\SOFTWARE\Test1"
    ValueName = "Name"
    ValueData = "DSCDemo"
    # Save the MOF file
    ClientConfig -MachineName "localhost" -OutPutPath "c:\Temp\DSC"
    #Start configuration
    Start-DscConfiguration -Path "C:\Temp\DSC\" -Wait -Verbose
    Best regards,
    Anders Johansson

    Not what DSC does or is for.  Use erg to look for vale.
    Test-Path HKLM:\SOFTWARE\Test1\Name
    That is all - it returns true or false.
    ¯\_(ツ)_/¯

  • Why in COM, set smth true, stays true even after System.exit?

    I am using "Jacob" to do COM calls. When I alter the "ShowAll" property of Word.Application and I set it to true, it will then forever be true even if I exit the application AND quit the word application. If I set it to false, the same thing happens, it will always be so. The code to call/set this is:
    (NOTE: This uses classes I made to wrap the Dispatch calls)
    Word wordApp = new Word();
    Documents docs = wordApp.getDocuments();
    Document doc = docs.open("D:\\JavaProjects\\Test.doc");
    //GET VIEW
    View wordView = wordApp.getActiveWindow().getView();
    //PRINT THE VIEW PROPERTIES
    System.out.println("Show All: " + wordApp.getActiveWindow().getView().isShowAll());
    System.out.println("Show Paragraphs: " + wordApp.getActiveWindow().getView().isShowParagraphs());
    //SET THE VIEW PROPERTIES
    wordView.setShowAll(false);
    wordView.setShowParagraphs(true);
    //PRINT THEM AGAIN
    System.out.println("Show All: " + wordApp.getActiveWindow().getView().isShowAll());
    System.out.println("Show Paragraphs: " + wordApp.getActiveWindow().getView().isShowParagraphs());
    doc.close(Document.DO_NOT_SAVE);
    wordApp.quit(new Variant[] {});
    System.exit(0);The actual Dispatch calls are:
    //NO IDEA WHY THIS IS, BUT SHOWALL = TRUE IS -1, AND FALSE IS 0
    private final static int SHOW_ALL_TRUE = -1;
    private final static int SHOW_ALL_FALSE = 0;
    /** SETSHOWPARAGRAPHS **
    * Sets the property (boolean) ShowParagraphs.
    public void setShowParagraphs(boolean showParagraphs)
         Dispatch.put(this, "ShowParagraphs", new Boolean(showParagraphs));
    /** ISSHOWPARAGRAPHS **
    * Returns Boolean of whether or not this is set to show paragraphs.
    public boolean isShowParagraphs()
         return getBooleanValue(Dispatch.get(this, "ShowParagraphs"));
    private boolean getBooleanValue(Variant variantBoolean)
         //MAKE IT AN INTEGER AND GET ITS int VALUE
         int intVariant = new Integer(variantBoolean.toString()).intValue();
         //RETURN IF IS SHOW ALL
         return (intVariant == View.SHOW_ALL_TRUE);
    }I'm wondering if the problem is that I get back either -1 or 0 and if maybe that means something else?

    1: Properties persistence is not a DEFECT but a FEATURE . It was implemented in MS Word so users could change MS word WITHOUT HAVING TO DO IT EACH TIME THEY START IT UP.
    2: Don't you intialise all your variables in your code after you instanciated them ? I am sure you do so and therefore the persitence feature you described should not be annoying you at all. It is not necessary to intialise variables in the BASIC langage but that does not mean you should not do it.
    3: (-1) was chosen arbitrary by Microsoft as the TRUE value for Boolean datatype and 0 the value for FALSE when they designed Visual Basic. This is not a problem if you write code properly
    I recommend you test bool variable in any langages using the following test:
    (myBool <> 0)
    HAVE A THINK ABOUT IT
    Finally,
    you need to understand what you are working with before you complain about it.
    Argument for Argument sake is not good and if you think MS word is a bad program just don't use it. go and write your own word processor in JAVA.
    GOOD LUCK
    I WISH TO APOLOGISE FOR ANY POSSIBLE SPELLING OR GRAMMATICAL MISTAKES I COULD HAVE MADE IN THIS REPLY. ENGLISH NOT BEING MY FIRST LANGUAGE.

  • Why does my preferred search engine gets hide set to True in search.json after every update to Firefox?

    I use DuckDuckGo as my preferred search engine. Everytime Firefox gets updated it dissappears from the drop down menu of search engines. I found in search.json that the Hide value would be set to True. By changing it to False and restarting Firefox DuckDuckGo would be back, until the next update. Why is this happening? It is an extension available from the Mozilla/Firefox extension/addons site.

    First of all, thank you for providing troubleshooting info (Troubleshooter addon), have you tried the searchreset tool.
    * https://addons.mozilla.org/en-US/firefox/addon/searchreset/

  • Regional Setting changing "True" to "Vrai" in France

    Portal 5.0.2, classic ASP. Our report is based on several boolean parameters. The form is submitted by a VBScript function which sets the parameters to a boolean to true or false. Our French users are receiving errors when this function is called - according the POST data in the error page, the "true" has become "vrai" - which it sees as a string. We did not have this problem before 5.0.2, I'm not sure where to start with this one. Will my german users also see "wahr" and "unwahr"?
    Wendy RamsaurKSA

    A boolean variable will have the value true or false. That value only becomes a string when there is a conversion from boolean to string. For example, the following VBScript code converts a boolean to a string:
    Dim bVBBoolDim strVBBoolbVBBool = truestrVBBool = CStr(bVBBool)
    or this Javsscript code which converts a boolean to a string:
    var bBool = new Boolean(1);var strBool = bBool.toString();
    In VBScript, the assumption is that you are converting the boolean to a string for the purpose of displaying the value to an end user. So it attempts to "display" the value in the most suitable way for the end user. In the localized French IE, VBScript will convert the booleanvalue true to the string"vrai".
    If you call a VBScript function passing a boolean value on the same page, then the boolean will never be converted to a string and there will be no problem. When you try to pass a boolean value back to the server through a form parameter, that value must be converted to a string since that is the only way to send the value over Http. The best solution is to realize that there could be conversion error and pass an integer instead of a boolean. You might also have a similar problem if you were passing a datetime value. A datetime value internally is just a number. But if you try to pass it as a form parameter, then it will be converted to a string (and formatted according to some locale). The best bet is to proactively format in a locale neutral fashion so that the server will always know how to interpret the datetime regardless of the version of IE or the locale of the user.

  • UNABLE TO SET parallel_automatic_tuning=TRUE IN Oracle9i Enterprise Edition

    Hi,
    i am trying to set parallel_automatic_tuning=TRUE . but i am unable to set it.
    My oracle version is as below.
    SQL> SELECT * FROM V$VERSION;
    BANNER
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    PL/SQL Release 9.2.0.1.0 - Production
    CORE 9.2.0.1.0 Production
    TNS for 32-bit Windows: Version 9.2.0.1.0 - Production
    NLSRTL Version 9.2.0.1.0 - Production
    Please help to resolve this issue.
    thanks
    sivasankar.

    hi i am unable to set the value as true for parallel_automatic_tuning parameter. ,
    SQL> SHOW PARAMETER PARALLEL
    NAME TYPE VALUE
    fast_start_parallel_rollback string LOW
    log_parallelism integer 1
    parallel_adaptive_multi_user boolean TRUE
    parallel_automatic_tuning boolean FALSE
    parallel_execution_message_size integer 2148
    parallel_instance_group string
    parallel_max_servers integer 5
    parallel_min_percent integer 0
    parallel_min_servers integer 0
    parallel_server boolean FALSE
    parallel_server_instances integer 1
    NAME TYPE VALUE
    parallel_threads_per_cpu integer 2
    recovery_parallelism integer 0

Maybe you are looking for

  • Messages are remaining in my Outbox

    Hello, last night I tried to set up my mail application, but now I tried to send an e-mail and I am getting the following message: "This message could not be delivered and will remain in your Outbox until it can be delivered. The sender address *****

  • How do I disable the plugin check at Firefox startup?

    Starting in the last day or two, every time I start Firefox, in addition to my homepage, I get a nuisance tab that is checking my plugins. I need to disable this stupid function or I will have to discontinue using Mozilla Firefox after 20 years as a

  • Addition of Field in Material Master

    Hi, We want to add new text field in the material master in purchasing view. Please guide... Thanks HSP

  • Strange lines appearing behind itunes

    I went away for the holidays, and when I got back I booted up my 2006 iMac. Today for the first time, there are strange lines appearing behind iTunes whenever it is open but not the active window. I tried quitting and restarting iTunes, but the lines

  • BDC call transaction method

    Should 'call transaction' be called inside the loop or outside the loop in BDC?