AS - set status of NSButton (checkbox)

Hi,
i am using a checkbox on window. This window is used as a preference window.
in my *droplet code* i do:
on launched
-- some code
-- Here i want to change the status of a checkbox -> NSbutton
-- where:
-- myWindow is the As name of the window (not displayed at this moment)
-- checkBoxStatistics is the AS name of my NSbutton checkbox
-- i have tried:
if myVAR is false then
set integer value of button "checkBoxStatistics" to 0
-- set string value of button "checkBoxStatistics" to "0"
end if
end launched
*idea 1 and 2 results in:*
Can’t set «class butT» "checkBoxStatistics" to 0. (-10006)
adding:
of window "myWindow" does not help either.
background:
i am reading values of my plist on launch of my app and going to sync the Gui-elements (here my nsbutton - checkbox) in the preference window with the values of the plist file.
what am i doing wrong here ?
Thanks in advance
Best regards
fidel
Message was edited by: fidel-castro

Hi,
thank you very much for the big effort. I really appreciate this.
Right now i am guessing that i must have a problem in my nib file itself...as it seems to be a basic problem
if i run the following code:
on launched theObject
tell window "myWindow"
set chstate01 to (state of button "checkBoxStatistics")
--set chstate02 to (state of button "checkBoxGrowl")
--if (chstate01 is 0) then set state of button "checkBoxStatistics" to 1
--if (chstate02 is 0) then set state of button "checkBoxStatistics" to 1
end tell
end launched
It ends up with an error:
Can’t get «class butT» "checkBoxStatistics" of window "myWindow". (-1728)
So basicly i cant even read the status of my button. Thats my my bet is: some basic problem/error whatever in the .nib.
While tipping & rethinking those lines i realized that i forgot to mention 1 informations....lets see if it is relevant.
So i do have a NSWindow which contains a NSTabView which contains a NSbutton.
....lets think....ok i tried adding a NSbutton directly to my NSwindow.
and it is working.
I will go into my corner now......and continue tomorrow to think about howto handle the construction:
Nswindow->NsTabview->NSButton
Thanks to everyone. Help was great and i was blind. sorry about that.

Similar Messages

  • How to Request status of a checkbox?

    Hi!
    I am trying to get the status of a checkbox from my JSP page. My JSP page is posted to a Servlet. Because request.getParameter() could only return a String which is suitable only for a textfield.
    I also need help on getting the selected value in a list or menu box or radio button.
    Thanks!

    its very simple.
    just use your select tag
    <select name="select">
    <option>value</option>
    <option>value</option>
    <option>value</option>
    </select>
    On jsp or servlet just use request.getParameter(select);
    it will return selected value..
    Same with option button.
    best of luck
    tried it
    [email protected]

  • Initial Set Status of Kanban board

    Hi all,
    I want to ask a question. I am using classic kanban processing with Purchase Order replenishment strategy. I am new to kanban. I just want to ask how I can set initial status of kanban container in first time SAP is go live. Like in inventory, we have good movement type for initial stock (561). Suppose I have 5 kanban container. 3 of them have status full and two of them have status empty. The question is how i can set status full for 3 kanban container for the first time setup because I found that in first time status setup of 5 kanban container is waiting. 
    Thanks for your response.

    thank you for your answer.
    i know how to set default on client-level. what i would like to do (maybe with a user exit) is to set the header status depending e.g. on plant.
    matthias

  • Set status of application

    Hi,
    if i want to set the status of an APEX application with the following PL/SQL code, i get an error. The the security_group_id i have from the column security_group_id of the table www_flows.
    BEGIN
    -- Set status unavailable.
    flows_020200.wwv_flow_api.set_security_group_id(p_security_group_id => 632506294981910);
    flows_020200.wwv_flow_api.set_flow_status (p_flow_id => 105, p_flow_status => 'UNAVAILABLE', p_flow_status_message => 'The application isn't available.');
    COMMIT;
    END;
    ORA-20001: Package variable g_security_group_id must be set.
    ORA-06512: at "FLOWS_020200.WWV_FLOW_API", line 45
    ORA-06512: at "FLOWS_020200.WWV_FLOW_API", line 1082
    ORA-06512: at line 4
    Has anybody an idea what's wrong?
    Many thanks in advance.
    Martin

    Hi Scott,
    i use SQL*Plus and the user which i'm connected to the database is a DBA user.
    Regards
    Martin

  • Application Set Status

    Some tasks in the BPC Admin Console can change the application set status from available to not available, what kind of tasks are generating an application set status change? Is there somewhere an overview of this?
    Thanks in Advance!

    HI
    Normally application set would go to not available status when you process dimensions and you can avoid it be unchecking the button not to take system offline while you process.
    The other time system goes offline would be when you do full process of the application and dimensions and then it would automatically be available i guess.
    Thanks and Regards
    Harish B K

  • ECM Set status authorisations

    Dear All,
    I am implementing ECM for BOM, but having problem during authorizations to set status  to users. As we have implemented there scenarios for ECM.
    1.     Creator
    2.     Reviewer
    3.     Approver
    Now I want to set authorization as given below to different users.
    USER 1: Create ECR with CC01
          Set Status:  Checked ECR (in Header)
    USER 2: Change ECR with CC02
         Set Status:  Change Possible (in Object tab)
         Set Status:  ECR Checked (in Header)
                         Approve ECR (in Header)
                         Covert ECR (in Header)
    Now user can change BOM with ECR. After completion of change now user can Complete ECR.
            Ser Status: Complete Change (in Object tab)
                         Release change (in Object tab)
    USER 3:
         Set Status:  Close ECO (in Header)
                          Release ECO (in Header)
    Please guide us, possible ways to give authorizations to define users.
    Regards,
    Swapnil  Vaidya
    Moderator message: not directly related to ABAP development, please have a look in the Netweaver Security forum.
    Edited by: Thomas Zloch on Mar 17, 2011 10:16 AM

    hi Swapnil,
    Can you plz help me on getting this information
    I wanted know in which table status, date and person-responsible this data will store for particular ECR number. for references please see below screen-shot
    For ex:- Check ECR   12.02.2012     USER1
                 ECR Checked 12.02.2012   USER2
    similar for all status in which table the data is stored

  • SC workflow - "set status to released" step tRFC error

    Hi All,
    We have a "Shopping Cart without approval" workflow defined in our SRM system.
    The workflow is working fine in Develpoment scenario however in Production it is stuck at "set status to released" step.
    Checked that step and its a backgroung step with tRFC Object type.
    When we click on tRFC Object Type it opens up "Transactinal RFC" screen with msg "error during tRFC call" and tRFC destination field as WORKFLOW_LOCAL_500.
    Any help is this regard will be highly appreciated.
    TIA
    Regards,
    Richa Sinha

    Hi RS,
    havent worked on SRM WF's,
    check with BASIS on the Automatic WF Settings in SWU3 tcode, as you maintain RFC there, may be the RFC node in SWU3 is not active or something.
    Hope it helps.
    Aditya

  • OWB ProcessFlow (ROUTE/SET STATUS)??

    OWB ProcessFlow (ROUTE/SET STATUS)??
    We are using OWB repository 10.2.0.2.0 and OWB client 10.2.0.2.8. The Oracle version is 10 G (10.2.0.2.0). OWB is installed on Sun 64 bit server.
    I learned that ROUTE/SET STATUS usage in ProcessFlow have some issues. How do we use them?
    I find limited details on this under OWB processflow help.
    Did any one in this forum face such issues?
    Any idea?
    Thanks in advance.
    RI

    Hi,
    Have you tried using an Oracle Scheduled Program to execute the batch, and then just calling the Scheduled Program from OWF?
    Regards
    Steven

  • How to set status

    Hi all
    how to set status of subscreens

    HI,
    Subscreen doesn't has any GUI status. They take the status of the parent screen.
    for further details, check,
    http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dbabfe35c111d1829f0000e829fbfe/content.htm
    Regards,
    Anirban

  • Business transaction 'Close' sets status 'REJC' and 'ERLD'

    Good day everyone!!!
    I added a new status  "Rejected (REJC) " the behavior is similar to standard "Confirmed(ERLD)" .
    (coppied from Confirmed
    After this system says:  
    Business transaction 'Close' sets status 'REJC' and 'ERLD'
    Message no. BS292
    Diagnosis
    You specified in the procedure control of status REJC and status ERLD that both statuses be replaced by the procedure 'Close'. Both statuses have a status number.
    System Response
    When the procedure 'Close' runs, the System will try to set statuses REJC and ERLD. They cannot be active at the same time because they both have status numbers so the entry is rejected.
    Procedure
    Delete one of the two statuses
         or
    give only one of the statuses a status number
         or
    change the procedure control.
    Questions:
    1) Is it possible to get rid of this message?
    2) if possible, how ?
    3) what problems we may have, after doing this ??
    Regards
    Sindry
    Edited by: Sindry on Jan 5, 2011 9:59 AM

    hmmm seems the problem i got was a bit weird. the first server that I was using was only a Windows 2000 Professional Edition. When I installed both database and OAS in a Windows 2000 Server , I was able to deploy the WAR file properly and no NLS error was displayed. However, I'm still getting the servlet not deployed problem.
    I'm getting this in the status display of the WAR File
    context Not Loaded Servlet org.springframework.web.context.ContextLoaderServlet 0 0 0 1

  • ML81N set status acceptance automatically

    Dear guru.
    During ML81N  does exist a chance in order that when I save the service entry sheet the
    system set status acceptance automatically.
    I donu2019t want to manually accept every service entry sheet saved.
    Thanks

    Hi,
    There is nothing available in standard for auto release.
    You may create a program to run at regular intervals to release teh entry sheets created.
    You may use BAPI_ENTRYSHEET_RELEASE  for the release.
    Hope this helps
    regards

  • Personalization: Set Initial Vaule for checkbox

    Hi experts,
    I try to change the intial value of the check box in iProcument screen but it doesn't work. I try to set checked status in checkbox, the default value of this is unchecked.
    I also set FND:OA:Enable Defaults to 'Yes'
    Even though i find the checkbox's value which is store in database is 'Y' and I also try input the value to intital value of checkbox like: 'Y', 'Yes', 'True', '1'. But It still doesn't work.
    Please help me to resolve this issue.
    Thanks in advance.
    Regards
    Hieu

    Hi Hieu,
    For Changing Initial Value of a newly created check box (which is yet not stored or retrieved from database), set the property "Initially Checked" to "True".
    Default value for checked is "on" and for unchecked its null.
    Hence
    Even though i find the checkbox's value which is store in database is 'Y' and I also try input the value to intital value of checkbox like: 'Y', 'Yes', 'True', '1'. But It still doesn't work.Please try to set it to "on" in place of 'Y'/'Yes' and let me know if it works for you.
    Abdul Wahid.

  • How can I find the status of a checkbox?

    I am writing an invoice which involve Parts and Labor for an auto shop.  A check box precedes each line.  If the checkbox is checked, then the line is for a part, which I will use to add parts and labor separately for tax and information purposes.
    Question:  Using Acrobat Professional 8, what Java code would check whether a checkbox named CB1 is checked or not?.

    Thanks for your valuable time.  I am stuck with this item.  Please, consider the following code:
    var strCheckBox;
    var flgCBStatus;
    var strItemLine;
    var dblTotalParts = 0;
    var dblLineValue;
    this.getField("AllParts").value = 0;
    var i = 0;
    while( i < 16 )
    strCheckBox = "CB" + i;  //that will result in strCheckBox = "CB0" trough CB15
    strItemLine = "LT" + i;      // Same with this other field.  But this seems to be working
    dblLineValue = this.getField(strItemLine).value;
    flgCBStatus = this.getField(strCheckBox).value;  // Message I get "this.getField(strCheckBox) has no properties"
    if(dblLineValue > 0)
    //  if(flgCBStatus == "Yes")
                 dblTotalParts = dblTotalParts + dblLineValue;
    i++;
    if(dblTotalParts > 0)
          this.getField("AllParts").value = dblTotalParts;
    // End of procedure
    I defined the CheckBox (which are labeled CB0 trough CB15 in the form) to return the value "Yes".
    I need the loop to find the status of every line in the form.  I would appreciate any comment on it.  Also, I changed the CB so it would return "ON" instead of Yes as originally set up,but it does not make any difference.
    Thanks in advance.

  • Service Desk Unable to set status to Customer Action and Proposed Solution

    Hi Everyone,
    We are unable to set a service desk issue to the status Customer Action or Proposed solution.
    I have someone create a new issue in the bakend system and when I receive the issue I assign it to myself as the processor. When I try to set teh status to Customer action it is grayed out.
    I have checked the following:
    1. As a test I assigned My user with sap_all profile so does not appear to be authroisation related
    2. The status profile has all six standard values (New, customer action, In Process, Sent to SAP, Proposed Solution, Confirmed).
    3. The transaction types have been defined using the standard profiles for Text Det. Procedure, Partnet Determination Procedure, Status Profile. The Partner Function ORG is set to Sold-To-Party , The date profile is a SRV_SLA_ITEM and the Action profile is set to SLFN0001_ADVANCED. The Org Data Prof is set to a customer defined one: ZSSC000000001.
    4. I have checked transaction ppoma_crm and the org structure and my user is assigned to a team lead position.
    Your assistance is greatly appreciated.
    Michael

    Hi Michael,
    please check your status profile for the "lowest status no." and "highest status no." values of the status values as Alex mentioned!
    You can find this in SPRO under "SAP Solution Manager> Scenario-Specific Settings>Service Desk>Service Desk>Status Profile".
    If the "high" value of the status "New" is lower than the status number of status "Customer Action" than you can not set the message from "New" to "Customer Action"!
    Hope this helps,
    Christoph

  • Cannot set status of Urgent Change after manual transport

    Hi all,
    We are usng CHARM in Solution Manager 7.1 for import to the SAP ECC (EHP6) systems.
    I cannot set the status of the Urgent Change document (ZMHF) to status "To be Tested" after the transports were manually released and manually imported to the ECC QA system.
    When I use action "Pass Urgent Change to Test", the system stopped with error "Not all task are yet released" and will not change the status .
    Based, on the Task List log, the system started the release process although no transports were released.
    Is there any way that I can update the status of the Urgent Change document to "To be Tested"?
    I tried program CRM_SOCM_SERVICE_REPORT but still did not change the status.
    Any suggestion?
    Thanks,
    Tess

    Hi Venu,
    have a look under System Administration - System Configuration -- Knowledge Management -- Configuration --Content Management -- User Interface -- Commands -- UI Command Groups -- StatemanagementGroup.
    See Java class: com.sapportals.wcm.rendering.uicommand.cm.UIStatemanagementGroupCommand. Take the class and decompile this and everything needed around to understand how this class works.
    Then you can choose to extend this CommandGroup to also have a command "Resubmit for Approval" or you can implement your own UI Command only for resubmitting (you will also have to activate your command (group) by settings within the configuration).
    On the other hand, if all this is completely new to you, I'm a bit sceptical if the task isn't a bit too big as a first task on KM implementation topics...?
    Hope it helps
    Detlev

Maybe you are looking for

  • Mail adapter - content coming as attachment

    Hellow experts, I am sending data from R3 to emails using mail adapter.  I am using the follwoing mail package format.   <?xml version="1.0" encoding="UTF-8" ?>   <ns1:Mail xmlns:ns1="http://sap.com/xi/XI/Mail/30">   <Subject>Water Catchment Form</Su

  • Do we need a sender channel for IDOC to file scenario.

    Hi, Do we need a sender channel in IDOC to FILE scenario. Because IDOC is being sent by SAP R/3 System and when creating objects in ID using wizard, it doesn't ask for sender channel. What is the reason for this? Regards, Younus

  • Re: NB200 - Making noise and screen goes blank

    Hi My notebook is making pitched noise and the screen becomes blank. Please help with this issue. Thanks

  • Reporting que

    Hi In my current system , source system didnot maintained Regions (South,north,east, west) they maintianed only the states. My reporting requirement is to develop the report for region...means region wise sales across country.. making changes for reg

  • Query header not to display

    Hi I am using BW 3.1 version Is that possible to not display Report header in WORKBOOK, Do we have any setting to take off header level i mean to say when we execute Report it displays the filters and Characteristics and Key figures whet ever we use