How to set the cardinality property as 1..n for a dynamically created node

Hi...everybody
    I am creating Dropdown by index UI element and the
context atrributes dynamically.To bind multiple data to a dropdown
the cardinality property of the node should be 0..n or 1..n,
But i could not set the property of the dynamically created context node to 0..n ...
can any body suggest me..
I implemented the following code in WDDoModify View
IWDTransparentContainer tc=(IWDTransparentContainer)view.getElement("RootUIElementContainer");
IWDNodeInfo node = wdContext.getNodeInfo().addChild("DynamicNode",null,true,true,false,false,false,true,null,
          null,null);
IWDAttributeInfo strinfo=node.addAttribute("Value","ddic:com.sap.dictionary.string");
dbyindex.bindTexts(strinfo);
tc.addChild(dbyindex);
I could successfully display one value in the drop down,by adding the following code before the line tc.addchild(dbyindex);
IWDNode node1=wdContext.getChildNode("DynamicNode",0);
IWDNodeElement nodeElement=node1.createElement();
nodeElement.setAttributeValue("Value","Hello");
node1.addElement(nodeElement);
but when
i am trying to bind multiple values i am getting Exception ,,,,

hi
you are getting the exception because of cardinality property.
i.e   true,false and
you are trying to add morethan one element.
so,if you want to add morethan one than one element you have to set the cardinality property to true,true (or) false,true.
In your code do the following modification for changing the cardinality.
For 0..n -->false,true
      1..n-->true,true
IWDTransparentContainer tc=(IWDTransparentContainer)view.getElement("RootUIElementContainer");
IWDNodeInfo node = wdContext.getNodeInfo().addChild("DynamicNode",null,true,true,false,false,false,true,null,
null,null);
IWDAttributeInfo strinfo=node.addAttribute("Value","ddic:com.sap.dictionary.string");
dbyindex.bindTexts(strinfo);
tc.addChild(dbyindex);
hope this will solve your problem.
In addchild(..) the parameters are
addChild("Name ,
                Element class for model node ,
                Is singleton? ,
                Cardinality ,
                Selection cardinality ,
                Initialise lead selection? ,
                Datatype ,
                Supplier function ,
                 Disposer function);
Regards
sowmya

Similar Messages

  • How to set the item property to restrict the user to not to copy from above

    Hi Guru's,
    I have a requirement like, There were two items on the form name email Id, Confirm email Id.
    I have to ristrict the user to not to copy from email Id item.. make him/her to enter the value into confirm email id item field manually.
    How to set the item property to restrict the user to not to copy from above item and paste it in this item.
    Please help.
    Thanks!!

    Just an opinion here, but that is about the dumbest requirement I have ever seen.
    I am always annoyed by web sites that ask me to enter my email twice. I ALWAYS copy the email address from the original entry and paste it into the second one.
    People enter their email addresses so often, it takes a real klutz to not get it right. And what makes you think that if they enter it twice, that they won't enter it wrong both times anyway???

  • How to set the 'text' property of a 'Header' region dynamically?

    Hi,
    I have a requirement to display the 'text' property of a 'Header' region, based on a query.
    So I need to set the text property programatically in CO.
    Can I use setText("..") by getting the handler to the 'Header' region?
    If so, How to get the handler for the 'Header' region?
    Message was edited by:
    user594528

    How to get the handler for the 'Header' region to call the setText()?
    OAHeaderBean Header1 = (OAHeaderBean)...........................
    Header1.setText("....");

  • How to set the target property of hyperlink through formula

    Hi guyz,
    I have a problem in setting the target property of hyperlink field. I'm using CR XI R2 with asp.net.
    I want to set the target property of hyperlink as one of the frame on my webform. how can i do it through formula in crystal report.
    I want to set it through CR because i don't have any way to identify the link fields uniquely. these link fields are generated dynamically from data base. I have some other links on my webform. If i try to get all links through javascript and change the target property it may effect some other functionalities, so i'm avoiding using javascript to set the target property of hyperlinks.
    your help will be highly appreciated.
    Thanks in advance
    Deepak

    You may want to look at the HyperlinkTarget property of the CrystalReportViewer.  If you want all hyperlinks in the report to go to that frame, it should work for you.

  • How to set the source property of image control dynamically?

    Hi,
      I have different fxg files which I want to display in a list. For each row in the List, I define which fxg file to be displayed in my database.
    I need to know how to set the image1.source = (the fxg path) as a string from database?
    Is there any conversion needed in this case? If so, can you please help me how to do this?

    Hi,
      Thank you for your response. I am new to Adobe Flash Builder, Flex and action script. I don't get your answer straight away.
    What I basically need is, I need to set image1.source = strFXG. Right now, this does not show the image. I don't understand fxgObject.pathid.source => how to give this?
    Moreover, when I did google search, there is somethink like fxg converter which converts the fxg to a component. I thought this is a very simple problem on how to convert the fxg string to an object format. But now, it looks like it might be a big problem. Can anyone help me in this?
    import spark.components.Image;
                                  protected function view1_creationCompleteHandler(event:FlexEvent):void
      // TODO Auto-generated method stub
      var strFXG:String = 'assets.DB_Actief_Graphics';
                                            var image1:Image = new Image();
                                            image1.x = 100;
                                            image1.y = 100;
                                            image1.source = strFXG;
                                            addElement(image1);
    Regards,
    Chella

  • How to set the actionname property in B2B 11g

    I have an outbound file sent via AS2 over http. I gather from other b2b forums/documents that for preserving the file name I have to set the actionname property. I have a BPEL process which is setting the fromTP, toTP, document TYPE etc, and then invoking the B2B and sending the document. Can I set the actionname property in the BPEL?
    When I am trying to assign a value like "contentType:application/octet-stream;filename:abc.xml", I don't see any actionname property in the "To" side.

    As there are three ways through which you may pass a message to B2B, so there are three ways to set Action name property.
    If you are using SCA/Fabric then set below properties -
    b2b.fileName
    b2b.contentType
    If you are using JCA JMS adapter, then set below property -
    jca.jms.JMSProperty.ACTION_NAME
    If you are using JCA AQ adapter then set -
    ACTION_NAME
    Regards,
    Anuj

  • How to set the particular city as a region for checking my device in SMP 2.3 HWC

    Hi Experts,
    I am doing a sample for finding the device with in the region or not like if i set the region as particular city like hyderabad, then it will show the next screen otherwise it has to show the alert message like "You are out of the hyderabad, you cannot access this app.",
    Now i am able to get the current location latitude and longitude, now i have to set the region.
    how to set the particular city as my region in SMP2.3 HWC.
    Vamsi K

    Hi Midhun,
             Thanks for your reply, i just want to set the Hyderabad coordinates, and i am getting the current device location latitude longitude values. i am comparing those two values, if those were matched then i will go to the next screen i.e., something like hello welcome you are logged in, other wise just show an alert " you are out of the region, so you are not able to use this application".
    Thanks,
    Vamsi.K

  • Hi how to set the visible property in oracle adf?

    Hi,
    I am new to oracle adf in my application one of the field is id and it is sequence generated value Whenever I entered remaining values and click on save then only it has to display with sequence generated value before saving it has to be in hide mode. Can any one help me how the approach is.

    As there are three ways through which you may pass a message to B2B, so there are three ways to set Action name property.
    If you are using SCA/Fabric then set below properties -
    b2b.fileName
    b2b.contentType
    If you are using JCA JMS adapter, then set below property -
    jca.jms.JMSProperty.ACTION_NAME
    If you are using JCA AQ adapter then set -
    ACTION_NAME
    Regards,
    Anuj

  • How to set the dimension of main page windows for std dot matrix printer

    Hi All,
    I have to print a form in a pre- printed form which is coming from the standard dot matrix printer( 80 column).
    In the Sap script how i will define the dimensions of main page window .
    The printer is in US .  How i can sets the page dimensions .
    reward point will be provided.
    Regards

    Change SEQUENCE = "213" to SEQUENCE = "218" in the Task ID Field component. That will solve the issue.
    --Shiv                                                                                                                                                                                                                               

  • How to set the backcolor of an element in jasper report dynamically

    Hi,
    I've just start using jasper report for my project. I have a problem that : my report will show some records get from database, I want some data field on report must have "red" backcolor according to its value, for example : if a text value is 3 its back color is red, and others value its backcolor is transparent. I don't know if there are some way to control jasper report script as I use java code in html file.
    Please help me, thanks,
    Dat.

    Hi,
    I had the same problem. There are two ways (as far as I know) to solve it.
    - if you only want to highlight some fields you can create a rectangle with your color and set the printWhenExpression
    - if you want to set the color from your DataSource, you can use styled text. Just select styled text from the font panel and use the <style> element in the textFieldExpression like:
    "<style backcolor=\"" + $F{COLOR} + "</style>" Hope this helps

  • How to set the a quantity during MIGO 101 for Production Order

    Hi Gurus
    My issue is very easy.
    Since few weeks we execute 101-MIGO directly on production dep.t at the end of every shift.
    When MIGO is called the system propose the residual qty (noy yet Posted) for the PP Order.
    Becuase for a PP Order, many 101 movement have to be posted (during differents shifts), I need to clear the qty proposed in field GOITEM-ERFMG. This is becuase sometime users post a single Movement for the total residual quantity !!!!
    Is there an Exit or a Badi or a customizing setting is avaliable to do it ???
    Thank-You in advance for your help.
    Claudio

    Hi Claudio,
    A 101 movement for the production order takes place when
    - You receive the production order via MB31
    or
    - Confirm the last operation which has PP03 control key
    A backflush is done only for the components called by the production order & not for the header material.
    Hope the above answers your query.
    Regards,
    Rahul.

  • How to get the CanGoBack property and GoBack() method for windows 8 store app

    Hi Everybody,
            I m working windows 8 store app with webview. Here I have two buttons for go back and go forward. But i didn't have default  property for goback and goforward. How can i achieve this? 

    Thanks Rob Caplan
    Actually I want solution for XAML.
    I achieve this by using list and maintaining the the current item position of current URL.
    See the Sample code:
    In webview loadingcomplete event track the url navigations
    private int _bacListPositionElevate = -1;
    webView.LoadCompleted += (object s, NavigationEventArgs e) =>
    _currentUri = e.Uri;
    if (_currentUri != null)
    if (_currentUri != elevateNavigationStack[_bacListPositionElevate])
    elevateNavigationStack.Add(_currentUri);
    _bacListPositionElevate++;
    Now in the back button decrease the position like this:
    _bacListPositionElevate--;
    webView.Navigate(elevateNavigationStack[_bacListPositionElevate]);
    BackButton.IsTapEnabled = (_backStackPositionElevate != 0);
    FrwdButton.IsTapEnabled = (_backStackPositionElevate < elevateNavigationStack.Count - 1);
    Now in the forward button increase the position like this:
    _bacListPositionElevate++;
    wvElevate.Navigate(elevateNavigationStack[_bacListPositionElevate]);
    imgElevateBack.IsTapEnabled = (_backStackPositionElevate != 0);
    imgElevateFwrd.IsTapEnabled = (_backStackPositionElevate < elevateNavigationStack.Count - 1);

  • Hi i want to know how to set the delivery date as a standard for PO

    hi in terms of delivery date how is it possible to set a later date so that I dont need to change it every time I save a purchase order.

    Hi,
    Your query is not clear. The delivery date is calculated by the system based on the planned delivery period you have entered in material master. Based on this planned delivery time & the PO creation date, system automatically proposes the delivery date, which you need not change.
    Pl revert if this does not clear the query.
    Regards,
    Prashant

  • How to set the home page in FF14.0 for Android?

    Just installed FF14.0 for Android. Previous versions allowed users to set their own home page - how is this done in this version?

    Shame Firefox does not have ability to support this.
    Have recently downloaded Firefox Beta for Android & had been using Aurora. For both - get this Tab home page - not user choice. Was hoping the ability to select own Home Page would be added to a future update.
    Didn't like this feature in Chrome - so deliberately don't use Chrome in any OS. Lots of people complained about this in Chrome. Not sure why Firefox would want to restrict what users can do??
    (A key feature of Firefox & Netscape before it is that users are able to control & optimise for their own experience - which is the main reason it has been so well supported over many years.)

  • How To Set the Resultstate of Business Logic CO for Loop Decision Action

    Hi,
    I'm using a pre-conditional loop block in my GP process and using a Business Logic CO for the loop decision action. My expectation is the business logic CO should be executed at background and based on its resultstate the loop flow will happen. I've 2 resultstates in the loop decision (bus logic CO) - Continue and Break. I'm setting these two resultstates in the following way :
    Continue : BOOL(@currentLevel < @totalLevel)
    Break : !BOOL(@currentLevel < @totalLevel)
    currentLevel and totalLevel are the two input parameters (unsigned int type) of the business logic CO. If I test the CO it works fine and displays the correct resultstate. But at runtime the process gets paused at the loop decision action CO. I see the loop decision action link in my GP workcenter and UWL and on clicking of it nothing happens. If I refresh the screen still it's there as before.
    Anybody who can throw any light on this issue will be highly appreciated. And reward points guranteed for any help to solve the issue
    Thanks in advance,
    Dipankar

    Hi,
    Well I solved this issue myself ! After lot of research I found out that the resultstates should be in all small case <b>continue</b> and <b>break</b> and NOT Continue or Break.
    But now I've a different issue:
    I've an initial action under a sequential block. Then the pre-conditional loop block with a loop decision action and a loop body block(seq block).
    The expectation is initially the decision action should get the output param passed by the initial action and then in the iterations it will get the values passed by the output params of the loop body action. To achieve that I have mapped the output param of the initial action to the input param of the decision action and the input and output param of the loop body action. But it seems that the loop decision action though mapped to both the output of the initial action and the loop body action takes the value only from the initial action over the iterations and the values from the loop body action are not getting passed to the loop decision action. The context parameter value of the loop decision action remains static and it becomes an infinite loop.
    Any help to resolve this issue will be highly appreciated.
    Thanks,
    Dipankar

Maybe you are looking for