Checkbox unchecked : How to check ?

Hello,
I am a ABAP & Web Dynpro beginner , and I try to modify a checkbox unchecked by default when the opening of a window.
This window contains two tabs, the first tab contains various information and fields with my checkbox, and the other tab contains other information.
So I have my box which is not checked 'IS_CNCT_PERSON_FLG' in my first tab.
I have made  the code below:
ZSET_IS_CNCT_PERSON_FLG method.
    TYPE REF TO DATA lo_nd_cp_basic_data if_wd_context_node.
    TYPE REF TO DATA lo_el_cp_basic_data if_wd_context_element.
    DATA TYPE ls_cp_basic_data wd_this-> Element_cp_basic_data.
    DATA TYPE lv_is_cnct_person_flg wd_this-> Element_cp_basic_data-is_cnct_person_flg.
* Navigate from to via lead selection
    lo_nd_cp_basic_data = wd_context-> get_child_node (name = wd_this-> wdctx_cp_basic_data).
* @ TODO handle non existent child
* IF lo_nd_cp_basic_data IS INITIAL.
* ENDIF.
* Get element via lead selection
    lo_el_cp_basic_data = lo_nd_cp_basic_data-> get_element ().
* Alternative access via index
* = Lo_el_cp_basic_data lo_nd_cp_basic_data-> get_element (index = 1).
* @ TODO handle not set lead selection
    IF IS INITIAL lo_el_cp_basic_data.
    ENDIF.
* @ TODO fill attribute
Lv_is_cnct_person_flg * = 1.
* Set attribute single
    lo_el_cp_basic_data-> set_attribute (
      name = `` IS_CNCT_PERSON_FLG
      value = i_is_selected).
EndMethod.
I call this method:   WDDOMODIFYVIEW post-exit :
IF = first_time abap_true.
    wd_this-> ZSET_IS_CNCT_PERSON_FLG (abap_true).
  ENDIF.
Then, I open my window and my box is checked, except that when I click the second tab and I go back to the first, the checkbox is unchecked again.
I don't know if you need more info :).
Can you give me a solution to resolve my problem.
Thank you in advance!
Vincent

Hi sanasrinivas,
I have already test in WDDOINIT method, but I had an error :
OBJECTS_OBJREF_NOT_ASSIGNED_NO
Access via 'NULL' object reference not possible.
Method: ZSET_IS_CNCT_PERSON_FLG of program /1BCWDY/51AE06KQDH8STUCI7DHL==CP
Method: IF_V_BD_OIF_BASIC_DATA~ZSET_IS_CNCT_PERSON_FLG of program /1BCWDY/51AE06KQDH8STUCI7DHL==CP
Method: PRE007PKSSCNUFQG630JDXNYTOIJ of program /1BCWDY/51AE06KQDH8STUCI7DHL==CP
Method: IF_WDR_VIEW_DELEGATE~WD_DO_INIT of program /1BCWDY/51AE06KQDH8STUCI7DHL==CP
Method: DO_INIT of program CL_WDR_DELEGATING_VIEW========CP
Method: INIT_CONTROLLER of program CL_WDR_CONTROLLER=============CP
Method: INIT_CONTROLLER of program CL_WDR_VIEW===================CP
Method: INIT of program CL_WDR_CONTROLLER=============CP
Method: GET_VIEW of program CL_WDR_VIEW_MANAGER===========CP
Method: BIND_ROOT of program CL_WDR_VIEW_MANAGER===========CP
And I don't know how to resolve the problem.
To be sure,  you confirm me the WDDOMODIFYVIEW method is not the solution ?
Thanks

Similar Messages

  • All of my apps are in iTunes AND on my iPod Touch. in iTunes it the checkbox next to sync apps is UNchecked. should i check the box and have to reorganize all my apps or leave it "un-synced"?

    all of my apps are in iTunes AND on my iPod Touch. in iTunes, under my iPod, the checkbox next to 'sync apps' (in the Apps page under my iPod) is Unchecked. if I check it, all my apps will be all over the place and I will waste hours trying to get it back to the way it was. I don't really have a reason to check the box but I don't know. should I check the box and have to reorganize all my apps or leave it "un-synced"?
    by "un-synced" I mean how it is on my iPod and iTunes at the same time but its not synced
    this happened b/c I had to make a new user acct on my only [Windows 7] computer and when i clicked transfer purchases, this happened.
    any help would be greatly appreciated
    And as you can see ( besides my problem here) i am out of dropbox space. it would be nice if you can click http://db.tt/TQiPs59V to make an acct to give me and you more space

    You should ALWAYS make sure that everything is on your computer and backed up, most especially before any update. The iphone is designed to be synced to your computer regularly.
    If you have failed to do this, then you need to redownload:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • How to check whether a checkbox is checked

    This code:
          if (checkBoxCSharpShown.IsChecked)
            checkBoxCSharpShown.IsChecked = false;
    elicits:
    "Cannot implicitly convert type 'bool?' to 'bool'. An explicit conversion exists (are you missing a cast?)"
    How can I check whether the checkBox is checked?
    Delphi ancient/C# newbie

    So why is this so complicated? Why doesn't a check box have a true/false value? The answer is that a checkbox can (optionally and not by default) be a three-state control.
    When ThreeState is true, the checkbox has three states:
    Checked
    Not Checked
    Indeterminate
    They correspond to these tests:
    bool checked = IsChecked.HasValue && IsChecked.Value == true
    bool unchecked = IsChecked.HasValue && IsChecked.Value == false
    bool indeterminate = IsChecked.HasValue == false
    One of the ways a three-state checkbox is used is in a property dialog. If the user selects multiple items (all having some boolean property called 'Active'--for instance), what should the proprety dialog show for that selection if the value of Active is different among the selected items? Should it show True? That wouldn't work, they are not all True, same for False. So instead the property dialog would show Indeterminate, indicating that the collection of Active values is neither True, nor False.
    Now having said all of that I'll refer you to:
    CheckBox.Checked
    This is true or false. If the ThreeState property is True, Checked returns True for True or Indeterminate.

  • How to set uncheck in Bidder check box in T-Code "BBPMAININT"

    Hi All,
    Could any body help me by providing the information "How to set uncheck in Bidder check box in T-Code "BBPMAININT". I search all the BADI and EXIT but didn't get.
        My problem is that, I want to uncheck "BIDDER" check box for Vendor whose account group is "ZORD" in transaction "BBPMAININT". I checked all the BADI and Exit but didn't get.
    Regards
    Sanjay

    Hi
    Which SRM version are you using ? Please elabore your requirments in more details in the next reply.
    <b>Meanwhile, please try the following SAP OSS Notes -></b>
    Note 512218 - Ext. partner maintenance: checkbox problems
    Note 455440 - Ext. partners without contact person: Checkbox problem
    Note 585126 Correction of Section508 implementation
    528367 Multiple company: Evaluated receipt settlement
    527097 BBPMAININT: 'Undo All' not complete
    361829 EBP (BBP2.0C): Business partner <-> vendor mapping
    Note 357201 BBP 2.0B: Business partner <--> vendor mapping
    Note 355506 Ext. no. assignment when creating business partners
    Do let me know.
    Regards
    - Atul

  • I downloaded pictures onto my iPhone from computer twice by mistake now when i uncheck/sync then check and sync again  i keep getting two lots of pics..how can i get just the one set again? thnx

    I downloaded pictures onto my iPhone from computer twice by mistake now when i uncheck/sync then check and sync again  i keep getting two lots of pics..how can i get just the one set again? thnx

    You're welcome.
    All photos transferred from your computer are stored in the iPhone's Photo Library regardless if you select a single album or folder of photos to be transferred or multiple albums or folders. The photos on the albums or folders of photos include a pointer to the original photos stored in the Photo Library. The photos are not duplicated taking up double the storage space. This way you can view the photos in an album or folder of photos only by selecting the album or folder, or all photos in all albums or folders by selecting Photo Library.
    Makes more sense when transferring multiple albums or folders of photos which cannot be changed when transferring only a single album or folder of photos.
    The same applies with iTunes and music playlists. A song can't be in a playlist unless it is in the main iTunes library. Placing a song in a playlist does not duplicate the song.

  • How to check a checkbox field value in fw9 PDF form

    Hi,
    I got a PDF given form IRS (http://www.irs.gov/pub/irs-pdf/fw9.pdf). While creating a widget to this pdf form to sign it, I merged the custum data to those PDF form fields using API setMergeFields.
    All the data fields are merged fine except the checkboxes. I tried by passing the values to the merge_fields array as 'On', '1', 'checked', 'checkbox(checked)' but no luck
    What is wrong here in checking the chexbox field in this fw9 PDF or How to check a checkbox field in a form?
    Thank you,

    Hi Simon,
    I re-added and edited the fields of fw9 form by pdf printer. While doing so, I made fields as ready only so that, the data cannot be edited in the form through the widget but will be merged the data to fields only be the code. Wherein Im using the widget only for signature but not for form filling.
    Here, Im able to merge my custom data to all fields while creating widget but not to the fields of checkboxes. The checkboxes fields which are made ready-only are not allowing me to merge the value as checked by the API.
    Please help me,
    Thanks you,

  • How to check the checkbox of Adobe Installer with the Aplescript??

    Hi All,
    am trying to Install Adobe Flash Player thru stand alone Installer, I want to check the check box and need to click on Install button,
    Whem am trying to get the entire contents of window thru UIElementInspector, am unable to get the contents of checkbox and Install buttons..
    I just tried myself with the below script to click the checkbox, but did not succeed, error saying unable to get the checkbox.. Pls suggest how to check..
    tell application "System Events"
        tell process "Adobe Flash Player Install Manager"
            set frontmost to true
            click the checkbox "I have read and agree to the terms of the Flash Player License Agreement" of window "Adobe Flash Player 11.5 Installer."
        end tell
    end tell
    Pls check the below link to view the image of the Adobe Flash Player Installer.
    https://docs.google.com/document/d/1yzyBTrvi94QxjlEAlcbudOBpXiTGPEI2LA3D1iEo8Gw/ edit

    I'm working on a similar script, but when I execute the script, I run into this error:
    error "System Events got an error: Can’t make {563, 234} into type list." number -1700 from {563, 234} to list
    Any ideas? Here's the background: I'm trying to click the search box on this page: http://www.alexa.com/siteinfo/payeasenet.com
    Here's my UI Inspector results of said element:
    <AXGroup>
         <AXScrollArea: “”>
          <AXWebArea: “”>
           <AXGroup: “”>
            <AXGroup: “”>
             <AXTextField: “Enter a search query”>
    Attributes:
       AXRole:  “AXTextField”
       AXSubrole:  “AXSearchField”
       AXRoleDescription:  “search text field”
       AXChildren:  “<array of size 0>”
       AXHelp:  “”
       AXParent:  “<AXGroup: “”>”
       AXPosition:  “x=550 y=212”
       AXSize:  “w=214 h=30”
       AXTitle:  “Enter a search query”
       AXDescription:  “”
       AXValue (W):  “”
       AXFocused (W):  “1”
       AXEnabled:  “1”
       AXWindow:  “<AXWindow: “Payeasenet.com Site Info”>”
       AXSelectedTextMarkerRange (W):  “(null)”
       AXStartTextMarker:  “<AXTextMarker 0x60800024af80 [0x7fff758b4eb0]>{length = 24, bytes = 0xbd040000000000006024c514010000000000000001000000}”
       AXEndTextMarker:  “<AXTextMarker 0x600000248a30 [0x7fff758b4eb0]>{length = 24, bytes = 0xbf0400000000000040420c17010000000100000001000000}”
       AXVisited:  “0”
       AXLinkedUIElements:  “(null)”
       AXSelected:  “0”
       AXBlockQuoteLevel:  “0”
       AXTopLevelUIElement:  “<AXWindow: “Payeasenet.com Site Info”>”
       AXNumberOfCharacters:  “0”
       AXSelectedText (W):  “”
       AXSelectedTextRange (W):  “pos=0 len=0”
       AXVisibleCharacterRange (W):  “pos=0 len=0”
       AXInsertionPointLineNumber:  “0”
       AXTitleUIElement:  “(null)”
       AXAccessKey:  “(null)”
       AXRequired:  “0”
       AXInvalid:  “false”
       AXPlaceholderValue:  “”
       AXARIABusy:  “0”
    Actions:
       AXPress - press
       AXShowMenu - show menu
       AXScrollToVisible - AXScrollToVisible

  • HOW TO CHECK THE CHECKBOX VALUE WITH SQLCE DATABASE

    Hai All,
       Good Day! I am using VB in Visual Studio 2008. I have a form with check boxes and one button control. If i selected the check box and then click the button, check the database table field and check box text are equal. if both are equal then
    how to check?
     I have tried it. The code is:
    Public Class Form1
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    Dim conn As New SqlCeConnection
    Dim cmd As New SqlCeCommand
    conn.ConnectionString = "DataSource = E:\Vbprojectex\WindowsApplication3\WindowsApplication3\Database1.sdf"
    Try
    cmd.Connection = conn
    conn.Open()
    If CheckBox1.CheckState = 1 Then
    cmd.CommandText = "SELECT Aerator FROM ttabpagelist where Aerator = CheckBox1.Text"
    TextBox1.Text = 1
    End If
    cmd.ExecuteNonQuery()
    Finally
    conn.Close()
    End Try
    End Sub
    End Class
    Thanks & Regards Sasi ................. Go Green

    probably something like (ofc below will never give result since Aerator can't have 2 values, you will have to adjust the second check box column obviously)
    Try
    cmd.Connection = conn
    conn.Open()
    dim strsql as string = "= "SELECT Aerator FROM ttabpagelist "
    Dim whereConcatenator As String = " WHERE "
    Dim Wherestatement As String = String.Empty
    If checkbox1.checked = True Then
    Wherestatement += whereConcatenator
    Wherestatement += "Aerator = " & checkbox1.Text
    whereConcatenator = " AND "
    End If
    If checkbox2.checked = True Then
    Wherestatement += whereConcatenator
    Wherestatement += "Aerator = " & checkbox2.Text
    End If
    cmd.commandtext = strsql & wherestatement
    TextBox1.Text = 1
    End If
    cmd.ExecuteNonQuery()
    Finally
    conn.Close()
    End Try

  • How to check/uncheck all check boxes in an insert-not-allowed block

    Hi All,
    I have a column of check box which is placed in a multirow block. This block's INSERT_ALLOWED property is set to false. The column of check box is not a database item and its insert_allowed property is to true. Now I use the following code which is in when-button-pressed trigger to control checking/unchecking all the check boxes:
    go_block('selected_payment');
    first_record;
    loop
    :cb_payflag:= 'N'; -- uncheck the check box
    exit when (:system.last_record = 'true');
    next_record;
    end loop;
    It gives me 'FRM-41051 Cannot create records here' error, and it goes into an infinite loop. It looks like it never reaches the last record where the block actually contains two records.
    Please help!
    Thanks in advance.
    Regards,
    Vanessa

    It sounds like your block does not have a field where the cursor focus can go when looping through the records. Create a dummy non-db field in the block which is enabled and has insert/update allowed. see if it then works. If it does then you can shrink the field down to 1x1 pixels with no border so the user cannot ever click on it and it's invisible.

  • How to check java disable

    Hello Friends,
    i have desktop application...
    i am technically not that much experince..
    i have one problem in my pc.
    i don't know how to check java disable or not?
    can any one guide me for the same
    Thanks in advanced,
    <Link Edited By Host>

    The automatic disable is for Java (not javascript) INSIDE Safari.
    Safari > Preferences > Security > [√] Enable Java
    To check that Java is installed, open Java Preferences.app, available in your /Applications/Utilities folder
    If Java is installed, it will show the version. If not Installed, you should be offered the option to download and Install it.
    There is also a checkbox in Java Preferences for:
    [√] Enable applet Plug-in and Web Start Applications (unchecked by default).
    If you do not use Java inside your Browser for a few weeks, it will become disabled to protect against malware that downloads java.

  • How to check lock status of field in current document?

    Hi,
    How to check the status of field in current document(master agreement), that is whether its locked or not.
    I locked "Publish to Supplier" checkbox after MA is saved first time. Now, I want to check the status whether this field is locked or not in the same document.
    IsLockOwner( ) is not returning the correct value. Its not giving the current document field lock status.
    Is there any way to get current document field status?
    Thanks,
    Saloni

    Hi,
    If I understand correctly, your requirement is to get the value of this field "Publish to Supplier on". It can be achieved by writing the below:
    isVendorVisible = doc.getExtensionField("VENDOR_VISIBLE").get();
    Meaning, if the box is checked, it will return a value = true and if not then false.
    Hope this helps,
    Regards,
    Vikram Shukla

  • Project server 2013 how to check work hours per hour per project

    Hi all,
    I would like to know how to check the total work hours for a project per month. For examples, I want to know all the work hours for all resources spent for the project A in August. Any idea?
    Thanks,
    Anna

    Hi Anna,
    If you don't want to write queries, I'd suggest you to simply open the project unchecking the option "load resources summary assignments" and go to the task usage view. Then display the project summary task and choose the monthly timeframe ("view"
    tab) for the timephased part of the screen (right part).
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

  • The database structure has been modified - how to check if it happend?

    Hello,
    I have a question. How to check if the database structure has been modified? I know that there is shown a messagebox after creating table and adding some fields, but sometimes this message appear after some seconds. The problem is that I want to create table and UDO for this table, and until database structure is not modified I got an error message. If I wait and DB strucuture modifies then UDO is creating correctly.
    My question is - does anyone know how to check if database structure has been modified?
    Regards,
    Hmg

    Hi Szymon,
    I guess you are stuck up in a kinda scenario, where in, you will be populating a form with values, before the structure modifies, if this is going to be your problem, I can help you out with a work around.
    In the beginning of the process, before the creation of the UDO or tables, set a boolean value to false, and once all UDO's and Tables are created, only then, should you make it true and only after the boolean becomes true, you should proceed with populating the values from the screen.
    I really ament sure what your problem is, but one of my guys faced this problem, I then, thought even you might have a similar problem.
    Satish.

  • How to check connection from SAP to reservation system?

    Dear Experts,
    May I know how to check whether the connection between SAP and the reservation system has been set up and ready to use?
    Thanks.

    Hi
    You need to check the identification code issued to the enterprise by AMADEUS must be entered in the R/3 Customizing for Travel Planning under Master Data u2192 Control Parameters for Travel Planning u2192 Define sales offices and Define API access parameters.
    External reservation system In the Travel Planning subcomponent Travel Management accesses an external reservation system connected to R/3 to carry out the queries on available travel services and to book the selected services. The reservation system currently available is the AMADEUS Global Travel Distribution system.
    For more information, see Technical Prerequisites for Travel Planning--
    Technical Prerequisites for Travel Planning
    Before you can use Travel Planning fully, a number of internal R/3 and external prerequisites or settings must be fulfilled.
    Connection to an External Reservation System
    The online booking function in Travel Planning is based on the cooperation with external reservation systems that are used to communicate with the service providers. The R/3 user has access to the following functions via the connection to an external reservation system:
    u2022 Availability query of travel services
    u2022 Transfer of additional information about selected travel services
    u2022 Price information
    u2022 Processing of reservation by the respective provider
    u2022 Synchronization of the data in SAP Travel Planning if external booking changes have been made
    In the current release the external reservation system in use is AMADEUS Global Travel Distribution. AMADEUS is a subsidiary of Lufthansa, Air France, Continental Airlines and Iberia. The reservation system it provides is in worldwide use and 160,000 terminals in 37,000 travel agencies and ticket sales centers in over 130 countries are connected to it.
    In order to carry out online booking via AMADEUS the following must have been carried out:
    u2022 Your enterprise must have signed an agreement with AMADEUS for the use of the interface and be registered at AMADEUS with a user ID
    u2022 A network connection to the AMADEUS computer center must have been opened
    u2022 The identification code issued to the enterprise by AMADEUS must be entered in the R/3 Customizing for Travel Planning under Master Data u2192 Control Parameters for Travel Planning u2192 Define sales offices and Define API access parameters.
    For questions about registration, contact the SAP & AMADEUS Competence Center:
    SAP & AMADEUS Competence Center ACC 02 Neurottstrasse 16 69185 Walldorf Germany
    Cheers
    Mukta

  • How to check SSO user from database?

    Hi:
    I've posted this topic in Forms forum:
    How to check SSO user from database?
    then as I've been told, it's better to post it here, so ...... here is the question:
    I'm writing a "before delete trigger" to insert into log table before delete. Is there a way that I know from database the current SSO user when SSO users share one database user?
    Just like in Oracle Application Express there is v('APP_USER') to know the current user.
    Saad,

    End users are manipulating data through Oracle Forms(and SSO through portal) and the thing I need is to trace the SSO username from database without modifying forms, I mean purely from database taking into consideration that SSO users are sharing one database user. Is it possible?
    Saad,

Maybe you are looking for