UFT(11.53) - Typecasting User Defined Object into Standard Object

Hi Team,
           I want to typecast my Userdefined Object Window("Microsoft Excel") into Standard Excel object.( I have gone through "CType" function in VB but it is not useful in UFT  Can we make this possible?)
Is it possible to do it in UFT 11.53? If, Yes then please elaborate the answer.
Thanks,
Prachi Kulkarni

One small detail in the SELECT.
SQL> create or replace type sample_obj_rec as object
  2  (object_id    number,
  3   object_name  varchar2(32),
  4   object_type  varchar2(32));
  5  /
Type created.
SQL>
SQL> create or replace type sample_obj_tab as table of sample_obj_rec ;
  2  /
Type created.
SQL>
SQL> declare
  2     v_tab   sample_obj_tab := sample_obj_tab() ;
  3  begin
  4     select sample_obj_rec(object_id, object_name, object_type)
  5     bulk   collect into v_tab
  6     from   dba_objects
  7     where  rownum < 11 ;
  8  end ;
  9  /
PL/SQL procedure successfully completed.
SQL>

Similar Messages

  • User defined fields in Resource object; Resource object form

    Hi,
    Can anyone tell me what is the purpose of having user defined fields for resource object and resource object form and how can we use those fields while requesting for target resource.
    Regards,
    Alabhya Goel

    Thanks for your reply!!!!!!!!!!
    I know about resource object form i am just asking what is the use of user define field in resource object form. How can we use it. Like when we create any user defined field in under User form those fields display on create user form but when we create any user defined field in resource object from those are not displayed in form.
    If anyone has used or worked on user defined fields in Resource Object or resource object form; please give me an overview over the same.
    Regards
    Alabhya Goel

  • How i can make user defined button in standard menu.........

    hi all,
                     please tell me how i can make user defined button in standard menu.........
       regards
    vikas saini

    hi Vikas ,'
    u can do this by using PF status and setting titile .
    follow thw link for help.
    Re: To Change SAP Tiltle into some other title
    Regards,
    Amit

  • Can I translate user defined table into mulilanguages

    Can I translate a particular field of my own data field into foreign languages in SAP B1?
    Actually I want to print shipping label in different langauages. And I want that address and the details of the shipping label transleted in a text file in order to print from command prompt.
    Pls help me . its urgent
    Thanks in advance

    Im not sure, if I understand you correct.
    I understood that you want to transalte the description of user defined field - ok?
    If yes, the only way is to move the UDF inside the form and based of selected language show correct description in label.

  • How can I enter user defined info into a seq file

    I would like to insert some user defined information that I can extract either viac C-code (step invoked) or from the Operator Interface once the seq file has been loaded into memory.

    Hi hurst,
    You probably want to create a dialog panel that will allow the user to enter the information.
    Where you store this information really depends on how much of the sequencefile needs to have access to this information.
    If its global then writing it to either StationGlobals or to FileGlobals. Writting to StationGlobals means it going to be available after the execution of your sequencefile has finished. Writing to FileGlobals means its only going to be available during the execution of your sequencefile and also only in scope for the sequencefile its contained in. Unless you change the default setting so that all sequencefiles use the same FileGlobals.
    To get the information to the SequenceFile will be by TestStand API calls using the PropertySetValue.
    Another way would be to use the propertyloader.
    There are plenty of examples either with TestStand or on the NI website on transferring data of all types from a step during execution.
    This is a bit general. Maybe if you can expand on your query.
    hope this helps
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • UDF(user defined function) for standard date transformate function,

    Hi All,
    Hope you are doing good !!!
    I have a requirement where i need to write an UDF(user defined function). Please help me in writing the code for below logic-
    I am getting my Input as 111213 where 11 denotes HH 12 denotes mm 13 denotes ss. I need ti insert : between hh:mm:ss
    Please help me achieving a code for below logic
    I have used standard date transformate function, there i am getting spaces as separator in my input resulting an errors i am sending without spaces.
    Regards,
    Vijay Kumar.

    Hello,
    I am getting my Input as 111213 where 11 denotes HH 12 denotes mm 13 denotes ss. I need ti insert : between hh:mm:ss
    Please help me achieving a code for below logic
    I have used standard date transformate function, there i am getting spaces as separator in my input resulting an errors i am sending without spaces.
    What do you mean by spaces? Can you try the mapping below?
    inputDate -> replaceString -> dateTrans(inputDateFormat: HHmmss outputDateFormat: HH:mm:ss) -> target
    Constant: -> /
    Constant:-> /
    Hope this helps,
    Mark

  • Combining Objects into one object

    I have just learned Live Cycle this past week without assistance and so far so good.  My question is, I am trying to create a single object from multiple objects that I can repeat and insert through a button using the Action Command.  Is there a way to turn the multiple objects grouped into one item.  When I go into Action Builder, I keep getting the same message - "Subfolder container not flowed" and "Subform configured to be repeatable".  Can anyone help?

    Post the question in the forum for LiveCycle Designer?

  • How to insert an object into an object array

    I have an array of objects and im trying to insert an object into the array at position zero. Does anyone know what method I can use for this?

    Hey,
    Are u using a normal array or an array list ?
    For instance if you are using a normal array and you wnat to store an object of classX it should be something like this:
      myArray[0] = new classX(vlaue1, Value2, Value3);this will only work if you have a default constructer for the objects.
    I am posting under correction here but this is the basic idea.
    Hope it helps :-)

  • Converting the scanner object into string object....

    Hello everyone. I've finished my hw and one thing made me curious about it. I hope you can help me. Now, I've tried to make this code in NetBeans IDE 6.0:
    Scanner src = new Scanner(System.in);
    String s = src.toString().toLowerCase(Turkish /* locale thing*/);
    My purpose is to take users entries to console as string and than make the letters in lower case. But, my language is turkish. So I've problem with it because there is no Locale Turkish object in IDE.
    So what do you suggest. Do you know a downloadable or updatable solution for this. Or if you're sure that there is no prepared solution, what do you suggest.

    I've looked that page but I've found some of the answers at http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html#toLowerCase(java.util.Locale)
    I knew that I can't write a code like that. I was just wondering if I could change the locale (after I initialize the string obj.) while toLowerCase().
    I needed that becouse when I want to ask a question at console: I must ask it in whatever user's language is. And also get the answers in their own language. Then I'll match the answers with my answers. for example console will ask:
    please enter your language? T?rk?e, English, Dutch, ?vrit, ...
    and the user will enter some characters to chose their language IN THEIR OWN ALPHABET that I'll match those with the ones that I created the answers (inside the codes) in all languages.
    If there is a match the program will work with that alphabet.
    I was asking for an easier way to get on with this. There may be a class that I can reach any kind of alphabets. or a method maybe.

  • How to Split java.util.Set object into multiple objects?

    Hi All,
    I'm having a collection of items in a Set. Assume that i'm having 10,000 items in Set A.
    Now i like to split the Set into multiple Set or Array such as each set or array consist of 100 records. i.e whenever
    i get more items i want to split them into mutiple set or array.
    Is there is any Java Api doesn't this function? or any other way to achieve this?
    Thanks,
    J.Kathir

    Iterate through them, placing them into different new collections.
    It may be easier to add the Set to a List, and then call sublist() a few times on the resulting List.

  • ORA-22979: cannot INSERT object view REF or user-defined REF

    I'm getting this error when trying to insert a parent_type object into an object table. The parent object contains a nested table of parent object references.
    CREATE TYPE cl_ArgList AS TABLE OF REF cl_Expression
    CREATE TYPE cl_Expression AS OBJECT (
    args cl_ArgList;
    Somehow the system-generated parent object REF that is returned from one STATIC function (using MAKE_REF) turns into a incompatible REF by the time it is passed to aother STATIC function and used in the constructor of the nested table for a new args instance.
    Does anybody know how this might be happening?
    Is there any way to test if a REF is a valid system-generated REF vs. a user-defined REF?
    I don't even know what a user-defined REF is, how I might be getting one, and what's wrong with it anyway. Shouldn't strong-typing ensure that the REF is okay if it is of the appropriate type?
    Glenn.

    Okay, solved that.
    FYI the problem is that the nested table arguments (REF cl_Expression) have to be SCOPED REFs, ie. constrained to refer only to objects in a particular table (although I don't really understand why).
    Then of course the trick is how to constrain the arguments in the nested table, because you can't do it in the CREATE TYPE statement. You also can't do it when you create the containing table, when you define how the nested table is stored:
    CREATE TABLE <containing table> OF cl_Expression (
    NESTED TABLE args STORE AS t_args
    Instead you have to modify the nested table properties after it has been created:
    ALTER TABLE t_args ADD (SCOPE FOR (column_value) IS t_Induhvidual);
    'column_value' is the actual syntax, not your own column name.
    But you probably knew that ;-)

  • User-defined field assignment  in Contact object

    Good Day
    Experts:
    I guess this might apply to all SAP Business Objects.  Specifically, I am working with the oContact object.  A User-defined field has been added to the OCLG table.  I need to populate the field with the current logged on User.  I see that I can do the following with the intellisense but I am not sure where to go from here.
    vContact.UserFields.Fields.Item
    I tried but I get a message "Expression is a value and therefor cannot be the target of an assigment:
    vContact.UserFields.Fields.Item("U_Creator") = (GetUserCodeSess(g_B1Connection.Company.UserName))
    It feels like I should be able to set the User-defined variable through the object but I don't think I am doing it correctly.
    Any helpful hints?
    Thanks,
    Ed

    Hi Robert,
    I think the only supported way is to give full rights to the users and block changing field in the Item Master Data form through your addon.
    A non supported way is to use a query to update the item master fields
    Regards
    Ad

  • User Defined datatypes dont work

    URGENT HELP REQUIRED! SOS!
    I had installed PO 8.0 on one of my machines, but when tried to create user defined datatypes, it says 'Object Type Not Enabled'. Does that mean we can ENABLE creation of user defined datatypes in PO 8.0? If so, please guide as to where i can find this option.
    Secondly, when I install Oracle 8.1.6 and forms6i on my Server (windows NT environment), I find that although tyopes can be defined in sql8.0, the same is shown as UNDEFINED in sql3.3. Is it a bug or am i missing out something? Please guide.
    Thanks, in anticipation!

    Thanks for your replies.
    Here is how we use UDD in sybase and also how the queries change when TYPE is used in Oracle.
    Eg:-
    ***************** Sybase **************************
    sp_addtype 'name10','varchar(10)'
    go
    Type added.
    (return status = 0)
    create table TEST
    usrname name10)
    go
    sp_help TEST
    go
    Name Owner
    Object_type
    TEST dbo
    user table
    (1 row affected)
    Data_located_on_segment When_created
    default Jan 17 2007 9:43AM
    Column_name Type Length Prec Scale Nulls Default_name
    Rule_name Access_Rule_name Identity
    usrname name10 10 NULL NULL 0 NULL
    NULL NULL 0
    (return status = 0)
    INSERT INTO TEST VALUES('SUC') /* Insert is like any table created without
    UDD */
    GO
    (1 row affected)
    SELECT usrname FROM TEST
    GO
    usrname
    SUC
    (1 row affected)
    ******************************** Sybase End ***********************
    ********************** ORACLE *******************************
    create or replace type name10
    ss object
    name10 varchar(10))
    Type created.
    create table test
    ( usrname name10)
    Table created.
    desc test
    Name Null? Type
    USRNAME NAME10
    INSERT INTO TEST VALUES('SUC')
    INSERT INTO TEST VALUES('SUC')
    ERROR at line 1:
    ORA-00932: inconsistent datatypes: expected SYSTEM.NAME10 got CHAR
    INSERT INTO TEST VALUES(NAME10('SUC'));
    1 row created.
    SELECT USRNAME FROM TEST
    USRNAME(NAME10)
    NAME10('SUC')
    SELECT USRNAME.NAME10 FROM TEST
    SELECT T.USRNAME.NAME10 FROM TEST T
    USRNAME.NA
    SUC
    ********************* ORACLE END **********************************
    Thanks
    Suchetan Shetty

  • How to add a User Defined Field in OUBI

    Dear Experts
    I would like to find out how to add a user defined field into OUBI from a Customer Care & Billing source system. If anyone could list the steps involved or point me toward a source of documentation that sets out the steps involved it would be much appreciated.
    Cheers
    Tim

    Is there anyone out there who has had experience using OUBI with CC&B?

  • DI Server and User Defined Fields

    Hello experts,
    When I add user defined fields to an object, am I able to update those user defined fields using the UpdateObject command on the DI Server? I have looked for answers on this subject, but I only got answers from 2006 saying that it wasn't possible. Has this been resolved yet?
    I couldn't find any documents with best practices on this subject. Are any documents available?
    Thanks for your time!
    Vincent

    Vincent,
    Per the SDK Help Center Documentation for the 2007A SDK and DI Server, the documentation states...
    "After adding new user fields to the database (either through the application or the DI API), it is required to stop and start the DI service, so that  the object schema will be updated and the DI Server would identify those changes."
    Have you done this?
    Eddy

Maybe you are looking for

  • Need to update the list item in the same sharepoint list with particular condition with Sharepoint Designer 2013.

    Hi All I have one sharepoint list with huge data i.e with 20columns and more than 200 records with the fields . Suppose lets consider there are A,B,C,D,E,F,G,H columns. Now i want to create one form with the fields A,C,E. When the user enter the exis

  • Pavilion dv6 6169sl does not restart after installing video driver

    Hi, I reinstalled windows 7 (64 bit) on my Pavilion dv6 6169sl.Then, I downloaded the video driver from the hp website and, when I restart the pc in order to complete the installation, it doesn't start, but the system stops showing the windows logo.C

  • For VKM3

    Dear All, For credit management bolck at delivery for PGI we realese sales order through VKM3 NOW for one sales order vkm3 status is as follows Overall status         Released Dynamic check          Not approved In delivery credit status is still B (

  • IPhoto Organization (Events, Keywords, etc.)

    I have a large iPhoto library and would like suggestions on how to BEST organize photos so that I can locate them later.  I have currently only organized my photos by the events section.  It seems weak at this point as I really cannot search anything

  • Running Older Software

    I work for an elementary school and some of the teachers are getting new MacBook Pros with Mountain Lion on them. However, some of the programs they used to use with Snow Leopard are too old to be run on Mountain Lion. Is there a way to fix this and