How to check object with boolean

hi
i have a JComboBox
i have added the items to JComboBox as {"true", "false"}
my problem is how check with boolean
like i was trying like this
     public boolean getBooleanValuesOfComboBox() {
          if(Boolean.TRUE.equals(_comboBox.getSelectedItem())) {
               return true;
          return false;
how to do this JComboBox getSelectedItem will return object... how to check
thank u
null

> i have a JComboBox
i have added the items to JComboBox as {"true",
"false"}
You could store Boolean objects in that combo-box instead of Strings.

Similar Messages

  • Check box with Boolean data type is not behaving properly

    Hi,
    I create a sample application with one entity driven view object with two attributes. One is of String data type [Value will be Y/N] and another (transient) attribute with Boolean data type. I planned to bind this boolean data type attribute to UI. I overridded the view row impl class and included setting of boolean attribute inside the setter of String attribute. Also in the getter of boolean attribute, added code to check the string attribute and return true/false based on that. Everything is working fine in application module tester. But when i test the same in view controller project in a page, it is not working. Always Check box component is not checked eventhough when i explicitly check it.
    [NOTE: I have given the control hint of Boolean attribute as check_box. Also i don't want selected/unselected entries in the page def file. That's why followed this approach]
    Have i missed out anything? Why this behaviour.
    Thanks in advance.
    Raguraman

    what is the value that is going in when u check it.. did u debug it.. is the viewRowimps setter and getter getting called.. and is it having the right value set and got.. and ur sure that ur using selectBooleanCheckBox..
    ur binding the checkbox to the transient value right??

  • How to check object code

    Dear Team,
    I want to check Object Code  of T_Code:OMJJ.
    In T_code:SE93.it not showing .
    How I check Perticulater Object Code for Transastion  OMJJ
    thanks
    kallis

    In SU24 it show
    @5B\QMaintained@     S_CTS_ADMI     Administration Functions in Change and Transport System     Check     NO
    @5B\QMaintained@     S_DATASET     Authorization for file access     Check     NO
    @5B\QMaintained@     S_DEVELOP     ABAP Workbench     Check     NO
    @5B\QMaintained@     S_DOKU_AUT     SE61 Documentation Maintenance Authorization     Check     NO
    @5B\QMaintained@     S_GUI     Authorization for GUI activities     Check     NO
    @5B\QMaintained@     S_PRO_AUTH     IMG: New authorizations for projects     Check     NO
    @5B\QMaintained@     S_PROJECT     Project Management: Project authorization     Check     NO
    @5B\QMaintained@     S_TABU_DIS     Table Maintenance (via standard tools such as SM30)     Check     NO
    @5B\QMaintained@     S_TABU_RFC     Client Comparison and Copy: Data Export with RFC     Check     NO
    @5B\QMaintained@     S_TCODE     Transaction Code Check at Transaction Start     Check     NO
    @5B\QMaintained@     S_TRANSLAT     Translation environment authorization object     Check     NO
    @5B\QMaintained@     S_TRANSPRT     Transport Organizer     Check     NO
    It show So many Object  and it standed object .and at last it show NO in Proposal Colom
    Thanks
    kallis

  • How to reference objects with same name?

    Probably another easy one, but again, couldn't find the answer in old discussions...
    I have some objects with the same name on my form. Designer has made them unique by making an array out of them...object[0], object[1], object[2] etc. How can I reference the individual objects in javascript?  I tried the obvious by referencing them as an array, but to no avail.  I suppose it'd be just as easy, if not better, to just have unique names, but in this case, the objects are related and having them in an array would be handy.

    You can try like below.
         var oObject = xfa.resolveNode("Object[1]");
         xfa.host.messageBox("" + oObject.rawValue);
    Thanks
    Srini

  • How to attach objects with a pivot

    First of all I am using Flash CS3 Professional and I have a Flash ActionScript 2.0 .fla file, my problem is that I have 2 symbols, on can be controlled by a simple script using arrow keys and the other is stationary but I want to attach the stationary one to the other so that it can pivot on this connection and will move with and pivot like a tail as it moves around the screen, please can I have some help on what to do here.

    Most of what I described will fit whatever it is you intend, but to do what you last describe, like a trailer getting pulled, you'd need to pay equal or more attention to controlling the forward end of the main object.  To pull something implies the object only has one direction of travel, call it nose-forward... the opposite end from the tail.
    So how you manage to control that will have some bearing on the tail end following with some amount of animation.  As you rotate the main piece to keep it forward moving for a direction change, the rotation of the tail piece has to be calculated, and then you get into needing to factor in distance along with rotation--when you turn a corner and move forward, eventually the tail needs to end up straightening out behind the main piece.
    This is more of math problem than an animation problem, and it would be a challenge to try to solve it, but cool as heck when you do.

  • How to check itab1 with copy of itab by line wise?

    Hi Friends,
    I have two internal tables itab and jtab.
    jtab is a copy of itab with rows 10 and column wise 12.
    Both have same records since jtab is a copy of itab.
    My requirement is (at the end of the program if i update new reocrd to itab) I want to chek the itab line wise with jtab.
    I know we can do it with loop one by one with field. Is there any other way I can check the whole line of 12 fields with itab record.
    Ex:If lineitem = 2 of jtab with lineitem  = 2 of itab.
    itab have 12 fields in that 2nd line item of vendor name(ex) is XYZ and 2nd line item of jtab is ABC.I have to check the whole line item.
    Please advise.
    thanks & regards
    Sankar.

    if wa = wa1.
    endif.

  • How to check availability with different checking rules

    Hi,
    Can any of you help on this query please.
    We have a checking group defined for each materail.
    We have a checking rule defined for plant and production order type.
    When the Production order is created and saved the availability check happens and the missing parts list is generatted.
    The checking scope for the above combination of the checking group and rule - includes the purchase order of coponents in recievables.
    Though we don't want to change this setting,
    Business also want to see if the prodcution order components have any recievable PO, in the coming week so they can follow up with procuremetn team. Or alternatively they want to see the missings parts list for the next week with out including the purchase orders, as recievables.
    I can create a checking rule and scope that can exclude the purchase order from recievables, and can assign this rule to the production order type. but that is not required as ATP for future production orders should include the purchase orders in scope.
    Is there any transaction, where I can put the production order and a checking rule, to check material availabilty of components ?
    Or do you see any other repots or solution to this query.
    Best Regards,

    Hi Mario,
    Thanks for your answer.
    Checking rule at the operational level i.e. to confirm or committ the availability is ok and is assigned to production order type.
    We don't want to change that.
    You are correct that we want just a report for information purpose, that checks availability based on different checking rule.
    But I am currently looking for if there are any standard reports or solution is available for this and keeping a Z custom developemetn as a last option.
    However if we will decide for the custom developemetn, the FM provided by you might help, as we won't need to search for it now.
    Please let me know if you get any standard report for it.
    Or if you find a report for checking the assciated procurement elements with the production order, that has been used to confrim the component availability. Such report can also help to follow up with the procurement department.
    Best Regards,
    Dinesh

  • How to find objects with active System status-JEST

    Hi All,
    Is there any way in which I can find Production operations based on their active system status.
    The problem I'm facing is SAP stores system status for an order in JEST. And JEST contains many active system status for a PP Operation.
    I have to select all Operations which have status of say e.g. REL(released).
    If the select statement is as below
    select objnr stat
    into table t_jest
    from jest
    where stat = <Internal format of REL>
    and inact NE 'X'.
    Then this will also give those objects which are having REL plus any other higher status.
    Whereas what I want is only those objects which have their current status as REL and not which also as REL.
    The other way of doing this is get a all object and statuses and loop through records and filter out unwanted ones. But it will have serious impact on performance.
    Does anyone has some other solution to the above problem. Any function module or any other table which stores only the current active status.
    Any help would be of great help to me.
    Thanks.
    Message was edited by: Stephen Peter

    Hi Peter
    we have to these FMs to get the Status of Prod.Order.I have Developed one Reoprt which will show up order staus / stages
    like : col1 is orders which are in Open nothing but REL.So u have to put a Condition where jest-stat ='REL' only.
    OPEN-TECO  PCNF-TECO
            2          0
            9          5
            0          0
            2          0
            3          0
            4          3
            0          1
            0          0
            1          0
            2          0
           23          9
    CRS_SORDER_CREATE_UPLOAD_PROXY                                                               
    CRS_SORDER_STATUS_UPLOAD_PROXY                                                               
    MASS_PERFORM_STATUS_CHANGES                                                                  
    STATUS_READ                      Read Object Status (JSTO and JEST)                          
    STATUS_READ_MULTI                                       
    * Getting the Order Number and Obj.Number.
       select aufnr erdat werks objnr from aufk
                          into corresponding fields of table  otab
                                      where auart in ('PP01','PP02')
                                        and erdat gt s_budat-low
    *                                    prabhu on 24.5.5
                                        and werks in s_werks.
    * Getting the Obj.Number and Status Number
    data : w_stat like jtab-stat.
    *  loop at otab.
      if otab[] is not initial.
      select objnr stat from jest
                        into corresponding fields of  table jtab
                        for all entries in otab
                              where objnr = otab-objnr
                              and inact eq ''.
      endif.
    * Getting the Status Text for All The Orders
      loop at jtab.
      read table ttab with key istat = jtab-stat.
      if sy-subrc ne 0.
      select single  txt04 txt30 from tj02t
                           into (ttab-txt04,ttab-txt30)
                               where istat eq jtab-stat
                                 and spras eq 'EN'.
       if sy-subrc eq 0.
        ttab-istat = jtab-stat.
        append ttab.
        clear ttab.
        endif.
       endif.
      endloop.
    i think u got one Inputs.
    Regards
    Prabhu
    [email protected]

  • How to check object privilege for procedure, packages?

    Dear Legends,
    what is the query to find the Grant Permissions provided to a User on particular object such as Procedure, Package and Function?
    DBA_TAB_PRIVS is not giving me the answer.
    Can any one help me on this?
    Thanks,
    Karthik

    Maybe something like this?
    SQL> create procedure p as
      2  begin
      3  null;
      4  end;
      5  /
    Procedure created.
    SQL> grant execute on p to scott;
    Grant succeeded.
    SELECT p.grantor, p.grantee, o.object_name, o.object_type, p.privilege
    FROM   all_tab_privs p
    JOIN   all_objects   o ON (p.table_name = o.object_name and p.table_schema = o.owner)
    WHERE  o.object_name = 'P'
    AND    p.grantor = 'SELSE';
    GRANTOR     GRANTEE    OBJECT_NAME   OBJECT_TYPE   PRIVILEGE
    SELSE       SCOTT      P             PROCEDURE     EXECUTE

  • How to Checked The Object Not Locked by Others in Transport

    Hi all,
    I have problem in transporting workbook to production, the question is:
    a. How to Solve Object that is locked by other transport requests
    b. How to Check Object Not Locked by Others Request before doing transport.
    Thanks in advance
    supriatna

    Hi Supriatna,
    In the same screen where you have been 'Search for Objects in Requests/Tasks' place your cursor in one of the empty fields (the second column, eg. PROG) and look up for XLWB. You have increase the number of displayed entries in the look up screen to atleast 1000 to find the R3TR XLWB entry (Excel workbook entry).
    Hope this helps.
    Thanks

  • How does SAP deal with authorization profiles combination?

    Will anyone please confirm me that how authorization checking works with profiles combination in SAP? If I set two profiles for a user. In one profile, I grant auhorization object F_BKPF_BES with value 3/001. And in another profile, I grant F_BKPF_BES 1/002. Will the system reckon that the user have been granted F_BKPF_BES (1,3)/(001,002) or it will consider the two profiles separately?
    Regards
    Robbie

    > All the authorisations are loaded in the user buffer when the ID logs in...
    Yes, the reference to the authorizations are loaded, per authorization(!) for each object.
    >... and are combined to maximise the user buffer.
    Not completely. Authorizations are generated per role and per object. You cannot mix the field values of the objects in different authorizations.
    > Therefore your authorisations will be seen as if they are all combined.
    The consequence is combinations of all roles, per object. Not per field. Otherwise you could not create authorizations which permit you to display some values and change only a subset of them.
    Cheers,
    Julius

  • 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 create authority check object and assign to  ztcode which is of modu

    Dear ,
             how to create authority check object and assign to  ztcode which is of custom module pool program.its urgent kindly help points rewarded.

    Manoj,
    You can check with your Basis team to create authorisation object and assigining tcodes to the user profiles.
    K.Kiran.

  • [Help] How to check the object locks held by a specific thread?

    As the title I want to check locks held by a specific thread. How can I do this? In Java lock is acquired and release automatically by stating synchronized keyword. I have no idea on how to check the lock status and who owns whick lock.
    Regards,
    Skeeter

    Look for the method:
        public static native boolean holdsLock(java.lang.Object);Its in the java.lang.Thread class. It will check the lock status for an object for the calling thread.

  • Plz tell me how to create authority check objects and how to usein prg

    dear sir,
    plz tell me how to create authority check objects and how to usein prg

    http://help.sap.com/saphelp_46c/helpdata/en/5c/deaa74d3d411d3970a0000e82de14a/content.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/52/6716a6439b11d1896f0000e8322d00/content.ht
    Create custom authorization – Customer specific object
    If you have requirements that cannot be met using the P_ORGIN and P_ORGXX authorization objects (for example, because you want to build your authorization checks on additional fields of the Organizational Assignment infotype (0001) that are customer-specific), you can include an authorization object in the authorization checks yourself.
    Create the authorization object using transaction SU21. Make sure you keep to the customer name range (Z/Y). To be able to use the new authorization object you have created in the master data authorization check, the object must contain the INFTY, SUBTY, and AUTHC fields. You can use any of the fields of the Organizational Assignment infotype (0001) for the other fields. You can also use customer-specific additional fields provided they are CHAR or NUMC type fields.
    After you have created the object, you must start the RPUACG00 report. This report overwrites the MPPAUTZZ standard include with the code that is needed to evaluate the authorization object you created. Note: Technically speaking, this involves a modification. However, SAP fully supports this procedure. And you should not have more maintenance work as a result of this modification.
              Note: that if you use customer-specific authorization objects, you must maintain these objects in transaction SU24 (Maintain Assignment of Authorization Objects to Transactions) in the same way as you maintain the authorization objects P_ORGIN, P_ORGXX, and P_PERNR
    AUTHORITY CHECK OBJECT Object_name
                ID fieldname1 FIELD fieldvalue1
                ID fieldname2 FIELD fieldvalue2
                ID fieldname3 FIELD fieldvalue3.
                 If sy-subrc eq 0.   "Authorization exists
                 Endif.
    http://articles.techrepublic.com.com/5100-6329_11-5110893.html
    Edited by: JackandJay on Jan 16, 2008 10:21 AM

Maybe you are looking for

  • S.O.S. - I have a problem reading an XML to save it in a database

    I have a problem reading an XML I trying to save the data in a database. In a log cuardo the message as text and is correct, but I do not type in the database Glassfish give me this error in the log: HTTPBC-E01052: The value set on the org.glassfish.

  • Zen V Plus recognized by device manager, but not by Media Explorer/Windows Media Pla

    Hi, I just got back from Best Buy after buying a Creative Zen V Plus. I installed everything from the CD and plugged in the player, but the Media Explorer doesn't recognize it (even after restarting PC). The Device Manager recognizes it but there's a

  • Can anyone recommend a good firewire hub?

    We have a 2009 imac with one firewire 800 port, also I will soon be buying a new 15 or 17" Macbook Pro. I have run into problems trying to connect several firewire devices up at the same time due to there only being the one firewire 800 port. For ins

  • AnyConnect configuration using IPSec

    I have configured our ASA running 8.4(7) for the AnyConnect client (using IPSec). It prompted me to create an identity certificate when running the VPN wizard, which I did. We use AAA to authenticate so I didn't create a CA certificate. Is this requi

  • Hyperion Financial Reporting

    Hi All, I am trying to create a report in HFR. My clients requirement is to have a column in the grid which should contain automated serial numbers in one column say 'X'. Can anyone please suggest how to do this? Thanks In advance. Regards, Varun