Event to use for Creation of a Check box on Warehouse master Form

Hi experts
I have created one check box on Warehouse Master form in AfterMENUClick Event. It works fine if I open the form on Menuclick . But If I open the Warehouse master form by Link button from any document, it does not show the check box. I also want to deactive the checkbox if once it checked. So, I do some coding in Data_Load event. It also works fine If I open the form by Menu click. But if I open the form by Link button it gives error " Invalid Item Id ". 
So I want to know which event I should use to create the check box and which Event I Should use to Deactive the Check box

Thanks Nagy for quick reply
I use the following code for creation of check box
<B1Listener(BoEventTypes.et_FORM_LOAD, False, New String() {"62"})> _
        Public Overridable Sub OnAfterFormLoad(ByVal pVal As ItemEvent)
            Dim ActionSuccess As Boolean = pVal.ActionSuccess
            Dim form As Form = B1Connections.theAppl.Forms.Item(pVal.FormUID)
            'ADD YOUR ACTION CODE HERE ...
            Dim oForm As Form
            Dim oMatrix As Matrix
            Dim oItem As Item
            Dim sysItem As Item
            Dim BinCheck As CheckBox
            Dim BinLabel As StaticText
            Dim cmbBinCode As ComboBox
            oForm = B1Connections.theAppl.Forms.ActiveForm
            oForm.PaneLevel = 1
            sysItem = oForm.Items.Item("2000002010") 'Excisable check box
            oItem = oForm.Items.Add("BinChk", BoFormItemTypes.it_CHECK_BOX)
            oItem.Left = sysItem.Left
            oItem.Top = sysItem.Top + 20
            BinCheck = oItem.Specific
            BinCheck.Caption = "Bin Enabled"
            BinCheck.DataBind.SetBound(True, "OWHS", "U_BinEnabled")
        End Sub
It gives error on sysItem = oForm.Items.Item("2000002010") line Invalid Item Id
Plz check and tell the problem
Regards
Gorge

Similar Messages

  • What is the use for CREATING VIEW WITH CHECK OPTION?

    Dear Legends,
    I have a doubt
    What is the use for creating view?
    A: First Data Integrity, Selecting Particular Columns..
    What is the use for creating a view with check option?
    A: As per oracle manual I read that its a referential integrity check through views.
    A: Enforcing constraints at DB level.
    A: using CHECK OPTION we can do INSERTS UPDATES for a view for those columns who have no constraints... is it right??
    A: If we do a INSERT OR UPDATE for columns who have constraints it will show error... is it right???
    Please clear my doubt's Legends
    Lots of Thanks....
    Regards,
    Karthik

    Hi, Karthick,
    karthiksingh_dba wrote:
    ... What is the use for creating view?
    A: First Data Integrity, Selecting Particular Columns..Most views are created and used for convenience. A view is a saved query. If the same operations are often done, then it can be very convenient to code those operations once, in a view, and refer to the view rather than explicitly doing those operations.
    Sometimes, views are created and used for security reasons. For example, you many want to allow some users to see only certain rows or certain columns of a table.
    Views are necessary for INSTEAD OF triggers.
    What is the use for creating a view with check option?
    A: As per oracle manual I read that its a referential integrity check through views.The reason is integrity, not necessarily referential integrity. The CHECK option applies only when DML is done through the view. It prohibits certain changes. For example, if a user can't see certain rows through a view, the CHECK option keeps the user from creating such rows.
    A: Enforcing constraints at DB level.I'm not sure what you mean. Please give an example.
    A: using CHECK OPTION we can do INSERTS UPDATES for a view for those columns who have no constraints... is it right??No. Using CHECK OPTION, you can do some inserts and updates, but not others. The columns involved may or may not have constraints in either case.
    A: If we do a INSERT OR UPDATE for columns who have constraints it will show error... is it right???If you try to violate a constraint, you'll get an error. That happens in views with or without the CHECK OPTION, and also in tables.

  • How to know which BAPi is being used for creation of PO in classic scenario

    Hello Experts,
    We are in SRM 7.0 classic scenario.
    How can we know which BAPI is being used in the calssic scenario i.e. How can we know if we are usind BAPI_PO_CREATE or BAPI_PO_CREATE1 for creation of PO?
    Any pointers will be highly appreciated.
    Thank you in advance,
    Thanks & Regards,
    RKS

    Hi RKS
    yesterday BLOG by our SUMMER WANG helps every SRM consultant to debug the PO error
    /people/summer.wang/blog/2010/05/11/trouble-shooting-of-srm-po-transfer-error
    Good work Summer wang !!
    Muthu

  • How to use check box & dropdownlist in smart forms

    can anybdy explain(any examples) how i can use check box or drop down list in smart forms.is ther any provision like that

    Hi Ranjith,
    To use Check box in smartform do the following:
    Change the editor to 'PC Editor' and take the menu.
    in text editor of TEXT ELEMENTS..
    Insert -> Characters -> SAP Symbols
    in print preview u can't see these changes..
    for more details check this link..
    How to create checkbox in smartforms??
    Ashven

  • Using Javascript to disable a check box

    Friends,
    I am stuck on what should be a simple requirement and I am hoping you can help.
    I need to disable a form region checkbox if a field on the same form region has anything entered.
    What I have done so far is:
    1) On the item that determines whether the check box should be disabled I have added a call to my Javascript function "onChange="disableDefaultDisplay();" in the "HTML Form Element Attributes"
    2) My javascript funcion is: (this is the basic version, all I am trying to do is disable the check box at this point)
    function disableDefaultDisplay()
    alert("Start of the function");
    var defaultDisplay = document.getElementById("P13_DEFAULT_DISPLAY");
    *defaultDisplay.enabled = false;*
    alert("End of the function");
    Using a combination of firebug and the alert messages I can see that function is called at the correct time (i.e. when the user changes and then leaves the field) and that the values of the variable, defaultDate are set but my attempts to disable the checkbox have yet to work!
    When I look at the type of the checkbox (through the source of the page or firebug) I see the checkbox has the following "fieldset#P13_DEFAULT_DISPLAY.checkbox_group" Do I need to do anything different to disable this type of object?
    Any help would be very much appreciated!

    Hi Andy,
    I was returning to this thread to update it with how I resolved it, so thanks for the detailed response.
    In a nutshell, the solution I used was a loop through the field set(of which there is only one item in it) and disabling it.
    Where you say:
    Secondly, checkboxes are, as you have seen, wrapped within a fieldset tag. The fieldset tag has an ID of the page item name. Each checkbox within that tag has its own ID value, which will be the fieldset ID plus "_n" (where n is a sequential number starting from 0) - thus, the first checkbox will be, for example, "P1_CHECKBOX_0", the second will be "P1_CHECKBOX_1" and so on.From my searching for a solution I had expected to see something like that. But the source for the item I was trying to disable is shown below and I can't see any numbers after it.
    Do you know why? Is it because it is the only item?
    &lt;fieldset id="P13_DEFAULT_DISPLAY" class="checkbox_group"&gt;
    &lt;input type="checkbox" name="p_v18" value="Y" id="P13_DEFAULT_DISPLAY" /&gt;&lt;/fieldset&gt;
    Regards
    Ian
    Edited by: IanC2 on Feb 8, 2009 8:07 PM
    Edited by: IanC2 on Feb 8, 2009 8:08 PM

  • Can't use LOV with item type "check box" in form

    I have created a LOV that I want to use with a form application in 3.0.9. I need to be able to do multiple choices in this LOV (check box style) in the same query (only queries - users won't be able to update this field)
    When I choose Check box as the item type in the form wizard I am not able to choose the LOV. I have to use combo box, popup or radio group for the LOV choices to appear, but then the query can only query for one value in the LOV at a time.
    Is there a solution to this?

    Hi,
    This feature is not supported as of now. You cannot have multi select LOV for a form field and hence a checkbox cannot have a LOV.
    Thanks,
    Sharmila

  • Using Acrobat Standard 9  Adding Check Boxes

    Have been using AA Std 9 for some time and all of sudden I cannot use the add check boxes to forms with any accuracy.  It is not an issue with the mouse.  Have downloaded patches but still cannot add fields where they need to be.  Major impact on productivity!  Ideas?

    I do have Internet Explorer 9 and I was able to print web pages correctly following  your suggestions.
    Thanks for your help.
    Date: Sat, 12 Nov 2011 06:53:59 -0700
    From: [email protected]
    To: [email protected]
    Subject: Printing web page to pdf file using Acrobat Standard 9
        Re: Printing web page to pdf file using Acrobat Standard 9
        created by Bill@VT in Acrobat Windows - View the full discussion
    There were problems with IE9 on it's initial release and that may be what you are seeing if that is the browser (you did not indicate the browser and that may be a key). If you have a different browser you might try that one with the same pages to see if it browser related.
    By saying garbled it sounds like the fonts did not make it or you have selected "Use Local Fonts" in Acrobat. Try checking the latter first. Then check if the fonts are embedded in the PDF by checking the document properties (ctrl-D). If they are not, go back to the browser and select the press or print job options before printing and see if they get embedded and if your problem is resolved.
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4021509#4021509
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4021509#4021509. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Acrobat Windows by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Multiple check boxes in an update form using php

    I have a database of the membership of a club. One field in the database is input by checking multiple check boxes. When the insert member record is submitted and multiple check boxes are selected, the information becomes an array of text separated by commas. When the user goes back to the update form, the check boxes are not showing checked in the appropriate fields. Please go to my test site where you will be able to see the code that I have created so far: http://www.usreboot.com/phphelp.php. You will find the php code for the update form in a pdf file located there. You will need a user name and password to look at the update record page. Here you go: user name: wyane, password: wayne. I have submitted this request in the past and have not found success so far. Thanks for your help, Wayne Rowlands

    I am so close. If a member has only one check box checked. I get the check box checked in the update form. Here is the updated code:
    If the member has a number of check boxes checked, none of the check boxes are checked. I am so close. Maybe you can figure out what I am missing.  Thanks, Wayne

  • Logic for a report with check boxes

    Hi All ,
    I m writting a report , I need to put FOUR check box in this report ,
    For example you  can say Check1 ( material1)
                                           Check2 ( material2)
                                           Check3 ( material3)
                                           Others
    In selection critriea I defined one select option ( eg materail )
    Now I have to diplay data accordingly checkboxes
    If Check box '<b>check1'</b> is selected -list must contains only material1
    If Check box '<b>check2'</b> is selected -list must contains only material2
    If Check box '<b>check3</b>' is selected -list must contains only material3
    If Check box '<b>check1</b>' or any other one is  selected -list must contains  material1 and other materail as per other selected check box .
    If Check box<b> others</b> is selected then all other fields ( except the selected check box ) are the out put of this report .
    IF you need more explaination of my query , plz let me know .
    Regards ,
    Narender

    REPORT ZTEST3 line-size 400.
    tables : mara.
    data i_mara like mara occurs 0 with header line.
    data i_marc like marc occurs 0 with header line.
    data i_mcha like mcha occurs 0 with header line.
    data i_mkol like mkol occurs 0 with header line.
    select-options: s_matnr for mara-matnr.
    parameters : p_check1 as checkbox.
    parameters : p_check2 as checkbox.
    parameters : p_check3 as checkbox.
    parameters : p_check4 as checkbox.
    start-of-selection.
    if p_check1 = 'X'.
    select * from mara into table i_mara where matnr in s_matnr.
    loop at i_mara.
    endloop.
    endif.
    if p_check2 = 'X'.
    select * from marc into table i_marc where matnr in s_matnr.
    loop at i_marc.
    endloop.
    endif.
    if p_check3 = 'X'.
    select * from mcha into table i_mcha where matnr in s_matnr.
    loop at i_mcha.
    endloop.
    endif.
    if p_check4 = 'X'.
    select * from mkol into table i_mkol where matnr in s_matnr.
    loop at i_mkol.
    endloop.
    endif.

  • Default settings for gr based ir check box for asset PO

    dear experts,
                  in vendor master record in purchasing data tab i have checked gr based iv check box, and hence whenever i am creating a Po with X vendor for material system is automatically  checking the check box in po for gr based iv but with the same vendor X if i am creating a PO for Asset itis not checking the gr based iv check box by default.
           can you pls tell me where the default setting for gr based  iv lies for the asset procurement.
    thanks
    ujwal

    HI Ujjwala,
    The setting in spro in Acct assigment,  u are talking about is GR Receipt or Invoice Receipts.
    These are not GR Based Invoice Verification.
    GR based Invoice Verification comes from either ur inforecords or vender master.
    if u check or uncheck these in spro in acct assigment, then it will comes ur Deliver Tab not ur invoice Verification Tab.
    one thing more, if u make it mutiple Acct assigment, then it will be Non Valuated G/R Based IV.
    Hope Clear U !
    REgards,
    Pardeep Malik

  • How to Prepopulate check boxes in the process form

    Hi All,
    I need to prepopulate "Change Password at next login" in the AD Process Form. i.e. if some one select this check box in the user creation form and create a user, i need to prepopulate it in the AD process Form. Currently, it is not prepopulated. So, it is not updated on the Active Directory. I'm using AD Connector pack 9.1.1 .
    I need to prepopulate the "User must change the password at next logon" check box in the AD Process Form. I have done the prepopulate on text fields. They are working fine.
    But, stuck with this check box prepopulation.....
    Can anyone help me on this issue....
    Regards,
    Chaturanga
    Edited by: chaturanga on Sep 9, 2009 2:35 PM

    Even if you get the checkbox right it is not entirely clear that the connector will read the box correctly. It all depends on how the connector code was written.
    An alternative is to set the LDAP attribute through a custom connector. Email me if you want example code for this.
    Best regards
    -Martin

  • Check Box item in oracle forms

    Hello experts,               I am new in oracle forms. I am using oracle forms 11g,weblogic server 10.3.5,oracle database 11g at windows 7 platform. I have a simple data block from base table.there is a tabular form is selected, It has four rows(records). Now I have to make 4 check boxes adjacent to records in data block in another data block.Now I have to make functionality in which only those records should be inserted into database table for which corresponding (in front of the record) check box is checked. Thank you regards aaditya.

    Hi,
    Commit_Form built-in function commits all the available data base fields.  So you have to use separate insert into statement to complete your task.
    Like...
    for i in 1 .. 4
    loop
         first_record;
         if :chk_box='Y' then
              Insert into <table_name>  values(field1,field2,....);
         end if;
         next_record;
    end loop;

  • Open item check box in gl Master

    Hi
    Previsouly for the advance gl there is no open item check box not checked. But now i want to tick the check box so that all my entries will be shown as open items if they were not cleared.
    But my question i want my previous entries should also show in open item. For this is there any programme need to be runned.
    Regards

    Hi,
    If you are in an new GL environment, you cannot change it; a new account is required as you may have to abandon the old one.
    Are you release 4.5 A or earlier? Then SAP supports the change program RFSEPA02/03 after you zero down the balance of the balance sheet account. Beyond 4.5A and untill New GL, you can change it but beware, SAP no longer supports RFSEPA02/03, since handling errors frequently occurred in the past causing data inconsistencies.
    If you nevertheless want to use the reports, copy them to ZFSEPA02 or ZFSEPA03 and mark the following lines as comments:
    INITIALIZATION.
    CALL FUNCTION 'POPUP_DISPLAY_TEXT'
    EXPORTING
    POPUP_TITLE = ' '
    TEXT_OBJECT = 'RFSEPA02' ('RFSEPA03')
    EXCEPTIONS
    TEXT_NOT_FOUND = 1
    OTHERS = 2.
    LEAVE PROGRAM.
    In addition, you must adjust the EPA00F00 include. Mark the following line as comment:
    INCLUDE EPA00F00.
    *>>>> START OF DELETION - NOTE 175960 <<<<
    CHECK SY-REPID = 'RFSEPA02'. "<<<< INSERT - NOTE 0065877
    *>>>> END OF DELETION - NOTE 175960 <<<<
    Enhance the following line:
    INCLUDE EPA00F00.
    *>>>> START OF INSERTION - NOTE 175960 <<<<
    CHECK SY-REPID = 'ZFSEPA02'. "<<<< INSERT - NOTE 0175960
    *>>>> END OF INSERTION - NOTE 175960 <<<<
    Please be aware that questions regarding the use of the reports will only be considered as SAP Consulting, since the account change is a correction to an incorrect account control
    Regards
    Balaji

  • Multiple check boxes in an update form

    I have a database of the membership of a club. One field in the database is input by checking multiple check boxes. When the insert member record is submitted and multiple check boxes are selected, the information becomes an array of text separated by commas. When the user goes back to the update form, the check boxes are not showing checked in the appropriate fields. Please go to my test site where you will be able to see the code that I have created so far: http://www.usreboot.com/phphelp.php. You will need a user name and password to look at the update record page. Here you go: user name: wyane, password: wayne. I have submitted this request in the past and have not found success so far. Thanks for your help, Wayne Rowlands

    Thanks for getting back with me. I do have two tables. One table is the "members" table where all the information for the members is stored. One of the columns is "currentClubPositions". The database has another table which is "positions" which has the list for the positions that a member of the club could serve on. Members of the club may be serving on a number of positions at once, therefore the check boxes. Also, the club is adding and deleting positions over time, so I wanted an easy way to add them and delete them without having to go into phpmyadmin to do this. I have created a form that updates the "positions" table. The check boxes that show up in the insert member record and update member record are dynamic so that when the table "positions" changes, the forms change dynamically as do the queries to sort the database change dynamicaly. When the check boxes are entered, I use the implode function to make the values an array of text separated by commas and that value is inserted in one field of the members table named "currentClubPosition". I am all ears to hear a better way. Take a look at the web pages (see the original post) that I have created and you will see how all this ties together. Thanks, Wayne Rowlands

  • Check Box Validation in Offline Form

    Dear Experts,
    I have a requirement in an offline form where I have six check boxes, and out of the six check boxes
    user can only select any three.
    Request you to please suggest how to achieve this.
    Warm Regrads,
    Upendra Agrawal

    Thanks a ton Shaira.
    Full points to you
    Just wondering  what is the "Validation Script Message" for each UI.
    warm regards,
    Upendra Agrawal

Maybe you are looking for

  • How do I set up my iPad so that I can recieve the emails from my Outlook Express account

    How do I set up my iPad so that I can recieve the emails from my Outlook Express account

  • Publish Sharepoint 2013 with UAG 2010 SP3

    Hi All, I'm hoping some of you may be trying to accomplish the same task I am and are seeing similar problems. We have a single SharePoint 2013 Server running in our forest behind a UAG server that is setup to publish other applications (Exchange and

  • Complex Queries Developed in Desktop for Plus Users

    I develop complex queries in Discoverer desktop, with complex calculations and conditions and customized report formats. I understand that my "Plus" users can run them all. Is that correct? What about my "Viewer" users?

  • Logic based on partner type

    Hi gurus,   Need a help from you.I have made changes in the include but in my requirement i have to write the logic specific to a particular partner type only.The details present in this include dont have the details of the partner.How to get it. Edi

  • BC4J application to Oracle9iAS 9.0.2

    Is it not possible to deploy and run the applications developed with BC4J and Struts frame work.. If it is possible, how to deploy the application. Thanks