How to add expression property using OMB+

Hi,
Is it possible to set the expression property for a attribute in the CONSTANT operator through OMB+ ?
The following commend does not work
OMBCREATE MAPPING map_name \
SET PROPERTIES (BUSINESS_NAME, DESCRIPTION) \
VALUES ('map name ', 'Mapping to test constant') \
ADD CONSTANT OPERATOR 'CONST1'\
ADD ATTRIBUTE 'NULL_DATE' OF GROUP 'OUTGRP1' OF OPERATOR 'CONST1' \
SET PROPERTIES (EXPRESSION) VALUES ('NULL')
Can anybody provide an example.
Thanks,
Sekar,K

Thanks mark,
I am not sure what i did wrong yesterday , today the statement is working ? I am using version 9.2.0.4.
Yesterday initially i tried without operator name ,
OMBCREATE MAPPING 'M' \
ADD CONSTANT OPERATOR \
ADD ATTRIBUTE 'A' OF GROUP 'OUTGRP1' OF OPERATOR 'CONST'\
SET PROPERTIES ( EXPRESSION) VALUES ('NULL')
This statement didn't work, after that i have tried with name i was getting different error.
I will let you know if i am able to re-create the error..
Does version 10g supports timestamp datatype ?
Thanks for your help
Sekar,K

Similar Messages

  • Is it possible to add a property using variable in variable name?

    I want to query for a list of virtual machines within a folder, then create a menu of the host names using forms.  Since the list of machines is subject to change, I want to build the list each time the script is run, rather than build off a static
    list. 
    For each virtual machine I need to create the list of variables below:
    $hostnameX = New-Object System.Windows.Forms.checkbox
    $hostnameX.Location = New-Object System.Drawing.Size(10,20)
    $hostnameX.Size = New-Object System.Drawing.Size(100,20)
    $hostnameX.Checked = $true
    $hostnameX.Text = "Type"
    $hostnameX.Controls.Add($hostnameX)
    The location and size values need to be incremented but I think I can figure that part out.
    I can use New-Variable to generate the initial variable. But I receive errors using the same method to try to create a new property for the variable.
    $VMS = Get-Cluster MyCLUS | Get-vApp "My vApp" | Get-VM | Select Name,PowerState | Sort Name
    For ($i=0; $i -lt ($VMS.count); $i++)
    $VMS[$i].Name
    $VMGUEST = "$($VMS[$i].Name)" -replace("-","")
    New-Variable "CB$VMGUEST" "New-Object System.Windows.Forms.checkbox"
    New-Variable "CB$VMGUEST.Location" "New-Object System.Drawing.Size(10,20)"
    In the above, $CBVMGUEST1 =  New-Object System.Windows.Forms.checkbox which is what I want,  but $CBVMGUEST1.Location is not set.
    Is there way to add a property using a variable in the variable name?  Or any other suggestions on how to tackle this issue?

    Hi,
    maybe another approach is a bit easier.
    Use a hash-array like
    $CB = @{}
    $CB[$VMGUEST] = New-Object System.Windows.Forms....
    $CB[$VMGUEST].Location = New-Object System.Drawing....
    Mit freundlichen Grüßen Jens Kalski
    That's the correct answer.  Anytime you find yourself wanting to create variables named "Widget1", "Widget2", "Widget3", etc... it's a pretty clear indication that what you really need is a collection object of some sort.  That might be an array,
    a hashtable, or any other data structure for holding other objects, depending on your specific needs.

  • How to add the property file..ie(default.properties) to a webdynpro project

    Hi All,
    How to add the property file..ie(default.properties) to a webdynpro project.
    I urgently require the solution. Kindly get it for me.
    Regards
    DK

    Hi DK,
    this is described in the second Web Dynpro Java Tutorial
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/b1a3e990-0201-0010-aeb2-a2ef5bc3da8e">creating an Extended Web Dynpro Application</a>
    Regards, Bertram

  • How to add classification view using BAPI_MATERIAL_SAVEDATA

    Hi,
    Please any one let me know how to add classification view using BAPI_MATERIAL_SAVEDATA to the material master.
    Thanks,
    shekar

    We use this bapi on a regular basis as well as classification of materials.  We have success doing this in 2 steps.  First step is to save the material using BAPI_MATERIAL_SAVEDATA, second step is to save classification using BAPI_OBJCL_CHANGE  (this can be used for both create and change)  Also look at Function Group CLBPA .   there are several bapi's in that group dealing with object classification, including the one I mentioned..

  • How to add ALV button using OO in module pool program using ALV grid

    Hello Gurus!!!
                  Want some tips related how to add button using ALV Grid(OO).
    I want to display the button for search, sort ....
                 Please suggest the step -by-step procedure for implementation of these button.
                 I am designing the code for transaction FB03. Header data has been displayed but want to display the line items.
                 Kindly suggest your answers.
    Thanks,
    Sachin

    Hi,
    CLASS SELSCR_APPLICATION DEFINITION DEFERRED.
    CLASS SELSCR_APPLICATION DEFINITION.
      PUBLIC SECTION.
       METHODS:
            HANDLE_TOOLBAR
            FOR EVENT TOOLBAR OF CL_GUI_ALV_GRID
                IMPORTING E_OBJECT  E_INTERACTIVE,
            HANDLE_USER_COMMAND
            FOR EVENT USER_COMMAND OF CL_GUI_ALV_GRID
                IMPORTING E_UCOMM.
    ENDCLASS.        "SELSCR_APPLICATION DEFINITION
    CLASS SELSCR_APPLICATION IMPLEMENTATION.
      METHOD HANDLE_TOOLBAR.
        DATA: LS_TOOLBAR  TYPE STB_BUTTON.
    append SAVE icon
        CLEAR LS_TOOLBAR.
        MOVE 'SAVE' TO LS_TOOLBAR-FUNCTION.
        MOVE ICON_SYSTEM_SAVE TO LS_TOOLBAR-ICON.
        MOVE 'Save' TO LS_TOOLBAR-QUICKINFO.
        MOVE ' '  TO LS_TOOLBAR-DISABLED.
        APPEND LS_TOOLBAR TO E_OBJECT->MT_TOOLBAR.
        CLEAR LS_TOOLBAR.
      ENDMETHOD.                    "handle_toolbar
      METHOD HANDLE_USER_COMMAND.
        CASE E_UCOMM.
          WHEN 'SAVE'.
              PERFORM UPDATE_FIELDS.
        ENDCASE.
      ENDMETHOD.
    ENDCLASS.                 "SELSCR_APPLICATION IMPLEMENTATION
    these lines should be after calling method SET_TABLE_FOR_FIRST_DISPLAY
    SET HANDLER G_APPLICATION1->HANDLE_TOOLBAR FOR GRID1.
            CALL METHOD grid1->set_toolbar_interactive.
    rgds,
    bharat.

  • How to add a property to BasicPersistence SDK example.

    Hi,
    I see in the BasicPersistence example that it creates a property call BPIData and persists this in the IDML.  I would like to add another property call MyProperty.  Do you know how to add an additional property to the example which is persisted in the IDML, so now it would persist 2 properties? 
    Thanks,
    Dave

    for example:
    javax.jcr.Session session = resourceResolver.adaptTo(Session.class);
    String parentPath = "/content/blah"; // or whatever your parent path is
    String nodetype = "nt:unstructured"; // or whatever other node type you require
    Calendar calendar = Calendar.getInstance(); // or whatever date
    Node node = session.getNode(parentPath).addNode("nodename", nodetype);
    node.setProperty("myproperty", calendar);
    session.save();

  • How to add control buttons using Java thorugh serial port?

    Hi everyone,
    I'm new to this forum.
    I have some questions on Java and serial port.
    I want to write a Java program to control my robot, through serial port. For example, when I click "Forward", the robot will go forward, and so on.
    Now I already have the buttons, so next I would like to ask how to interface the buttons with the serial port.
    I already have all the javax.comm things installed.
    below is the code for my buttons:
    import java.awt.*;
    public class ControlButtons extends java.applet.Applet
         GridLayout myLayout = new GridLayout(3, 3);
         Button button1 = new Button(" ");
         Button buttonForward = new Button("Forward");
         Button button2 = new Button(" ");
         Button buttonLeft = new Button("Left");
         Button buttonStop = new Button("Stop");
         Button buttonRight = new Button("Right");
         Button button3 = new Button(" ");
         Button buttonReverse = new Button("Reverse");
         Button button4 = new Button(" ");
         public void init()
              setLayout(myLayout);
              add(button1);
              button1.setVisible(false);
              add(buttonForward);
              add(button2);
              button2.setVisible(false);
              add(buttonLeft);
              add(buttonStop);
              add(buttonRight);
              add(button3);
              button3.setVisible(false);
              add(buttonReverse);
              add(button4);
              button4.setVisible(false);
    }Now I would like to ask for direction on how to add in the code to make it work with serial port.
    Thanks

    The plan is, I have a robot device connected to the serial port.We don't know anything about that device. We don't know how to control it. We don't know what you have to write to the device to make it do anything. Only you know what.
    For example, when I click "Forward", the robot will go forward, and so on.So what do you have to send to make it do that? and same for the other buttons.
    Next, you need to work out from the javax.comm API how to open the serial port and send data to it. This is a standard exercise in learning a new API. You must be able to do this. Again and again.
    But the program is useless. The button can be clicked, but didn't do anything.Because (a) they have no ActionListeners and (b) there is no code to send anything to the serial port.
    You have to write all that. So you also have to look up ActionListener in the Java API and how to attach it to a button. You can do that. We all do that kind of thing every day.
    So next I would like to ask how to interface the buttons with the serial port.You've been asking nothing else since you started, but you've also only done enough investigation of your own to create the buttons. That's only the start.
    The problem is what method and command should I use to make those buttons actually functioning.See above. You've been told part of it several times. The rest only you can answer, because it's your robot.

  • How to add Services programmatically using BAPI_BUS2002_ACTELEM_CREATE_M

    Hi :
    I need to create a project programmatically using the standard PS BAPI. My problem is that I don't know how to add external activities ( Services ) into my project.  I have all steps, except this one. I think that the BAPI BAPI_BUS2002_ACTELEM_CREATE_M should do it but I cannot find where to put the Service Number, Text and Quantity.
    Thanks a lot in advance.
    Jose J. Quezada.

    The problem remains the same. The BAPI_NETWORK_MAINTAIN does not have the fields to add the Services. It can adds an External Activity. The services are External Activities but where are the fields. I need an example or a more specific response. I know how to add a Material for example, but the Services are quite different.
    Kind Regards,
    Jose.

  • How to add custom property to CharacterFormat?

    Hi,
    Is there a way to add the custom property to character format and save in to XML TextFlow without significant changes in TLF?

    Interesting.  Looks like that could maybe be an ASDoc bug or something else going on.  The actual implementation of the contructor for ApplyElementUserStyleOperation in my build of TLF looks like this:
    public function ApplyElementUserStyleOperation(operationState:SelectionState, targetElement:FlowElement, styleName:String, value:*, relativeStart:int = 0, relativeEnd:int = -1)
    I'm not sure how to answer #2, but my first thought is that there's a fairly good chance that whatever you end up using 'user styles' for will not be related to the actual formatting of the text.  It could be some sort of metadata that's completely abstract from how the text is formatted or represented visually, which is where the text layout format applies.  There are more technical reasons why it shouldn't be there also, but they're probably not worth the energy unless you really want to know.   ..and Robin would be a better person to comment on that also.
    I don't know what build of TLF (if any) is included in the Flex 3.4 SDK, but TLF does not have any dependencies on the Flex framework (or any particular version of it).  The only requirement is that you are targetting Flash Player 10 or above.  You can always download the latest (or a very recent) version of the TLF SWC's, RSL's, and source with the Flex 4 SDK from the Flex 4 download site at:
    http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4

  • How to add a TreeNode using a path?

    When I doing my project, I get stuck on a portion of my GUI Coding.
    My code provide a path such as
    /Home/fsloke
    /Home/fsloke/directory1
    /Home/WorkHard
    /Home/WorkSmart
    /Home/WorkSmart/Dreamincode
    Currently my tree constructed as below:
    Home
    + fsloke
    ---+directory1
    + WorkHard
    + WorkSmart
    ---+ Dreamincode
    May I know how can I add a childNode called "TryHard" under WorkHard?
    Generally the path give is "/Home/WorkHard/TryHard".
    Don't worried I will split it to
    TreeNode Head ="Home"
    parentPath ="/Home/WorkHard";
    childNode name = "TryHard";
    Any clue?
    I search in net. All give me the solution when the user click on the tree Node. Then the code use , getSelectedPath() function.
    In my case my user not click on the Tree...
    Any advise and direction...
    Thanx...
    I like the DynamicTreeDemo coding from this website http://java.sun.com/docs/books/tutorial/uiswing/components/tree.html

    you can use this method:
    addChildTo("WorkHard","TryHard");
    public void addChildTo(String parentObject, String child){
             TreePath parentPath = getTreePath(parentObject);
             if(parentPath != null){
                 DefaultMutableTreeNode parent = (DefaultMutableTreeNode)parentPath.getLastPathComponent();
                 treeModel.insertNodeInto(new DefaultMutableTreeNode(child), parent, parent.getChildCount());
    private TreePath getTreePath(String userObject) {
             java.util.Enumeration nodes = ( (DefaultMutableTreeNode) treeModel.getRoot()).
             preorderEnumeration();
             while (nodes.hasMoreElements()) {
                  DefaultMutableTreeNode node = (DefaultMutableTreeNode) nodes.nextElement();
                  if (node.getUserObject().equals(userObject)){
                       return new TreePath(node.getPath());
             return null;
    }if you are using new DefaultMutableTreeNode("WorkHard"); , then the object name(WorkHard) should be unique , otherwise create node with your own object. Or alter the method what ever you need..
    edit:
    creation of jtree like
    DefaultMutableTreeNode top =
                new DefaultMutableTreeNode("The Java Series");
            createNodes(top);
            treeModel = new DefaultTreeModel(top);
            tree = new JTree(treeModel);
            tree.getSelectionModel().setSelectionMode
                    (TreeSelectionModel.SINGLE_TREE_SELECTION);ref:http://java.sun.com/docs/books/tutorial/uiswing/examples/components/TreeDemoProject/src/components/TreeDemo.java
    Edited by: david_david on Mar 19, 2008 10:15 AM

  • How to add many hosts using jython interface to sps host database

    Hi,
    we want to create a huge number of virtual hosts into sps repository with jython interface.
    for exemple our variables are:
    hostname = sps1.internet.com
    ip = 192.168.1.1
    masterserver = masterserver
    hardware = v550
    and the script command looks like:
    app.execRaw ( 'hdb.h.add' , { 'name' : hostname , 'desc' : hardware , 'tID' : 'NM:com.vodafone.osmgt#vodRAvhostHT' , 'pID' : NM:masterserver , 'attr' : 'cliServer=cliServer;RA_HOSTNAME=hostname;RA_PROVISIONING_IP_ADDR=ip;RA_DESCRIPTION=Dynamic Infrastructure container;RA_OWNER=n1sps;RA_OWNER_DIR=/var/crash/home/n1sps;RA_OWNER_CREATE_SSH_CONN=true;RA_UID=2241;RA_GROUP=n1sps;RA_GID=2241;RA_INSTALLER_USER=root;RA_SUID=y;RA_INSTALLBASE=/opt/SUNWn1sps;RA_CTYPE=ssh;RA_CTYPE_PARAM=cprefix=/opt/SUNWn1sps/N1_Service_Provisioning_System/agent;RA_LEAVEFILES=n;RA_INSTALL_JRE=/opt/SUNWn1sps/N1_Service_Provisioning_System/common/jre;RA_PORT=1131;RA_CIPHER_TYPE=1;RA_INSTALLER_WORKDIR=/tmp;RA_PARENT_HOST=masterserver;RA_PARENT_OWNER=n1sps;RA_PARENT_OWNER_DIR=/opt/SUNWn1sps/home/n1sps;RA_PARENT_TYPE=MS;RA_PACKAGE_PATH=/var/tmp/spsra;RA_PACKAGE_NAME=cr_ra_solaris_sparc_5.2.sh;RA_REMOTE_PACKAGE_TMP_DIR=/tmp;RA_REMOTE_PRIV_CMD=/usr/local/bin/sudo;RA_REMOTE_PRIV_USER=admin;RA_REMOTE_PRIV_USER_HOME=/home/admin;RA_SRC_SSH_DIR=/opt/home/.ssh;RA_DST_SSH_DIR=/home/.ssh;RA_SSH_AUTH_KEY_FILE=authorized_keys' } )
    unfortunetly we are getting an error when we try to run the n1 sps hdb.h.add command.
    Are we using this command in the right manner ?
    Thanks in advance.
    Christian

    Dear Tarzanek,
    I am Alexis Susset a coleague of Christian.
    Thank you very much for your reply, we are now able to add hosts directly from a Jython script.
    Unfortunetly, we are now encourting a problem with the hdb.h.add command.
    It dies if our hostname (name) is already present in the database.
    We currently need to import a very high number of node and I would like to know how to simply get two outputs (1. added nodes, 2. non-added nodes ).
    Please let me know if you would like me to post the scripts I have.
    PS: I tried to use a hbd.h.lo command but it dies as well when I search for a host that doesn't exist.
    Many thanks and best regards,
    Alexis

  • How to Add two numbers using RFC in WD abap

    Dear Experts,
    I have to add the two numbers using RFC.
    I have created the RFC and by using create -> service call i have include that RFC in my WD abap Program.. After that i don't know how to link the input view and to display the result in another view...
    Please help me..
    Thank you.

    This is the third thread that you have posted on this same question.  This is also your second warning that such activity is not allowed in the SCN forums.  Please return to your original thread if you wish to post a follow up question. 
    Beacause this is a duplicate thread it will be locked.

  • How to add network interface using ioctl ?

    I want to do what ifconfig does, but by using ioctls.
    To get or set network interface address, I found some information in the if_tcp(7P) man page. I would like to know more about how to go about it. Do I have to open socket or the pseudo ethernet driver e.g hme ? What are the parameters ? Do I require to only fill the structure ifreq to set the network interface ?
    Thanks in advance.
    -dev

    Are you trying to add a network volume or folder? I believe you can only add folders. Have you tried: Volumes/Archive, losing the first slash.  I was successful in adding a group folder to the dock by using: Volumes/Groups/Example

  • How to set ListItem Property using COM

    How do I set the CheckoutUser property of a document contained within a document set??  I can get the document, and reference all its properties, just not sure how to go about setting them using C# and the Client Object Model.....

    Hi Andy,
    The
    CheckoutUser field mentioned above should be Person or Group type, you can check if you can assign a User value to this field per the following similar post.
    http://social.msdn.microsoft.com/Forums/en-US/5183e87c-ee1d-4594-9492-0dfdf6616cce/sp2010-client-object-model-how-to-assign-a-value-to-a-peoplepicker-field
    Thanks
    Daniel Yang
    TechNet Community Support

  • How to Add Table Regions using Personalization

    I'm trying to add a new table region in a seeded page (SIT page) using personalization.
    The new table that I will be adding will have some information to the users. This table is just for informational purposes. We want to display this information in the form of a table only. No compromises on this !!
    When I try to personalize this page it gives me options to add new items like (messages, links etc) only but it does not let me add new regions.
    The personalization guides talks about an option called "Add content to a
    layout region" which sounds like what I want but it also says this option is available only for "Configurable Page". I believe the page i am trying to personalize is not a configurable page and hence i am not getting this option.
    Can anyone who has been in a similar situation and probably have some resolution throw some insight into this ? Are there any good workarounds for this ?
    Thanks,
    Tilak.

    Make sure that you are adding it at the Site level. Stack Region might not be available at Function/Responsibility level.
    If that does not work, develop a StackRegion inside of JDeveloper. Then, add a flexibleContent and flexibleLayout region using Personalizations. Inside of that Personalization, there is an Extends property where you will tell it to use your custom StackLayout Region created in Jdeveloper similar to this:
    <custom_app>.oracle.apps.per.selfservice.CustomRN
    I had this same requirement and was able to solve it using the steps outlined in this thread:
    Add New Region to seeded Page

Maybe you are looking for