Like and type...

Kindly let me know when I have to use LIKE and when I have to use TYPE Exactly.
What is the difference b/w both..
Akshihta.

hi,
<b>TYPE <type></b>
to refer to any data type <type> that is already known at this point in the program. It can be used in any of the statements listed below. The expression <obj> is either the name of the data object or the expression.
<b>ABAP Statements with TYPE References</b>
Definition of local program types using
TYPES <t> TYPE <type>.
The new data type <t> has the same type as <type>.
Declaration of data objects using
DATA <f> TYPE <type>.
CLASS-DATA <f> TYPE <type>.
CONSTANTS <f> TYPE <type>.
STATICS <f> TYPE <type>.
PARAMETERS <f> TYPE <type>.
The data object <f> has a data type corresponding to the type <type>.
Dynamic creation of data objects using
CREATE DATA <dref> TYPE <type>.
Specification of the type of a formal parameter in a subroutine using
FORM <sub> ... USING|CHANGING <p> TYPE <type> ...
The technical attributes of the formal parameter <p> are inherited from those of the declared data type <type>. You can then only pass actual parameters that have these attributes.
Specification of the type of a formal parameter in a method using
METHODS <meth> ... IMPORTING|EXPORTING|CHANGING <p> TYPE <type> ...
The technical attributes of the formal parameter <p> are inherited from those of the declared data type <type>. You can then only pass actual parameters that have these attributes.
Specification of the type of a field symbol
FIELD-SYMBOLS <fs> TYPE <type>.
You use the LIKE addition, similarly to the TYP E addition , in various ABAP statements for defining data types and specifying the types of interface parameters or field symbols. The addition
<b>LIKE <obj>.</b>
ABAP Statements with LIKE References
Definition of local types in a program using
TYPES <t> LIKE <obj>.
The new data type <t> inherits all of the technical attributes of the data object <obj>.
Declaration of data objects using
DATA <f> LIKE <obj>.
CLASS-DATA <f> LIKE <obj>.
CONSTANTS <f> LIKE <obj>.
STATICS <f> LIKE <obj>.
PARAMETERS <f> LIKE <obj>.
The data object <f> inherits all of the technical attributes of the data object <obj>.
Dynamic creation of data objects using
CREATE DATA <dref> LIKE <obj>.
Specification of the type of a formal parameter in a subroutine using
FORM <sub> ... USING|CHANGING <p> LIKE <obj> ...
The technical attributes of the formal parameter <p> are inherited from those of the declared data object <obj>. You can then only pass actual parameters that have these attributes.
Specification of the type of a formal parameter in a method using
METHODS <meth> ... IMPORTING|EXPORTING|CHANGING <p> LIKE <obj> ...
The technical attributes of the formal parameter <p> are inherited from those of the declared data type <type>. You can then only pass actual parameters that have these attributes.
Specification of the type of a field symbol
FIELD-SYMBOLS <fs> LIKE <obj>.
The technical attributes of the field symbol <FS> are inherited from those of the declared data object <obj>. You can then only assign data objects that have these attributes.
<b>You should also avoid using the LIKE addition in other ABAP programs except to refer to data objects</b>
regards,
Ashokreddy.

Similar Messages

  • LIKE and Type in abap statements

    Hello  All ,
    I have a question regarding the 'Like' and' Type' 
    I have created a badi XXX , The method has a changing parameter 'A'  which is referenced to a structure .
    The typing method I have mentioned in the method ( in the parameter list ) is TYPE .( I feel it should  have been Like ). Can this cause an issue while writing abap statements in the method ?
    Thanks in advance .
    Best Regards,
    swetha

    Hi Swetha,
    Check out the below link for your question.
    what is the difference between type and like
    Re: what is the difference between type and like
    Re: what is the difference between type and like
    Thanks,
    Chidanand

  • Difference between "Like" and "Type" addition

    Hi abapers,
    I have doubt regarding the purpose and use of the additions "LIKE" and  "TYPE" with respect to variable(data objects). Please look into the following code,
    Data:numb1 type i value 30.
    Data:numb2 like numb1."Will the value 30 get copied to numb2
    write : / numb1, numb2.
    My question is while using "LIKE" addition with variables, will the value also get copied into the variable. That is, will the value 30 be copied into numb2 or only the technical attributes of numb1 will be copied into numb2.
    Another doubt is can we the following code in abap,
    Data : int_tab_1 type mara.
    Data : int_tab_2 like mara.
    Are they both same? If not what is the difference between them?

    hi
    when ever you declare a  data object of abap predefined objects or types that are created by using TYPES statement we use TYPE addition to declare a variable.
    if we try to declare a object which is already existing in the program for having the same technical attributes then we declare by using LIKE addition.
    ex
    TYPES:
       begin of fs_emp,
          name TYPE string,
       end of fs_string.
    data :
       w_i TYPE i,
       w_emp TYPE fs_emp.
    now if we want to create a data object which is having the same attributes of fs_emp then we can declare by using LIKE statement 
    data :
       w_employee LIKE w_emp.
    when u are using like then the object should already exists in the program
    regards
    PAVAN

  • Significance of "LIKE" and "TYPE" typespec in Function Builder

    Hi all,
    Can anyone tell me the significance of "TYPE" and "LIKE" in the Type Spec field of Function Builder?
    How does it differ for IMPORT/EXPORT and TABLE?

    Hi,
    TYPE
    The type can be one of the predefined types, one of your own that you defined in the same program using TYPES, or a global type stored in the ABAP Dictionary The default length SL of the field f depends on its data type type.
    LIKE
    The TYPE addition is designed to be the only construct that enables references to data types, whereas the LIKE addition is used only for data objects. The repository objects in the ABAP Dictionary are data types but not data objects. Outside of ABAP Objects the LIKE reference to database tables and flat structures in the ABAP Dictionary is still allowed for reasons of compatibility with previous releases
    In classes only the TYPE reference can be used to refer to data types in the ABAP Dictionary. The LIKE reference is allowed to local data objects only. In local classes this includes the attributes of the class and the data objects of the main program. In global classes only the class attributes can be referenced. This applies both to data declarations and to type assignments of interface parameters and field symbols
    cheers,
    sasi

  • Difference between 'LIKE' and 'TYPE'

    Hi all,
    I am new to learning ABAP, kindly bear with my naive questions.........
    can you please tell me what's the difference between 'type' and 'like' keyworkds.
    also what does 'condense' do.
    thanks
    Sabrina.

    Hi Sabrina
    Check out Re: Diff b/n 'type' n 'like'

  • Data Vs Types  and  Type Vs  Like

    hi frds can you send main diffrences between
    Data Vs Types   and     Type Vs  Like.
    some what briefly explanation..........  i am in confusion in this

    Hi Madhu,
    Data is used to create data object ( means memory will be allocated)
    Types is used to create structures
    Type is used to refer to Predefined data types ( like n,i,f,d,t,p,x....)
    Like is used to refer the local variables.
    All ABAP programs can define their own data types. Within a program, procedures can also define local types.
    You define local data types in a program using the
    TYPES .
    TYPES: spfli_type TYPE spfli,
           surname(20) TYPE c,
           BEGIN OF address,
                 name       TYPE surname,
                 street(30) TYPE c,
                 city       TYPE spfli_type-cityfrom,
           END OF address,
           town TYPE address-city.
    This example shows the definition of two structure types in a program - SPFLI_TYPE and ADDRESS. The structure of the data type SPFLI_TYPE is taken from the database table SPFLI in the ABAP Dictionary. The components of SPFLI_TYPE are the same as the columns of SPFLI. The individual data types of the components are the ABAP equivalents of the data types of the columns of the database table. The structure type ADDRESS is newly defined. The component ADDRESS-NAME takes the data type of the previously-defined type SURNAME, the component ADDRESS-STREET is newly-defined, ADDRESS-CITY takes the data type of column CITYFROM of the structure type SPFLI_TYPE.
    TYPES: BEGIN OF struct1,
             col1 TYPE i,
             BEGIN OF struct2,
               col1 TYPE i,
               col2 TYPE i,
             END OF struct2,
           END OF struct1.
    TYPES mytype TYPE struct1-struct2-col2.
    The example shows how you can construct a nested structure type STRUCT1 with a complex component STRUCT2 by nesting TYPES BEGIN OF ... TYPES END OF blocks, and how you can address the inner components.
    local types in program
    referring to predefined ABAP types:
    TYPES: surname(20)  TYPE c,
           street(30)   TYPE c,
           zip_code(10) TYPE n,
           city(30)     TYPE c,
           phone(20)    TYPE n,
           date         LIKE sy-datum.
    local structure in program
    referring to the above types
    TYPES: BEGIN of address,
             name TYPE surname,
             code TYPE zip_code,
             town TYPE city,
             str  TYPE street,
           END OF address.
    local nested structure in program
    referring to the above types
    TYPES: BEGIN of phone_list,
             adr TYPE address,
             tel TYPE phone,
           END OF phone_list.
    This example shows how to create complex data types from simple type definitions. After a set of simple data types are created with ABAP predefined types, a structured type ADDRESS is defined using the data types defined earlier. Finally, a nested structure type, PHONE_LIST, is created, whose first component has the type ADDRESS.
    Table types
    Local tables in a program are called internal tables. To construct a new internal table type, use the syntax:
    TYPES  can be any known data type. Specifying the key is optional. Internal tables can thus be generic. For more information, refer to Internal Tables.
    DATA
    The Statements TYPES and DATA
    Each ABAP program define its own data types using the statement.
    TYPES dtype TYPE type ...
    and declare its own variables or instance attributes of classes using the statement
    DATA var {TYPE type} ...
    Within the program or a class, you can also define local data types and variables within procedures. Local variables in procedures obscure identically-named variables in the main program or class.
    When creating data types and data objects, there are a number of naming convention that also apply for other local program definitions, such as procedures. These are described in detail in the keyword documentation.
    The Additions TYPE and LIKE
    The additions TYPE type and LIKE dobj are used in various ABAP statements. The additions can have various meanings, depending on the syntax and context.
    ·        Definition of local types in a program
    ·        Declaration of data objects
    ·        Dynamic creation of data objects
    ·        Specification of the type of formal parameters in subroutines
    ·        Specification of the type of formal parameters in methods
    ·        Specification of the type of field symbols
    Constructing New Data Types
    The TYPE addition allows you to construct new data types in the TYPES, DATA; CONSTANTS; and STATICSstatements. In the TYPES statement, these are local data types in the program. In the other statements, they are attributes of new data objects, meaning that the newly defined data types are not free-standing. Rather, they are linked to database objects.This means that you can refer to them using the LIKEaddition, but not using TYPE.
    To construct new data types, the addition TYPE can be used with the following type constructors:
    ·        Construction of reference types
    REF TO type|dobj
    ·        Construction of structured data types
    BEGIN OF struc_type.
    END OF struc_type.
    ·        Construction of table types
    tabkind OF linetype
    These data types only exist during the runtime of the ABAP program.
    Referring to Known Data Types or Data Objects
    Using the additions TYPE or LIKE in the TYPESstatement, local data types in a program can be referred to known data types or data objects. This is mainly the case with user-defined elementary data types. If you declare variables using the additions TYPE type or LIKE dobj with statement DATA, the data type of var is already fully defined before the declaration is made.
    The known types or data that are referred to must be visible at the point where the data type or variable is declared.
    A known data type can be any of the following:
    ·        A predefined ABAP type to which you refer using the TYPE addition
    ·        An existing local data type in the program to which you refer using the TYPE addition
    ·        The data type of a local data object in the program to which you refer using the LIKE addition
    ·        A data type in the ABAP Dictionary to which you refer using the TYPE addition. To ensure compatibility with earlier releases, it is still possible to use the LIKE addition to refer to database tables and flat structures in the ABAP Dictionary. However, you should use the TYPE addition in new programs.
    The LIKE addition takes its technical attributes from a visible data object. As a rule, you can use LIKE to refer to any object that has been declared using DATA or a similar statement, and is visible in the current context.  The data object only has to have been declared. It is irrelevant whether the data object already exists in memory when you make the LIKE reference.
    ·        In principle, the local data objects in the same program are visible. As with local data types, there is a difference between local data objects in procedures and global data objects. Data objects defined in a procedure obscure other objects with the same name that are declared in the global declarations of the program.
    ·        You can also refer to the data objects of other visible ABAP programs. These might be, for example, the visible attributes of global classes in class pools. If a global class cl_lobal has a public instance attribute or static attribute attr, you can refer to it as follows in any ABAP program:
    DATA dref TYPE REF TO cl_global.
    DATA:  f1 LIKE cl_global=>attr,
           f2 LIKE dref->attr.
    You can access the technical properties of an instance attribute using the class name and a reference variable without first having to create an object. The properties of the attributes of a class are not instance-specific and belong to the static properties of the class.
    TYPES: BEGIN OF struct,
             number_1 TYPE i,
             number_2 TYPE p DECIMALS 2,
           END OF struct.
    DATA:  wa_struct TYPE struct,
           number    LIKE wa_struct-number_2,
           date      LIKE sy-datum,
           time      TYPE t,
           text      TYPE string,
           company   TYPE s_carr_id.
    This example declares variables with reference to the internal type STRUCT in the program, a component of an existing data object wa_struct, the predefined data object SY-DATUM, the predefined ABAP type t and STRING, and the data element S_CARR_ID from the ABAP Dictionary.
    Referring to Generic Data Types
    If you refer to one of the generic predefined ABAP types of fixed length (c, n, p, x) in the TYPES or DATA statement, you must specify the undefined technical attributes.
    TYPES|DATA var[(length)] TYPE type ...
    TYPES|DATA var TYPE type ...
    DATA: text1,
          text2 LENGTH 2,
          text3 TYPE c LENGTH 3,
          pack TYPE p DECIMALS 2 VALUE '1.225'.
    This example creates three character variables with field lengths of one, two, and three bytes respectively, and a packed number variable with field length 8 bytes and two decimal places. If the attribute Fixed point arithmetic is set, the value of pack is 1.23.
    This example shows how to declare elementary data objects with reference to predefined ABAP types.
    PROGRAM demo_elementary_data_objects.
    DATA text1  TYPE c LENGTH 20.
    DATA text2  TYPE string.
    DATA number TYPE i.
    text1 = 'The number'.
    number = 100.
    text2 = 'is an integer.'.
    WRITE: text1, number, text2.
    This program produces the following output on the screen:
    The number              100 is an integer.
    In this example, the data objects text1, text2 and number are declared with the DATA statement. The technical attributes are determined by referring to the predefined ABAP types c, string, and I. Values from unnamed literals are assigned to the data objects. The contents of the named data objects are displayed on the list.
    Specifying a Start Value
    When you declare an elementary fixed-length variable, the DATAstatement automatically fills it with the type-specific initial value as listed in the table in the Predefined ABAP Types section.
    However, you can also specify a starting value of a fixed-length elementary variable (also within a structure declaration) using the VALUE addition in the DATAstatement:
    DATA var ... VALUE val|{IS INITIAL}.
    Specifying start values:
    DATA: counter TYPE p VALUE 1,
          date    TYPE d VALUE '19980601',
          flag    TYPE n VALUE IS INITIAL.
    After this data declaration, the character string flag contains its type specific
    Initial value ‘0’.
    Difference Between TYPE & LIKE
    Difference between TYPE & LIKE

  • I "reply"ed to an e-mail message. The next time when I chose to write a new message and type the first letter of the person I replied to earlier, that name and e-mail address appears as a choice included in a pop up list of my contacts.

    I "reply"ed to an e-mail message. The next time when I chose to write a new message and type the first letter of the person I replied to earlier, that name and e-mail address appears as a choice included in a pop up list of my contacts. The persons name is not in my contacts and I would like to delete it from popping up. Do you know how I can do this?

    The Mail app on the iPad/iPhone/iPod Touch does have an option to clear previous recipients. You can learn to live with it.  But if you want to get rid of it, the only way to remove these cached email addresses from the Mail application is restoring the iPhone/iPod Touch as a new phone/iPod.  If you restore from backup, the cache is also restored.
    This article shows you the screens you will see during the restore:  http://support.apple.com/kb/HT1414

  • What brands and type can I use for my iMac 20" internal Hard Drive?

    what brands and type can I use for my iMac 20" aluminium internal Hard Drive?
    can I use WD caviar black?
    is it too hot?

    If you are replacing the drive because the existing one is faulty, that's one thing. If you just want more space, you should take advantage of having a decently fast and relatively small capacity drive in there now (instead of a huge drive). Get an external FireWire drive and off-load most of your user data there. Make your internal drive dedicated to mostly your OS and app files, with plenty of free space. That setup will make your iMac run more efficiently. I won't go into more detail, because I'm not answered your specific question... You can post back with any questions, if interested...
    To answer your questions...
    You should be able to use any SATA 3.5-inch drive internally, but you should probably keep it at or under 1TB. The main concerns are power usage and heat dissipation. A drive like the WD Caviar Green would be ideal in terms of power and heat, but they do have slower (or variable) spin rate. I have one as an external drive (750GB) and it is amazingly quiet and cool. If I had to replace the internal drive because the current drive failed, I'd put it inside. I'll trade a bit of pure performance for the efficiency (including low noise), and these drives are more advanced with higher data density and larger cache, so the trade-off from slower spin rate may not be so bad.
    You can check your current drive's model number (which is shown in System Profiler) to get the specs online. The stock drive in my old +Late 2006+ iMac is a 7200 RPM drive. The Caviar Black is a 7200 RPM drive, with a newer design. So if you want to use a Caviar Black in there, I think it would be OK.

  • Selection and Type Tools not working in InDesign CC for Mac

    I have just recently downloaded InDesign CC (I use Mac OSX.9.2) and got the World Tools plugin to typeset in different languages.
    However, I am having trouble using the selection and type tools. In about the first half of the file, the type tool displays the pointer/dashed box/I-beam icon and doesn't put the cursor in the text when I click on it. I can't click to select text as I should be able to, and if I try to click and drag, all I do is end up creating another text frame. But in about the second half of the file, the selection and type tools work the way they should.
    When I click and hold on the type tool, the cursor changes to the crosshairs icon for creating text frames and the "W: H: " dialogue box for text frames appears.
    How can I get the tools to work properly in the entire document? Is anyone else having this problem?

    @Cindy – usually all 3rd party developers will provide some information for installing and uninstalling their products. First see if you can find some information on their web sites.
    Also there should be a dedicated Adobe Extension Manager app where you can look up the installed parts of InDesign. Since I do not have InDesign CC installed, I do not know exactly, but its name should be something like "Adobe Extension Manager CC".
    If you start this app it will show all parts installed with InDesign (or other apps that are installed).
    Usually at the bottom of the list are the 3rd party installed components. They do not state "Adobe Incoroprate System" as author. Never uninstall (remove) the Adobe ones!
    Here a screen grab from my German Adobe Extension Manager CS5:
    If you select one, a new option is available at the right. In my case here the "Entfernen" button ("Remove" in English).
    Uwe

  • NOKIA C3-01 touch and type: S40 software Deficienc...

    there are few Deficiencies in the software, which i found out in my nokia c3-01 touch and type phone. i would like to list out them. and i hereby request the nokia team to make the required changes in the next firmware update.
     the main menu icons cannot be re-arranged (organized)
    current version of opera mini in the firmware is 5.0. while the latest version available is 6, but it cannot be upgraded. so please include the latest opera in the next update
    when we go for full-screen edit in opera, the text cannot be marked for copy nor for cut. this is related to phone because the fullscreen edit calls for edit window of phone where 'mark text' option is not present, this isnt the problem for opera alone, but for all other apps there is no 'mark' option.
    the messages can be achieved to a single folder. there is no option to create multiple folders for categorized saving of messages. there is a single folder named 'archive' and there is no option to create another folder inside it
    touch settings would have been better if it was similar to that of nokia 5230xm
    as per the cost effectiveness, i mainly expected the phone to possess app minimization option, so as to run many applications, like 5230.
    swipe to unlock was a better improvement in last update 
    hoping for the required changes in the upcoming updates.
    thank you,
    vivek
    Solved!
    Go to Solution.

    I couldn't find any post or instruction on how to record the conversation make during call, which could be done by pressing the record UI in the option menu.
    The photo have lots of noise, even my beloved 7610 2.0 mp are more clean
    The menu UI at times reluctant to response
    Switching between different provider will automatically changed the UI menu
    Downloading mobile internet content at times seems to begotten by the phone halfway thru other then that chick are looking by the Conner of their eyes at me or the phone which I am not sure

  • Get name and type of data in an object?

    Hello,
    I would like to know if there is a way of getting the names and types of data encapsulated by a labview object?
    For example, lets say I make a simple object, called myObject to be unoriginal, with private data: myObjectName (string), myObjectValue (int 32) (etc)
    How then do I construct a method to return the type of the myObjectValue data, or infact return the names and types of all of the data fields within the object, which could be many?
    Thanks,
    Paul.
    Solved!
    Go to Solution.

    Hi there
    i can't find a generic solution. Attached is a workaround. The trick is to pack all private data inside a cluster and use the "Controls" property of a template of this cluster to get all data elements and their types.
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"
    Attachments:
    LVClass_8.5.1.zip ‏38 KB

  • [Bug?] iTunes 10.4 and type an 'umlaut' in artist/album etc.

    If i try to edit an artist in the artist field and type a german 'umlaut' like äöü in the input field the autotext in this field will stop working and the autotext is inserted. So I can't edit/assign a artist/album etc. name with a german umlaut without using the clipboard. Please fix this.

    You are correct and I wish that I had known this before spending 4 days and a lot of trouble going over this with both Apple Care and iTunes support. They had me jumping through hoops and didn't know anything until it was finally escalated. Only then did I get a vague response like I mentioned in the first post. It's troubling to me how a simple response from anyone there could've just said we know about this and they are bugs in 10.4 causing this.
    There are other issues too as you point out with the syncing and crashing. Anyway, hopefully others will find information here more useful than calling Apple for help. Not much we can do now except roll back to 10.3 for those that kept it and hope also they can updated Apple Application Support component.

  • Change the class and type in javascript or select statement of region

    Application Express 3.2.0.00.27
    I have a manually created tabular form where I need pk to be updatable or not not updateable depending on whether its a new record or not.
    I am attempting this thru 2 different ways.
    1st:
    using decode in select statement of region:
    SELECT decode(c001,NULL,APEX_ITEM.POPUP_FROM_LOV(15,c001,'AUTH_LOV',NULL,NULL,0,NULL,NULL,NULL,'YES','f15_' || '#ROWNUM#'),
    apex_item.display_and_save(15,c001,'f15_'|| '#ROWNUM#')) authid,
    apex_item.hidden(16, c002, NULL,'f16_'|| '#ROWNUM#') empid,
    -- apex_item.display_and_save(16,c002,'f16_'|| '#ROWNUM#') empid,
    apex_item.date_popup(17, rownum, c003, 'DD-MON-YYYY',20,2000,NULL,'f17_' || '#ROWNUM#')deldate,
    apex_item.textarea(18,c004,5,40,NULL,'f18_'|| '#ROWNUM#') "Delegation scope",
    apex_item.textarea(19,c005,5,40,NULL,'f19_'|| '#ROWNUM#')"Delegation limits",
    apex_item.select_list_from_lov(20,c006,'YESNO_LOV',NULL,'NO','N','%','f20_'|| '#ROWNUM#')"ORA Signed",
    apex_item.date_popup(21, rownum, c007, 'DD-MON-YYYY', 20,2000,NULL,'f21_' || '#ROWNUM#') "Del expiry",
    apex_item.date_popup(22, rownum, c008, 'DD-MON-YYYY', 20,2000,NULL,'f22_' || '#ROWNUM#') "Date removed",
    apex_item.textarea(23,c009,5,40,NULL,'f23_'|| '#ROWNUM#') "Delegation comments",
    apex_item.POPUP_FROM_LOV(24,c010,'DELEGATION_LOV',NULL,NULL,0,NULL,NULL,NULL,'YES','f24_' || '#ROWNUM#') "Delegator",
    apex_item.display_and_save(25,c011,'f25_'|| '#ROWNUM#') status,
    -- apex_item.display_and_save(26,seq_id,'f26_'|| '#ROWNUM#') seq_id,
    apex_item.hidden(26, seq_id,NULL,'f26_'|| '#ROWNUM#') ||
    apex_item.checkbox(27, seq_id,NULL,NULL,':','f27_'|| '#ROWNUM#') chkbx
    FROM apex_collections
    WHERE collection_name = 'DELEG_COLL'
    AND c011 IN ('O','N','U','D')
    --order by c001However this approach yields this error when I try to pick a value from the lov:
    Error: Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus.
    My other approach is to attempt to change the type and class in javascript. I am trying this but I get an error when I attempt to change the class and type like this:
    <script type="text/javascript">
    <!--
    /* Client side validation on the Salary column */
    function changeProp(pCol) {
       var elms = document.getElementsByName(pCol);
       for (i=0; i< elms.length; i++) {
    /*       elms.style.backgroundColor = 'yellow'; */
    if (elms[i].value == null || elms[i].value == '%null%'
    || elms[i].value == '') {
    elms[i].class = 't20data';
    elms[i].type = 'hidden';
    alert('The value is' + elms[i].value);
    //-->
    </script>

    not completely duplicate...here in this thread I am stressing what I am trying to accomplish and asking for help on the javascript side.

  • SQL Query for members of dynamic group - Need to include Name, Path and Type

    Hello,
    I built a custom dynamic group that has all my SQL databases in it using SCOM 2012 SP1.  The group works fine as I can see the Name(ie, Database name), Health State, Path (ie, hostname/instance) and Types (ie; SQL 2005).  Now I'm trying to
    build a custom report based off this same information using a SQL query.   I'm no DBA and could use some help.  So far this is what i have
    use
    select
    SourceObjectDisplayName as
    'Group Name',
    TargetObjectDisplayName,TargetObjectPath
    from RelationshipGenericView
    where isDeleted=0
    AND SourceObjectDisplayName
    like
    'SQL_Databases_All'
    ORDERBY TargetObjectDisplayName
    This gets me the Group Name (which i really don't care about), database name, and hostname/instance. What I am missing is the Health State and most importantly the Type (ie, SQL Server 2005 DB, SQL Server 2008DB).
    If someone could assist me here I would appreciate it. I believe I need to do some type of INNER JOIN but have no idea where the SQL type info lives or the proper structure to use. Thanks
    OperationsManager

    Here's the updated Query for OpsMan 2012 R2:
    To find all members of a given group (change the group name below):
    select SourceObjectDisplayName as 'Group Name', TargetObjectDisplayName as 'Group Members' 
    from RelationshipGenericView 
    where isDeleted=0 
    AND SourceObjectDisplayName = 'Agent Managed Computer
    Group' 
    ORDER BY TargetObjectDisplayName

  • How to display and type in Chinese on BB bold 9000?

    Hey, I'm a new user of BB bold 9000. Just bought the phone from the states, which was distributed by AT&T and it is unlocked.
    I have tried couple times by following this post:
    http://supportforums.blackberry.com/t5/BlackBerry-Curve-BlackBerry-8300/Chinese-Character/m-p/35515?...
    In the aforesiad post, instrucation was given as:
    install Desktop Manager without Media Manager on your PC
    install the handheld software 4.5.0.174 on your PC (it will install inside the Desktop Manager)
    seaarch for a file called vendor.xml and rename it to vendor.xml.toto or anything else
    plug your BlackBerry device to the PC, and launch the Desktop Manager
    in the application section, you can see the OS of 2) and install it to your BlackBerry device."
    Basically what I did was to install Desktop Manager without Media Manager (5.0) version on my PC and installed the handheld software 4.6
    I noticed that there's no Chinese language selection (basically no Asian languages) and I then tried 4.6 Desktop Manager which still didn't work.
    Also, I am not able to find the "vender.xml", wondering if this has any impact on the application.
    What should I install to display and type in Chinese? Any inputs will be appreciated!
    Thanks

    Hey josejr,
    Welcome to the BlackBerry Support Community Forums.
    To install the East Asia language pack, please perform the following steps:
    1.  Go to http://na.blackberry.com/eng/support/downloads/download_sites.jsp
    2.  Choose your Carrier (AT&T)
    3. Then proceed with selecting the BlackBerry Bold 9000 and select Next.
    4. You will download the device software "BlackBerry Handheld Software v4.6.0.519 (EastAsia)".
    5. Once this software is downloaded, please install on your PC.
    After the device software has been successfully installed, please following the following steps in this knowledge base article.
    http://www.blackberry.com/btsc/KB17208
    -ViciousFerret
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Like! for those who have helped you.
    Click  Accept as Solution for posts that have solved your issue(s)!

Maybe you are looking for

  • ITunes sync issues with Windows 7 64k Bit

    I am beyond frustrated! I have attempted for the past 3 days straight to figure out why iTunes keeps having syncing issues with all my devices- Nano 8GB, Touch 8GB, iPhone 3G 8GB. When I first connected the devices for the first time iTunes froze up

  • Extension fields in Advanced Find Form

    Hi, experts,      I have four solutions in which I added one extension field to a standard BO.      Let's say they are S1,S2,S3 and S4 respectively and all are of the same data type.      I added each of them to the Advanced Find Form of the standard

  • Soundtrack in keynote- problem

    I m doing interactive video presentation in keynote and i have a problem with inserting sound track. Presentation consists of 5 slides, and i want to use music for 4 slides only and 5th one without music( 5th slide is a music video so i dont need sou

  • Multiple copies while syncing with itunes

    while syncing, five copies of 767 songs by one artist are on the ipod. Wondering how to eliminate this. tried clearing the ipod and reinstalling all music. didnt work. suggestions are welcome.

  • Adobe reader for Windows 8 RT ?

    I understand from reading the adobe blog that a version of adobe reader for windows 8 RT (tablets) was released last December however when I go the the adobe store it only shows versions of ipad and android. Am I looking in the wrong place?