Set value of multiselect property

Hi,
I have created a multiselect metadata property.
How can I set its value programmatically?

Hi Detlev,
Thanks for your answer. I am able to set multivalued property of a resource. But the problem I am facing now is, property is set only if it has some default value initially. If no value is set, then I am getting exception as 'property is not multivalued'.
My code is :
final String CREATED_BY_PROP_PREFIX =
                    "http://sapportals.com/xmlns/cm";
          IPortalComponentRequest request =
                    (IPortalComponentRequest) this.getRequest();
               try {
                    IUser user =
                         WPUMFactory.getUserFactory().getEP5User(request.getUser());
                    ResourceContext ctxt = new ResourceContext(user);
                    RID rid = RID.getRID("xyz/content/a.xml");
                    IResource res =
                         ResourceFactory.getInstance().getResource(rid, ctxt);
                    if (res != null) {
                         IPropertyName propName =
                              new PropertyName(CREATED_BY_PROP_PREFIX, "propname");
                         IProperty p = res.getProperty(propName);
                         IMutableProperty mutableProp = null;
                         mutableProp = p.getMutable();
                         mutableProp.addValue("val1");//here is exception
                         mutableProp.addValue("Val2");                         
                         res.setProperty(mutableProp);
               } catch (Exception e) {     }

Similar Messages

  • NSInvalidArgumentException : Attempt to set value for immutable property

    I get "An unexpected error has occurred. Please quit and reopen Keynote." EVERY time I try to copy a slide and change the master that controls it. Console says "Exception caught by top level: NSInvalidArgumentException : Attempt to set value for immutable property moviePoster." I'm not using any 3rd party themes. Advice from anyone?

    You can use the skip property of the train stop. You can have an EL expression for it, some thing like this #{pageFlowScope.isContinueEnabled}.
    Once all the mandatory fields are entered, you can set the isContinueEnabled flag and refresh the train button bar.
    For more info refer this: http://docs.oracle.com/cd/E14571_01/web.1111/b31974/taskflows_complex.htm#CJHFBFIE
    Also, you can try navigating to different train stops programmatically.
    Check: 082.      How-to programmatically navigate ADF train models
    in http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html

  • Set value TextTemplatingFileGenerator to custom tool property of a t4 template file at run time(programmatically) in an MVC Project

    In Solution Explorer we can set the Custom Tool property for a t4 Template file in the Properties window. But can anybody help me doing the same at run time?
    I want to assign the value TextTemplatingFileGenerator programmatically to the Custom Tool Property.
    Thanks in advance...

    Hi suraya,
    Since the issue regards MVC and website deployment. I suggestion you post the question in the ASP.NET forums at
    http://forums.asp.net/. It is appropriate and more experts will assist you.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Set proprty as value of another property

    my datacollector bean has refrenc of type data with 4 different properties
    <jsp:useBean id="data" class="com.custom.util.DataCollector" scope="request"/>
            <c:set target="${data}" property="IP1" value="${param.subnet1}" />
            <c:set target="${data}" property="IP2" value="${param.subnet2}" />
            <c:set target="${data}" property="IP3" value="${param.subnet3}" />
            <c:set target="${data}" property="IP4" value="${param.subnet4}" />now i want to set the data as property of another refernce. I tried this way
    <jsp:useBean id="saved" class="com.custom.util.SaveData" scope="request"/>
            <c:set target="${saved}" property="DataSafe" value="${data}" />my SaveData class
    package com.custom.util;
    import java.util.*;
    import java.io.*;
    public class SaveData implements Serializable {
        ObjectOutputStream dos;
        int ip1;
        int ip2;
        int ip3;
        int ip4;
        public SaveData() {
        public void setIP1(int ip1){
            this.ip1 = ip1;
        public void setIP2(int ip2){
            this.ip2 = ip2;
        public void setIP3(int ip3){
            this.ip3 = ip3;
        public void setIP4(int ip3){
            this.ip3 = ip3;
        public void setDataSafe(SaveData sd)throws FileNotFoundException, IOException{
            dos = new ObjectOutputStream(new FileOutputStream("data.txt"));
            dos.writeObject(sd);
            dos.flush();
    }and my DataCollector class
    package com.custom.util;
    import java.util.*;
    import java.io.*;
    public class DataCollector implements Serializable {
        TreeMap dataMap = new TreeMap();
        int ip1;
        int ip2;
        int ip3;
        int ip4;
        public DataCollector() {
        public void setIP1(int ip1){
            this.ip1 = ip1;
        public void setIP2(int ip2){
            this.ip2 = ip2;
        public void setIP3(int ip3){
            this.ip3 = ip3;
        public void setIP4(int ip4){
            this.ip4 = ip4;
    }and i got illegalargumentexception
    please help..

    from ehat i could understand from the method is that my code should be like this
    <jsp:useBean id="data" class="com.custom.util.DataCollector" scope="request"/>
            <c:set target="${data}" property="IP1" value="${param.subnet1}" />
            <c:set target="${data}" property="IP2" value="${param.subnet2}" />
            <c:set target="${data}" property="IP3" value="${param.subnet3}" />
            <c:set target="${data}" property="IP4" value="${param.subnet4}" />
            <jsp:useBean id="saved" class="com.custom.util.SaveData" scope="request"/>
            <c:set target="${saved}" property="dataSafe" value="${data}" />and exception i m getting because of this
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
    root cause
    java.lang.IllegalArgumentException
         sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:597)
         org.apache.taglibs.standard.tag.common.core.SetSupport.doEndTag(SetSupport.java:154)
         org.apache.jsp.basics1.Saved_jsp._jspx_meth_c_set_0(Saved_jsp.java:139)
         org.apache.jsp.basics1.Saved_jsp._jspService(Saved_jsp.java:79)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)

  • Unable to get value of the property 'nodeName': object is null or undefined  Error in apex_ns_3_1.js

    I am getting the following error with IE9 and Firefox 26 with application express 3.2:
    SCRIPT5007: Unable to get value of the property 'nodeName': object is null or undefined
    apex_ns_3_1.js, line 589 character 10
    this.dialog.check2 = function (e){
    var tPar = html_GetTarget(e);
    var lEl = $x('apexir_col_values_drop');
    var l_Test = true;
    ******  while(tPar.nodeName != 'BODY'){
    tPar = tPar.parentNode;
    if(tPar == lEl){l_Test = false;}
    if(l_Test){$x_Remove('apexir_col_values_drop')}
    This happens when I click the Gear Icon, then Filter, then I click the dropdown arrow under expressions and pick an expression from the list.
    If I set (through IE Developer tools) back to IE8 mode, I don't get the error.

    Guess no one is using 3.2 any longer or no one else gets this error.....  Guess I can edit the JavaScript file to trap the error since it really doesn't seem to cause an issue.  Just didn't want to have to go that route.

  • SQL Query (updateable report) Region - Conditionally Hide and Set Values

    SQL Query (updateable report) Region - Conditionally Hide and Set Values
    Outline of requirement :-
    Master / Detail page with Detail updated on same page using SQL Query (updateable report).
    The detail region has the following source
    SELECT item_id,
           contract_id,
           CASE WHEN hardware_id IS NOT NULL THEN
                   'HA'
                WHEN backup_dev_id IS NOT NULL THEN
                   'BD'
                WHEN hardware_os_id IS NOT NULL THEN
                   'HS'
           END item_type,
           hardware_id,
           backup_dev_id,
           hardware_os_id
    FROM   "#OWNER#".support_items
    WHERE  contract_id = :P26_CONTRACT_IDThe table support_items implements arced relationships and has the following columns
    CREATE TABLE SUPPORT_ITEMS
      ITEM_ID         NUMBER                        NOT NULL,
      CONTRACT_ID     NUMBER                        NOT NULL,
      HARDWARE_ID     NUMBER,
      BACKUP_DEV_ID   NUMBER,
      HARDWARE_OS_ID  NUMBER
    )A check type constaint on support_items ensures that only one of the fk's is present.
          (    hardware_id    IS NOT NULL
           AND backup_dev_id  IS NULL
           AND hardware_os_id IS NULL
    OR    (    hardware_id    IS NULL
           AND backup_dev_id  IS NOT NULL
           AND hardware_os_id IS NULL
    OR    (    hardware_id    IS NULL
           AND backup_dev_id  IS NULL
           AND hardware_os_id IS NOT NULL
          )    Hardware_Id is a FK to Hardware_Assets
    Backup_dev_id is a FK to Backup_Devices
    Hardware_os_id is a FK to Hardware_op_systems
    The Tabular Form Element based on item_type column of SQL query is Displayed As Select List (based on LOV) referencing a named list of values which have the following properties
    Display Value     Return Value
    Hardware Asset    HA
    Backup Device     BD
    Computer System   HSThe Tabular Form Elements for the report attributes for hardware_id, backup_dev_id and hardware_os_id are all Displayed As Select List (Based on LOV).
    What I want to do is only display the Select List for the FK depending on the value of the Select List on Item Type, e.g.
    Item_Type is 'HA' then display Select List for hardware_id, do not display and set to NULL the Select Lists for backup_dev_id and hardware_os_id.
    Item_Type is 'BB' then display Select List for backup_dev_id, do not display and set to NULL the Select Lists for hardware_id and hardware_os_id.
    Item_Type is 'HS' then display Select List for hardware_os_id, do not display and set to NULL the Select Lists backup_dev_id and hardware_id.
    There are properties on elements to conditionally display it but how do we reference the values of the SQL query Updateable region? they are not given a page item name?
    Also on the Tabular For Elements there is an Edit tick against a report item - however when you go to the Column Attributes there is not a property with which you can control the Edit setting.
    What's the best way of implementing this requirement in APEX 3.1?
    Thanks.

    >
    Welcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already), and update your profile with a real handle instead of "user13515136".
    When you have a problem you'll get a faster, more effective response by including as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
    With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.
    I have a multi-row region that displays values and allows entries in a number of fields.Provide exact details of how this has been implemented. (An example on apex.oracle.com is always a good way to do this.)
    I should like the fields to be conditional in that they do not permit entry, but still display, if certain conditions apply (e.g. older rows greyed out). Can this be done? Almost anything can be done, often in multiple ways. Which are appropriate may be dependent on a particular implementation, the skills available to implement it, and the effort you're willing to expend on it. Hence it's necessary to provide full details of what you've done so far...

  • Adjusting Portal Pages throws "Specify a value for the property {0}"

    I found (with the help of our friends at OSS) the setting I need to change with to adjust the Runtime frame size for Guided Procedures.
    It's quite logical really, since GP is just a bunch of pages in the portal it would make sense to find them in the Portal Content option ... So there it was.
    Content Administration > Portal Content
    Search for content and go to Process Instance. The following part shows the 3 main content parts of the GP Runtime window. As you can see in the third container are the two elements that contain your content. "Content Area" and "Public Content Area".
    Open those two areas (scroll down in the list in the middle, select one and press open) and change the value of Height Type from "Fixed" to "Automatic" or "Full Page".
    This is where I get my error (see the link below for a screenshot as well): When I try to change a value, any value or just open for modifying and try saving again (without changing anything) I get this error:
    [http://wow.telenet.be/delaware/property0.jpg]
    Specify a value for the property
    Now I don't know if there any portal expert watching this thread, but it seems as though all those pages have been wrongly configured from the start. And until I figure out the right configuration I won't be able to save them either way.
    My question is two-fold:
    1) Can anyone provide me with all the settings he has for this component so I can compare them to mine?
    2) How do I fix this error? I'm assuming every page in the portal gives the same error?
    Thanks in advance,
    Frederik-Jan
    Edited by: Frederik-Jan Roose on Apr 1, 2008 11:33 AM
    Edited by: Frederik-Jan Roose on Apr 1, 2008 11:33 AM

    I found (with the help of our friends at OSS) the setting I need to change with to adjust the Runtime frame size for Guided Procedures.
    It's quite logical really, since GP is just a bunch of pages in the portal it would make sense to find them in the Portal Content option ... So there it was.
    Content Administration > Portal Content
    Search for content and go to Process Instance. The following part shows the 3 main content parts of the GP Runtime window. As you can see in the third container are the two elements that contain your content. "Content Area" and "Public Content Area".
    Open those two areas (scroll down in the list in the middle, select one and press open) and change the value of Height Type from "Fixed" to "Automatic" or "Full Page".
    This is where I get my error (see the link below for a screenshot as well): When I try to change a value, any value or just open for modifying and try saving again (without changing anything) I get this error:
    [http://wow.telenet.be/delaware/property0.jpg]
    Specify a value for the property
    Now I don't know if there any portal expert watching this thread, but it seems as though all those pages have been wrongly configured from the start. And until I figure out the right configuration I won't be able to save them either way.
    My question is two-fold:
    1) Can anyone provide me with all the settings he has for this component so I can compare them to mine?
    2) How do I fix this error? I'm assuming every page in the portal gives the same error?
    Thanks in advance,
    Frederik-Jan
    Edited by: Frederik-Jan Roose on Apr 1, 2008 11:33 AM
    Edited by: Frederik-Jan Roose on Apr 1, 2008 11:33 AM

  • How to set the read only property for dynamic ALV column

    Hi All,
    I have built one dynamiv ALV and I have one name column inside that ALV for which I have to set read only property based on two column fields that exist in the same ALV,say IS_SP and IS_CORP of type boolean.
    If any one of the flag is 'X',i have to make that name column as display only and
    If both flag are not set,it should be displayed as ediatable column.
    I have written one method as INIT_ALV which gets called when ALV is loaded.
    Code is as  follows:
      lr_column_settings ?= wd_this->alv_all_roles.
      lt_columns = lr_column_settings->get_columns( ).
    LOOP AT lt_columns INTO ls_column.
    CASE ls_column-id.
       WHEN <NAMECOLUMN>. "name column which should be editable/display
    Create Input Field
            CREATE OBJECT lr_uie_input_field_ro
              EXPORTING
                value_fieldname = ls_column-id.
         ls_column-r_column->set_cell_editor( lr_uie_input_field_ro ).
        After this,I have to set the read only property based on IS_SP and IS_CORP values,
              CALL METHOD lr_uie_input_field_ro->set_read_only_fieldname
              EXPORTING
                *value = 'IS_SP' or 'IS_CORP'
    ENDLOOP.
    I dont want to use cell variants also.
    Help me to achieve this.
    Thanks and Regards,
    Divya

    Divya - I have done it in the past following these documents. Please read it and try it it will work.
    Please read it in the following order since both are a continuation documents for the same purpose (it also contains how to change colors of row dynamically but I didnt do that part I just did the read_only part as your requirement) 
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0625002-596c-2b10-46af-91cb31b71393
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0155eb5-b6ce-2b10-3195-d9704982d69b?quicklink=index&overridelayout=true
    thanks!
    Jason PV

  • How to set value in selectOnemenu using binding

    hi all.
    i have bind htmlSelectOneMenu. it contains some value. I want to set or display a value after a process.
    How to change value
    i have tried using setValue method of both binding property and value property of htmlSelectOneMenu.
    Same issue is with InputTextArea. how to set value in it via code(RowSelectionListener of icefaces)

    Balaji wrote:
    hi all.
    i have bind htmlSelectOneMenu. it contains some value. I want to set or display a value after a process.
    How to change value
    i have tried using setValue method of both binding property and value property of htmlSelectOneMenu.
    Same issue is with InputTextArea. how to set value in it via code(RowSelectionListener of icefaces)The html SelectOneMenu is bound to a value of a backing bean. You have to change the value of that backing bean, not the JSF component directly. JSF takes care of updating the model, you shouldn't be touching it unless you know what you are doing.

  • How to set "Maximum Lenght" column property for database block at RUNTIME?

    Hi folks,
    Is it possible to somehow set a "Maximum Length" property for database block column at runtime?
    I have a dynamic form, which maintains mostly "STATIC DATA" within all application which are stored in different static data tables (which have similar structure). But now, description column in some of those tables was extended (not in all at this stage). I would like to avoid truncating form error while reading data from those extended tables, so I would like to set an MAXIMUM SIZE to accurate value at the time when I'm specifying TABLE NAME for that database block.
    What property should I use to set it?
       -- before executing query in "MAIN_BLOCK" I always set QUERY_DATA_SOURCE_NAME to user defined value => STATIC DATA TABLE name
       Set_block_Property('MAIN_BLOCK',QUERY_DATA_SOURCE_NAME,:control.table_name);
       Set_block_Property('MAIN_BLOCK',DML_DATA_TARGET_NAME,:control.table_name);
       -- here I would like to set also MAXIMUM LENGHT for particular column (based on some condition, etc.. correct value I can get from ALL_TAB_COLS dictionary
       SET_ITEM_PROPERTY('MAIN_BLOCK.DESCRIPTION', <<XXXXXXX>>, 300);What should I use instead of "<<XXXXXXX>>" if I want to overwrite MAIN_BLOCK.DESCRIPTION column's maximum length to 300?
    Thanks,
    Tomas

    Hi Magoo, thanks for reply.
    Yes, but then user can get other errors while trying to set description with value longer than in database (for all not extended tables).
    Aby idea how to implement SET_CUSTOM_PROPERTY like mentioned here?
    Oracle Forms - "maximum length" property.
    Thanks,
    Tomas

  • Setting values to properties on load

    Hi,
    I have a big Trouble on Data Populating to the components on page loading like,
    Have page1 and page2.Based on ID passed from page1,query should execute and results should set to the form on page2 through Backing Bean.
    What doing is..
    using setActionListener passing ID from page1 and setting to method in page2 as argument which gets results based on ID and sets to component properties, here the problem is..
    Before page2 loads method called first from setActionListener where we cannot set the values to properties before loading.
    How can we set values to components in backing bean only on load based on ID from other page.
    And one more issue is, if we make any code in setter property it get executes every time,
    what is the correct procedure to execute the method only on loading.
    Does there any procedure to make method to excecute only on load.
    Please suggest me, how can i overcome this issues,these were become major issue for the Development.
    Thanks,
    Bandaru.

    hi,
    we tried to achieve the same thing.. But its not possible to set the values to individual segments of a KFF..
    Thanks,
    raghav.

  • Accessing Value of a property of a derived class

    I'm having trouble getting the value of a property of my class. My class is called ball and I'd like to get it's velocity (which i set but can change) from my view control.
    Here is my ball.h code:
    #import <Foundation/Foundation.h>
    @interface Ball : UIImageView {
    CGPoint ballVelocity;
    int mXSpeed;
    int mYSpeed;
    float mAngle;
    - (void)getVelocity:(CGPoint)speed;
    - (void)move;
    - (void)bounceHorizontal;
    - (void)bounceVertical;
    - (void)setSpeedX:(int)xSpeed Y:(int)ySpeed;
    - (void)setVelocity:(CGPoint)speed;
    - (CGPoint) ballVelocity;
    @end
    Here is my part of my ball.m code:
    #import "Ball.h"
    @implementation Ball
    - (void)setVelocity:(CGPoint)speed {
    ballVelocity = speed;
    Here is my viewVontroller.h
    #import <UIKit/UIKit.h>
    @class Ball;
    @interface BallsOfFireViewController : UIViewController {
    IBOutlet UIImageView *ball;
    NSMutableArray *mBallArray;
    CGPoint ballVelocity;
    CGPoint velocityz;
    CGPoint velocityz2;
    @property(nonatomic, retain) IBOutlet UIImageView *ball;
    @property(retain, nonatomic) IBOutlet NSMutableArray *mBallArray;
    @property(nonatomic) CGPoint ballVelocity;
    - (void) checkCollision;
    @end
    and here is the relative code from my viewController.m
    #import "BallsOfFireViewController.h"
    #import "Ball.h"
    //#define kGameStateRunning 1
    //#define kGameStatePaused 2
    #define kBallSpeedX 1
    #define kBallSpeedY 1
    @implementation BallsOfFireViewController
    @synthesize ball, mBallArray, ballVelocity;
    - (void)viewDidLoad {
    [super viewDidLoad];
    //self.gameState = kGameStatePaused;
    mBallArray = [[NSMutableArray alloc] init];
    int i;
    for (i = 0; i < 3; i++)
    Ball* ballx=[[Ball alloc] initWithImage:[UIImage imageNamed:@"FireBall.png"]];
    [mBallArray addObject:ballx];
    [self.view addSubview:ballx];
    if (i == 14
    //[ballx setBackgroundColor:([UIColor redColor])];
    ballx.image = [UIImage imageNamed:@"IceBall.png"];
    ballVelocity = CGPointMake(1,1);
    [ballx setVelocity:ballVelocity];
    ballx.center = CGPointMake((random() % 14) * 20 + 20 ,(random() % 20) * 20 + 20);
    [NSTimer scheduledTimerWithTimeInterval:0.005
    target:self
    selector:@selector(moveBall)
    userInfo:nil
    repeats:YES];
    -(void)moveBall
    int i;
    int numberOfBalls=[mBallArray count];
    for (i = 0; i < numberOfBalls; i++)
    Ball* ballz=[mBallArray objectAtIndex:i];
    int i2;
    for (i2 = 0; i2 < numberOfBalls; i2++)
    if (i2 != i) {
    Ball* ballz2=[mBallArray objectAtIndex:i2];
    if (CGRectIntersectsRect(ballz.frame, ballz2.frame)) {
    if (sqrt(pow(ballz.center.x - ballz2.center.x,2) + pow(ballz.center.y - ballz2.center.y,2)) <= pow(ballz.frame.size.width,2)) {
    [ballz move];
    velocityz = ballz.ballVelocity;
    velocityz2 = ballz2.ballVelocity;
    if (velocityz.x == velocityz2.x * -1 && velocityz.y == velocityz2.y * -1) {
    if (pow(ballz.center.x - ballz2.center.x,2) > pow(ballz.center.y - ballz2.center.y,2)) {
    [ballz bounceHorizontal];
    [ballz2 bounceHorizontal];
    } else {
    [ballz bounceVertical];
    [ballz2 bounceVertical];
    [ballz move];
    When I get to the following line in debug mode the game in my iPhone Simulator freezes and I do not see any errors in xCode (probably don't know where to look):
    velocityz = ballz.ballVelocity;
    I think I'm just not setting up my ball class correctly to be able to pull back the value of the ballVelocity variable. Can anyone point me in the correct direction?

    Here's the error I see in the dubugger
    [NSObject doesNotRecognizeSelector:]
    this is the line of code it is trying to execute in viewController.m:
    velocityz = ballz.ballVelocity
    I do have this in my ball.h
    - (CGPoint)ballVelocity;
    the ballVelocity of the ball is set right after it is created. No idea why it thinks this is not recognized. I know it's probably something stupid but I just don't see it!

  • Problem setting a provider specific property : JMS adapter

    Hi Experts:
    I need to set a provider specific property as required by the third party in a IDoc to JMS scenario.
    The property name starts with JMS_ and is offcourse a property specific to the JMS provider.
    The way I am setting it is I have declared a Additional JMS message property by the same name as desired by the third party say
    JMS_XXX
    and then using the DynamicConfigurationBean I assign a value to this in the reciever channel.
    The problem that we have observed is, all other properties are set as desired, only this one for which the name starts with JMS_ is not set correctly.
    Is it possible to set such a provider specific property using XI or not?

    Hi Amol,
    Adapter-Specific Message Properties
    ·        To store adapter attributes in the message header of the XI message, select Set Adapter-Specific Message Properties.
    ·        To apply the following attributes in XI message headers, set the corresponding indicators:
           Name                                           Technical Name
    JMS Message Correlation ID               DCJMSCorreleationID
    JMS Message Delivery Mode               DCJMSDeliveryMode
    JMS Message Destination                   DCJMSDestination
    JMS Message Expiration                     DCJMSExpiration
    JMS Message ID                                DCJMSMessageID
    JMS Message Priority                         DCJMSPriority
    JMS Message Redelivered Flag            DCJMSRedelivered
    JMS Message ReplyTo Destination      DCJMSReplyTo
    JMS Message Time Stamp                   DCJMSTimestamp
    JMS Message Type                              DCJMSType
    Used JMS Message Selector                 DCJMSMessageSelector
    Used JMS Message Queue                    DCJMSMessageQueue
    JMS User                                                DCJMSUser
            If you want to set additional JMS message attributes, select Specify Additional JMS Message Properties (10 Maximum).
    ·        In the table, enter the names of the JMS message properties whose values are to be included in the message header of the XI message.
    The technical names of the additional attributes are DCJMSMessageProperty0, DCJMSMessageProperty1, ..., DCJMSMessageProperty9.
    You can enter more than 10 properties in the table, but only the first 10 are taken into account.
    The attribute namespace for the adapter is http://sap.com/xi/XI/System/JMS.
    if found worth pls do the req
    Thanx
    Sampath

  • Custom property renderer for multiple value selections of property metadata

    Hi,
    We have created custom predefined metadata properties and fetching data from SAP to display values while uploading a document from KM.Everything is working fine and values are being displayed in a dropdown.
    The standard property multi-valued displays values in checkboxex but the requirement is to allow for multiple selections in dropdown using shift ot ctrl key.
    We started creating our own property renderer by decompiling classes like allowedvalues_multivalued
    but we could not see the property on the upload screen.
    Any help is greatly appericiated.
    Thanks,
    Vasu.

    Vasu,
    Try changing the property renderer setting in your custom property.  There might be one which allows a multiple select box.  If not, you can always create your own.  The following links are helpful:
    https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/5800
    https://www.sdn.sap.com/irj/sdn/nw-cm?rid=/library/uuid/f7b176eb-0701-0010-2b84-8edb1f76771d
    Andrew

  • Values for 'Uid' property must be Text_for style on listbox

    <Style x:Name="foo" TargetType="ListBox">
    <Setter Property="Background">
    <Setter.Value>
    <!-- Your resources go here. -->
    <SolidColorBrush x:Uid="{ThemeResource ListBoxFocusBackgroundThemeBrush}" Color="Green"/>
    </Setter.Value>
    </Setter>
    </Style>
    Error Values for 'Uid' property must be Text

    What are you trying to do here?
    As the error states, the x:Uid must be plain text. You cannot bind it to a brush.
    The Uid is used for localization to identify which localized resource to use. It makes no sense in the SolidColorBrush context.

Maybe you are looking for