Sitemap

Amicuk Programming Answers

Problem with my checkbox

2015-10-11   Views:0

Advertisement

hi.. i have a user form where i have a checkbox(uid 35) and a textbox(uid 37)...it is disabled initially if i check the checkbox then my texbox should be enabled if unchecked it should again be disabled.... i have written this code in my item event..

hi.. i have a user form where i have a checkbox(uid 35) and a textbox(uid 37)...it is disabled initially
if i check the checkbox then my texbox should be enabled if unchecked it should again be disabled....
i have written this code in my item event..plz have look and tell me what is wrong with this code...this is not working and giving an error message saying that alisa name already exists..even after changing alias name many times...
If (FormUID = "CQ_FA_MasterData") And ((pVal.ItemUID = "35") And _
     (pVal.EventType = SAPbouiCOM.BoEventTypes.et_CLICK) And (pVal.BeforeAction = False)) Then
                oForm.DataSources.UserDataSources.Add("checkbox1", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 2)
                oitem = oForm.Items.Item("35")
                ochk = oitem.Specific
                ochk.DataBind.SetBound(True, , "checkbox1")
                If ochk.Checked = True Then
                    MsgBox("Checked")
                    oForm.Items.Item("37").Enabled = True
                Else
                    oForm.Items.Item("37").Enabled = False
                End If
            End If

The replay answer
Advertisement
Hi Shenaz,
The following line need not be executed all the time when a  check box is clicked..... the data source has to be added only once... i suggest u witite that line of code and execute it in the form load.
oForm.DataSources.UserDataSources.Add("checkbox1", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 2)
Execute that line only in the form load.
That errror is because of that line...
Hope it helps,
Vasu Natari.
Edited by: vasu natari on Nov 13, 2009 1:24 PM

Go to See the other 2 answers

Problem with custom checkbox in tx. IP02

Category:DefaultRelease time:2015-10-11Views:130

Hi experts, I added some new fields to IP02 in a new tab. One of this fields is a checkbox and I need to control whenever it is selected or not in order to enable/disable some other fields in the dynpro. I created a module "init_fields" in PBO w[More]

Problem with a Checkbox

Category:DefaultRelease time:2015-10-11Views:130

Hi Experts, i have a new problem. I'm using Netveawer V 7.0.09 and i have created a static checkbox element in my View. This element is showed in the portal at runtime but it is locked. So i can't check it. I have setted the checked property as a boo[More]

Problem with Matrix/Checkbox/Datasource

Category:DefaultRelease time:2015-10-11Views:130

Hi, i have a problem with a Matrix. There are 3 Columns on this Matrix, one of those is a Checkbox. I fill the Columns with data, the Checkboxes where just added (no Checkbox is selected), the user has to select the value (Checkbox)he want's to by ha[More]

Problem with clicking CheckBox eswith eCATT recording

Category:DefaultRelease time:2015-10-11Views:130

Hi All, Iam using SAP GUI 640,ECC500. Am trying to set some default setting in Finance Transaction FB00 with clicking some checkboxes. So,After i recorded with clicking checkboxes,For testing that recording i unchecked the check boxes manually and ex[More]

Problem with JTable checkbox

Category:DefaultRelease time:2015-10-11Views:130

In my table I have a column of checkboxes. If user clicks any checkbox, the program will first check for some condition and pop out a warning dialog saying that "the action will change the current mode. are you sure you want to continue?". If us[More]

Problem with a checkbox -pls help

Category:DefaultRelease time:2015-10-11Views:130

I have a tabular form with checkbox for all rows and I want to update all the rows where checkbox is checked . select APEX_ITEM.CHECKBOX(1,ID) as " ", "ID", "ID" ID_DISPLAY, other records ... from below the code declare vROW[More]

Problem with WHEN-CHECKBOX-CHANGED and ON-POPULATE-DETAILS

Category:DefaultRelease time:2015-10-11Views:130

I have a detail block with a relationship set up to a second block. In my first block, if I cause an error but the next action I take is to press a checkbox on another record, my error will display and the raise form trigger failure is triggered but[More]

Fs00 bdc problem in ticking checkbox fields

Category:DefaultRelease time:-0001-11-30Views:130

Hello All, I have written bdc for tcode FS00 for gl master record upload but im getting error while uploading. In flat file i have putted value 'x' for posting without tax allowed, manage in local currency,open item and line item but when im running[More]

VC problems with a checkbox

Category:DefaultRelease time:-0001-11-30Views:130

Hi everybody I have the following problem,  I've created a checkbox within a table,  but when I look at this checkbox time of execution something  very strange happens within the checkbox  when I select the Last checkbox one space to jump back  and p[More]

Old problem: the render CheckBox works wrong.

Category:DefaultRelease time:-0001-11-30Views:130

hi all, [I posted this question several days ago, but have not gotten the answer. I think I did not make the problem clear. So repost it again] I put a checkBox as a datagrid's render, it works well at the first time. After I changed the selectedValu[More]

Problem binding a checkBox

Category:DefaultRelease time:-0001-11-30Views:130

I've a JClient application in wich I bind a checkBox to a VO's attribute. All works but if I try to disable (using setEnabled(false)) that checkBox I find it allways enabled. I'm sure the problem is in the binding because if I remove binding the chec[More]

Hot
Hello all. I'm a brand new Mac user but I am becoming extremely frustrated with connecting my Mac Mini to my existing wireless network. I have WEP enabled and I know for a fact that I'm using the correct password. Just to be sure, I disabled the pass [More]
I have following fields in the form Radio boxes - Grant and Deny Text Area - User comments Buttons - Submit Cancel I want the user comments field 'Required' only when we select 'Deny' option For Grant- it should not be required. If we select Deny opt [More]
Hi, I am trying to send a XML file to a web browser from a servlet. I read the contents of the XML file into a string and I am sending it to the brower. Before I do this I set the 'Content-type' header of the httpResponse to "application/xml" . [More]
Hello! I have a program which converts spool outputs to PDFs (CONVERT_ABAPSPOOLJOB_2_PDF and CONVERT_OTFSPOOLJOB_2_PDF) and downloads them to files by using GUI_DOWNLOAD. It works fine on 4.7, but on 4.6D I get incorrect (unreadable) PDF files. The p [More]
Can the dock be configured to recognize an external drive?If you mean can you have your external drive icon on your dock, the answer is yes. I just now tried it with my external USB 3.0 Time Machine drive, I dragged the TM icon and parked it on my do [More]
I bought this as an open box today and everything works great, but the Netflix has already been activated with someone else's account.  While it was fun for a while searching through their queue and their recently watched movies (they seem to like ra [More]
I'm using Chainsaw via WebStart http://logging.apache.org/log4j/docs/webstart/chainsaw/chainsawWebStart.jnlpWhen I enter this link into my browser, it launches WebStart and Chainsaw starts fine (after I approve the certificate). When I try to run it [More]
Hi, I'm trying to move a Bar from barGraph1 to barGraph2. Because dragSource operation is not valid for a Bar graph, I'm trying to use componentDragSource: barGraph1: <af:componentDragSource discriminant="ACDiscr"/> barGraph2: <af:dropT [More]
hi all, in our comapny presently using Dashboard reports for daily reports where there will be lot of manual work.i have automated most the dashboard part.but in some cases iam unable to automate where the data will keep changing every month.can i cr [More]
Is there a way to retrieve an old email on my Ipad?Purchases made on one account may not be transferred to another.Read other 2 answers [More]