How can I create an element in the model node?

Hi, Experts,
I create a model node that name is containerNode in the contxt. Cadinility is: 1..n
I write the code in the method:
  private String getDataForOutputTable( IWDNode wageTypePayslip, IWDNode containerNode ){
       String betrgSumStr = "";
     int index = 0;
     Vector containerVector = new Vector();
     int size = wageTypePayslip.size();
     IWDNodeElement element = containerNode.createElement();// The system report error when I run the application.
     BigDecimal betrgSum = new BigDecimal( 0 );
I try to create a element in the containerNode, But the system report error when I run the application.
java.lang.IllegalArgumentException: model object must not be null
     at com.sap.tc.webdynpro.progmodel.context.ModelNodeElement.<init>(ModelNodeElement.java:66)
     at besuretech.com.wdp.IPrivatePayDataDispView$IOContainerElement.<init>(IPrivatePayDataDispView.java:1537)
     at besuretech.com.wdp.IPrivatePayDataDispView$IContextNode.doCreateElement(IPrivatePayDataDispView.java:88)
     at com.sap.tc.webdynpro.progmodel.context.NodeInfo.createElement(NodeInfo.java:884)
     at com.sap.tc.webdynpro.progmodel.context.Node.createElementInternal(Node.java:1351)
     at com.sap.tc.webdynpro.progmodel.context.Node.createElement(Node.java:1370)
     at besuretech.com.PayDataDispView.getDataForOutputTable(PayDataDispView.java:251)
     at besuretech.com.PayDataDispView.getAllData(PayDataDispView.java:196)
     at besuretech.com.PayDataDispView.onPlugPayListViewIn(PayDataDispView.java:154)
     at besuretech.com.wdp.InternalPayDataDispView.wdInvokeEventHandler(InternalPayDataDispView.java:391)
     at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
     at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.navigate(ClientApplication.java:826)
     at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.navigate(ClientComponent.java:881)
     at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doNavigation(WindowPhaseModel.java:498)
How can I create an element in the model node ?
Best regards,
tao

Hi,
You need to execute the model before creating the element.
Regards
Ayyapparaj

Similar Messages

  • How can I create a drawing like the one pictured from a photo?

    How can I create a drawing like the one pictured from a photo?

    OK, you are getting closer. Now, use your result, and place a Layer above that. Use the Pen Tool to create the "pen strokes" basically tracing over your background image. Then, when you have created each Path (or Sub-Path), choose Stroke Path, with probably the Pencil Tool and a Brush size that is small enough.
    Not sure which versions of PS these are good for, but here are some plug-ins, that might be helpful.
    AKVIS Sketch
    EdgeLine
    Sketch Effects
    Sketch Master
    I see that one of my old favorites, Flaming Pear's India Ink is not around any more.
    Good luck,
    Hunt

  • HT5114 How can I create multiple accounts without the necessity to create multiple email addresses?  I now have 2 i-phones (mine and my wife's#, 1 i-pad #mine#, 1 i-pad mini #10 year old's#, and 1 I-pod touch #11 year old's).  I would like to maintain pur

    How can I create multiple accounts without the necessity to create multiple email addresses?  I now have 2 i-phones (mine and my wife's), 1 i-pad (mine), 1 i-pad mini (10 year old's), and 1 I-pod touch (11 year old's).  I would like to maintain purchase control, but would like to be able to have a separate account ID for each person.  Is that possible?

    Each email address can only be on one iTunes account, and all purchases are tied to the account that buys them. If you want to have separate iTunes accounts on each then you will need separate email accounts for each iTunes account

  • How can i create a Laptop like the ones use in SAP TecEd?

    How can i create a Laptop like the ones use in SAP TecEd hands on labs? with all the NW products install on it.

    Hi,
    Vague question, but to create a laptop with the solution installed - you need to order the solution and and then install it on the laptop. Or download trial versions from SCN and install those as well.
    Regards,
    Srikishan

  • How to add a new element to a model node in the view controller?

    View Context
        myNode
             attri1
             attri2
    myNode is a web service model node. How to add a new element to this node?
    Regards,
    Hui
    Edited by: Hui Wang on Feb 15, 2008 12:05 PM

    Sudhir Gorantla wrote:>
    > Hi,
    >
    > myNode
    > attri1
    > attri2
    >
    > IMyNodeElement ele=wdContext.myNode().createMyNodeElement();
    >
    > ele.setAttri1("");
    > ele.setAttri2("");
    >
    > wdContext.nodeMyNode().addElement(ele);
    >
    > Regards,
    > Sudhir
    Hi we need a model as an input parameter when creating a element for a model node. How to get the instance of the model?
    Regards,
    Hui

  • How can I create a Title for the worksheet in Discoverer Plus

    Dear members,
    I am using discoverer 4i Plus to create workbooks. I am not finding an option to insert a title for the worksheet. In Discoverer Desktop we have a separate option to insert or edit a title. I am not sure how can we create titles in Plus.
    Any suggestions.
    Thanks
    Sandeep

    Hi,
    I am not able to login to Discoverer Desktop Using my Applications username. My Desktop Version is 4.1.37. The same username works in Discoverer 4i Plus and i can create workbook there.
    I went to Tools--->Options--->Connections and checked the option connect to both standard and application EUL's and while i am logging in i checked the small box which comes in the login screen. I do not know why this happening.
    I am also able to login as the database user in Desktop but not as an application user.
    I want to login into desktop as an application user and create a template workbook which has title and then assign that workbook to a particular responsibility since creating title cannot be done in Plus.
    I am not sure what's going wrong here because the Desktop works for database user but not for an application user. Any comments are highly appreciated.
    Thanks
    sandeep

  • How can I create a sample with the Flex data?

    Hi mates, I'm thinking about doing some stutter vocals with the ultrabeat so I've got a vocal and I have flexed it in time so it fits well on the song's tempo, the problem is that when I create an audio file of the part of the vocal I want to use on my ultrabeat, it creates an audio file that's not fitted in time.
    How can I create the audio file fitted in time?with the flex info?
    Thanks so much!

    psikonetik wrote:
    How can I create the audio file fitted in time?with the flex info?
    You need to create Apple Loop, REX etc.
    For example select the region that you have already flexed, right click ->Bounce Merge->Bounce Inplace. I will create a new audio track with the bounced Flex work.
    Select the new region and go to Audio menu ->Open in Apple Loop Utility and check "Loop" and other attributes to create an Apple Loop. Save the Apple Loop and close the utility. It's expected that the Apple Loop aif must be created in your Project path folder or have a look at the Audio Bin in Logic where is the aif path.
    Drug the Apple Loop in the Arrange audio track ( or it will create one ) and operate with any tempos.
    !http://img59.imageshack.us/img59/4967/aglogo45.gif!

  • How to bindi a UI element to 2 model nodes different in the same view

    I want to know how I can bind a set of inputfields, in a form view, to 2 different model nodes ?
    <u>example:</u>
    Im working with 2 adaptional RFC, both working, in my Custom Context.
    Ztest_Search
    Ztest_Update
    In my ResultView I have 2 Model nodes (one for each RFC) I show a set of inputfields in a form view, binded to the Ztest_Search_output of Ztest_Search. This works.
    now I want to update the changes, but I can't find the ways of binding the same inputfields to my other Model node (Ztest_Update) in the context of ResultView.
    Note: If I create a duplicate set of inputfields , one for Ztest_Search binded to the Ztest_Update_output and the other to the Ztest_Update_Input Works. But I wanna avoid this duplicated set of inputfields.
    Thx

    Rodrigo,
    If I understood correctly, your problem is to get the data from the input fields which are bound to a
    model node, Ztest_Search_output and set it to the model node of another RFC, Ztest_Update.
    This can be done by getting the suitable values from the model attributes of Ztest_Search_output
    and setting it to Ztest_Update.
    <b>/**
    * valueOne, valueTwo are the name of the model   
    * attributes that are bound to the Input fields.
    */</b>
    String firstValue = wdContext.currentZtest_Search_outputElement
         ().get<valueOne>;
    String secondValue = wdContext.currentZtest_Search_outputElement
         ().get<valueTwo>;
    Ztest_Update_Input update = new Ztest_Update_Input();
    wdContext.nodeZtest_Update_Input().bind(update);
    <b>/*
    *<b>Zstructure is the structure of the model node under
    *Ztest_Update_Input to which the values have to be 
    *updated.</b>
    */</b>
    ZStructure structure = new ZStruture();
    structure.setValueOne(valueOne);
    structure.setValueTwo(valueTwo);
    update.addZStructure(structure);
    try
       update.execute();     
    catch (Exception ex)
       wdComponentAPI.getMessageManager().reportException(ex.getMessage(), false);                     
    wdContext.nodeZtest_Update_Output().invalidate();
    Bala

  • How can I create a box in the toolbar to dispaly cursor coordinates

    I would like to create a box in the acrobat toolbar to display cursor position coordinates relative to a user specified origin. How can this box be created and added to the toolbar? I'm just getting started with writing acrobat plugins.

    OK...
    You can create a floating palette using the ADM APIs that are documented in the SDK, and for which there are samples.
    Or use your OS platform APIs for doing windows...
    Leonard

  • Hi. I want to build a GUI based on several windows appearing following a certain sequence. How can i create different windows in the same VI? Also, i want the front panel of a subvi to appear when i run, how can i enable this.Thanks

    Having several windows appear ...

    Hi,
    You can't create several windows for one VI. But you can use the "Tab Control" and change tab's in the program. Or you can use sub VI's and show ther front panels.
    To show the front panel of a sub VI you have to open the VI you want to show and select "File->VI Properties". In the VI Properties window select Category "Window Appearance" and click Customize...
    In the Customize Window Appearence window, here you can set a number of attributes for how the window will appear, select "Show front panel when called" and "Close afterwards if originally closed" click OK and OK and save the VI, done.
    Now the VI front panel will appear then you use it as a sub VI.
    /Thomas

  • How Can I Create a Menu Where the Audio Loops Twice But the Video Loops Forever

    I'm wanting to create a 50 second looping menu with a video background and some music, but I only want the music to play twice.  After the second time the music plays, I'd like the video background to continue looping, but not have any music.
    How could I achieve this while giving the user the ability to make menu selections at any time?  I've seen it done on a number of commerically available DVDs and Blu-rays, but I can't figure out how to do it in Encore.
    I'm using Encore CS6.
    Thanks.

    Stan Jones wrote:
    I do not know if that works, but I don't see why it wouldn't.
    I'm not sure what you're referring to.  Are you referring the commercially available DVDs that I've seen achieving what I mentioned in the first post? 
    There's definately a way to do this, but perhaps Encore just insn't capable. I always find it annoying when a DVD menu loops music or some other audio infinately.  I may stick a disc in the player and walk into the other room to do something while it's loading up.  I always appreciate it when whoever made the disc only has the music or audio looping a couple of times, then it stops.
    Just wish I could do the same.

  • How can I create a universe with the BO repository tables?

    Hi. I need make a universe with the BO repository tables, in order to get user information .
    But, when I try to insert tables in designer, using a new conecction to BO repository. I can't see tables.
    Someone can help me?

    The CMS repository is organized into both physical and virtual tables. Only the CMS can access the virtual tables, therefore you cannot create a universe on the CMS repository. You can access the CMS repository information through the Enterprise SDK.
    https://www.sdn.sap.com/irj/boc/businessobjects-sdklibrary

  • How can I create an index on the date part of a timestamp field?

    is there a way I can create an index on the date part of a timestamp field?

    LONGENECKER wrote:
    Idea:
    If you find no direct command that allows you to create an index on JUST the date portion of a timestamp datatype column then I recommend you consider splitting date and time into two seperate columns.
    If date is column "A" and time is column "B" then you can concatenate them using a view or virtual column (in 11G) to re-assemble them at run time.
    In the solution I describe above you might trade ease of management for better performing queries.
    Additional Info:
    This thread may be of some value.
    Can we create INDEX on TIMESTAMP column???
    And what datatype do you propose for your columns A and B? The only proper datatypes would be DATE or TIMESTAMP. Both of these inherently carry both date and time components, so that would have to be dealt with anyway. The use of any character or number datatype to hold date and/or time should be treated with an application of Billy's lead pipe.
    Perhaps function based indexes would be a better solution.

  • How can I create color fields of the main color automatically?

    Hi
    I have many images files. For each picture, I need a color field of the main color, so the one that is most commonly seen.
    This color should be saved as a new image as background.
    How can I do it in Photoshop, so this is done automatically.
    Thank you.

    Sounds specialist to me.  Have a look at Channel Calculations in Photoshop help, but as Christoph says, you are going to need scripting to automate the process.   It's not an easy thing to Google either, but I found this PDF  Search for 'analyzing color'
    http://help.adobe.com/en_US/photoshop/cs/using/WS7901119A-3EE7-4806-B5AF-1A6D58827A81a.htm l
    If you are pre Creative Cloud, you'll need the Extended version.
    Good luck

  • How can i create a link in the context help from frontpanel elements like knobs and so on

    i want to create on context sensitive online help and therefore need to know how i can place a hyperlink in the context help from labVIEW of a frontpanel element

    lotto;
    You can place your help file in LabVIEW help directory, which should be in \help. If you place your help file in that directory, then when you start LabVIEW, you can access your help from LabVIEW's help menu (there will be an extra entry with the name of your help file.)
    To link your control or vi to this help file, open the front panel (or the panel where you edit the control) and open the VI setup. In the help path field write the following:
    :\name.hlp
    Where "name" in the name of your help file. in the "Help Tag" field you should enter the tag you already assigned to the topic in the help at design time. (I suggest the tag to be similar as the vi or control name.)
    After all this, the next time you start LabVIEW,
    you should be able to access the context help file to your control or vi by right-clicking on it and selecting "Online Help".
    IMPORTANT NOTE: Be aware that you may loose files you locate in special directories in LabVIEW, like the help, because those directories might be overwritten when you upgrade your software. Another option can be to locate your help file in a directory other than LabVIEW's help. The steps are almost the same, except that you won't be able to access your help file from LabVIEW's help menu.
    Best regards;
    Enrique
    www.vartortech.com

Maybe you are looking for

  • How to get the 'link' between two tables

    hi pple i need to find out HOW two tables are related. sample tables: SHIPS ( HULL_ID [PK] , VESSEL_NAME, GROSS_TONNAGE ) EQUIPMENT ( E_ID [PK] , HULL_ID [FK frm SHIPS], DESC ) PARTS ( PART_ID [PK] , E_ID [PK, FK frm EQUIPMENT], MANUFACTURER_ID) -->

  • MM -Aggrements  defination info req??

    hi i need to find out the PO released on all SAP defined aggremnts i.e outline,scheduling,quta aggremnts,info recourds..etc..... can any one plz tell me,how to find the defination of aggremnts,where they are matained in Tables,under which fileds.? ar

  • XML docs with BLOB

    I know it is possible to save an XML document into a BLOB field. However, can anyone tell me if it is possible to pass a BLOB in an XML document. What I mean is can I have an XML document structured as follows? Is so, where can I find the syntax. We

  • Display on Qosmio F60-10U Turns Mozaic and System Getting Hang

    From The Day I purchased F60-10U; i am facing thins problem. My display occasionally Turns into Mozaic and same time System Getting Hang. only thing i can do is restart with power button. i had given to service center; they told that its because of v

  • B210 will not print black

    My printheads will not align.  The black does not print very much. On a black-only print the top lines were blurry and the black was mixed with magenta.  After the top 1 and 1/2 inches of print, the remainder of the page was done in blurry magenta! O